/* ============================================================
   NeuroArt Studio — Desktop application shell
   ------------------------------------------------------------
   ≥ 940px the phone frame becomes a real desktop app window:

      ┌────────┬──────────────────────────────────────────┐
      │  RAIL  │  TOP BAR (title · balance · avatar)      │
      │  brand ├──────────────────────────────────────────┤
      │  nav   │  CONTENT (per-screen width & layout)     │
      │  create│  · home / gallery / inspiration: wide    │
      │        │  · chat: 4-col workspace — see §8:       │
      │        │    rail | chats | feed | artifacts       │
      │        │  · constructor: controls ▐ preview panes │
      │        ├──────────────────────────────────────────┤
      │        │  ACTION BAR (generate / composer)        │
      └────────┴──────────────────────────────────────────┘

   Performance contract (the «не тормозило» part):
   · ambient glows are frozen (no infinite repaint-inducing animation)
   · staggered mount animations are off — screens appear instantly
   · cards drop backdrop-filter (translucent surfaces stay, blur goes)
   · long grids get content-visibility so offscreen tiles cost ~0

   Phones (< 940px) never match anything here — the mobile shell in
   styles.css stays the single source of truth below the breakpoint.
   ============================================================ */

@media (min-width: 940px) {

  /* ════════════════════ 0. Atmosphere (static, cheap) ════════════════════ */

  body {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background:
      radial-gradient(120% 90% at 50% -12%, #17151A 0%, var(--bg) 55%),
      var(--bg);
  }

  .grain { z-index: 90; }

  /* freeze the three drifting glows — same depth, zero per-frame cost */
  .glow { animation: none !important; }

  .device {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(12,12,14,0.78) 0%, rgba(8,8,10,0.92) 100%);
  }
  .device__notch, .statusbar { display: none; }

  /* ════════════════════ 1. App grid: rail + content column ══════════════ */

  .app {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "nav  appbar"
      "nav  screen"
      "nav  dock";
    overflow: hidden;
  }

  /* ════════════════════ 2. Left navigation rail ═════════════════════════ */

  .tabnav {
    grid-area: nav;
    display: flex;
    align-self: stretch;
    width: 252px;
    padding: 20px 14px 22px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17,17,21,0.98) 0%, rgba(10,10,13,1) 100%);
    box-shadow: 1px 0 0 rgba(255,255,255,0.02) inset;
  }
  /* keep the rail hidden on screens without a tab bar when CSS-only nav is absent */
  .tabnav[hidden] { display: none; }

  .tabnav__row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* brand at the top of the rail (hidden on phones — styles.css) */
  .tabnav__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 10px 20px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }

  .tabnav__item {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border-radius: var(--r-sm);
    color: var(--ink-faint);
  }
  .tabnav__item:hover { background: var(--surface); color: var(--ink); }
  .tabnav__item:active { transform: none; }
  .tabnav__item.is-active {
    color: var(--accent-2);
    background: linear-gradient(135deg, var(--amber-a12), var(--amber-a05));
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .tabnav__ico { width: 22px; height: 22px; }
  .tabnav__ico svg { width: 21px; height: 21px; }
  .tabnav__label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }

  /* ── КОПРОДЮСЕР: иконочный rail в чате (claude-style) ────────────
     Левая рабочая панель (drawer с проектами/диалогами) берёт ширину,
     rail сжимается до иконок — как у anthropic. */
  .app[data-screen="CHAT"] .tabnav { width: 72px; padding: 14px 8px 18px; }
  .app[data-screen="CHAT"] .tabnav__row { gap: 6px; align-items: center; }
  .app[data-screen="CHAT"] .tabnav__label,
  .app[data-screen="CHAT"] .tabnav__fab-label,
  .app[data-screen="CHAT"] .appbar__wordmark { display: none; }
  .app[data-screen="CHAT"] .tabnav__brand { justify-content: center; padding: 2px 0 14px; }
  .app[data-screen="CHAT"] .tabnav__item { flex-direction: column; gap: 0; width: 46px; padding: 10px 0; justify-content: center; }
  .app[data-screen="CHAT"] .tabnav__item.is-active { box-shadow: none; }
  .app[data-screen="CHAT"] .tabnav__fab { margin-top: 0; padding: 10px 0; width: 46px; flex-direction: column; gap: 0; }
  .app[data-screen="CHAT"] .tabnav__fab-label { display: none; }

  /* Create — prominent rail button */
  .tabnav__fab {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
  }
  .tabnav__fab:hover { background: var(--surface); }
  .tabnav__fab.is-active {
    background: linear-gradient(135deg, var(--amber-a12), var(--amber-a05));
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .tabnav__star {
    width: 42px; height: 42px;
    box-shadow: 0 10px 24px -8px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.4) inset;
  }
  .tabnav__star svg { width: 21px; height: 21px; }
  .tabnav__fab-label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }

  /* ════════════════════ 3. Top bar ══════════════════════════════════════ */

  .appbar {
    grid-area: appbar;
    display: flex;
    align-items: center;
    padding: 0 28px;
    height: 58px;
    border-bottom: 1px solid var(--line);
    background: rgba(11,11,14,0.92);
    z-index: 20;
  }
  .appbar__in { width: 100%; max-width: none; margin: 0; gap: 12px; }
  /* the rail carries the brand — the top bar shows the screen title instead */
  .appbar__brand { display: none; }
  .appbar__title--root { display: block; }
  .appbar__title { font-size: 15.5px; letter-spacing: 0; }
  .appbar__back { width: 34px; height: 34px; }
  .appbar__back:hover { background: var(--surface-2); }
  .appbar__back:active { transform: none; }
  /* chat: burger вернулся — на десктопе он сворачивает/разворачивает левую
     панель (claude-style); на остальных экранах не нужен (rail закреплён) */
  .appbar__burger { display: none; }
  .app[data-screen="CHAT"] .appbar__burger { display: grid; }
  .app[data-screen="CHAT"] .appbar__burger:hover { background: var(--surface-2); }
  .app[data-screen="CHAT"] .appbar__burger--art { margin: 0 0 0 -6px; }
  .appbar__title--chat { font-size: 15px; }
  .appbar__chip:hover { background: linear-gradient(135deg, rgba(216,222,232,0.2), var(--amber-a12)); }
  .appbar__chip:active { transform: none; }
  .appbar__avatar:hover { box-shadow: 0 0 0 2px var(--accent-2); }

  /* ════════════════════ 4. Content pane ═════════════════════════════════ */

  .screen {
    grid-area: screen;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 36px 80px;
    scrollbar-width: thin;
    scrollbar-color: rgba(216,222,232,0.22) transparent;
  }
  .screen::-webkit-scrollbar { width: 10px; display: block; background: transparent; }
  .screen::-webkit-scrollbar-thumb { background: rgba(216,222,232,0.18); border-radius: var(--r-pill); border: 3px solid transparent; background-clip: content-box; }
  .screen::-webkit-scrollbar-thumb:hover { background: rgba(216,222,232,0.3); border: 3px solid transparent; background-clip: content-box; }

  /* screens appear instantly — the staggered rise is a mobile flourish */
  .screen > * { animation: none; opacity: 1; transform: none; }

  /* per-screen reading width; everything stays centred */
  .screen > * { width: 100%; max-width: var(--content-w, 1120px); }
  .screen[data-screen="MENU"]         { --content-w: 1520px; }
  .screen[data-screen="INSPIRATION"]  { --content-w: 1520px; }
  .screen[data-screen="ASSETS"]       { --content-w: 1520px; }
  .screen[data-screen="HISTORY"]      { --content-w: 1520px; }
  .screen[data-screen="GENLOG"]      { --content-w: 1120px; }
  .screen[data-screen="CHAT"]         { --content-w: 860px; }
  .screen[data-screen="CONSTRUCTOR"]  { --content-w: 700px; }   /* split mode widens below */
  .screen[data-screen="MODEL_PICK"]   { --content-w: 940px; }
  .screen[data-screen="LYRICS_INPUT"] { --content-w: 780px; }
  .screen[data-screen="CABINET"]      { --content-w: 1100px; }
  .screen[data-screen="REFERRALS"]    { --content-w: 1000px; }
  .screen[data-screen="ACCOUNTS"]     { --content-w: 780px; }
  .screen[data-screen="TOPUP"]        { --content-w: 1100px; }
  .screen[data-screen="PRICING"]      { --content-w: 1240px; }
  .screen[data-screen="RESULT"]       { --content-w: 940px; }
  .screen[data-screen="GENERATING"]   { --content-w: 720px; }
  .screen[data-screen="LOGIN"],
  .screen[data-screen="LOGIN_PENDING"]{ --content-w: 480px; }
  .screen[data-screen="LIBRARY"]      { --content-w: 1240px; }
  .screen[data-screen="INFO"],
  .screen[data-screen="PRIVACY"],
  .screen[data-screen="TERMS"],
  .screen[data-screen="CONTACTS"]     { --content-w: 780px; }

  /* ════════════════════ 5. Action bar (dock) ════════════════════════════ */

  .dock {
    grid-area: dock;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 36px 20px;
    border-top: 1px solid var(--line);
    background: rgba(11,11,14,0.92);
    z-index: 15;
  }
  .dock > * { width: 100%; max-width: 560px; }
  .dock__hint { max-width: 560px; }

  /* chat: the composer spans the messenger column */
  .app[data-screen="CHAT"] .dock { align-items: center; }
  .app[data-screen="CHAT"] .dock > * { max-width: 860px; }

  /* constructor split: the generate button lives under the CONTROLS column */
  .app[data-screen="CONSTRUCTOR"] .dock { align-items: flex-start; padding-left: max(36px, calc((100% - 1460px) / 2 + 36px)); }
  .app[data-screen="CONSTRUCTOR"] .dock > * { max-width: 600px; }

  /* ════════════════════ 6. Constructor: two-pane workspace ══════════════ */

  .screen[data-screen="CONSTRUCTOR"].is-split {
    display: grid;
    grid-template-columns: minmax(430px, 600px) minmax(0, 1fr);
    gap: 6px 32px;
    align-items: start;
    align-content: start;
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
  }
  .screen[data-screen="CONSTRUCTOR"].is-split > * { max-width: none; }
  .ctor-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  /* preview column: pinned while the controls scroll, own scrollbar when tall */
  .ctor-side {
    position: sticky;
    top: 0;
    align-self: start;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100dvh - 58px - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 4px 8px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(216,222,232,0.18) transparent;
  }
  .ctor-side::-webkit-scrollbar { width: 8px; }
  .ctor-side::-webkit-scrollbar-thumb { background: rgba(216,222,232,0.16); border-radius: var(--r-pill); }

  /* roomier prompt + settings on a big screen */
  .ctor-prompt { min-height: 148px; font-size: 15px; }
  .ctorgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .optcard { padding: 13px 14px; }
  .optcard:hover { border-color: var(--amber-a35); }
  .typeswitch__t, .modeswitch__t { cursor: pointer; }
  .typeswitch__t:not(.is-active):hover, .modeswitch__t:not(.is-active):hover { background: var(--surface-2); color: var(--ink); }
  .typeswitch__t:active, .modeswitch__t:active { transform: none; }

  /* edit-mode hero: fit the preview pane, don't stretch */
  .ctor-side .editup__img { max-height: 52vh; object-fit: contain; }
  .editup__zone:hover { border-color: var(--amber-a35); background: var(--amber-a05); }
  .editup__tool:hover { background: var(--surface-2); border-color: var(--line-strong); }

  /* model picker (sub-screen): two columns of cards */
  .screen[data-screen="MODEL_PICK"] .row-gap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .modelcard:hover { border-color: var(--amber-a35); background: var(--surface-2); }
  .modelcard { cursor: pointer; }

  /* rows / sheets options everywhere */
  .row--btn { cursor: pointer; }
  .row--btn:hover { background: var(--surface); border-color: var(--line-strong); }
  .sheetopt:hover { background: var(--surface-2); }

  /* ════════════════════ 7. Home ═════════════════════════════════════════ */

  .home__hero { margin-top: 10px; text-align: center; }
  .home__title { font-size: clamp(30px, 3vw, 42px); }
  .home__lede { font-size: 16px; max-width: 56ch; margin-inline: auto; }

  .promptbar {
    max-width: 720px;
    margin-inline: auto;
    padding: 8px 8px 8px 18px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-raised);
  }
  .promptbar__input { font-size: 15.5px; }
  .promptbar__go { width: 46px; height: 46px; }
  .promptbar__go:hover { transform: scale(1.05); }

  .createcards { max-width: 720px; margin-inline: auto; gap: 12px; }
  .createcard-mini { padding: 20px 10px 18px; }
  .createcard-mini:hover { transform: translateY(-2px); border-color: var(--amber-a35); box-shadow: 0 12px 30px -18px rgba(0,0,0,0.9); }

  /* showcase: 3 cases in a row, free scroll, no snap-jumps; all visible.
     Height-driven sizing (9:16 cases) keeps the row uniform. */
  .showcase__track { gap: 16px; scroll-snap-type: none; overflow-x: auto; }
  .showcase__track .scard {
    flex: 0 0 auto;
    width: auto;
    height: min(56vh, 540px);
    aspect-ratio: 3 / 4;
    max-height: none;
    opacity: 1;
    transform: none;
  }
  .showcase__track .scard:hover { box-shadow: 0 22px 50px -24px rgba(0,0,0,0.95), 0 0 0 1px var(--amber-a25); }
  .showcase__dots { display: none; }

  .caserail { gap: 14px; }
  .caserail .casecard { flex-basis: 218px; }
  .casecard:hover { box-shadow: 0 18px 44px -22px rgba(0,0,0,0.9); transform: translateY(-2px); }

  .ideasgrid { column-count: 3; column-gap: 16px; }
  .ideacard { margin-bottom: 16px; break-inside: avoid; }
  .ideacard:hover img { transform: scale(1.03); }

  /* live generations strip + feature rows */
  .genlive__row { border: 1px solid var(--line); border-radius: var(--r-md); }
  .genlive__row:hover { background: var(--surface); border-color: var(--line-strong); }
  .wbcard, .chatcard { cursor: pointer; }
  .wbcard:hover, .chatcard:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-1px); }

  /* ════════════════════ 8. Chat: messenger column ═══════════════════════ */

  .chat { max-width: 100%; }
  .chat__msg { max-width: 78%; }
  .chat__msg--user { margin-left: auto; }
  .chat__bubble { font-size: 14.5px; }

  .chatbar {
    max-width: 860px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface-solid);
    box-shadow: 0 14px 40px -22px rgba(0,0,0,0.9);
  }
  .chatbar__ta { font-size: 14.5px; }
  .chatbar__send { cursor: pointer; }
  .chatbar__send:hover:not(:disabled) { background: var(--accent); color: #141310; }
  .chatbar__clip { cursor: pointer; }
  .chatbar__clip:hover:not(:disabled) { background: var(--surface-2); }
  .chatbar--gated { max-width: 560px; margin: 0 auto; }

  /* chat drawer → pinned third column (grid child of .app) */
  .chatsdrawer {
    position: static;
    grid-column: 3;
    grid-row: 1 / 4;
    width: 296px;
    min-width: 240px;
    max-width: 560px;
    transform: none;
    background: linear-gradient(180deg, rgba(17,17,21,0.98) 0%, rgba(10,10,13,1) 100%);
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: none;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    resize: horizontal;      /* ширина левой панели тянется мышью */
    overflow: auto;
  }
  .app.chat-rail-hidden .chatsdrawer { display: none; }   /* бургер свернул */
  .chatsdrawer__list { flex: 1 1 auto; }
  .chatsdrawer__foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding-top: 10px; }
  .chatsdrawer__foot-btn {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 9px 10px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
    color: var(--ink-dim); transition: background .14s, color .14s;
  }
  .chatsdrawer__foot-btn:hover { background: var(--surface); color: var(--ink); }
  .chatsdrawer__foot-btn svg { width: 17px; height: 17px; }
  .chatsdrawer.is-open { transform: none; }
  .chatsdrawer__close { display: none; }
  .chatsdrawer__new { margin: 0 0 12px; cursor: pointer; }
  .chatsdrawer__new:hover { background: var(--surface-2); border-color: var(--amber-a35); }
  .chatsdrawer__head { padding: 2px 6px 12px; }
  .chatsdrawer__item { cursor: pointer; }
  .chatsdrawer__item:hover { background: var(--surface); }
  .chatsveil { display: none; }

  /* toast: clear of the rail + pinned drawer */
  .toast { left: calc(50% + 126px); }
  body:has(.chatsdrawer.is-pinned) .toast { left: calc(50% + 126px + 148px); }

  /* ════════════════════ 9. Gallery / Inspiration grids ══════════════════ */

  .gengrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
  .gencard { cursor: pointer; }
  .gencard.is-clickable:hover { box-shadow: 0 16px 40px -20px rgba(0,0,0,0.95), 0 0 0 1px var(--amber-a20, rgba(245,180,0,0.2)); }
  .gencard__act { cursor: pointer; }
  .gencard__act:hover { background: var(--accent); color: #141310; }

  /* sticky filter rows inside the scroller */
  .screen[data-screen="HISTORY"] .galtabs,
  .screen[data-screen="HISTORY"] .gfilt-row,
  .screen[data-screen="ASSETS"] .galtabs,
  .screen[data-screen="ASSETS"] .gfilt-row,
  .screen[data-screen="INSPIRATION"] .inspfilt-row {
    position: sticky;
    top: 0;
    z-index: 6;
    background: linear-gradient(180deg, #0B0B0E 78%, rgba(11,11,14,0));
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .inspgrid { column-count: 3; column-gap: 10px; }
  .inspcard { break-inside: avoid; margin-bottom: 10px; }
  .inspcard:hover { border-color: var(--amber-a25); }

  .galgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .libgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .tplgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

  @media (min-width: 1500px) {
    .inspgrid { column-count: 4; }
    .ideasgrid { column-count: 4; }
    .gengrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  }

  /* offscreen tiles cost ~0 while scrolling long grids */
  .gengrid > *, .galgrid > *, .libgrid > *, .tplgrid > * {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }

  /* ════════════════════ 10. Result / generating stages ══════════════════ */

  .genstage { min-height: 62vh; }
  .ghost { width: min(52%, 360px); }

  .result__art { max-width: 620px; max-height: 70vh; }
  .result__art .rs-prompt { font-size: 13px; }
  .rs-actions { max-width: 620px; margin-inline: auto; }

  /* ════════════════════ 11. Login ═══════════════════════════════════════ */

  .screen[data-screen="LOGIN"] .section,
  .screen[data-screen="LOGIN_PENDING"] .section {
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface-solid);
    padding: 26px 26px 22px;
    box-shadow: var(--shadow-raised);
  }
  .screen[data-screen="LOGIN"] .btn--lg:hover,
  .screen[data-screen="LOGIN_PENDING"] .btn--lg:hover { border-color: var(--amber-a35); background: var(--surface-3); }

  /* ════════════════════ 12. Paywall / pricing ═══════════════════════════ */

  .pw-rail { overflow: visible; margin: 28px 0 4px; padding: 0; }
  .pw-rail > .pw-card { flex: 1 1 0; cursor: pointer; }
  .pw-rail > .pw-card:hover { border-color: var(--amber-a35); }
  .pw-dots { display: none; }
  .pw-card--feat { margin-top: -12px; padding-top: 38px; z-index: 1; }
  .pw-hero__title { font-size: 42px; }
  .pw-hero__lede { font-size: 15.5px; max-width: 60ch; }
  .pw-terms { max-width: 460px; }

  /* ════════════════════ 13. Sheets → centred modal dialogs ══════════════ */

  .sheet {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: min(620px, 92vw);
    max-height: 84dvh;
    border-radius: var(--r-xl);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2), 0 0 0 1px rgba(255,255,255,0.04) inset;
    transition: transform .3s var(--ease-out), opacity .22s var(--ease-out), visibility 0s linear .3s;
  }
  .sheet.is-shown {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s var(--ease-out), opacity .22s var(--ease-out), visibility 0s;
  }
  .sheet__grip { display: none; }
  .sheet__head { padding-top: 20px; }
  .sheet__body { max-height: calc(84dvh - 110px); overflow-y: auto; scrollbar-width: thin; }
  .sheet-veil.is-shown { opacity: 1; }

  /* ════════════════════ 14. Lightbox + mask editor ══════════════════════ */

  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__nav { cursor: pointer; }
  .lightbox__nav:hover { background: rgba(20,20,24,0.9); border-color: var(--amber-a35); }
  .lightbox__bar { max-width: 880px; margin: 0 auto; }
  .lightbox__body.lb-body--av { bottom: 170px; }
  .lb-act { cursor: pointer; }
  .lb-act:hover { background: var(--surface-2); border-color: var(--line-strong); }

  .maskwrap__bar { max-width: 960px; margin: 0 auto; }

  /* ════════════════════ 15. Perf: de-blur surfaces ══════════════════════ */
  /* translucent surfaces stay, the 14px backdrop blur goes: dozens of cards
     × per-frame blur = the desktop jank. Overlays (sheet/lightbox) keep it. */
  .card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gencard__type, .gencard__pill, .gencard__act { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* ════════════════════ 16. Desktop pointer etiquette ═══════════════════ */

  button:not(:disabled) { cursor: pointer; }
  [data-act][role="button"] { cursor: pointer; }
  .btn:active { transform: none; }
  .btn--ghost:hover, .btn--soft:hover { background: var(--surface-3); }
  .toolbtn:not(:disabled) { cursor: pointer; }
  .toolbtn:not(:disabled):hover { background: var(--surface-3); border-color: var(--line-strong); }

  /* text inputs feel native */
  .field__ta, .field__input, .promptbar__input, .chatbar__ta { cursor: auto; }

  /* thin scrollbars for inner scrollers too */
  .chatsdrawer__list, .sheet__body, .ctor-side, .showcase__track { scrollbar-width: thin; }
  .chatsdrawer__foot-btn { cursor: pointer; }
  .chatsdrawer__foot-btn:hover { background: var(--surface); color: var(--ink); }
}
