@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Outfit:wght@400;500;600;700&family=EB+Garamond:ital@1&display=swap');

:root{
  --navy:#00114A;
  --navy-deep:#0f202c;
  --gold:#FFCC00;
  --gray:#5b6270;
  --bg:#f6f7fb;
  --surface:#ffffff;
  --text:var(--navy);
  --accent:var(--navy);
  --line:#e7e9f2;
  --green:#2ea043;
  --red:#c0392b;
  --read:#3b6fd6;
  --taste:#c9820a;
  --experience:#8a4fc9;
  --travel:#2ea043;
  --learn:#0e9488;
  --watch:#d6336c;
  --listen:#e8590c;
  --invalid-bg:#fdf2f1;
  color-scheme: light;
}
:root[data-theme="dark"]{
  --bg:#0d1420;
  --surface:#17202f;
  --text:#eef1fa;
  --accent:#FFCC00;
  --line:#2a3548;
  --gray:#8b93a8;
  --green:#3ecf6a;
  --red:#ff6b5e;
  --invalid-bg:rgba(255,107,94,0.12);
  color-scheme: dark;
}
*{box-sizing:border-box;}
body{ margin:0; padding:0 0 60px; background:var(--bg); font-family:'Outfit',sans-serif; color:var(--text); transition:background .15s ease, color .15s ease; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 20px; }
.app-shell{ display:flex; align-items:flex-start; gap:24px; }

/* v1.1 — vertical icon sidebar, replaces the horizontal .tabs row (11
   tabs stopped fitting on one line even wrapped — see the ad-server
   admin's own sidebar as the pattern this follows). .tab/.tab-panel
   class names and data-tab wiring are UNCHANGED on purpose —
   activateAdminTab() only ever queries by those two classes, never by
   the wrapper, so the JS switching logic needed zero changes here. */
.sidebar{ position:sticky; top:20px; flex-shrink:0; width:210px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 8px; transition:width .16s ease; }
.sidebar.collapsed{ width:60px; }
.sidebar-head{ display:flex; align-items:center; justify-content:space-between; padding:2px 8px 12px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.sidebar-head-label{ font-family:'Outfit',sans-serif; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gray); white-space:nowrap; overflow:hidden; }
.sidebar.collapsed .sidebar-head-label{ display:none; }
.sidebar-toggle{ flex-shrink:0; width:26px; height:26px; border-radius:7px; border:1px solid var(--line); background:var(--bg); color:var(--gray); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sidebar-toggle:hover{ color:var(--text); border-color:var(--gray); }
.sidebar-toggle svg{ width:14px; height:14px; transition:transform .16s ease; }
.sidebar.collapsed .sidebar-toggle svg{ transform:rotate(180deg); }
.tab{ display:flex; align-items:center; gap:10px; width:100%; font-family:'Outfit',sans-serif; font-size:13px; font-weight:600; color:var(--gray); background:none; border:none; border-radius:8px; padding:9px 10px; margin:1px 0; cursor:pointer; white-space:nowrap; text-align:left; }
.tab:hover{ background:var(--bg); color:var(--text); }
.tab.active{ background:var(--navy); color:#fff; }
.tab-icon{ flex-shrink:0; width:17px; height:17px; }
.tab-icon svg{ width:100%; height:100%; }
.tab-label{ overflow:hidden; text-overflow:ellipsis; }
.sidebar.collapsed .tab{ justify-content:center; padding:9px 0; }
.sidebar.collapsed .tab-label{ display:none; }
/* v1.1 — collapsed sidebar loses the visible label, but not the need
   to know what each icon means. Override the rule above specifically
   on hover: same .tab-label element, repositioned as a floating
   tooltip to the right of the icon instead of hidden. */
.sidebar.collapsed .tab{ position:relative; }
.sidebar.collapsed .tab:hover .tab-label{
  display:block; position:absolute; left:100%; top:50%; transform:translateY(-50%);
  margin-left:10px; background:var(--navy); color:#fff; padding:6px 11px; border-radius:6px;
  font-size:12px; font-weight:600; white-space:nowrap; z-index:50;
  box-shadow:0 4px 12px rgba(0,0,0,.18); pointer-events:none;
}
.main-content{ flex:1; min-width:0; }

.tab-panel{ display:none; }

/* ===== HEADER ===== */
.platform-header{ background:var(--navy); padding:22px 0; margin-bottom:28px; }
.platform-header-inner{ max-width:920px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.platform-header-inner img{ height:38px; width:auto; }
.platform-title{ display:flex; flex-direction:column; }
.platform-title span.name{ font-family:'Fraunces',serif; font-size:19px; font-weight:600; color:#fff; }
.platform-title span.sub{ font-family:'EB Garamond',serif; font-style:italic; font-size:13px; color:var(--gold); margin-top:2px; }
.platform-header-inner .divider{ width:1px; height:32px; background:rgba(255,255,255,0.2); margin-left:4px; }
.tool-label{ font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.6); margin-left:auto; text-align:right; line-height:1.5; }
.version-badge{ display:block; width:fit-content; margin:4px 0 0 auto; font-family:monospace; font-size:10.5px; color:rgba(255,255,255,0.4); padding:2px 7px; flex-shrink:0; text-transform:none; letter-spacing:normal; }
.tool-label strong{ display:block; color:#fff; font-size:12px; letter-spacing:0.04em; }
.analytics-link{ font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; color:#fff; text-decoration:none; opacity:.85; margin-left:16px; white-space:nowrap; }
.analytics-link:hover{ opacity:1; text-decoration:underline; }
.disconnect-btn{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin-left:12px; background:none; border:1px solid rgba(255,255,255,0.25); border-radius:50%; cursor:pointer; color:rgba(255,255,255,0.7); flex-shrink:0; }
.disconnect-btn:hover{ color:#fff; border-color:rgba(255,255,255,0.5); }
.disconnect-btn svg{ width:15px; height:15px; }
.theme-toggle{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin-left:12px; background:none; border:1px solid rgba(255,255,255,0.25); border-radius:50%; cursor:pointer; color:rgba(255,255,255,0.85); flex-shrink:0; text-decoration:none; }
.theme-toggle:hover{ border-color:rgba(255,255,255,0.5); color:#fff; }
.theme-toggle svg{ width:15px; height:15px; }
.theme-toggle .icon-moon{ display:none; }
:root[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
:root[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }
.conn-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; background:#c0392b; }
.conn-dot.on{ background:var(--green); }

/* ===== NAV TABS — see the .sidebar/.tab block above; kept ONLY
   .tab-panel.active here since that's still genuinely used (toggles
   which panel is visible) and wasn't part of the sidebar restyle. ===== */
.tab-panel.active{ display:block; }
.subtabs{ display:flex; gap:6px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.subtab{ font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; color:var(--gray); background:none; border:none; padding:8px 4px; cursor:pointer; border-bottom:2px solid transparent; margin-right:16px; }
.subtab.active{ color:var(--text); border-bottom-color:var(--gold); }
.subtab-panel{ display:none; }
.subtab-panel.active{ display:block; }
.mcp-endpoint-box{ font-family:monospace; font-size:12px; padding:10px 12px; background:var(--bg); border:1px solid var(--line); border-radius:8px; word-break:break-all; }
.mcp-tool-table th{ text-align:left; font-family:'Outfit',sans-serif; font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); padding:6px 10px; border-bottom:1px solid var(--line); }
.mcp-tool-table td{ padding:6px 10px; border-bottom:1px solid var(--line); font-size:12.5px; }
.mcp-tool-table tr:last-child td{ border-bottom:none; }

/* ===== GATE ===== */
.gate{ background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:24px; margin-bottom:28px; }
.gate h2{ font-family:'Fraunces',serif; font-size:17px; margin:0 0 6px; }
.gate p{ font-size:13px; color:var(--gray); margin:0 0 14px; line-height:1.5; }
.gate-row{ display:flex; gap:10px; flex-wrap:wrap; }
.gate input{ flex:1; min-width:220px; }

/* ===== SHARED FORM ELEMENTS ===== */
label{ display:block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--gray); margin-bottom:4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], textarea, select{
  width:100%; font-family:'Outfit',sans-serif; font-size:13.5px; color:var(--text);
  border:1px solid var(--line); border-radius:6px; padding:9px 11px; background:var(--surface);
}
input:focus, textarea:focus, select:focus{ outline:none; border-color:var(--gold); }
input.invalid, textarea.invalid, select.invalid{ border-color:var(--red); background:var(--invalid-bg); }
textarea{ resize:vertical; min-height:56px; }
/* v1.3.3 — file inputs: same box, and the native "Choose file" button restyled like .btn-ghost */
input[type=file]{ width:100%; font-family:'Outfit',sans-serif; font-size:13px; color:var(--gray); border:1px dashed var(--line); border-radius:6px; padding:8px 10px; background:var(--surface); cursor:pointer; }
input[type=file]::file-selector-button{ font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:6px 12px; margin-right:10px; cursor:pointer; }
input[type=file]::file-selector-button:hover{ border-color:var(--gold); }
.field{ margin-bottom:12px; }
.field input[readonly]{ background:var(--bg); color:var(--gray); cursor:default; }
.field-section-head{ font-family:'Outfit',sans-serif; font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text); margin:22px 0 10px; padding-top:14px; border-top:1px solid var(--line); }
.checkbox-field label{ display:flex; align-items:center; gap:8px; font-weight:600; cursor:pointer; }
.checkbox-field input[type=checkbox]{ width:auto; }
.field-row{ display:flex; gap:12px; flex-wrap:wrap; }
.field-row .field{ flex:1; min-width:140px; }
.hint{ font-size:11px; color:var(--gray); margin-top:3px; }

.btn{ font-family:'Outfit',sans-serif; font-size:13px; font-weight:700; border:none; border-radius:20px; padding:9px 18px; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:7px; }
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ opacity:.9; }
.btn-ghost{ background:none; color:var(--text); border:1px solid var(--line); }
.btn-ghost:hover{ border-color:var(--accent); }
.btn-xs{ padding:3px 9px; font-size:11.5px; border-radius:6px; }
.followup-rows{ display:flex; flex-direction:column; gap:6px; }
.followup-row{ display:flex; align-items:center; gap:10px; padding:7px 10px; background:var(--bg); border-radius:8px; font-size:12.5px; }
.followup-age{ font-weight:700; min-width:32px; text-align:right; font-variant-numeric:tabular-nums; }
.followup-main{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.followup-amount{ white-space:nowrap; color:var(--gray); }
.followup-gap{ white-space:nowrap; font-weight:700; }
.btn-sm{ padding:6px 12px; font-size:11.5px; }
.btn:disabled{ opacity:.5; cursor:default; }
.spin{ width:12px; height:12px; border:2px solid rgba(0,17,74,.25); border-top-color:var(--navy); border-radius:50%; animation:spin .6s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ===== SECTION ===== */
.section{ margin-bottom:36px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:12px; gap:12px; flex-wrap:wrap; }
.section-head h2{ font-family:'Fraunces',serif; font-size:19px; margin:0; }
.section-head span.count{ font-size:12px; color:var(--gray); }
.section-desc{ font-size:12.5px; color:var(--gray); margin:-6px 0 14px; }
.stats{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-bottom:18px; }
.stat-card{ background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:14px 16px; position:relative; }
.controls{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.kpi-delta{ font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:600; margin-top:3px; }
.kpi-delta.up{ color:var(--travel); }
.kpi-delta.down{ color:var(--red); }
.kpi-delta.flat{ color:var(--gray); }
.kpi-sparkline{ display:block; width:100%; height:26px; margin-top:6px; }
.kpi-sparkline .spark-current{ fill:none; stroke:var(--accent); stroke-width:1.6; }
.kpi-sparkline .spark-previous{ fill:none; stroke:var(--gray); stroke-width:1.3; stroke-dasharray:3,2; }
.finder-result{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; margin-top:6px; font-size:12px; }
.finder-result .finder-info{ line-height:1.4; }
.finder-result .finder-info .id{ font-size:10.5px; color:var(--gray); }
.finder-empty{ font-size:12px; color:var(--gray); margin-top:8px; }
.kpi-info{ position:absolute; top:10px; right:10px; width:15px; height:15px; border-radius:50%; background:rgba(0,0,0,0.14); color:var(--gray); font-family:'Outfit',sans-serif; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; cursor:help; }
.kpi-info:hover .kpi-tooltip, .kpi-info:focus .kpi-tooltip{ opacity:1; visibility:visible; }
.kpi-tooltip{ position:absolute; top:calc(100% + 8px); right:0; width:230px; background:var(--navy); color:#fff; font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:400; line-height:1.45; text-transform:none; letter-spacing:0; padding:10px 12px; border-radius:8px; opacity:0; visibility:hidden; transition:opacity .15s ease; z-index:30; box-shadow:0 10px 26px rgba(0,0,0,.28); pointer-events:none; }
.stat-card .label{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); padding-right:20px; }
.stat-card .value{ font-family:'Fraunces',serif; font-size:22px; font-weight:600; color:var(--text); margin-top:4px; }
.stat-card.warn{ border-color:var(--red); }
.stat-card.warn .value{ color:var(--red); }
.vendor-subtotal{ font-size:11px; color:var(--gray); font-weight:400; text-transform:none; letter-spacing:0; }

/* ===== LIST ROWS ===== */
.list{ margin-top:6px; }
.row{ display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.row + .row{ margin-top:8px; }
.row .thumb{ width:44px; height:44px; border-radius:6px; object-fit:cover; background:var(--bg); flex-shrink:0; }
.mcp-audit-status-dot{ width:12px; height:12px; border-radius:50%; flex-shrink:0; margin:16px 4px 0 2px; }
.row .main{ flex:1; min-width:0; }
.row .name{ font-family:'Fraunces',serif; font-size:14.5px; font-weight:600; margin:0 0 2px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.row .meta{ font-size:12px; color:var(--gray); word-break:break-word; }
.row .actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; flex-shrink:0; }
.vendor-kpi{ flex-shrink:0; text-align:center; padding:4px 12px; border-left:1px solid var(--line); align-self:stretch; display:flex; flex-direction:column; justify-content:center; }
.vendor-kpi .nums{ font-family:'Outfit',sans-serif; font-size:16px; font-weight:700; white-space:nowrap; }
.vendor-kpi .nums .sep{ color:var(--gray); font-weight:400; margin:0 2px; }
.vendor-kpi .lbl{ font-size:9.5px; color:var(--gray); text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; margin-top:2px; }
.icon-btn{ background:none; border:1px solid var(--line); border-radius:6px; width:28px; height:28px; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; }
.icon-btn:hover{ border-color:var(--accent); }
.icon-btn.danger:hover{ border-color:var(--red); color:var(--red); }

/* v1.1 — REDESIGN: was solid fill + white text (classic ~2016 flat-UI
   badge). Soft tint + the category's own color as text reads calmer
   and more current (Linear/Notion/GitHub-label style) — chosen over
   the alternative (a thin border too) after a side-by-side comparison.
   color-mix against var(--surface) rather than a fixed white/black
   means the tint automatically adapts for dark mode, same as every
   other themed color in this file — no separate dark-mode override
   block needed for badges specifically. */
.badge{ display:inline-block; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; padding:3px 9px; border-radius:7px; }
.badge.Read{ background:color-mix(in srgb, var(--read) 14%, var(--surface)); color:var(--read); }
.badge.Taste{ background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste); }
.badge.Experience{ background:color-mix(in srgb, var(--experience) 14%, var(--surface)); color:var(--experience); }
.badge.Travel{ background:color-mix(in srgb, var(--travel) 14%, var(--surface)); color:var(--travel); }
.badge.Learn{ background:color-mix(in srgb, var(--learn) 14%, var(--surface)); color:var(--learn); }
.badge.Watch{ background:color-mix(in srgb, var(--watch) 14%, var(--surface)); color:var(--watch); }
.badge.Listen{ background:color-mix(in srgb, var(--listen) 14%, var(--surface)); color:var(--listen); }
.badge.source-content{ background:color-mix(in srgb, var(--read) 14%, var(--surface)); color:var(--read); }
.badge.source-smartlist{ background:color-mix(in srgb, var(--experience) 14%, var(--surface)); color:var(--experience); }
.badge.source-widget{ background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste); }
.badge.source-casting{ background:color-mix(in srgb, var(--learn) 14%, var(--surface)); color:var(--learn); }
.badge.source-fast{ background:color-mix(in srgb, var(--watch) 14%, var(--surface)); color:var(--watch); }
.badge.source-unknown{ background:color-mix(in srgb, var(--gray) 16%, var(--surface)); color:var(--gray); }
.badge.neutral{ background:color-mix(in srgb, var(--gray) 16%, var(--surface)); color:var(--gray); }
.badge.cpm{ background:color-mix(in srgb, var(--read) 14%, var(--surface)); color:var(--read); }
.badge.cpc{ background:color-mix(in srgb, var(--learn) 14%, var(--surface)); color:var(--learn); }
.badge.cpa{ background:color-mix(in srgb, var(--experience) 14%, var(--surface)); color:var(--experience); }
.badge.revshare{ background:color-mix(in srgb, var(--watch) 14%, var(--surface)); color:var(--watch); }
.badge .badge-val{ font-weight:400; text-transform:none; letter-spacing:0; opacity:.85; margin-left:3px; }
/* v1.1 — three generic semantic tints, same redesign treatment as the
   category badges above. Replaces several one-off inline
   style="background:var(--red)" etc. usages scattered across
   corner-status, out-of-stock, structural-failure, and cache-status
   badges — those used to bypass the class system entirely (inline
   style wins over a class), which is exactly why they were still
   solid-fill after the redesign above. Reused across unrelated
   features on purpose: "something needs attention" should look the
   same everywhere in this app, not have its own bespoke red per feature. */
.badge.status-danger{ background:color-mix(in srgb, var(--red) 14%, var(--surface)); color:var(--red); }
.badge.status-warning{ background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste); }
.badge.status-success{ background:color-mix(in srgb, var(--travel) 14%, var(--surface)); color:var(--travel); }
.component-chips{ display:flex; flex-wrap:wrap; gap:5px; margin:4px 0; }
.component-chips .badge{ padding:3px 8px; }
.dot{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:2px; flex-shrink:0; }
.dot.active{ background:var(--green); }
.dot.inactive{ background:#c8cad4; }

.uuid-group{ display:flex; align-items:center; gap:8px; font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text); margin:18px 0 8px; padding-bottom:4px; border-bottom:1px solid var(--line); cursor:pointer; }
.uuid-group-chevron{ font-size:10px; color:var(--gray); transition:transform .15s ease; flex-shrink:0; }
.uuid-section:not(.collapsed) .uuid-group-chevron{ transform:rotate(90deg); }
.uuid-section.collapsed .uuid-group-body{ display:none; }
.uuid-section:first-child .uuid-group{ margin-top:0; }
.uuid-group-thumb{ width:26px; height:26px; border-radius:5px; object-fit:cover; flex-shrink:0; }
.uuid-group-thumb-wrap{ position:relative; flex-shrink:0; line-height:0; }
.uuid-group-type-tag{ position:absolute; bottom:-4px; right:-4px; width:14px; height:14px; border-radius:4px; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:9px; color:#fff; border:1.5px solid var(--surface); }
/* v1.1 — stand-in for the thumbnail above when there isn't one: a
   Smartlist or Widget never has an image the way Content does. Same
   26px footprint so the row height doesn't jump depending on source
   type; colors match sourceBadge()'s own source-smartlist/source-widget
   so the letter and the text badge next to it are visually the same
   "thing", not two different color codings for one concept. */
.uuid-group-letter{ width:26px; height:26px; border-radius:5px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:13px; color:#fff; }
.uuid-group-letter.letter-smartlist{ background:var(--experience); }
.uuid-group-letter.letter-widget{ background:var(--taste); }
.uuid-group-letter.letter-content{ background:var(--read); }
.uuid-group-letter.letter-casting{ background:var(--learn); }
.uuid-group-letter.letter-fast{ background:var(--watch); }
.uuid-group-type-tag.letter-smartlist{ background:var(--experience); }
.uuid-group-type-tag.letter-widget{ background:var(--taste); }
.uuid-group-type-tag.letter-content{ background:var(--read); }
.uuid-group-type-tag.letter-casting{ background:var(--learn); }
.uuid-group-type-tag.letter-fast{ background:var(--watch); }
/* v1.2.24 — castings: square (1:1) picture in the list, initial when there is none */
.casting-row-thumb{ flex-shrink:0; display:flex; align-items:center; }
.casting-thumb{ border-radius:8px; object-fit:cover; flex-shrink:0; background:var(--line); display:block; }
.casting-thumb-empty{ display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:18px; color:var(--gray); }
.uuid-group code{ font-weight:400; font-family:monospace; font-size:11px; color:var(--gray); text-transform:none; letter-spacing:0; }
.uuid-group .copy-uuid{ background:none; border:none; cursor:pointer; font-size:12px; color:var(--gray); padding:0; }
.uuid-group .copy-uuid:hover{ color:var(--accent); }
.group-actions-menu{ position:relative; display:inline-flex; }
.group-actions-menu .copy-uuid{ font-size:14px; padding:2px 4px; border-radius:5px; }
.group-actions-menu:hover .copy-uuid{ background:var(--bg); color:var(--accent); }
.group-actions-popup{ display:none; position:absolute; top:100%; right:0; z-index:20; margin-top:4px; background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:0 4px 16px rgba(0,0,0,.12); padding:4px; min-width:200px; flex-direction:column; gap:2px; }
.group-actions-menu:hover .group-actions-popup{ display:flex; }
.group-actions-popup button{ display:block; width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:7px 10px; border-radius:6px; font-family:'Outfit',sans-serif; font-size:12px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--text); white-space:nowrap; }
.group-actions-popup button:hover{ background:var(--bg); }
.view-content-link{ margin-left:auto; font-family:'Outfit',sans-serif; font-weight:600; font-size:11px; text-transform:none; letter-spacing:0; color:var(--gray); text-decoration:none; white-space:nowrap; flex-shrink:0; }
.view-content-link:hover{ color:var(--accent); text-decoration:underline; }

.filter-row{ display:flex; gap:10px; margin-bottom:6px; flex-wrap:wrap; }
.filter-row input[type=text]{ flex:2; min-width:180px; }
.filter-row select{ flex:1; min-width:140px; }

.pagination{ display:flex; align-items:center; justify-content:center; gap:14px; margin-top:16px; font-size:12.5px; color:var(--gray); }
.pagination button{ font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; background:none; border:1px solid var(--line); border-radius:16px; padding:6px 14px; cursor:pointer; color:var(--text); }
.pagination button:hover:not(:disabled){ border-color:var(--accent); }
.pagination button:disabled{ opacity:.4; cursor:default; }

.result-line{ font-size:12.5px; color:var(--gray); margin:2px 0 10px; }
.pagination-row{ display:flex; align-items:center; justify-content:center; gap:20px; margin-bottom:6px; flex-wrap:wrap; }
.mini-chart{ position:relative; display:flex; flex-direction:column; }
.chart-caption{ font-family:'Outfit',sans-serif; font-size:10.5px; color:var(--gray); text-align:center; margin-bottom:4px; flex-shrink:0; }
.chart-svg-wrap{ position:relative; flex:1; min-height:0; }
.perf-legend{ display:flex; gap:14px; justify-content:center; margin-top:6px; font-size:11px; color:var(--gray); }
.perf-legend span{ display:inline-flex; align-items:center; gap:5px; }
.perf-legend i{ width:9px; height:9px; border-radius:2px; display:inline-block; }
.pagination-row .pagination{ margin-top:0; }
.page-size{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--gray); }
.page-size select{ width:auto; padding:5px 8px; font-size:12px; }

.status-line{ font-size:12.5px; margin-top:8px; min-height:16px; }
.status-line.ok{ color:var(--green); }
.status-line.err{ color:var(--red); }

.empty{ font-size:13px; color:var(--gray); padding:16px; text-align:center; }
.hidden{ display:none !important; }

/* ===== SLIDE-OVER PANEL ===== */
.overlay{ position:fixed; inset:0; background:rgba(15,32,44,.45); z-index:40; opacity:0; pointer-events:none; transition:opacity .18s ease; }
.overlay.open{ opacity:1; pointer-events:auto; }
.panel{
  position:fixed; top:0; right:0; height:100%; width:420px; max-width:92vw;
  background:var(--surface); z-index:41; box-shadow:-8px 0 24px rgba(0,0,0,.15);
  transform:translateX(100%); transition:transform .2s ease;
  display:flex; flex-direction:column;
}
.panel.open{ transform:translateX(0); }
.panel-head{ padding:18px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.panel-head h3{ font-family:'Fraunces',serif; font-size:16.5px; margin:0; }
.panel-close{ background:none; border:none; font-size:18px; cursor:pointer; color:var(--gray); line-height:1; }
.panel-close:hover{ color:var(--accent); }
.panel-body{ padding:18px 20px; overflow-y:auto; flex:1; }
.panel-foot{ padding:14px 20px; border-top:1px solid var(--line); display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* ===== PREVIEW TILE ===== */
.preview-wrap{ margin-bottom:16px; }
.preview-wrap .hint{ margin-bottom:6px; }
.preview-tile{ background:var(--navy); border-radius:8px; overflow:hidden; width:220px; }
.preview-media{ position:relative; width:100%; aspect-ratio:16/9; background:var(--navy-deep); }
.preview-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.preview-label{ position:absolute; left:0; right:0; bottom:0; padding:16px 8px 6px; background:linear-gradient(to top, rgba(15,32,44,.92), rgba(15,32,44,0)); font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); display:flex; align-items:center; gap:4px; }
.preview-location{ margin-left:auto; display:inline-flex; align-items:center; gap:3px; font-weight:600; text-transform:none; letter-spacing:0; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:90px; }
.preview-location svg{ width:9px; height:9px; flex-shrink:0; }
.preview-badge-premium{ position:absolute; top:6px; left:6px; z-index:1; background:var(--gold); color:#000; font-size:8px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:2px 6px; border-radius:3px; }
.preview-badge-stock{ position:absolute; top:6px; right:6px; z-index:1; background:rgba(15,32,44,.88); color:#fff; font-size:8px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:2px 6px; border-radius:3px; }
.preview-body{ padding:10px; }
.preview-vendor{ display:flex; align-items:center; gap:5px; font-size:9.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--gold); opacity:.9; margin-bottom:3px; }
.preview-vendor img{ width:13px; height:13px; border-radius:3px; object-fit:cover; flex-shrink:0; }
.preview-title{ font-family:'Fraunces',serif; font-weight:600; font-size:12.5px; color:#fff; margin:0 0 4px; line-height:1.25; }
.preview-desc{ font-size:10px; color:rgba(255,255,255,.6); line-height:1.35; margin:0 0 8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.preview-foot{ display:flex; align-items:center; justify-content:space-between; padding-top:8px; border-top:1px solid rgba(255,255,255,.14); font-size:11px; }
.preview-price{ color:#fff; font-weight:600; }
.preview-price-from{ font-weight:400; opacity:.7; margin-right:3px; font-size:9px; text-transform:uppercase; }
.preview-cta{ background:var(--gold); color:var(--navy); font-weight:700; font-size:9.5px; padding:4px 8px; border-radius:4px; }
.preview-corner{ display:flex; align-items:center; justify-content:center; gap:4px; padding:6px 8px; margin-top:-10px; background:rgba(255,204,0,.08); border-top:1px solid rgba(255,204,0,.25); color:var(--gold); font-size:9px; font-weight:600; }

/* ===== v1.2.30 — Placements: pages table, then one page at a time ===== */
.plc-toolbar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-bottom:14px; }
.plc-toolbar input[type=text]{ flex:1 1 260px; max-width:380px; }
.plc-controls{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; flex:1; }
.plc-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.plc-chip{ font:600 11.5px 'Outfit',sans-serif; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:7px; padding:4px 10px; cursor:pointer; }
.plc-chip span{ opacity:.6; margin-left:3px; }
.plc-chip.on{ border-color:var(--navy); background:color-mix(in srgb, var(--navy) 10%, var(--surface)); }
.plc-seg{ display:inline-flex; gap:2px; background:color-mix(in srgb, var(--gray) 14%, var(--surface)); border-radius:9px; padding:3px; }
.plc-seg button{ font:600 12.5px 'Outfit',sans-serif; border:0; background:transparent; color:var(--gray); border-radius:7px; padding:5px 12px; cursor:pointer; }
.plc-seg button span{ opacity:.7; margin-left:3px; }
.plc-seg button.on{ background:var(--navy); color:#fff; }
:root[data-theme="dark"] .plc-seg button.on{ background:var(--gold); color:var(--navy); }
.plc-controls .plc-seg{ margin-left:auto; }

.plc-table{ background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow-x:auto; }
.plc-prow{ display:grid; grid-template-columns:44px minmax(0,1fr) 96px 80px 80px 80px 120px minmax(0,170px) 16px; column-gap:14px; align-items:center; width:100%; min-width:980px; box-sizing:border-box; text-align:left; border:0; border-bottom:1px solid var(--line); background:var(--surface); color:var(--text); padding:11px 16px; font:inherit; cursor:pointer; }
button.plc-prow:hover{ background:var(--bg); }
.plc-prow:last-child{ border-bottom:0; }
.plc-phead{ cursor:default; background:var(--bg); font:700 10.5px 'Outfit',sans-serif; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); padding-top:9px; padding-bottom:9px; }
.plc-thumb{ width:40px; height:40px; border-radius:9px; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--bg); }
.plc-thumb.big{ width:56px; height:56px; border-radius:12px; }
.plc-thumb.round{ border-radius:50%; }
.plc-thumb img{ width:100%; height:100%; object-fit:cover; }
.plc-thumb.letter{ color:#fff; font:600 16px 'Fraunces',serif; }
.plc-thumb.big.letter{ font-size:22px; }
.plc-thumb.letter-content{ background:var(--read); } .plc-thumb.letter-smartlist{ background:var(--experience); }
.plc-thumb.letter-widget{ background:var(--taste); } .plc-thumb.letter-casting{ background:var(--learn); } .plc-thumb.letter-fast{ background:var(--watch); }
.plc-ptitle{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.plc-ptitle b{ font:600 14px 'Fraunces',serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.plc-ptitle code{ font-size:11px; color:var(--gray); }
.plc-num{ display:inline-block; width:fit-content; min-width:30px; text-align:center; font-weight:700; font-size:12.5px; border-radius:6px; padding:2px 8px; background:color-mix(in srgb, var(--gray) 12%, var(--surface)); }
.plc-num small{ font-weight:600; font-size:10px; margin-left:3px; opacity:.7; }
.plc-num.muted{ color:var(--gray); background:transparent; border:1px dashed var(--line); }
.plc-num.bad{ background:color-mix(in srgb, var(--red) 14%, var(--surface)); color:var(--red); }
.plc-num.warn{ background:color-mix(in srgb, var(--taste) 16%, var(--surface)); color:var(--taste); }
.plc-flag{ min-width:0; } .plc-flag .badge{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:none; }
.plc-dash,.plc-chev{ color:var(--gray); }

.plc-crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-bottom:14px; }
.plc-back{ border:0; background:none; color:var(--text); font:600 13.5px 'Outfit',sans-serif; cursor:pointer; padding:6px 4px 6px 0; }
.plc-back:hover{ text-decoration:underline; }
.plc-sep{ color:var(--gray); }
.plc-crumb-title{ color:var(--gray); font-size:13px; max-width:420px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.plc-pos{ font-size:12px; color:var(--gray); }
.plc-iconbtn{ list-style:none; cursor:pointer; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:8px; min-width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; font-size:16px; padding:0 8px; box-sizing:border-box; }
.plc-iconbtn:hover{ border-color:var(--accent); }
summary.plc-iconbtn::-webkit-details-marker{ display:none; }
.plc-head{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:14px; }
.plc-head-main{ flex:1 1 260px; min-width:0; }
.plc-head-title{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.plc-head-title h3{ font:600 21px 'Fraunces',serif; margin:0; }
.plc-head-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin-top:6px; font-size:12px; color:var(--gray); }
.plc-head-meta .copy-uuid{ background:none; border:1px solid var(--line); border-radius:6px; width:24px; height:24px; cursor:pointer; color:var(--gray); padding:0; }
.plc-head-meta .view-content-link{ margin-left:0; font-size:12.5px; }
.plc-menu{ position:relative; }
.plc-menu-pop{ position:absolute; right:0; top:calc(100% + 4px); z-index:20; min-width:250px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 28px rgba(0,17,74,.16); padding:5px; display:flex; flex-direction:column; }
.plc-menu-pop button{ text-align:left; border:0; background:none; color:var(--text); font:500 13px 'Outfit',sans-serif; padding:8px 10px; border-radius:7px; cursor:pointer; white-space:nowrap; }
.plc-menu-pop button:hover{ background:var(--bg); }
.plc-menu-pop button.danger{ color:var(--red); }
.plc-issues{ background:color-mix(in srgb, var(--taste) 12%, var(--surface)); border:1px solid color-mix(in srgb, var(--taste) 35%, var(--surface)); border-radius:10px; padding:10px 14px; margin-bottom:14px; font-size:13px; line-height:1.5; display:flex; flex-direction:column; gap:4px; }
.plc-tools{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-bottom:12px; }
.plc-tools-label{ font:700 11px 'Outfit',sans-serif; text-transform:uppercase; letter-spacing:.04em; color:var(--gray); }
.plc-summary{ flex:1 1 240px; font-size:12.5px; color:var(--gray); }
.plc-tools .status-line{ margin:0; min-height:0; }

.plc-list{ background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow-x:auto; }
.plc-lrow{ display:grid; grid-template-columns:22px 40px minmax(0,1fr) 104px 48px 46px 36px; column-gap:12px; align-items:center; min-width:760px; padding:9px 16px; border-bottom:1px solid var(--line); background:var(--surface); position:relative; }
.plc-lhead{ background:var(--bg); font:700 10.5px 'Outfit',sans-serif; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); padding-top:9px; padding-bottom:9px; }
.plc-lrow:not(.plc-lhead):hover{ background:color-mix(in srgb, var(--navy) 3%, var(--surface)); }
.plc-lrow.off{ opacity:.55; } .plc-lrow.cut{ opacity:.7; }
.plc-grip{ color:var(--gray); cursor:grab; font-size:14px; letter-spacing:-3px; user-select:none; text-align:center; }
.plc-grip.dis{ cursor:default; opacity:.3; }
.plc-rank{ width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12.5px; background:var(--navy); color:#fff; }
:root[data-theme="dark"] .plc-rank{ background:var(--gold); color:var(--navy); }
.plc-lrow.off .plc-rank{ background:color-mix(in srgb, var(--gray) 22%, var(--surface)); color:var(--gray); }
.plc-rank.bad{ background:color-mix(in srgb, var(--red) 16%, var(--surface)); color:var(--red); }
.plc-prod{ display:flex; align-items:center; gap:12px; min-width:0; }
.plc-pimg{ width:64px; height:36px; border-radius:6px; object-fit:cover; background:var(--bg); flex-shrink:0; display:inline-block; }
.plc-pinfo{ min-width:0; }
.plc-pname{ font:600 13.5px 'Fraunces',serif; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.plc-pmeta{ display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px; font-size:12px; color:var(--gray); }
.plc-pmeta .badge{ padding:1px 7px; font-size:10px; }
.plc-lang{ font-size:11px; font-weight:700; background:color-mix(in srgb, var(--gray) 14%, var(--surface)); color:var(--text); border-radius:6px; padding:2px 8px; width:fit-content; }
.plc-switch{ width:40px; height:22px; border-radius:11px; border:0; padding:2px; background:color-mix(in srgb, var(--gray) 45%, var(--surface)); cursor:pointer; display:flex; align-items:center; justify-content:flex-start; transition:background .12s; }
.plc-switch span{ display:block; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.plc-switch.on{ background:var(--green); justify-content:flex-end; }
.plc-cut{ min-width:760px; box-sizing:border-box; padding:7px 16px; background:color-mix(in srgb, var(--taste) 14%, var(--surface)); border-top:2px dashed var(--taste); border-bottom:1px solid var(--line); font-size:12px; font-weight:600; color:var(--text); }
.plc-note{ min-width:760px; box-sizing:border-box; padding:9px 16px; background:color-mix(in srgb, var(--read) 9%, var(--surface)); border-bottom:1px solid var(--line); font-size:12.5px; }
.plc-sub{ min-width:760px; box-sizing:border-box; padding:7px 16px; background:var(--bg); border-bottom:1px solid var(--line); font:700 10.5px 'Outfit',sans-serif; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); }
.plc-empty{ padding:34px 20px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; }
.plc-empty b{ font:600 16px 'Fraunces',serif; } .plc-empty span{ font-size:13px; color:var(--gray); max-width:460px; }
.plc-lfoot{ padding:9px 16px; font-size:12px; color:var(--gray); border-top:1px solid var(--line); }
.plc-drop-before::before,.plc-drop-after::after{ content:''; position:absolute; left:0; right:0; height:3px; background:var(--gold); z-index:2; }
.plc-drop-before::before{ top:-2px; } .plc-drop-after::after{ bottom:-2px; }
.plc-dragging{ opacity:.35; }

.plc-add{ background:var(--surface); border:2px solid var(--gold); border-radius:12px; padding:12px 14px; margin-bottom:14px; }
.plc-add-bar{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.plc-add-bar input{ flex:1 1 260px; } .plc-add-bar select{ flex:0 1 200px; }
.plc-add-hint{ font-size:12px; color:var(--gray); margin:8px 0 4px; }
.plc-add-row{ display:flex; align-items:center; gap:12px; padding:8px 2px; border-top:1px solid var(--line); }
.plc-add-row .plc-pinfo{ flex:1; }
.plc-add-empty{ font-size:12.5px; color:var(--gray); padding:10px 2px; }
.plc-preview{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.plc-prevhead{ display:flex; font:700 11px 'Outfit',sans-serif; text-transform:uppercase; letter-spacing:.04em; color:var(--gray); margin-bottom:12px; }
.plc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.plc-prevbox{ border-radius:10px; overflow:hidden; background:#172c3c; }
.plc-frame{ display:block; width:100%; border:0; min-height:160px; background:#172c3c; }
.plc-carousel{ display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; }
.plc-carousel .plc-tile{ flex:0 0 230px; }
.plc-tile{ border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--surface); display:flex; flex-direction:column; }
.plc-tmedia{ position:relative; aspect-ratio:16/9; background:var(--bg); }
.plc-tmedia img{ width:100%; height:100%; object-fit:cover; display:block; }
.plc-tcat{ position:absolute; left:8px; bottom:8px; background:rgba(0,17,74,.85); color:#fff; font-size:10.5px; font-weight:600; border-radius:6px; padding:2px 8px; }
.plc-tbody{ padding:11px 12px; display:flex; flex-direction:column; gap:4px; flex:1; }
.plc-tvendor{ font-size:11px; font-weight:600; color:var(--gray); }
.plc-ttitle{ font:600 13.5px 'Fraunces',serif; line-height:1.3; flex:1; }
.plc-tfoot{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:6px; font-size:12px; } .plc-tfoot b{ font-size:14px; } .plc-tfoot span{ font-weight:700; border-bottom:2px solid var(--gold); }
.plc-checklist{ border:1px solid var(--line); border-radius:10px; max-height:240px; overflow-y:auto; }
.plc-check{ display:flex; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid var(--line); font-size:13px; text-transform:none; letter-spacing:0; font-weight:500; color:var(--text); margin:0; cursor:pointer; }
.plc-check:last-child{ border-bottom:0; } .plc-check input{ width:auto; margin:0; } .plc-check span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .plc-check small{ color:var(--gray); }
.plc-others{ display:flex; flex-wrap:wrap; gap:4px; }
.plc-others .plc-num{ min-width:0; }

/* v1.2.32 / v1.2.33 — manual placement form */
.plc-effect{ display:none; border-radius:10px; padding:9px 12px; margin-bottom:12px; font-size:12.5px; line-height:1.5; background:color-mix(in srgb, var(--green) 10%, var(--surface)); border:1px solid color-mix(in srgb, var(--green) 30%, var(--surface)); }
.plc-effect.on{ display:block; }
.plc-effect .warn{ color:var(--text); font-weight:600; }
.plc-effect:has(.warn){ background:color-mix(in srgb, var(--taste) 12%, var(--surface)); border-color:color-mix(in srgb, var(--taste) 35%, var(--surface)); }
.plc-fold{ border:1px solid var(--line); border-radius:10px; padding:0 12px; margin-bottom:12px; }
.plc-fold summary{ cursor:pointer; font:600 12.5px 'Outfit',sans-serif; padding:10px 0; color:var(--gray); }
.plc-fold[open] summary{ border-bottom:1px solid var(--line); margin-bottom:12px; }

/* v1.4.0 — products proposed by vendors */
.review-banner{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 14px; padding:11px 14px; border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:8px; background:var(--surface); font-size:13px; }
.review-banner.hidden{ display:none; }
.review-banner .btn{ margin-left:auto; }
.review-card{ display:flex; flex-direction:column; gap:14px; margin-bottom:16px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.review-card .rc-preview{ min-width:0; }
.review-card .rc-frame{ display:block; width:100%; height:360px; border:0; border-radius:10px; background:#172c3c; }
.review-card .rc-body{ min-width:0; flex:1; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.review-card .rc-title{ font-family:'Fraunces',serif; font-size:16px; font-weight:600; margin-bottom:2px; }
.review-card .rc-meta{ color:var(--gray); font-size:12px; }

/* v1.4.4 — the connect screen sits on the same wallpaper and card as the Ad Serving admin login. Pure CSS: it applies
   only while #gate is visible (not yet connected). */
body:has(#gate:not(.hidden)){ background-color:#00114a; background-image:linear-gradient(90deg,rgba(0,17,74,.16),rgba(0,17,74,.52) 42%,rgba(0,17,74,.52) 58%,rgba(0,17,74,.16)),url('/assets/login-wallpaper.webp'); background-size:cover; background-position:center; background-attachment:fixed; min-height:100vh; padding-bottom:0; }
body:has(#gate:not(.hidden)) .gate{ position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); width:min(430px,calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:auto; margin:0; z-index:50; padding:26px; border-radius:18px; border:1px solid rgba(255,255,255,.48); background:color-mix(in srgb, var(--surface) 96%, transparent); box-shadow:0 28px 80px rgba(0,8,35,.42); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); }
body:has(#gate:not(.hidden)) .gate-row{ flex-direction:column; }
body:has(#gate:not(.hidden)) .gate-row .btn{ width:100%; }
@media (max-width:600px){ body:has(#gate:not(.hidden)){ background-position:38% center; } }
@media (prefers-reduced-data:reduce){ body:has(#gate:not(.hidden)){ background-image:linear-gradient(145deg,#00114a,#082d68 55%,#00114a); } }

/* ── v1.6.0 — contract scope (all products of a vendor / a list) and the contract products list ── */
.radio-line{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-weight:500; margin:6px 0; cursor:pointer; }
.radio-line input[type=radio]{ width:auto; margin:0; }
.check-list{ border:1px solid var(--line); border-radius:8px; max-height:52vh; overflow:auto; background:var(--surface); }
.check-row{ display:flex; align-items:center; gap:10px; padding:7px 12px; margin:0; border-bottom:1px solid var(--line); cursor:pointer; font-size:13px; font-weight:500; text-transform:none; letter-spacing:0; }
.check-row:last-child{ border-bottom:0; }
.check-row:hover{ background:var(--bg); }
.check-row input[type=checkbox]{ width:16px; height:16px; margin:0; flex:none; }
.check-row .grow{ flex:1; min-width:0; overflow-wrap:anywhere; }
.check-row small{ color:var(--gray); flex:none; max-width:38%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:none; letter-spacing:0; }
.scope-chip{ display:inline-block; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--bg); border:1px solid var(--line); color:var(--gray); margin-left:6px; vertical-align:middle; }

/* v1.8.2 — one look for every select: native arrow removed, a chevron with room on the right (it used to touch the edge) */
select:not([multiple]):not([size]){ -webkit-appearance:none; -moz-appearance:none; appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:12px 8px; cursor:pointer; text-overflow:ellipsis; }
.page-size select:not([multiple]){ padding-right:28px; background-position:right 9px center; }

/* v1.10.0 — small count tag on a sidebar tab (Products: proposals waiting for review). Same gold as the primary buttons. */
.tab-badge{ margin-left:auto; flex-shrink:0; min-width:19px; height:19px; padding:0 6px; border-radius:999px; background:var(--gold); color:var(--navy); font-family:'Outfit',sans-serif; font-size:11px; font-weight:700; line-height:19px; text-align:center; box-sizing:border-box; }
.tab-badge.hidden{ display:none; }
.sidebar.collapsed .tab-badge{ position:absolute; top:1px; right:5px; min-width:15px; height:15px; padding:0 4px; font-size:9.5px; line-height:15px; margin:0; }

/* v1.11.0 — FAST channels: 16:9 picture in the list, initial when there is none */
.fast-row-thumb{ flex-shrink:0; display:flex; align-items:center; }
.fast-thumb{ border-radius:8px; object-fit:cover; flex-shrink:0; background:var(--line); display:block; }
.fast-thumb-empty{ display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:18px; color:var(--gray); }
