/*
 * Desktop layout reference: 影造AI-电脑端重排样板-20261116.
 * Loaded last and enabled only on explicitly mapped existing pages.
 * Mobile/tablet rules remain owned by the current responsive stylesheets.
 */
@media (min-width: 1024px) {
  html body[data-desktop-ref="20261116"] {
    --desk-nav-w: 232px;
    --dk-nav-w: 232px;
    --desk-gap: 24px;
    --desk-pad: 28px;
  }

  html body[data-desktop-ref="20261116"] .page-body {
    padding: 24px 0 0 !important;
  }

  html body[data-desktop-ref="20261116"] .page-body .container,
  html body[data-desktop-ref="20261116"] .page-body .yz-split {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  html body[data-desktop-ref="20261116"] .topbar {
    height: 64px;
    padding-left: 28px;
    padding-right: 28px;
  }

  html body[data-desktop-ref="20261116"] .card,
  html body[data-desktop-ref="20261116"] .panel {
    border-color: #2a323a;
    border-radius: 14px;
  }

  /* The reference uses a wide template wall and a narrower editing panel. */
  html body[data-desktop-ref="20261116"][data-page="smart-video"] .yz-split {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) !important;
  }

  html body[data-desktop-ref="20261116"][data-page="smart-video"] .wb-wall,
  html body[data-desktop-ref="20261116"][data-page="smart-video"] .wb-panel {
    min-width: 0 !important;
    background: #11171d;
    border: 1px solid #2a323a;
    border-radius: 14px;
  }
}

/* The reference artboard is 1440px. Do not stretch its content across wider monitors. */
@media (min-width: 1440px) {
  html body[data-desktop-ref="20261116"] {
    padding-bottom: 32px;
    background: #07080a;
  }

  html body[data-desktop-ref="20261116"] .app-shell {
    width: min(1440px, calc(100% - 64px)) !important;
    max-width: 1440px !important;
    min-height: 960px;
    margin: 0 auto !important;
    overflow: clip;
    border: 1px solid #2a323a;
    border-radius: 16px;
    background: #0b0e11;
    box-shadow: 0 24px 70px #00000045;
  }

  html body[data-desktop-ref="20261116"] .sidebar {
    width: 232px;
    min-width: 232px;
  }

  html body[data-desktop-ref="20261116"] .app-main {
    min-width: 0;
  }
}

/* Keep functional narrow-desktop layouts usable without changing the mobile contract. */
@media (min-width: 1024px) and (max-width: 1439px) {
  html body[data-desktop-ref="20261116"][data-page="smart-video"] .yz-split {
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr) !important;
  }
}
