/* ── Design Tokens (color palette, spacing, border radius) ──
   These CSS variables define the entire color scheme and can be changed
   in one place to restyle the whole app. */
:root{
  /* Primary green (Travel Oregon brand) and its faded variants */
  --moss:#30B566;--moss-dim:rgba(48,181,102,.12);--moss-b:rgba(48,181,102,.35);
  /* Neutral palette */
  --sky:#F7F5F0;--cloud:#DCE1DF;--deep:#0A3A3F;
  /* Warning/accent yellow and error red */
  --amber:#E6AF10;--amber-dim:rgba(230,175,16,.1);--amber-b:rgba(230,175,16,.35);
  --red:#e05252;--red-dim:rgba(224,82,82,.1);
  /* Light theme background surfaces (lightest to darkest) */
  --bg:#F7F5F0;
  --surface:#FFFFFF;
  --surface2:#F0EEEA;
  --surface3:#E8E6E1;
  --surface4:#DCE1DF;
  /* Text colors (darkest to lightest — used for primary, secondary, and muted text) */
  --text:#0A3A3F;
  --text2:#3a6a6f;
  --text3:#8aabac;
  /* Border colors at different opacities */
  --border:rgba(10,58,63,.08);
  --border2:rgba(10,58,63,.15);
  --border3:rgba(10,58,63,.28);
  /* Border radius values — r is default, r-sm is small, r-xs is extra small */
  --r:8px;--r-sm:5px;--r-xs:3px;
}
/* ── Global resets and app layout ──
   The app uses a CSS Grid with 2 columns (sidebar + main) and 2 rows (top bar + content) */
*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;overflow:hidden;}
body{background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:13px;line-height:1.5;}
.app{display:grid;grid-template-columns:300px 1fr;grid-template-rows:52px 1fr;height:100vh;overflow:hidden;}
/* Top bar */
.topbar{grid-column:1/-1;grid-row:1;background:var(--deep);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 18px;gap:0;position:relative;z-index:100;}
.topbar-brand{display:flex;align-items:center;gap:10px;margin-right:28px;flex-shrink:0;}
.brand-mark{width:38px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.brand-name{font-family:'Syne',sans-serif;font-size:13px;font-weight:700;color:var(--sky);letter-spacing:.01em;white-space:nowrap;}
.brand-slash{color:var(--text3);margin:0 4px;font-weight:300;}
.brand-sub{font-size:11px;color:var(--text3);white-space:nowrap;}
.step-pills{display:flex;align-items:center;gap:2px;flex:1;}
.step-pill{display:flex;align-items:center;gap:6px;padding:5px 11px;border-radius:99px;font-size:11px;font-weight:500;color:var(--text3);transition:all .2s;white-space:nowrap;}
.step-pill.active{background:var(--moss-dim);color:var(--moss);border:1px solid var(--moss-b);}
.step-pill.done{color:var(--text2);}
.step-pill .spn{width:15px;height:15px;border-radius:50%;background:var(--surface3);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;flex-shrink:0;font-family:'DM Mono',monospace;}
.step-pill.active .spn{background:var(--moss);color:#fff;}
.step-pill.done .spn{background:transparent;color:var(--moss);font-size:11px;}
.step-arrow{color:var(--text3);font-size:10px;padding:0 1px;}
.topbar-actions{display:flex;align-items:center;gap:6px;margin-left:auto;}
/* Sidebar */
.sidebar{grid-row:2;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;}
::-webkit-scrollbar{width:2px;}
::-webkit-scrollbar-thumb{background:var(--cloud);border-radius:99px;}
.sec{padding:14px 16px;border-bottom:1px solid var(--border);}
.sec:last-child{border-bottom:none;}
.sec-label{font-family:'Syne',sans-serif;font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text2);margin-bottom:10px;display:flex;align-items:center;gap:7px;}
/* Collapsible sections */
.sec-collapse .sec-label{cursor:pointer;margin-bottom:0;user-select:none;transition:color .15s;}
.sec-collapse .sec-label:focus-visible{outline:2px solid var(--moss);outline-offset:2px;border-radius:var(--r-xs);}
.sec-collapse .sec-label:hover{color:var(--text2);}
.sec-collapse .sec-label::after{content:'›';margin-left:auto;font-size:13px;transition:transform .2s;transform:rotate(90deg);font-weight:400;}
.sec-collapse.collapsed .sec-label::after{transform:rotate(0deg);}
.sec-collapse.collapsed .sec-label{margin-bottom:0;}
.sec-body{overflow:hidden;max-height:600px;transition:max-height .25s ease,margin .2s ease,opacity .2s ease;opacity:1;margin-top:10px;}
.sec-collapse.collapsed .sec-body{max-height:0;opacity:0;margin-top:0;}
.step-badge{width:16px;height:16px;border-radius:50%;background:var(--surface3);color:var(--text3);font-size:9px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:'DM Mono',monospace;border:1px solid var(--border2);}
.step-badge.complete{background:var(--moss-dim);color:var(--moss);border-color:var(--moss-b);}
.uzone{width:100%;border:1px solid var(--border2);border-radius:var(--r);padding:9px 11px;cursor:pointer;display:flex;align-items:center;gap:9px;background:var(--surface2);transition:all .18s;}
.uzone:hover{border-color:var(--moss-b);background:var(--moss-dim);}
.uz-ico{flex-shrink:0;font-size:16px;line-height:1;opacity:.85;}
.uz-body{flex:1;min-width:0;}
.uz-main{font-size:12px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.uz-sub{font-size:11px;color:var(--text2);margin-top:1px;}
input[type=file]{display:none;}
.stat-list{margin-top:7px;display:flex;flex-direction:column;gap:3px;}
.sr{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text2);}
.dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;}
.dg{background:var(--moss);}.da{background:var(--amber);}.dd{background:var(--text3);}
.fstack{display:flex;flex-direction:column;gap:7px;}
.fi label{display:block;font-size:11px;color:var(--text2);margin-bottom:3px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
select{width:100%;background:var(--surface2);border:1px solid var(--border2);color:var(--text);border-radius:var(--r-sm);padding:6px 24px 6px 9px;font-size:12px;font-family:'DM Sans',sans-serif;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230A3A3F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;transition:border-color .15s;}
select:focus{outline:none;border-color:var(--moss);}
select:focus-visible{outline:2px solid var(--moss);outline-offset:1px;}
select:hover{border-color:var(--border3);}
.sztog{display:grid;grid-template-columns:1fr 1fr;gap:5px;}
.szb{padding:9px 6px 8px;border-radius:var(--r);border:1px solid var(--border2);background:var(--surface2);color:var(--text2);font-size:12px;font-family:'Syne',sans-serif;font-weight:600;cursor:pointer;transition:all .15s;text-align:center;line-height:1.3;}
.szb:hover{color:var(--text);border-color:var(--border3);}
.szb.on{background:var(--moss);border-color:var(--moss);color:#fff;}
.sz-d{font-size:9px;opacity:.65;display:block;margin-top:2px;font-weight:400;font-family:'DM Mono',monospace;}
.sw-row{display:flex;flex-wrap:wrap;gap:5px;}
.sw{width:22px;height:22px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:transform .12s;position:relative;}
.sw::after{content:'';position:absolute;inset:-3px;border-radius:50%;border:1.5px solid transparent;transition:border-color .12s;}
.sw:hover{transform:scale(1.15);}
.sw.on::after{border-color:rgba(247,245,240,.55);}
.leg-list{display:flex;flex-direction:column;gap:5px;}
.leg-r{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text2);}
.leg-d{width:8px;height:8px;border-radius:2px;flex-shrink:0;}
/* Buttons */
.btn{padding:6px 14px;border-radius:var(--r-sm);border:1px solid var(--border2);background:var(--surface);color:var(--text);font-size:12px;font-family:'DM Sans',sans-serif;cursor:pointer;font-weight:500;transition:all .15s;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
.btn:hover{background:var(--surface2);border-color:var(--border3);}
.btn:active{transform:scale(.98);}
.btn:disabled{opacity:.35;cursor:not-allowed;transform:none;border-style:dashed;}
.btn:focus-visible,.uzone:focus-visible,.szb:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--moss);outline-offset:1px;}
.ps-row input[type=range]:focus-visible{outline:2px solid var(--moss);outline-offset:3px;}
.btn-p{background:var(--moss);border-color:var(--moss);color:#fff;font-weight:600;}
.btn-p:hover{filter:brightness(1.1);}
.btn-sm{padding:4px 10px;font-size:11px;}
.sep{width:1px;height:16px;background:var(--border2);flex-shrink:0;margin:0 2px;}
.fmt-checks{display:flex;align-items:center;gap:2px;}
.fmt-chk{display:flex;align-items:center;gap:3px;padding:3px 7px;border-radius:var(--r-xs);border:1px solid var(--border2);background:var(--surface2);cursor:pointer;font-size:11px;font-family:'DM Sans',sans-serif;color:var(--text3);transition:all .15s;user-select:none;}
.fmt-chk:hover{border-color:var(--border3);color:var(--text2);}
.fmt-chk.on{background:var(--moss-dim);border-color:var(--moss-b);color:var(--moss);font-weight:600;}
.fmt-chk input{display:none;}
/* Main */
.main{grid-row:2;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);position:relative;}
/* "Asset Preview" title retired — the board is the main view; keep the strip slim. */
.m-title{display:none;}
h1,h2,h3{margin:0;font:inherit;}
/* Sidebar import summary: region/language breakdown under the "rows loaded" line. */
.sr-sub{font-size:11px;color:var(--text3);margin-top:3px;padding-left:13px;}

/* ── Runtime status toast (bottom-center; rendered by setSbar) ──
   Transient event feedback: ok/info auto-dismiss, warn (errors) stay until the
   user closes them. Replaces the old inline .sbar strip. */
.status-toast{
  position:fixed; left:50%; bottom:24px; transform:translate(-50%,10px);
  z-index:9500; display:flex; align-items:center; gap:10px;
  max-width:min(520px,92vw); padding:11px 13px 11px 14px;
  background:var(--deep); color:#fff; border-radius:10px;
  box-shadow:0 8px 28px rgba(10,58,63,.30);
  font-size:13px; line-height:1.45;
  opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .24s cubic-bezier(.2,.7,.2,1);
}
.status-toast.show{opacity:1; transform:translate(-50%,0); pointer-events:auto;}
.st-ico{width:18px;height:18px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;font-family:'DM Mono',monospace;}
.status-toast.ok .st-ico{background:var(--moss);color:#fff;}
.status-toast.warn .st-ico{background:var(--amber);color:#3a2a00;}
.status-toast.info .st-ico{background:rgba(255,255,255,.22);color:#fff;}
.st-msg{flex:1;min-width:0;}
.st-close{background:none;border:none;color:rgba(255,255,255,.55);font-size:14px;line-height:1;cursor:pointer;padding:0 2px;flex-shrink:0;}
.st-close:hover{color:#fff;}
@media (prefers-reduced-motion: reduce){ .status-toast{transition:opacity .01ms;} }
.tbar{padding:7px 22px;display:flex;align-items:center;gap:6px;flex-shrink:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border2);flex-wrap:wrap;background:var(--surface);}
.export-group{display:flex;align-items:center;background:var(--surface2);border:1px solid var(--border2);border-radius:var(--r-sm);overflow:hidden;}
.export-group select{background:transparent;border:none;width:auto;font-size:11px;padding:5px 22px 5px 9px;border-radius:0;}
.export-group select:focus{outline:none;}
.export-group select:focus-visible{outline:2px solid var(--moss);outline-offset:1px;}
.eg-div{width:1px;background:var(--border2);align-self:stretch;}
.prog{padding:0 22px;flex-shrink:0;margin-top:8px;}
.prog-box{background:var(--surface);border:1px solid var(--border2);border-radius:var(--r);padding:10px 13px;display:none;}
.prog-box.on{display:block;}
.prog-top{display:flex;justify-content:space-between;margin-bottom:7px;font-size:11px;color:var(--text2);align-items:center;}
.prog-pct{font-family:'DM Mono',monospace;font-size:11px;color:var(--moss);}
.prog-track{height:2px;background:var(--surface3);border-radius:99px;overflow:hidden;}
.prog-fill{height:100%;background:var(--moss);border-radius:99px;transition:width .25s cubic-bezier(.4,0,.2,1);}
.content{padding:16px 22px 12px;display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;}
#previewArea{background:var(--bg);}
.canvas-shell{background:#E8E6E1;border-radius:var(--r);padding:10px;border:1px solid var(--border);flex-shrink:0;box-shadow:0 4px 32px rgba(0,0,0,.5);}
#adCanvas{display:block;border-radius:var(--r-xs);box-shadow:0 2px 12px rgba(10,58,63,.15);}
.info-col{display:flex;flex-direction:column;gap:8px;}
/* Plain section, not a card — lives inside .eo-foot, itself inside the already-
   bounded .edit-pane panel. A bordered/radius box here would nest cards. */
.ic{padding-top:2px;}
.ic-lbl{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text2);margin-bottom:4px;font-family:'Syne',sans-serif;}
.ic-val{font-size:12px;color:var(--text);line-height:1.5;}
.ic-mono{font-family:'DM Mono',monospace;font-size:11px;color:var(--text2);}
.badge{display:inline-flex;align-items:center;gap:3px;font-size:10px;padding:2px 8px;border-radius:99px;font-weight:500;margin:2px 2px 0 0;}
.bg{background:var(--moss-dim);color:var(--moss);border:1px solid var(--moss-b);}
.ba{background:var(--amber-dim);color:var(--amber);border:1px solid var(--amber-b);}
.gen-wrap{padding:0 22px 24px;}
.gen-hrow{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-top:16px;border-top:1px solid var(--border);}
.gen-ttl{font-family:'Syne',sans-serif;font-size:12px;font-weight:700;color:var(--text);letter-spacing:.06em;text-transform:uppercase;}
.gen-sel-bar{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text2);}
.gen-sel-bar button{background:none;border:none;cursor:pointer;font-size:11px;font-family:'DM Sans',sans-serif;padding:0;color:var(--moss);font-weight:600;}
.gen-sel-bar button:hover{text-decoration:underline;}
/* Board filters — narrow what's visible without leaving the single-page board. */
.gen-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.gen-filters #boardSearch{flex:1 1 200px;min-width:160px;max-width:320px;padding:6px 10px;border:1px solid var(--border2);border-radius:var(--r-sm);background:var(--surface2);color:var(--text);font-size:12px;font-family:'DM Sans',sans-serif;}
.gen-filters #boardSearch:focus{outline:none;border-color:var(--moss);}
.gen-filters select{width:auto;flex:0 0 auto;min-width:110px;padding:6px 22px 6px 9px;font-size:11px;}
.gc.gc-filtered-out{display:none;}
.board-row.board-row-hidden{display:none;}
.gen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;}
.gc{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s;}
.gc:hover{border-color:var(--border3);transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,0,0,.4);}
.gc.gc-selected{border-color:var(--moss);box-shadow:0 0 0 2px var(--moss);}
.gc.gc-selected:hover{transform:translateY(-2px);box-shadow:0 0 0 2px var(--moss),0 8px 28px rgba(0,0,0,.4);}
.gthumb{position:relative;overflow:hidden;background:var(--cloud);}
.gthumb canvas{width:100%;display:block;}
/* pointer-events:none so this full-cover hover layer doesn't swallow clicks/drags
   meant for the canvas beneath it (card selection, on-card text drag) when its
   buttons aren't the actual target; .gdl re-enables events on the buttons only.
   Buttons sit in the bottom corners (not centered) so the card's center — the
   natural place to click to open it — stays free of accidental button hits;
   clicking blank space already opens the same editor pane as "Open" does. */
.gov{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,58,63,.55),rgba(10,58,63,0) 60%);display:flex;align-items:flex-end;justify-content:space-between;padding:8px;opacity:0;transition:opacity .15s;pointer-events:none;}
.gc:hover .gov{opacity:1;}
.gdl{padding:4px 10px;border-radius:99px;background:var(--moss);color:#fff;font-size:10px;font-weight:600;border:none;cursor:pointer;font-family:'DM Sans',sans-serif;pointer-events:auto;}
.gchk{position:absolute;top:6px;left:6px;width:18px;height:18px;border-radius:4px;border:2px solid rgba(255,255,255,.8);background:rgba(10,58,63,.4);cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s,background .12s,border-color .12s;z-index:2;}
.gchk svg{display:none;}
.gchk.checked{background:var(--moss);border-color:var(--moss);opacity:1;}
.gc.gc-pending{pointer-events:none;opacity:.85;}
.gc.gc-pending .gthumb::after{content:'Rendering…';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(10,58,63,.55);color:#fff;font-size:12px;font-family:'DM Sans',sans-serif;}
/* ── Video trim panel ── */
.vid-trim{padding:8px 12px 10px;background:var(--surface2);border-top:1px solid var(--border);animation:riseIn .2s cubic-bezier(.2,.7,.2,1) both;}
.trim-hdr{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;color:var(--text2);letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px;}
.trim-reset{background:none;border:none;cursor:pointer;font-size:10px;color:var(--moss);font-family:'DM Sans',sans-serif;padding:0;font-weight:600;}
.trim-reset:hover{text-decoration:underline;}
.trim-track{position:relative;height:24px;background:var(--surface3);border-radius:4px;user-select:none;touch-action:none;}
.trim-range{position:absolute;top:0;bottom:0;background:var(--moss);opacity:.25;pointer-events:none;}
.trim-handle{position:absolute;top:-3px;bottom:-3px;width:10px;background:var(--moss);border-radius:3px;cursor:ew-resize;z-index:2;transform:translateX(-50%);box-shadow:0 1px 4px rgba(0,0,0,.3);}
.trim-handle::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:2px;height:10px;background:rgba(255,255,255,.75);border-radius:1px;}
.trim-playhead{position:absolute;top:0;bottom:0;width:2px;background:#fff;opacity:.85;z-index:3;pointer-events:none;transform:translateX(-50%);}
.trim-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--text2);font-family:'DM Mono',monospace;margin-top:4px;}
.gchk.checked svg{display:block;}
.gc:hover .gchk{opacity:1;}
.gmeta{padding:8px 10px;}
.gname{font-size:11px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;}
.gtag{font-size:10px;margin-top:2px;font-family:'DM Mono',monospace;}

/* ── Creative Board (grouped generated-assets view) ─────────────────────────── */
.gen-grid.as-board{display:block;overflow-x:auto;overflow-y:visible;padding-bottom:10px;}
.board{--board-rowhd:196px;--board-colw:172px;min-width:max-content;}
.board-head{display:grid;position:sticky;top:0;z-index:4;background:var(--bg);border-bottom:1px solid var(--border);}
.board-corner{position:sticky;left:0;z-index:5;background:var(--bg);padding:10px 12px;display:flex;align-items:flex-end;font-family:'Syne',sans-serif;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text3);border-right:1px solid var(--border);}
.board-col-hd{padding:10px 12px;display:flex;flex-direction:column;gap:1px;border-left:1px solid var(--border);}
.bch-name{font-family:'Syne',sans-serif;font-size:12px;font-weight:700;color:var(--text);}
.bch-sub{font-size:10px;color:var(--text3);font-family:'DM Mono',monospace;}
.board-row{display:grid;border-bottom:1px solid var(--border);}
.board-row:last-child{border-bottom:none;}
.board-row-hd{position:sticky;left:0;z-index:2;background:var(--bg);padding:14px 12px;display:flex;flex-direction:column;gap:7px;border-right:1px solid var(--border);}
.brh-num{font-family:'DM Mono',monospace;font-size:10px;color:var(--text3);letter-spacing:.05em;}
.brh-ttl{font-family:'Syne',sans-serif;font-size:14px;font-weight:700;color:var(--text);line-height:1.2;}
.brh-badge{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-size:11px;color:var(--text2);background:var(--surface2);border-radius:99px;padding:2px 9px;}
.brh-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0;}
.brh-type{font-size:10px;color:var(--text3);text-transform:uppercase;letter-spacing:.05em;}
.board-cell{padding:10px;display:flex;flex-direction:column;gap:8px;align-items:stretch;border-left:1px solid var(--border);}
/* Cards fill the column so the zoom control actually resizes the asset (the column
   width is driven by --board-colw); no fixed cap. */
.board-cell .gc{width:100%;}
.gchip{position:absolute;top:6px;right:6px;z-index:2;font-family:'DM Mono',monospace;font-size:9px;font-weight:600;letter-spacing:.04em;color:#fff;background:rgba(10,58,63,.72);border-radius:4px;padding:2px 5px;line-height:1;pointer-events:none;}
/* Edit scope hint: shown under the "Apply changes to" pills when scope is broader than "This variant". */
.ps-link-hint{margin-top:7px;font-size:10.5px;line-height:1.4;color:var(--text2);background:var(--amber-dim);border:1px solid var(--amber-b);border-radius:var(--r-sm);padding:6px 8px;animation:dropIn .18s cubic-bezier(.2,.7,.2,1) both;}
.vm-panel{background:var(--surface2);border:1px solid var(--border2);border-radius:var(--r);padding:12px;margin-top:8px;animation:riseIn .2s cubic-bezier(.2,.7,.2,1) both;}
.vm-title{font-family:'Syne',sans-serif;font-size:12px;font-weight:700;color:var(--text);margin-bottom:10px;letter-spacing:.03em;}
.vm-row{display:flex;gap:6px;align-items:center;margin-bottom:6px;flex-wrap:wrap;}
.vm-lbl{font-size:11px;color:var(--text2);width:65px;flex-shrink:0;font-weight:600;text-transform:uppercase;letter-spacing:.04em;}
.vm-muted{font-size:11px;color:var(--text2);}
.vm-num{width:60px;background:var(--surface3);border:1px solid var(--border2);color:var(--text);border-radius:4px;padding:4px 8px;font-size:11px;font-family:'DM Mono',monospace;}
.override-btn{width:100%;margin-top:8px;justify-content:center;background:var(--surface2);border-color:var(--border2);font-size:11px;color:var(--text2);}
.override-btn:hover{color:var(--text);}

/* ── Position & Scale panel ── */
.ps-panel { display:flex; flex-direction:column; gap:8px; }
.ps-row { display:flex; align-items:center; gap:8px; }
.ps-lbl { font-size:11px; color:var(--text2); width:62px; flex-shrink:0; font-weight:600; letter-spacing:.03em; text-transform:uppercase; }
.ps-val { font-family:'DM Mono',monospace; font-size:10px; color:var(--text2); width:42px; text-align:right; flex-shrink:0; background:var(--surface3); border:1px solid var(--border2); border-radius:var(--r-xs); padding:2px 4px; -moz-appearance:textfield; }
.ps-val::-webkit-inner-spin-button,.ps-val::-webkit-outer-spin-button{-webkit-appearance:none;}
.ps-val:focus{outline:2px solid var(--moss);outline-offset:1px;}
.ps-row input[type=range] {
  flex:1; height:3px; accent-color:var(--moss); cursor:pointer;
  -webkit-appearance:none; appearance:none;
  background:var(--surface3); border-radius:99px; outline:none;
}
.ps-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none; width:13px; height:13px;
  border-radius:50%; background:var(--moss); cursor:pointer;
  border:2px solid var(--surface);
}
.ps-scope { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:2px; }
.ps-scope-btn {
  padding:3px 9px; border-radius:99px; font-size:10px; font-weight:500;
  border:1px solid var(--border2); background:transparent; color:var(--text2);
  cursor:pointer; transition:background-color .12s,border-color .12s,color .12s; font-family:'DM Sans',sans-serif;
}
.ps-scope-btn.active { background:var(--moss); border-color:var(--moss); color:#fff; }
.ps-divider { height:1px; background:var(--border); margin:4px 0; }
.ps-reset { width:100%; margin-top:2px; justify-content:center; font-size:11px; color:var(--text2); }

/* ── Split-pane main layout ── */
.main-top {
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  /* height set by JS via inline style */
}
.main-bottom {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 80px;
}
/* Drag handle */
.pane-handle {
  flex-shrink: 0;
  height: 30px;
  background: var(--surface);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  cursor: ns-resize;
  user-select: none;
  transition: background .12s;
  position: relative;
}
.pane-handle:hover { background: var(--surface2); }
.pane-handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: var(--border3);
}
.pane-handle-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text3);
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pane-handle-label .ph-count {
  font-family: 'DM Mono', monospace;
  color: var(--moss);
}
.pane-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pane-btn {
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .12s;
}
.pane-btn:hover { color: var(--text); border-color: var(--border3); }
.pane-btn.active { background: var(--moss); border-color: var(--moss); color: #fff; }

/* ── Grid-first: top action strip + full-height board ── */
.main-top { border-bottom: 1px solid var(--border); }

/* Card being edited — distinct from export (moss) and link (amber): deep-teal ring */
.gc.gc-editing { border-color: var(--deep); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--deep); }
.gc.gc-editing:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--deep), 0 8px 28px rgba(0,0,0,.4); }

/* ── Inline edit pane: a bounded right-side panel; the board keeps most of its
   width (shrinking only by the pane's width) so updates stay visible on the
   board while editing, instead of the pane covering/replacing the grid view. ── */
.board-editor-row { display: flex; align-items: flex-start; gap: 12px; }
.board-editor-row #genWrap { flex: 1 1 auto; min-width: 0; transition: flex-basis .35s ease, max-width .35s ease; }
/* Sticky + bounded height so the editor stays in view while the board scrolls
   beside it (previously it stretched to the full board height and scrolled out of
   sight, leaving a big blank pane). Its own body scrolls if content is tall. */
.edit-pane { flex: 0 1 460px; max-width: 460px; min-width: 320px; display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.28); overflow: hidden; margin: 0 22px 12px 0; align-self: flex-start; position: sticky; top: 8px; max-height: calc(100vh - 120px); }
.eo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.eo-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-close { background: none; border: 1px solid var(--border2); border-radius: 99px; width: 26px; height: 26px; cursor: pointer; color: var(--text2); font-size: 13px; line-height: 1; flex-shrink: 0; }
.eo-close:hover { color: var(--text); border-color: var(--border3); }
/* Shared "Apply changes to" scope strip — governs Copy, Media, Position & Scale, and Font Size. */
.eo-scope { padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.eo-scope-lbl { font-size: 11px; color: var(--text2); margin-bottom: 5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.eo-size-scope { margin-top: 6px; }
.edit-pane .content { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 16px; overflow: auto; flex: 1 1 auto; }
/* Photo credit, reset, media status, and client feedback for the open asset. */
.eo-foot { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface2); display: flex; flex-direction: column; gap: 8px; }
.eo-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eo-foot-stat { font-size: 10px; color: var(--text2); flex: 1 1 auto; }
/* Scale the preview up to fill the pane (the canvas keeps its aspect via width:auto). */
.edit-pane .canvas-shell { max-width: 100%; }
/* width/height:auto + max-width/max-height together scales to fit BOTH bounds
   while preserving aspect ratio. A fixed height with only max-width (the prior
   rule) let the browser clamp width down to fit the pane without shrinking
   height to match, distorting non-square crops (4x5/2x3/9x16) once the pane
   became narrower than the fixed height wanted. */
.edit-pane #adCanvas { width: auto; height: auto; max-width: 100%; max-height: min(64vh, 600px); }
.board-zoom { display: inline-flex; gap: 4px; margin-left: 8px; }

/* ── Text-box manipulation overlays (over #adCanvas in the editor) ── */
.canvas-shell { position: relative; }
.grid-overlay {
  position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .12s;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.32) 0, rgba(255,255,255,.32) 1px, transparent 1px);
  background-repeat: repeat; /* background-size (line spacing) set in JS per size */
}
.grid-overlay.on { opacity: 1; }
.text-handles { position: absolute; z-index: 4; border: 1.5px dashed var(--moss); box-sizing: border-box; pointer-events: none; }
.th-corner { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--moss); border-radius: 2px; pointer-events: auto; touch-action: none; }
.th-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.th-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.th-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.th-se { right: -7px; bottom: -7px; cursor: nwse-resize; }

/* ── On-card text manipulation (Creative Board) ── */
/* The selected card's thumbnail must not clip the corner handles, which sit
   slightly outside the text block's edge (same as the Expand editor). */
.gc.gc-editing .gthumb { overflow: visible; }
/* Smaller corners fit the compact ~150px-wide card thumbnails. */
.card-text-handles .th-corner { width: 8px; height: 8px; border-width: 1.5px; }
.card-text-handles .th-nw, .card-text-handles .th-ne { top: -5px; }
.card-text-handles .th-sw, .card-text-handles .th-se { bottom: -5px; }
.card-text-handles .th-nw, .card-text-handles .th-sw { left: -5px; }
.card-text-handles .th-ne, .card-text-handles .th-se { right: -5px; }
/* Cue that dragging the thumbnail of the selected card moves its text. */
.gc.gc-editing .gthumb canvas { cursor: ns-resize; }

/* ── Click-to-select a line (headline vs subheadline) ── */
/* Solid outline, distinct from the dashed moss move/resize box, so both read as
   different affordances at a glance. */
.line-highlight { position: absolute; z-index: 5; border: 2px solid #3B82F6; border-radius: 3px; box-shadow: 0 0 0 2px rgba(59,130,246,.18); pointer-events: none; box-sizing: border-box; }
.card-line-highlight { border-width: 1.5px; border-radius: 2px; }
/* Inline text editing overlay — sits exactly over the drawn pill/block (sized by
   positionTextHandles, styled per-template by enterInlineEdit). pointer-events
   stays none until .editing is added, so it never eats clicks while inactive
   (an earlier bug here: an always-interactive overlay silently ate real clicks
   even at opacity 0 — see .gov below). */
.inline-text-edit { position: absolute; z-index: 6; display: none; align-items: center; justify-content: center; box-sizing: border-box; outline: none; border: none; text-align: center; white-space: pre-wrap; word-break: break-word; overflow: hidden; cursor: text; pointer-events: none; }
.inline-text-edit.editing { display: flex; pointer-events: auto; }
/* Sidebar Font Size row lights up to match the selected line. */
.fsz-row.active { background: var(--moss-dim); border: 1px solid var(--moss-b); border-radius: var(--r-sm); padding: 3px 6px; margin: -3px -6px; }

/* ── Mobile menu ── */
.topbar-mobile{display:none;margin-left:auto;position:relative;}
.hamburger-btn{background:none;border:none;color:var(--sky);cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:var(--r-sm);transition:background .15s;}
.hamburger-btn:hover{background:rgba(247,245,240,.1);}
.mobile-menu{display:none;position:fixed;top:52px;right:8px;background:var(--surface);border:1px solid var(--border2);border-radius:var(--r);box-shadow:0 12px 32px rgba(0,0,0,.25);min-width:200px;z-index:10000;overflow:hidden;}
.mobile-menu.open{display:flex;flex-direction:column;}
.mobile-menu-item{display:flex;align-items:center;gap:8px;padding:12px 16px;font-size:13px;font-family:'DM Sans',sans-serif;font-weight:500;color:var(--text);background:none;border:none;border-bottom:1px solid var(--border);cursor:pointer;text-decoration:none;text-align:left;transition:background .12s;}
.mobile-menu-item:last-child{border-bottom:none;}
.mobile-menu-item:hover{background:var(--surface2);}

/* ── Extracted utility classes ── */
.divider-or{display:flex;align-items:center;gap:8px;margin-top:8px;}
.divider-line{flex:1;height:1px;background:var(--border2);}
.divider-text{font-size:10px;color:var(--text3);font-weight:500;}

/* ── Responsive ── */
@media (max-width: 960px) {
  .app { grid-template-columns: 260px 1fr; }
}
@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 52px auto; }
  .sidebar { grid-row: auto; border-right: none; border-bottom: 1px solid var(--border); max-height: 45vh; overflow-y: auto; }
  .main { grid-row: auto; }
  .topbar { overflow-x: hidden; }
  .topbar-desktop { display: none; }
  .topbar-mobile { display: block; }
  .topbar-brand > a[href="/"] { display: none !important; }
  .topbar-brand > div:first-of-type { display: none !important; }
  .step-pills { display: none; }
  .content { grid-template-columns: 1fr; }
  .canvas-shell { max-width: 100%; }
  .tbar { gap: 4px; }
  .tbar .sep { display: none; }
  .btn-sm { padding: 6px 12px; min-height: 44px; }
  .sw { width: 36px; height: 36px; }
  .szb { min-height: 44px; }
  .uzone { min-height: 48px; }
  .fmt-chk { padding: 6px 10px; min-height: 44px; }
  .ps-scope-btn { padding: 8px 12px; min-height: 44px; }
  .eo-close { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .app { grid-template-rows: 48px auto; }
  .topbar { padding: 0 10px; }
  .brand-sub, .brand-slash { display: none; }
  .topbar-actions .btn-sm { font-size: 10px; padding: 4px 8px; }
  .sidebar { max-height: 40vh; }
  .tbar { padding: 8px 12px; }
  .content { padding: 10px 12px; }
  .gen-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
.asset-card { position: relative; }

/* ── Studio asset lightbox ── */
.slb {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(5,15,10,.93);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.slb.open { opacity: 1; pointer-events: all; }
.slb-top {
  display: flex; align-items: center; padding: 12px 16px; flex-shrink: 0; gap: 12px;
}
.slb-counter { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; letter-spacing: .05em; min-width: 48px; }
.slb-title { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slb-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s; flex-shrink: 0;
}
.slb-close:hover { background: rgba(255,255,255,.22); }
.slb-stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 0 56px;
}
.slb-img {
  max-width: 100%; max-height: 100%; width: 100%; height: 100%;
  object-fit: contain; border-radius: 6px;
  transition: opacity .15s ease;
}
.slb-img.fading { opacity: 0; }
.slb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.slb-arrow:hover { background: rgba(255,255,255,.25); }
.slb-arrow:disabled { opacity: .2; pointer-events: none; }
.slb-arrow.prev { left: 8px; }
.slb-arrow.next { right: 8px; }
.slb-meta {
  flex-shrink: 0; text-align: center; padding: 10px 16px 16px;
  font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .03em;
}

/* ── Client feedback badges on library cards ── */
.client-badge {
  position: absolute; top: 5px; left: 5px; z-index: 10;
  padding: 2px 7px; border-radius: 99px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  pointer-events: none; line-height: 1.6;
}
.client-badge.approved { background: #30B566; color: #fff; }
.client-badge.flagged  { background: #E6AF10; color: #1a1a00; }
/* Reviewed under a different whole-project look (template/font) than what's
   currently rendered — see computeStyleSignature()/applyClientFeedback() in
   travel-oregon.html. Deliberately NOT green/amber so it never reads as a
   clean approved/flagged match. */
.client-badge.style-mismatch { background: #6b6b6b; color: #fff; pointer-events: auto; cursor: help; }
.client-note-btn {
  position: absolute; bottom: 5px; left: 5px; z-index: 10;
  background: rgba(230,175,16,.92); color: #1a1a00;
  border: none; border-radius: 4px; padding: 2px 6px;
  font-size: 10px; font-weight: 600; cursor: pointer;
  max-width: calc(100% - 10px); text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.client-note-btn:hover { background: #E6AF10; }
/* Note popover */
.client-note-pop {
  position: absolute; bottom: 26px; left: 5px; z-index: 20;
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px;
  font-size: 11px; color: var(--text); line-height: 1.5;
  max-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  word-break: break-word;
  display: none;
}
.asset-card:hover .client-note-pop,
.client-note-btn:focus + .client-note-pop { display: block; }
.edit-overlay-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  display: none;
  border-radius: 4px;
}
.asset-card:hover .edit-overlay-btn {
  display: block;
}

/* ── Board empty / onboarding state ──
   Fills the main-bottom void before any assets exist: teaches the 3-step flow
   and gives a clear first action instead of a blank canvas. Toggled off (via a
   MutationObserver on #genWrap) the moment the board becomes visible. */
.board-empty { max-width: 620px; margin: 40px auto; padding: 0 24px; text-align: center; }
.be-badge {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: var(--moss-dim); border: 1px solid var(--moss-b);
}
.be-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.be-sub { font-size: 13px; color: var(--text2); line-height: 1.6; max-width: 460px; margin: 8px auto 0; }
.be-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; text-align: left; }
.be-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 15px; }
.be-step-n {
  width: 22px; height: 22px; border-radius: 50%; margin-bottom: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700;
  background: var(--moss); color: #fff;
}
.be-step-t { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.be-step-d { font-size: 11px; color: var(--text2); line-height: 1.5; }
.be-cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .be-steps { grid-template-columns: 1fr; }
}

/* ── Motion: purposeful state reveals ──
   All transform+opacity only (never layout), ease-out, 150–340ms, no bounce.
   Each is keyed off an event the UI already fires — element creation (board
   build), a shown class (status bar), or a display flip (edit pane) — so nothing
   in the JS had to change. Honored down to nothing under reduced-motion below. */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideInX { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* Onboarding empty state: badge, copy, then the three step cards cascade in. */
.board-empty { animation: riseIn .4s cubic-bezier(.2,.7,.2,1) both; }
.board-empty .be-badge { animation: riseIn .5s cubic-bezier(.2,.7,.2,1) both; }
.board-empty .be-step { animation: riseIn .5s cubic-bezier(.2,.7,.2,1) both; }
.board-empty .be-step:nth-child(1) { animation-delay: .06s; }
.board-empty .be-step:nth-child(2) { animation-delay: .13s; }
.board-empty .be-step:nth-child(3) { animation-delay: .20s; }
.board-empty .be-cta { animation: riseIn .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: .26s; }

/* Generated results populate with a short staggered rise as the board builds.
   Runs once per element (board rebuild on Generate); edits update card contents
   in place, so they don't replay, and filter show/hide doesn't restart a
   finished animation. */
.gc { animation: riseIn .32s cubic-bezier(.2,.7,.2,1) both; }
.board-row { animation: riseIn .34s cubic-bezier(.2,.7,.2,1) both; }
.board-row:nth-child(3) { animation-delay: .04s; }
.board-row:nth-child(4) { animation-delay: .08s; }
.board-row:nth-child(5) { animation-delay: .12s; }
.board-row:nth-child(6) { animation-delay: .16s; }
.board-row:nth-child(7) { animation-delay: .20s; }
.board-row:nth-child(n+8) { animation-delay: .22s; }

/* Edit pane reveals on open. (Runtime status now animates as a toast, above.) */
.edit-pane { animation: slideInX .24s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .board-empty, .board-empty *, .gc, .board-row, .edit-pane,
  .ps-link-hint, .vid-trim, .vm-panel {
    animation: none !important;
  }
}

/* ── Export Modal ── scope + packaging chooser for ZIP downloads */
.xmodal-back{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;}
.xmodal{background:var(--surface);border-radius:var(--r);width:min(440px,92vw);max-height:88vh;overflow-y:auto;box-shadow:0 24px 64px rgba(0,0,0,.45);border:1px solid var(--border2);}
.xmodal-hd{padding:16px 20px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);}
.xmodal-ttl{font-family:'Syne',sans-serif;font-size:14px;font-weight:700;color:var(--text);}
.xmodal-body{padding:16px 20px;}
.xsec{margin-bottom:18px;}
.xsec:last-child{margin-bottom:0;}
.xsec-lbl{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text3);margin-bottom:8px;font-family:'Syne',sans-serif;}
.xopt{display:flex;align-items:flex-start;gap:9px;padding:7px 9px;border-radius:var(--r-sm);cursor:pointer;transition:background .1s;user-select:none;}
.xopt:hover{background:var(--surface2);}
.xopt input[type=radio]{accent-color:var(--moss);cursor:pointer;margin-top:2px;flex-shrink:0;}
.xopt-text{display:flex;flex-direction:column;flex:1;}
.xopt-lbl{font-size:13px;color:var(--text);line-height:1.3;}
.xopt-sub{font-size:11px;color:var(--text3);margin-top:1px;}
.xopt-sub select{margin-top:4px;padding:3px 8px;border-radius:var(--r-xs);border:1px solid var(--border2);background:var(--surface2);font-size:11px;font-family:'DM Sans',sans-serif;color:var(--text);}
.xopt.disabled{opacity:.4;pointer-events:none;}
.xmodal-ft{padding:12px 20px 16px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:8px;}
.xmodal-note{font-size:11px;color:var(--text3);}

/* ── Position & Scale: "Apply changes to" scope explainer ── */
.ps-scope-desc{font-size:11px;color:var(--text2);margin-top:8px;padding:7px 10px;background:var(--surface2);border-radius:var(--r-xs);line-height:1.45;}
.ps-scope-desc:empty{display:none;}
.ps-scope-desc b{color:var(--text);font-weight:600;}
