﻿
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#F6F3EE;--bg2:#EEE9E1;--bg3:#E5DED4;
  /* --surface: card/panel background, the single most-used light-mode
     surface token (189 call sites) -- was pure #FFF, which read as flat
     and harsh next to the warm off-white page background (--bg). Shifted
     to a barely-off-white that still sits lighter than --bg/--bg2/--bg3/
     --sf2 (preserving the existing elevation hierarchy: cards read
     lighter/"raised" above the page), just without the stark pure-white
     flatness. Dark mode (body.dark-mode below) is untouched. */
  --surface:#FDFCFA;--sf2:#FAF8F5;
  --green:#B7FF2A;--gm:#9FE81F;--glt:rgba(183,255,42,0.07);--gpale:rgba(183,255,42,0.04);--green-deep:#0A0A0A;
  /* Darkened, readable-as-text derivative of the current accent — used for labels
     sitting on accent-tinted chip/badge backgrounds. Derived, not a palette entry,
     so it recomputes automatically for every accent (Settings ▸ Accent Color). */
  --green-text: color-mix(in srgb, var(--green) 55%, black);
  --charcoal:#18181A;--c2:#2C2C2E;--muted:#6B6B6B;--m2:#9E9E9E;
  --border:#E0DAD1;--b2:#CEC8BE;
  --warn-bg:#FEF3C7;--warn-c:#92400E;
  --err-bg:#FEE2E2;--err-c:#991B1B;
  --r:10px;--rl:14px;--rx:18px;
  --sh:0 1px 3px rgba(0,0,0,.05);
  --shm:0 2px 8px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.04);
  --shl:0 8px 32px rgba(0,0,0,.10);
  --t:160ms cubic-bezier(.22,.61,.36,1);
  /* Global Design System (Oriven 1.0) — one shared layout system for every
     non-Launch workspace (Campaigns/Intelligence/Business/Autopilot).
     Every workspace's content wrapper resolves to these same values
     instead of each page defining its own max-width/padding, so the
     title's vertical/horizontal position — and everything below it — is
     pixel-identical across workspaces. Spacing scale used throughout:
     8 / 16 / 24 / 32 / 48. */
  --orv-content-maxw: 1040px;
  --orv-content-pad-x: 40px;
  --orv-content-pad-top: 40px;
  --orv-content-pad-bottom: 80px;
  --orv-title-gap: 32px;   /* space below the title block, before tabs or first content row */
  --orv-tabs-gap: 24px;    /* space below a tab row, before content */
  /* Campaigns command center — its own wider content column (Overview/Live
     Campaigns/Drafts all share this one value instead of each hardcoding
     1240px separately), used by #orvHubTabsCampaigns/.prf-wrap/
     #page-ads-manager/.camp-hub so their left edges line up exactly. */
  --camp-content-maxw: 1440px;

  /* Premium Motion System (Oriven 1.0) — one shared timing/easing pair for
     every interaction in the app. Ease-out, natural deceleration, no
     bounce. Hover/press treatments below read var(--green)/var(--glt)/
     var(--gpale) — the same tokens the Accent Color picker in Settings
     already overrides on <body> (settings.js:_applyAccent) — so every
     hover, glow and focus ring automatically follows the user's chosen
     accent instead of a hardcoded colour. */
  --orv-t: var(--t);                              /* alias — one true source of truth is --t above */
  --orv-t-fast: 120ms cubic-bezier(.22,.61,.36,1);
  --orv-t-slow: 220ms cubic-bezier(.22,.61,.36,1);
  --orv-lift-sm: -1px;
  --orv-lift: -2px;
  --orv-scale: 1.012;

  /* Global semantic color system (Visual Life pass) — restrained secondary
     accents for category/state differentiation, distinct from --green
     (which stays the one primary brand/action color). NOT new colors:
     these are the exact same values Business's own 6-category cards
     already use successfully (.bic-card-brand/-audience/-competition/
     -advertising/-knowledge, styles.css ~48068-48079) — reused here
     verbatim so the wider app's secondary palette is provably the same
     one already validated on Business, not a parallel invention. Fixed
     (not theme-switched) on purpose, matching that same precedent —
     these read correctly on both the light workspace surfaces and
     Business's own always-dark canvas. Use sparingly: small dots,
     borders, tinted backgrounds, icon accents — never a dominant fill. */
  --sem-blue:   #60A5FA;
  --sem-cyan:   #22D3EE;
  --sem-amber:  #FACC15;
  --sem-orange: #F97316;
  --sem-purple: #A78BFA;
  --sem-teal:   #34D399;
  --sem-red:    #F87171;
}

/* ==========================================================================
   ORIVEN RESPONSIVE BREAKPOINTS — canonical tier list (for new rules only)
   --------------------------------------------------------------------------
   1600px  xl-desktop   ultra-wide tightening (rare, use sparingly)
   1400px  desktop      wide-desktop density reduction
   1200px  laptop       laptop-width tightening
   1024px  tablet-lg    landscape tablets / small laptops
    900px  tablet       sidebar -> icon rail (pre-existing, styles.css ~25514)
    768px  tablet-sm    mobile cutover: hamburger+drawer replaces sidebar,
                         modals -> bottom sheet, AI panel -> full-screen
    640px  mobile-lg    large phones / small-tablet portrait
    480px  mobile       standard phones
    375px  mobile-sm    small phones; rules here must hold down to 320px
   --------------------------------------------------------------------------
   Every NEW @media rule added as part of the responsive-design-system
   initiative uses one of these 9 values, no new one-off numbers. Pre-
   existing @media rules elsewhere in this file (there are ~200, on many
   other values) are intentionally left as-is — retrofitting them is out
   of scope; only rules touched anyway as part of this initiative get
   snapped to this ladder.
   ========================================================================== */

/* ── DARK MODE ───────────────────────────────────────────────── */
body.dark-mode{
  --bg:#0A0A0A;
  --bg2:#1A1A1C;
  --bg3:#252528;
  --surface:#18181A;
  --sf2:#1F1F21;
  --green:#B7FF2A;
  --gm:#9FE81F;
  --glt:rgba(183,255,42,0.08);
  --gpale:rgba(183,255,42,0.05);
  --green-deep:#000000;
  --charcoal:#F0F0F0;
  --c2:#D4D4D6;
  --muted:#8A8A8E;
  --m2:#636366;
  --border:#2C2C2E;
  --b2:#3A3A3C;
  --warn-bg:#2C2000;
  --warn-c:#FBBF24;
  --err-bg:#2C0A0A;
  --err-c:#F87171;
  /* Global Design System — --ap-text/--ap-muted (below) were declared
     dark-only under the "ap-" legacy design system (originally a
     dark-only redesign, predating the light/dark toggle) and never made
     theme-reactive, leaving page titles/subtitles/empty-states on
     Campaigns/Autopilot/Assets invisible-on-light. Preserving the exact
     existing values here so dark mode is pixel-identical; the :root
     defaults below now hold real light-mode values instead. */
  --ap-text:rgba(255,255,255,.88);
  --ap-muted:rgba(255,255,255,.35);
  /* --ap-bg3/--ap-border: same defect as --ap-text/--ap-muted above, found
     while redesigning Drafts — .camp-card (styles.css ~19756) reads these
     with !important, so the :root light-mode value below is what actually
     renders; restoring the original dark values here keeps dark mode
     pixel-identical. Confirmed by direct render: without this, Draft cards
     showed dark charcoal text (--ap-text's own light-mode fix) on top of
     an unconditionally-dark #1A1A1D background — invisible campaign names. */
  --ap-bg3:rgba(26,26,29,1);
  --ap-border:rgba(255,255,255,.08);
  /* --ap-bg/--ap-bg2: same defect as --ap-bg3/--ap-border above -- .app's
     own background (styles.css ~19532, plus .mc/.cws-main) painted these
     unconditionally dark in EVERY theme, never made light-mode-reactive.
     Root cause of the black "cutout" around .orv-sb's rounded top-right/
     bottom-right corners in light mode: .app sits directly behind the
     sidebar, so its always-dark background showed through the gap the
     border-radius carves out. Restoring the original dark values here;
     the :root defaults below now hold real light-mode values. */
  --ap-bg:rgba(9,9,11,1);
  --ap-bg2:rgba(17,17,19,1);
  --sh:0 1px 3px rgba(0,0,0,.3);
  --shm:0 2px 8px rgba(0,0,0,.4),0 4px 16px rgba(0,0,0,.3);
  --shl:0 8px 32px rgba(0,0,0,.5);
}
body.dark-mode .chat-ai-avatar{background:var(--green)}
body.dark-mode .btn-p{background:var(--green)}
body.dark-mode .btn-p:hover{background:var(--gm)}
body.dark-mode .tgl.on{background:var(--green)}
body.dark-mode .chat-send{background:var(--green)}
body.dark-mode .chat-send:hover{background:var(--gm)}
body.dark-mode .cr-headline em{color:var(--green)}
body.dark-mode .ni.active{background:var(--gpale);color:var(--gm)}
body.dark-mode .id-filt.id-filt-active{background:color-mix(in srgb, var(--green) 12%, transparent);border-color:color-mix(in srgb, var(--green) 40%, transparent);color:var(--green)}

html{font-size:14px}
body{font-family:'Geist',system-ui,sans-serif;background:var(--bg);color:var(--charcoal);height:100vh;overflow:hidden;display:flex}
input,select,textarea,button{font-family:inherit;font-size:inherit}
button{cursor:pointer}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--b2);border-radius:3px}
.hidden{display:none!important}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:6px;border-radius:var(--r);padding:8px 16px;font-size:13px;font-weight:500;border:none;transition:all var(--t);line-height:1;white-space:nowrap}
.btn:active{transform:scale(.97)}
.btn-p{background:var(--green);color:#000}
.btn-p:hover{background:var(--gm);transform:translateY(-1px);box-shadow:0 4px 12px color-mix(in srgb, var(--green) 30%, transparent)}
.btn-p:active{transform:scale(.97);box-shadow:0 2px 6px color-mix(in srgb, var(--green) 20%, transparent)}
.btn-p:disabled{background:var(--bg3);color:var(--m2);cursor:not-allowed;transform:none;box-shadow:none}
.btn-g{background:transparent;color:var(--c2);border:1px solid var(--b2)}
.btn-g:hover{background:color-mix(in srgb, var(--green) 6%, var(--bg2))}
.btn-g:disabled{color:var(--m2);cursor:not-allowed}
.btn-d{background:var(--err-bg);color:var(--err-c);border:1px solid #FECACA}
.btn-d:hover{background:#FEE2E2}
.btn-sm{padding:5px 12px;font-size:12px}

/* FORM */
.inp{width:100%;background:var(--bg2);border:1px solid var(--b2);border-radius:var(--r);padding:9px 12px;font-size:13px;color:var(--charcoal);outline:none;transition:border-color var(--t),background var(--t)}
.inp:focus{border-color:var(--gm);background:var(--surface)}
.inp::placeholder{color:var(--m2)}
textarea.inp{resize:vertical;min-height:80px}
.sel{width:100%;background:var(--bg2);border:1px solid var(--b2);border-radius:var(--r);padding:9px 12px;font-size:13px;color:var(--charcoal);outline:none;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}
.sel:focus{border-color:var(--gm)}
.lbl{display:block;font-size:12px;font-weight:500;color:var(--c2);margin-bottom:5px}
.fg{margin-bottom:16px}
.gb-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px}
.fb{display:inline-flex;align-items:center;padding:6px 13px;border-radius:20px;border:1.5px solid var(--border,#2a2a2a);background:var(--bg2);color:var(--muted,#888);font-size:12px;font-weight:500;cursor:pointer;transition:border-color .15s,color .15s,background .15s;user-select:none;letter-spacing:.01em;line-height:1}
.fb:hover{border-color:#5a5a5a;color:var(--charcoal,#f0f0f0)}
.fb.active{border-color:var(--green);background:color-mix(in srgb, var(--green) 8%, transparent);color:var(--green);font-weight:600}

/* UTILS */
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600}
.bg-green{background:var(--glt);color:var(--gm)}
.bg-warm{background:var(--warn-bg);color:var(--warn-c)}
.bg-grey{background:var(--bg3);color:var(--muted)}
.bg-red{background:var(--err-bg);color:var(--err-c)}
.tgl-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border)}
.tgl-row:last-child{border-bottom:none}
.tgl{width:38px;height:21px;background:var(--bg3);border-radius:11px;position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}
.tgl.on{background:var(--green)}
.tgl[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.tgl:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.tgl::after{content:'';position:absolute;width:15px;height:15px;background:#fff;border-radius:50%;top:3px;left:3px;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.tgl.on::after{left:20px}
.tgl-lbl{font-size:13px;color:var(--charcoal)}
.tgl-sub{font-size:12px;color:var(--muted);margin-top:2px}
.hr{height:1px;background:var(--border);margin:16px 0}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:56px 32px;background:var(--surface);border:1px dashed var(--b2);border-radius:var(--rx)}
.empty-ico{width:52px;height:52px;background:var(--bg2);border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.empty-ico svg{width:24px;height:24px;color:var(--m2)}
.empty-ttl{font-size:15px;font-weight:600;color:var(--c2);margin-bottom:6px}
.empty-sub{font-size:13px;color:var(--muted);line-height:1.6;max-width:280px;margin-bottom:20px}
.sec-lbl{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--m2);margin-bottom:10px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

/* MODAL */
.mbk{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:900;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .2s}
.mbk.open{opacity:1;pointer-events:all}
/* The plan modal sits above all app chrome: sidebar (.orv-sb 9200), Oriven
   Chat (9250), launcher (9295) and rail tooltips (9310), so its backdrop
   blocks the whole interface. Below the welcome modal (.ob2-overlay 9900)
   and the full-screen guest/landing overlays, which never show with it. */
#modal-paywall{z-index:9400}
.modal{background:var(--surface);border-radius:var(--rx);padding:28px;box-shadow:var(--shl);width:440px;max-width:calc(100vw - 40px);max-height:calc(100vh - 80px);overflow-y:auto;transform:translateY(8px);transition:transform .2s}
.mbk.open .modal{transform:translateY(0)}
.modal-ttl{font-family:'Instrument Serif',serif;font-size:20px;color:var(--charcoal);margin-bottom:4px}
.modal-sub{font-size:13px;color:var(--muted);margin-bottom:24px}
.modal-ft{display:flex;gap:8px;justify-content:flex-end;margin-top:24px}

/* TOAST — base opacity/pointer-events toggle only; position/size/color come
   from the canonical .toast block further down (search "── TOAST ──"), which
   uses !important throughout. .ok/.warn need !important here too so their
   higher specificity (two classes) actually wins over that block's base
   !important background in light mode (dark mode already has its own
   override, see body.dark-mode .toast.ok). */
.toast{opacity:0;transition:opacity var(--orv-t-slow,220ms cubic-bezier(.22,.61,.36,1)),transform var(--orv-t-slow,220ms cubic-bezier(.22,.61,.36,1));pointer-events:none;display:flex;align-items:center;gap:8px}
.toast.show{opacity:1}
.toast.ok{background:var(--green) !important;color:#000 !important}
.toast.ok::before{content:'✓';font-weight:700}
.toast.warn{background:#92400E !important}

/* LOADING */
.spin{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}
.lbar{height:3px;background:var(--bg3);border-radius:2px;overflow:hidden}
.lbar-fill{height:100%;background:var(--green);border-radius:2px;animation:lbar 1.8s ease-in-out infinite}
@keyframes lbar{0%{width:0%;margin-left:0}50%{width:70%;margin-left:15%}100%{width:0%;margin-left:100%}}
.glov{position:fixed;inset:0;z-index:800;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .25s}
.glov.open{opacity:1;pointer-events:all}
.glov-inner{background:var(--surface);border-radius:var(--rx);padding:40px;text-align:center;width:360px;transform:translateY(10px);transition:transform .25s}
.glov.open .glov-inner{transform:translateY(0)}
.glov h3{font-family:'Instrument Serif',serif;font-size:20px;color:var(--charcoal);margin-bottom:6px;margin-top:16px}
.glov p{font-size:13px;color:var(--muted);margin-bottom:24px}

/* ═══ LAYOUT ═══════════════════════════════════════════════════ */
.app{display:flex;height:100vh;width:100%;overflow:hidden;margin-top:0}

/* SIDEBAR ─────────────────────────────────────────────────────
   Two flex children:
     .sb-top    — logo + nav, flex:1 + min-height:0, scrolls internally if needed
     .sb-bottom — settings + plan + identity, flex-shrink:0, NEVER clips
   .sb-bottom sits naturally after .sb-top; with flex:1 on .sb-top the
   bottom block is always anchored right above the viewport floor with
   sufficient padding so it never touches the screen edge.
──────────────────────────────────────────────────────────────── */
.sb{
  width:200px;min-width:200px;
  background:var(--surface);border-right:1px solid var(--border);
  display:flex;flex-direction:column;
  overflow:hidden;
}

/* TOP: logo + navigation — grows to fill remaining space above the bottom block */
.sb-top{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.sb-logo{padding:20px 16px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.logo{display:flex;align-items:center;gap:8px}
.logo-mk{width:44px;height:44px;background:transparent;border-radius:0;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.logo-mk svg{width:44px;height:44px}
.logo-name{font-family:'Instrument Serif',serif;font-size:15px;color:var(--charcoal);letter-spacing:-.2px}
.logo-name span{color:var(--gm)}
.sb-nav{flex:1;min-height:0;padding:8px 8px;overflow-y:auto}

/* Nav items */
.ni{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;cursor:pointer !important;pointer-events:all !important;font-size:13px;color:var(--muted);transition:all var(--t);user-select:none;margin-bottom:2px}
.ni:hover{background:var(--bg);color:var(--charcoal)}
.ni.active{background:var(--gpale);color:var(--green);font-weight:500}
.ni svg{width:16px;height:16px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.6;pointer-events:none}
.ni span{pointer-events:none}

/* BOTTOM: flex-shrink:0 means it NEVER compresses regardless of viewport height.
   padding-bottom:20px lifts the content away from the screen edge so it
   never feels clipped even on short/laptop screens. */
.sb-bottom{
  flex-shrink:0;
  border-top:1px solid var(--border);
  padding:8px 8px 20px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

/* Identity wrapper */
.sb-ft{padding:4px 0 0}

/* Identity card */
.sb-identity{
  background:var(--green-deep);
  border-radius:11px;
  padding:11px 13px 12px;
  margin:2px 4px 0;
  overflow:hidden;
  min-width:0;
}
.sb-identity-name{font-size:13px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-identity-sub{font-size:11px;color:rgba(255,255,255,.5);margin-top:3px;overflow:hidden}
.sb-identity-sub-row{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}
.sb-rank-line{display:flex;align-items:center;gap:5px;margin:3px 0 0}
.sb-rank-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}
.sb-rank-name{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.4)}
.sb-signout{cursor:pointer;transition:color .15s}
.sb-signout:hover{color:rgba(255,255,255,.9)}

/* MAIN CONTENT */
.mc{flex:1;overflow-y:auto;min-height:0}
.mc.mc-locked{overflow:hidden}
.page{display:none;min-height:100%}
.page.active{display:block}

/* ═══ DASHBOARD ════════════════════════════════════════════════ */
#page-dashboard{display:none}
#page-dashboard.active{display:flex;flex-direction:column;height:100%}


/* ── Animations ── */
@keyframes dashFadeUp{
  from{opacity:0;transform:translateY(14px)}
  to  {opacity:1;transform:translateY(0)}
}
@keyframes dashDotPulse{0%,100%{opacity:1}50%{opacity:.35}}

/* ── Container ── */
.dash-outer{
  width:100%;
  display:flex;flex-direction:column;height:100%;
  padding:20px 32px 14px;
  gap:12px;
}

/* ── AI Status Hero Band ── */
.dash-hero-band{
  display:grid;
  grid-template-columns:1fr auto;
  gap:32px;
  align-items:center;
  padding:22px 26px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  flex-shrink:0;
  box-shadow:var(--sh);
  animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .04s both;
}

/* Eyebrow */
.dash-eyebrow{
  display:flex;align-items:center;gap:8px;
  margin-bottom:14px;
}
.dash-eyebrow-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--border);
  flex-shrink:0;
  transition:background .3s,box-shadow .3s;
}
.dash-eyebrow-dot.active{
  background:var(--green);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
  animation:dashDotPulse 2.5s ease-in-out infinite;
}
.dash-eyebrow-txt{
  font-size:11px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);
}

/* Headline */
/* Home Typography Fix pass — this rule predates Dashboard's revival from
   the old marketing-style "Brand Score" page and still carried that
   page's font-family:'Instrument Serif' + font-weight:400 + -1px
   letter-spacing. A later global rule (search this file for "FONT
   OVERRIDE — kill serif everywhere") already force-overrides the
   FONT-FAMILY specifically back to Geist with !important, so the
   headline was never actually rendering in a serif face — but weight
   (400) and letter-spacing/line-height were untouched by that override,
   so it was rendering as a thin, loosely-tracked Geist heading instead
   of the bold, tightly-tracked convention every real app page title uses
   (.cr2-h1/.rsc-page-h1/.lq-hdr-title: font-weight:800, letter-spacing:
   -.02em, line-height:1.22) — that weight/tracking mismatch, not the
   font family, is what actually read as "not OrivenAI's real
   typography." Fixed at the source instead of leaving it to the
   downstream override: font-family removed (inherits body's Geist
   directly, no longer needs the global override to correct it), weight/
   letter-spacing/line-height now match the app's real heading
   convention. Size stays a larger clamp (a hero greeting, not a static
   page title) since that's a legitimate scale choice, not a typography
   mismatch. */
.dash-headline{
  font-size:clamp(24px,3vw,38px);
  font-weight:800;
  color:var(--charcoal);
  letter-spacing:-.02em;
  line-height:1.22;
  margin-bottom:10px;
}
.dash-hl-grad{color:var(--green)}

/* Status message */
.dash-status-msg{
  font-size:14px;color:var(--muted);
  line-height:1.6;max-width:440px;
  margin-bottom:18px;
}

/* Brand active pill */
.dash-brand-pill{
  display:inline-flex;align-items:center;gap:7px;
  background:color-mix(in srgb, var(--green) 6%, transparent);
  border:1px solid color-mix(in srgb, var(--green) 18%, transparent);
  padding:5px 13px;border-radius:20px;
  margin-top:4px;
}
.dash-brand-pill-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--green);flex-shrink:0;
  animation:dashDotPulse 2.5s ease-in-out infinite;
}
.dash-brand-pill-name{
  font-size:12px;font-weight:600;color:var(--green);
}

/* Right: level indicator */
.dash-hero-right{
  display:flex;flex-direction:column;align-items:center;
  flex-shrink:0;
}
.dash-level-display{
  display:flex;flex-direction:column;align-items:center;gap:10px;
}
.dash-level-num{
  font-family:'Instrument Serif',serif;
  font-size:54px;font-weight:400;
  color:var(--charcoal);letter-spacing:-2px;line-height:1;
}
.dash-level-lbl{
  font-size:10px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);
}
.dash-level-bar-track{
  width:68px;height:2px;
  background:var(--border);border-radius:1px;overflow:hidden;
}
.dash-level-bar-fill{
  height:100%;background:var(--green);border-radius:1px;
  transition:width 1.2s cubic-bezier(.16,1,.3,1);
  box-shadow:0 0 6px color-mix(in srgb, var(--green) 50%, transparent);
}

/* ── Section headers ── */
.dash-section-hd{
  display:flex;align-items:center;gap:10px;
  margin-bottom:10px;
  flex-shrink:0;
}
.dash-s-eyebrow{
  font-size:11px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);
}

/* ── Lower canvas: activity + evolution ── */
.dash-lower{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  flex:1;min-height:0;
  animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .12s both;
}
.dash-lower .dash-col-item{
  flex:1;min-height:0;
}

/* ── Column panels (activity + evolution in right stack) ── */
.dash-col-item{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px 20px;
  overflow:hidden;
  display:flex;flex-direction:column;
}
.dash-col-item .dash-section-hd{margin-bottom:10px;flex-shrink:0}
.dash-col-item>div:not(.dash-section-hd){overflow-y:auto;flex:1;min-height:0}

/* ── Activity ── */
.dash-act-list{display:flex;flex-direction:column;gap:0}
.dash-act-item{
  display:flex;align-items:center;gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--border);
}
.dash-act-item:first-child{padding-top:0}
.dash-act-item:last-child{border-bottom:none;padding-bottom:0}
.dash-act-ico{
  width:32px;height:32px;border-radius:8px;
  background:var(--bg2);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.dash-act-ico svg{width:13px;height:13px;stroke:var(--muted);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.dash-act-body{flex:1;min-width:0}
.dash-act-label{font-size:13px;font-weight:500;color:var(--charcoal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-act-time{font-size:11px;color:var(--muted);margin-top:2px}
.dash-act-empty{padding:16px 0}
.dash-act-empty-ttl{font-size:13px;color:var(--muted);font-weight:500;margin-bottom:4px}
.dash-act-empty-sub{font-size:12px;color:var(--m2,#9E9E9E);line-height:1.5}

/* ── Intelligence Level panel ── */
.dash-il-msg{
  font-size:14px;color:var(--charcoal);
  line-height:1.6;margin:0 0 16px;
}
.dash-il-bar-head{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:7px;
}
.dash-il-bar-lbl{font-size:11px;font-weight:500;color:var(--muted)}
.dash-il-bar-val{font-size:11px;font-weight:700;color:var(--green)}
.dash-il-bar-track{
  height:3px;background:var(--border);border-radius:2px;
  overflow:hidden;margin-bottom:16px;
}
.dash-il-bar-fill{
  height:100%;background:var(--green);border-radius:2px;
  transition:width 1.2s cubic-bezier(.16,1,.3,1);
  box-shadow:0 0 8px color-mix(in srgb, var(--green) 35%, transparent);
}
.dash-il-attrs{display:flex;flex-wrap:wrap;gap:6px}
.dash-il-attr{
  font-size:11px;font-weight:500;color:var(--muted);
  background:var(--bg2);border:1px solid var(--border);
  border-radius:6px;padding:4px 9px;line-height:1;
}

/* ── Stats Row ── */
.dash-stats-row{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
  flex-shrink:0;
  animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .28s both;
}
.dash-stat-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 18px;
  transition:border-color .15s ease, background .15s ease;
}
/* Visual Correction pass — a top border + colored number wasn't enough
   separation from the dark page background (founder review). These are
   now genuinely tinted SURFACES, not just accented text — same
   light-mode "pale tint + deep saturated text" / dark-mode "dark tint +
   bright saturated text" pairing this codebase already uses for --warn-
   bg/--warn-c and --err-bg/--err-c, generated from the same --sem-*
   tokens (and --green for Live) rather than new hand-picked hex values.
   Label stays --muted in every card (consistent secondary text weight);
   only the big number and the card's own surface carry the category
   color, so it reads as "a blue card" / "a purple card" at a glance
   without needing colored labels too. */
.dash-stat-cat-live{ background:color-mix(in srgb, var(--green) 13%, var(--surface)); border-color:color-mix(in srgb, var(--green) 35%, var(--border)); }
.dash-stat-cat-live .dash-stat-val{ color:color-mix(in srgb, var(--green) 70%, black); }
body.dark-mode .dash-stat-cat-live .dash-stat-val{ color:var(--green); }

.dash-stat-cat-ready{ background:color-mix(in srgb, var(--sem-blue) 16%, var(--surface)); border-color:color-mix(in srgb, var(--sem-blue) 38%, var(--border)); }
.dash-stat-cat-ready .dash-stat-val{ color:color-mix(in srgb, var(--sem-blue) 75%, black); }
body.dark-mode .dash-stat-cat-ready .dash-stat-val{ color:color-mix(in srgb, var(--sem-blue) 85%, white); }

.dash-stat-cat-draft{ background:color-mix(in srgb, var(--sem-amber) 18%, var(--surface)); border-color:color-mix(in srgb, var(--sem-amber) 40%, var(--border)); }
.dash-stat-cat-draft .dash-stat-val{ color:color-mix(in srgb, var(--sem-amber) 65%, black); }
body.dark-mode .dash-stat-cat-draft .dash-stat-val{ color:var(--sem-amber); }

.dash-stat-cat-manual{ background:color-mix(in srgb, var(--sem-purple) 16%, var(--surface)); border-color:color-mix(in srgb, var(--sem-purple) 38%, var(--border)); }
.dash-stat-cat-manual .dash-stat-val{ color:color-mix(in srgb, var(--sem-purple) 65%, black); }
body.dark-mode .dash-stat-cat-manual .dash-stat-val{ color:color-mix(in srgb, var(--sem-purple) 88%, white); }
.dash-stat-val{
  font-size:20px;font-weight:700;
  color:var(--charcoal);
  letter-spacing:-.5px;margin-bottom:4px;
  font-family:'Geist',sans-serif;
  line-height:1;
}
.dash-stat-lbl{
  font-size:11px;font-weight:500;
  color:var(--muted);
  text-transform:uppercase;letter-spacing:.06em;
}

/* ── Dashboard — advertising-overview content (replaces the old client-
   side Brand Score hero-right/lower-right panels; the .dash-il-* rules
   above are now unused but left in place, same "retire, don't delete"
   convention as the rest of this file). ── */

/* Quick actions row, hero-left */
.dash-quick-actions{display:flex;flex-wrap:wrap;gap:8px}
.dash-qa-btn{
  font-size:12.5px;font-weight:600;color:var(--charcoal);
  background:var(--bg2);border:1px solid var(--border);
  border-radius:9px;padding:8px 14px;cursor:pointer;
  transition:border-color .16s,color .16s,background .16s;
}
.dash-qa-btn:hover{border-color:var(--green);color:var(--green)}

/* Connected-platforms card, hero-right */
.dash-conn-status{
  display:flex;flex-direction:column;gap:10px;
  background:var(--bg2);border:1px solid var(--border);
  border-radius:14px;padding:14px 16px;min-width:216px;
}
.dash-conn-hd{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dash-conn-rows{display:flex;flex-direction:column;gap:8px}
.dash-conn-row{display:flex;align-items:center;gap:8px;font-size:12.5px}
.dash-conn-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.dash-conn-dot-off{background:var(--border)}
.dash-conn-dot-on{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent)}
.dash-conn-lbl{color:var(--charcoal);font-weight:500;flex:1}
.dash-conn-state{color:var(--muted);font-size:11.5px}
.dash-conn-manage{
  align-self:flex-start;font-size:12px;font-weight:600;color:var(--green);
  background:none;border:none;cursor:pointer;padding:0;
}
.dash-conn-manage:hover{text-decoration:underline}

/* Autopilot status panel (right column of .dash-lower) */
.dash-ap-status{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.dash-ap-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.dash-ap-off .dash-ap-dot{background:var(--muted)}
.dash-ap-armed .dash-ap-dot{background:var(--green)}
.dash-ap-auto .dash-ap-dot{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent)}
.dash-ap-lbl{font-size:12.5px;font-weight:700;letter-spacing:.03em;color:var(--charcoal)}
.dash-ap-sub{font-size:12px;color:var(--muted);line-height:1.5;margin-bottom:10px}
.dash-ap-cta{
  font-size:12px;font-weight:600;color:var(--green);
  background:none;border:1px solid color-mix(in srgb, var(--green) 35%, transparent);
  border-radius:8px;padding:7px 12px;cursor:pointer;
}
.dash-ap-cta:hover{background:color-mix(in srgb, var(--green) 8%, transparent)}

/* Recent creative strip */
#dashAssetsWrap{flex-shrink:0}
.dash-assets-strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:2px}
.dash-asset-thumb{
  flex:0 0 auto;width:88px;height:88px;border-radius:10px;overflow:hidden;
  border:1px solid var(--border);background:var(--bg2);
}
.dash-asset-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* Empty state — replaces the whole body's content when nothing exists yet */
.dash-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:14px;padding:40px 20px;
}
.dash-empty-ttl{font-size:16px;font-weight:600;color:var(--charcoal)}
.dash-empty-sub{font-size:13px;color:var(--muted);max-width:380px;line-height:1.6}
.dash-empty-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}

/* ── Responsive ── */
@media(max-width:1000px){
  .dash-stats-row{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .dash-outer{padding:14px 20px 8px;gap:10px;height:auto}
  .dash-hero-band{grid-template-columns:1fr;gap:20px;padding:18px 20px}
  .dash-hero-right{flex-direction:row;align-items:center;justify-content:flex-start;gap:20px}
  .dash-conn-status{width:100%;min-width:0}
  .dash-lower{grid-template-columns:1fr}
  .dash-col-item{overflow:visible;height:auto}
  .dash-col-item>div:not(.dash-section-hd){overflow-y:visible;flex:none;height:auto}
}
@media(max-width:520px){
  .dash-lower{grid-template-columns:1fr}
  .dash-hero-right{flex-direction:column;align-items:stretch}
  .dash-asset-thumb{width:76px;height:76px}
}


/* ═══ CREATE ═══════════════════════════════════════════════════ */
#page-create{display:none}
#page-create.active{display:flex;flex-direction:column}

.cr-outer{width:100%;max-width:1040px;margin:0 auto;padding:0 40px 80px}

/* Hero */
.cr-hero{position:relative;padding:44px 0 52px;overflow:hidden;text-align:center}
.cr-hero-glow{position:absolute;top:-60px;left:50%;width:600px;height:600px;transform:translateX(-50%);background:radial-gradient(ellipse at center,color-mix(in srgb, var(--green) 5.5%, transparent) 0%,transparent 65%);pointer-events:none}
.cr-eyebrow{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}
.cr-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--border);flex-shrink:0;transition:background .3s,box-shadow .3s}
.cr-eyebrow-dot.active{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);animation:dashDotPulse 2.5s ease-in-out infinite}
.cr-eyebrow-txt{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cr-headline{font-family:'Instrument Serif',serif;font-size:clamp(36px,5vw,60px);font-weight:400;color:var(--charcoal);letter-spacing:-1.8px;line-height:1.05;margin-bottom:14px}
.cr-headline em{font-style:italic;color:var(--green)}
.cr-sub{font-size:15px;color:var(--muted);line-height:1.7;max-width:420px;margin:0 auto}

/* Unified creation grid */
.cr-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:14px;margin-bottom:14px;
  animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .08s both;
}

/* ── Base card ── */
.cr-card{
  position:relative;overflow:hidden;
  border-radius:18px;border:1px solid;
  padding:28px 28px 24px;min-height:210px;
  display:flex;flex-direction:column;
  cursor:pointer;
  transition:border-color .22s,box-shadow .22s,transform .28s cubic-bezier(.16,1,.3,1);
}
.cr-card::before{content:'';position:absolute;inset:0;opacity:.75;transition:opacity .3s;pointer-events:none}
.cr-card:hover{transform:translateY(-3px)}
.cr-card:hover::before{opacity:1}

.cr-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px;gap:10px}
.cr-card-ico{width:42px;height:42px;border-radius:11px;border:1px solid;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color .2s}
.cr-card-ico svg{width:20px;height:20px;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.cr-card-tag{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-top:4px;text-align:right;line-height:1.3}
.cr-card-body{flex:1;min-height:0}
.cr-card-title{font-size:18px;font-weight:700;letter-spacing:-.4px;line-height:1.15;margin-bottom:8px}
.cr-card-desc{font-size:12px;line-height:1.6}
.cr-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:18px;flex-shrink:0}
.cr-card-chips{display:flex;gap:5px;flex-wrap:wrap}
.cr-card-chip{font-size:9px;font-weight:600;padding:3px 7px;border-radius:4px;letter-spacing:.04em}
.cr-card-arrow{opacity:0;transform:translateX(-4px);transition:opacity .2s,transform .2s;flex-shrink:0}
.cr-card-arrow svg{width:13px;height:13px;fill:none;stroke-width:1.8;stroke-linecap:round}
.cr-card:hover .cr-card-arrow{opacity:1;transform:translateX(0)}
.cr-card-top-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.cr-credit-badge{font-size:10px;font-weight:700;padding:3px 9px;border-radius:20px;letter-spacing:.04em;border:1px solid transparent;white-space:nowrap;cursor:default;line-height:1.4}
.cr-card-ugc .cr-credit-badge        {background:rgba(255,94,58,.12);border-color:rgba(255,94,58,.28);color:#FF5E3A}
.cr-card-campaign .cr-credit-badge   {background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.28);color:#A78BFA}
.cr-card-image .cr-credit-badge      {background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.28);color:#3B82F6}
.cr-card-text .cr-credit-badge       {background:color-mix(in srgb, var(--green) 12%, transparent);border-color:color-mix(in srgb, var(--green) 28%, transparent);color:var(--green)}
.cr-card-web .cr-credit-badge        {background:rgba(34,211,238,.12);border-color:rgba(34,211,238,.28);color:#22D3EE}
.cr-card-email .cr-credit-badge      {background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.28);color:#22C55E}
.cr-card-deck .cr-credit-badge       {background:rgba(56,189,248,.12);border-color:rgba(56,189,248,.28);color:#38BDF8}
.cr-card-poster .cr-credit-badge     {background:rgba(192,132,252,.12);border-color:rgba(192,132,252,.28);color:#C084FC}
.cr-card-infographic .cr-credit-badge{background:rgba(20,184,166,.12);border-color:rgba(20,184,166,.28);color:#2DD4BF}
.cf-credit-pill{font-size:11px;font-weight:700;padding:4px 11px;border-radius:20px;letter-spacing:.04em;border:1px solid transparent;flex-shrink:0}
.cf-credit-pill--ugc        {background:rgba(255,94,58,.12);border-color:rgba(255,94,58,.28);color:#FF5E3A}
.cf-credit-pill--campaign   {background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.28);color:#A78BFA}
.cf-credit-pill--image      {background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.28);color:#3B82F6}
.cf-credit-pill--text       {background:color-mix(in srgb, var(--green) 12%, transparent);border-color:color-mix(in srgb, var(--green) 28%, transparent);color:var(--green)}
.cf-credit-pill--web        {background:rgba(34,211,238,.12);border-color:rgba(34,211,238,.28);color:#22D3EE}
.cf-credit-pill--email      {background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.28);color:#22C55E}
.cf-credit-pill--deck       {background:rgba(56,189,248,.12);border-color:rgba(56,189,248,.28);color:#38BDF8}
.cf-credit-pill--poster     {background:rgba(192,132,252,.12);border-color:rgba(192,132,252,.28);color:#C084FC}
.cf-credit-pill--infographic{background:rgba(20,184,166,.12);border-color:rgba(20,184,166,.28);color:#2DD4BF}

/* ── UGC Creator — #FF5E3A ── */
.cr-card-ugc{background:linear-gradient(140deg,#221A14,#1A1714);border-color:rgba(255,94,58,.2);box-shadow:inset 0 0 60px rgba(255,94,58,.06)}
.cr-card-ugc::before{background:radial-gradient(ellipse at 20% 120%,rgba(255,94,58,.18) 0%,transparent 60%)}
.cr-card-ugc:hover{border-color:rgba(255,94,58,.42);box-shadow:0 16px 48px rgba(255,94,58,.12),inset 0 0 60px rgba(255,94,58,.1)}
.cr-card-ugc .cr-card-ico{background:#2A1C10;border-color:rgba(255,94,58,.25)}
.cr-card-ugc .cr-card-ico svg{stroke:#FF5E3A}
.cr-card-ugc .cr-card-tag{color:rgba(255,94,58,.65)}
.cr-card-ugc .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-ugc .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-ugc .cr-card-chip{background:rgba(255,94,58,.09);color:rgba(255,94,58,.6);border:1px solid rgba(255,94,58,.14)}
.cr-card-ugc .cr-card-arrow svg{stroke:#FF5E3A}

/* ── Campaign — #A78BFA ── */
.cr-card-campaign{background:linear-gradient(140deg,#1C1428,#181420);border-color:rgba(167,139,250,.2);box-shadow:inset 0 0 60px rgba(167,139,250,.06)}
.cr-card-campaign::before{background:radial-gradient(ellipse at 20% 120%,rgba(167,139,250,.16) 0%,transparent 60%)}
.cr-card-campaign:hover{border-color:rgba(167,139,250,.42);box-shadow:0 16px 48px rgba(167,139,250,.12),inset 0 0 60px rgba(167,139,250,.1)}
.cr-card-campaign .cr-card-ico{background:#1E1232;border-color:rgba(167,139,250,.25)}
.cr-card-campaign .cr-card-ico svg{stroke:#A78BFA}
.cr-card-campaign .cr-card-tag{color:rgba(167,139,250,.65)}
.cr-card-campaign .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-campaign .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-campaign .cr-card-chip{background:rgba(167,139,250,.09);color:rgba(167,139,250,.6);border:1px solid rgba(167,139,250,.14)}
.cr-card-campaign .cr-card-arrow svg{stroke:#A78BFA}

/* ── Visuals — #3B82F6 ── */
.cr-card-image{background:linear-gradient(140deg,#142030,#141820);border-color:rgba(59,130,246,.2);box-shadow:inset 0 0 60px rgba(59,130,246,.06)}
.cr-card-image::before{background:radial-gradient(ellipse at 20% 120%,rgba(59,130,246,.16) 0%,transparent 60%)}
.cr-card-image:hover{border-color:rgba(59,130,246,.42);box-shadow:0 16px 48px rgba(59,130,246,.12),inset 0 0 60px rgba(59,130,246,.1)}
.cr-card-image .cr-card-ico{background:#0E2038;border-color:rgba(59,130,246,.25)}
.cr-card-image .cr-card-ico svg{stroke:#3B82F6}
.cr-card-image .cr-card-tag{color:rgba(59,130,246,.65)}
.cr-card-image .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-image .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-image .cr-card-chip{background:rgba(59,130,246,.09);color:rgba(59,130,246,.6);border:1px solid rgba(59,130,246,.14)}
.cr-card-image .cr-card-arrow svg{stroke:#3B82F6}

/* ── Text & Copy — var(--green) ── */
.cr-card-text{background:linear-gradient(140deg,#182210,#161A10);border-color:color-mix(in srgb, var(--green) 20%, transparent);box-shadow:inset 0 0 60px color-mix(in srgb, var(--green) 5%, transparent)}
.cr-card-text::before{background:radial-gradient(ellipse at 20% 120%,color-mix(in srgb, var(--green) 13%, transparent) 0%,transparent 60%)}
.cr-card-text:hover{border-color:color-mix(in srgb, var(--green) 38%, transparent);box-shadow:0 16px 48px color-mix(in srgb, var(--green) 10%, transparent),inset 0 0 60px color-mix(in srgb, var(--green) 8%, transparent)}
.cr-card-text .cr-card-ico{background:#162408;border-color:color-mix(in srgb, var(--green) 25%, transparent)}
.cr-card-text .cr-card-ico svg{stroke:var(--green)}
.cr-card-text .cr-card-tag{color:color-mix(in srgb, var(--green) 65%, transparent)}
.cr-card-text .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-text .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-text .cr-card-chip{background:color-mix(in srgb, var(--green) 8%, transparent);color:color-mix(in srgb, var(--green) 60%, transparent);border:1px solid color-mix(in srgb, var(--green) 14%, transparent)}
.cr-card-text .cr-card-arrow svg{stroke:var(--green)}

/* ── Web — #22D3EE ── */
.cr-card-web{background:linear-gradient(140deg,#102228,#141A1E);border-color:rgba(34,211,238,.2);box-shadow:inset 0 0 60px rgba(34,211,238,.06)}
.cr-card-web::before{background:radial-gradient(ellipse at 20% 120%,rgba(34,211,238,.16) 0%,transparent 60%)}
.cr-card-web:hover{border-color:rgba(34,211,238,.42);box-shadow:0 16px 48px rgba(34,211,238,.12),inset 0 0 60px rgba(34,211,238,.1)}
.cr-card-web .cr-card-ico{background:#0A2030;border-color:rgba(34,211,238,.25)}
.cr-card-web .cr-card-ico svg{stroke:#22D3EE}
.cr-card-web .cr-card-tag{color:rgba(34,211,238,.65)}
.cr-card-web .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-web .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-web .cr-card-chip{background:rgba(34,211,238,.08);color:rgba(34,211,238,.6);border:1px solid rgba(34,211,238,.14)}
.cr-card-web .cr-card-arrow svg{stroke:#22D3EE}

/* ── Brand AI — #F59E0B ── */
.cr-card-ai{background:linear-gradient(140deg,#221C08,#1A1710);border-color:rgba(245,158,11,.2);box-shadow:inset 0 0 60px rgba(245,158,11,.06)}
.cr-card-ai::before{background:radial-gradient(ellipse at 20% 120%,rgba(245,158,11,.16) 0%,transparent 60%)}
.cr-card-ai:hover{border-color:rgba(245,158,11,.42);box-shadow:0 16px 48px rgba(245,158,11,.12),inset 0 0 60px rgba(245,158,11,.1)}
.cr-card-ai .cr-card-ico{background:#2A1C00;border-color:rgba(245,158,11,.25)}
.cr-card-ai .cr-card-ico svg{stroke:#F59E0B}
.cr-card-ai .cr-card-tag{color:rgba(245,158,11,.65)}
.cr-card-ai .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-ai .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-ai .cr-card-chip{background:rgba(245,158,11,.08);color:rgba(245,158,11,.6);border:1px solid rgba(245,158,11,.14)}
.cr-card-ai .cr-card-arrow svg{stroke:#F59E0B}

/* Horizon strip */
.cr-horizon{animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .2s both}
.cr-horizon-hd{font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.cr-horizon-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cr-hor-item{background:var(--surface);border:1px dashed var(--border);border-radius:14px;padding:20px;display:flex;align-items:center;gap:14px;opacity:.65;cursor:default}
.cr-hor-ico{width:34px;height:34px;border-radius:9px;border:1px solid transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cr-hor-ico svg{width:16px;height:16px;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.cr-hor-shoots .cr-hor-ico{background:#030D0D;border-color:rgba(0,168,150,.2)}
.cr-hor-shoots .cr-hor-ico svg{stroke:#00A896}
.cr-hor-video .cr-hor-ico{background:#0D0700;border-color:rgba(249,115,22,.2)}
.cr-hor-video .cr-hor-ico svg{stroke:#F97316;color:#F97316}
.cr-hor-motion .cr-hor-ico{background:#07040E;border-color:rgba(120,80,220,.2)}
.cr-hor-motion .cr-hor-ico svg{stroke:#7850DC}
.cr-hor-title{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:3px}
.cr-hor-sub{font-size:11px;color:var(--muted)}
.cr-hor-badge{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:2px 7px;border-radius:4px;border:1px solid var(--border);margin-left:auto;flex-shrink:0}

@media(max-width:900px){
  .cr-grid{grid-template-columns:repeat(2,1fr)}
  .cr-horizon-list{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:540px){
  .cr-outer{padding:0 20px 60px}
  .cr-grid{grid-template-columns:1fr 1fr}
  .cr-horizon-list{grid-template-columns:1fr}
  .cr-headline{font-size:clamp(30px,8vw,40px)}
}

/* ── CREATE WORKSPACE ─────────────────────────────────────── */
#page-create-workspace{display:none;flex-direction:column}
#page-create-workspace.active{display:flex;height:100vh}
.cws-header{background:var(--surface);border-bottom:1px solid var(--border);padding:0 28px;height:52px;display:flex;align-items:center;gap:14px;flex-shrink:0}
.cws-back{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);cursor:pointer;transition:color var(--t)}
.cws-back:hover{color:var(--charcoal)}
.cws-back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.cws-type-badge{display:flex;align-items:center;gap:6px;background:var(--bg2);border-radius:20px;padding:4px 12px;font-size:12px;font-weight:600;color:var(--c2)}
.cws-type-badge svg{width:14px;height:14px;fill:none;stroke-width:1.8}

/* ── ASSISTANT page (kept, not in sidebar) ──────────────────── */
#page-aichat{display:none;flex-direction:column}
#page-aichat.active{display:flex;height:100%;overflow:hidden}
.chat-shell{display:flex;flex-direction:column;height:100%;min-height:0;max-width:780px;margin:0 auto;width:100%;padding:0 24px}
.chat-feed{flex:1;min-height:0;overflow-y:auto;padding:24px 0 16px;display:flex;flex-direction:column;gap:20px}
.chat-feed.feed-welcome{justify-content:center;overflow:hidden;padding:0 0 16px}
.chat-welcome{text-align:center;padding:0 20px 24px;max-width:480px;margin:0 auto;width:100%}
.chat-welcome-icon{width:56px;height:56px;background:var(--glt);border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto 20px}
.chat-welcome-icon svg{width:28px;height:28px;color:var(--green)}
.chat-welcome h2{font-family:'Instrument Serif',serif;font-size:28px;color:var(--charcoal);letter-spacing:-.4px;margin-bottom:10px}
.chat-welcome p{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:16px}
.chat-welcome-sub{font-size:12px;color:var(--m2);margin-bottom:20px!important}
.chat-suggestions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.chat-sug{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:7px 16px;font-size:13px;color:var(--c2);cursor:pointer;transition:all var(--t)}
.chat-sug:hover{background:var(--bg2);border-color:var(--b2)}
/* Assistant starter prompts — full-sentence chips */
.chat-suggestions.ast-starters{flex-direction:column;align-items:stretch;gap:6px}
.chat-suggestions.ast-starters .chat-sug{border-radius:10px;text-align:left;line-height:1.5;padding:10px 16px;font-size:13px}
.ast-clear-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0 16px;margin-bottom:4px;border-bottom:1px solid var(--border)}
.ast-hist-label{font-size:11px;color:var(--muted);letter-spacing:.04em}
.ast-clear-btn{font-size:11px;color:var(--muted);background:none;border:none;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:2px}
.ast-clear-btn:hover{color:var(--charcoal)}
.ast-memory-notice{font-size:12px;color:var(--muted);text-align:center;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin:8px 0}
.ast-memory-notice button{background:none;border:none;cursor:pointer;font-size:12px;color:var(--gm);font-weight:500;padding:0;margin-left:4px}
.ast-memory-notice button:hover{text-decoration:underline}
.chat-msg{display:flex;gap:12px;align-items:flex-start;max-width:100%}
.chat-msg.user{justify-content:flex-end}
.chat-bubble{border-radius:18px;padding:12px 16px;font-size:14px;line-height:1.6;max-width:72%}
.user-bubble{background:var(--green);color:#000;border-radius:18px 18px 4px 18px}
.ai-bubble{background:var(--surface);border:1px solid var(--border);border-radius:4px 18px 18px 18px;max-width:80%;padding:16px 18px}
.chat-ai-avatar{width:30px;height:30px;border-radius:8px;background:var(--green);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.chat-ai-avatar svg{width:16px;height:16px;color:#fff}
.chat-result-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.9px;color:var(--m2);margin-bottom:12px}
.chat-text-response{font-size:14px;line-height:1.7;color:var(--t1);white-space:pre-wrap;word-break:break-word}
.chat-visual{border-radius:14px;overflow:hidden;padding:32px 24px;text-align:center;margin:4px 0;min-height:160px;display:flex;flex-direction:column;justify-content:center;gap:8px}
.cv-brand{font-size:10px;color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:1.5px}
.cv-hl{font-family:'Instrument Serif',serif;font-size:22px;color:#fff;letter-spacing:-.4px;line-height:1.2}
.cv-sub{font-size:12px;color:rgba(255,255,255,.65);line-height:1.5}
.cv-cta{display:inline-block;background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:7px 18px;font-size:12px;font-weight:500;margin-top:6px;align-self:center}
.chat-ig{border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:10px;min-height:140px;justify-content:space-between}
.cig-top{display:flex;align-items:center;gap:8px}
.cig-dot{width:28px;height:28px;border-radius:7px;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;color:#fff}
.cig-name{font-size:12px;color:rgba(255,255,255,.8);font-weight:500}
.cig-hl{font-family:'Instrument Serif',serif;font-size:20px;color:#fff;letter-spacing:-.3px;line-height:1.2}
.cig-body{font-size:12px;color:rgba(255,255,255,.7);line-height:1.5}
.cig-cta{background:#fff;color:var(--green);border:none;border-radius:6px;padding:6px 14px;font-size:11px;font-weight:600;cursor:pointer;align-self:flex-start}
.chat-list{display:flex;flex-direction:column;gap:8px}
.chat-list-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.chat-list-item:last-child{border-bottom:none}
.chat-list-num{width:22px;height:22px;border-radius:50%;background:var(--glt);color:var(--gm);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.chat-list-item span:last-child{font-size:13px;color:var(--charcoal);line-height:1.55}
.chat-copy{display:flex;flex-direction:column;gap:10px}
.chat-copy-block{background:var(--bg2);border-radius:10px;padding:12px 14px}
.chat-copy-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--m2);margin-bottom:5px}
.chat-copy-text{font-size:13px;color:var(--charcoal);line-height:1.6}
.chat-actions{margin-top:12px;display:flex;gap:8px}
.chat-typing{display:flex;gap:4px;align-items:center;padding:6px 0}
.chat-typing span{width:7px;height:7px;border-radius:50%;background:var(--m2);animation:typing 1.2s infinite}
.chat-typing span:nth-child(2){animation-delay:.2s}
.chat-typing span:nth-child(3){animation-delay:.4s}
@keyframes typing{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
.chat-input-area{padding:20px 0 32px;flex-shrink:0}
.chat-controls{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.chat-ctrl-sel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:5px 12px;font-size:12px;color:var(--c2);cursor:pointer;appearance:none;outline:none;font-family:'Geist',sans-serif}
.chat-ctrl-sel:focus{border-color:var(--gm)}
.chat-input-box{display:flex;align-items:flex-end;gap:10px;background:var(--surface);border:1.5px solid var(--border);border-radius:18px;padding:12px 12px 12px 18px;box-shadow:0 2px 12px rgba(0,0,0,.05);transition:border-color var(--t),box-shadow var(--t)}
.chat-input-box:focus-within{border-color:var(--gm);box-shadow:0 4px 20px color-mix(in srgb, var(--green) 10%, transparent)}
.chat-input-box textarea{flex:1;background:none;border:none;outline:none;resize:none;font-size:14px;color:var(--charcoal);line-height:1.55;max-height:120px;min-height:24px;overflow-y:auto}
.chat-input-box textarea::placeholder{color:var(--m2)}
.chat-send{width:36px;height:36px;border-radius:10px;background:var(--green);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--t);align-self:flex-end}
.chat-send:hover{background:var(--gm)}
.chat-send svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2}


/* ═══ STUDIO ═══════════════════════════════════════════════════ */
#page-studio{display:none;padding:0}
#page-studio.active{display:block}

.bb-hub{width:100%}
.st-outer{padding:0 32px 40px}

/* Compact hero bar */
.st-hero-bar{
  display:flex;
  align-items:center;
  padding:22px 0 20px;
  border-bottom:1px solid var(--border);
  animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) both;
  flex-shrink:0;
}
.st-hbar-info{display:flex;flex-direction:column;gap:8px;min-width:0}
.st-hbar-title-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.st-eyebrow{display:flex;align-items:center;gap:8px}
.st-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--border);flex-shrink:0;transition:background .3s,box-shadow .3s}
.st-eyebrow-dot.active{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);animation:dashDotPulse 2.5s ease-in-out infinite}
.st-eyebrow-txt{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.st-headline{font-family:'Instrument Serif',serif;font-size:clamp(22px,2.6vw,32px);font-weight:400;color:var(--charcoal);letter-spacing:-.8px;line-height:1.05;margin:0}
.st-headline em{font-style:italic;color:var(--green)}
.st-level-badge{display:inline-flex;align-items:center;padding:4px 11px;border-radius:20px;border:1px solid var(--border);background:var(--surface);flex-shrink:0}
.st-level-badge-txt{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);transition:color .5s}

/* Intelligence Level card */
.st-il-card{background:linear-gradient(160deg,var(--surface) 60%,color-mix(in srgb, var(--green) 3%, transparent));border:1px solid color-mix(in srgb, var(--green) 10%, transparent);border-radius:20px;padding:24px;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .06s both}
.st-il-hd{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}
.st-il-num{font-family:'Instrument Serif',serif;font-size:54px;color:var(--charcoal);letter-spacing:-2px;line-height:1}
.st-il-lbl{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--m2);margin-top:6px}
.st-il-msg{font-size:13px;color:var(--charcoal);line-height:1.6;margin:0 0 16px}
.st-il-bar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.st-il-bar-lbl{font-size:11px;font-weight:500;color:var(--muted)}
.st-il-bar-val{font-size:11px;font-weight:700;color:var(--green)}
.st-il-bar-track{height:3px;background:var(--border);border-radius:2px;overflow:hidden;margin-bottom:16px}
.st-il-bar-fill{height:100%;background:var(--green);border-radius:2px;transition:width 1.2s cubic-bezier(.16,1,.3,1);box-shadow:0 0 8px color-mix(in srgb, var(--green) 35%, transparent)}
.st-il-attrs{display:flex;flex-wrap:wrap;gap:6px}
.st-il-attr{font-size:11px;font-weight:500;color:var(--muted);background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:4px 9px;line-height:1}

/* Sections */
.st-section{margin-bottom:20px;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .12s both}
.st-section-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.st-section-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--m2)}
.st-section-acts{display:flex;align-items:center;gap:8px}
.st-act-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:8px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;transition:border-color .18s,color .18s,background .18s}
.st-act-btn svg{width:13px;height:13px;flex-shrink:0;stroke:currentColor;fill:none}
.st-act-btn:hover{border-color:var(--b2);color:var(--charcoal)}
.st-act-btn.st-act-primary{border-color:color-mix(in srgb, var(--green) 30%, transparent);color:var(--green);background:color-mix(in srgb, var(--green) 6%, transparent)}
.st-act-btn.st-act-primary:hover{border-color:var(--green);background:color-mix(in srgb, var(--green) 12%, transparent)}

/* BrandCore preview grid — auto-fill on wide canvas */
.st-bc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.st-bc-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 16px;min-height:110px;display:flex;flex-direction:column}
.st-bc-card-label{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--m2);margin-bottom:10px;flex-shrink:0}
.st-bc-card-body{flex:1;display:flex;flex-direction:column;justify-content:center}
.st-bc-swatches{display:flex;gap:5px;flex-wrap:wrap}
.st-bc-swatch{width:22px;height:22px;border-radius:6px;border:1px solid rgba(255,255,255,.08);flex-shrink:0}
.st-bc-font{font-size:13px;color:var(--charcoal);font-weight:500}
.st-bc-tags{display:flex;gap:4px;flex-wrap:wrap}
.st-bc-tag{font-size:10px;padding:2px 7px;border-radius:4px;background:rgba(255,255,255,.06);border:1px solid var(--border);color:var(--muted)}
.st-bc-promise{font-size:11px;color:var(--muted);line-height:1.55}
.st-bc-empty{text-align:center;padding:48px 24px;background:var(--surface);border:1px dashed var(--b2);border-radius:16px}
.st-bc-empty-ico svg{width:32px;height:32px;stroke:var(--m2);margin-bottom:12px}
.st-bc-empty-ttl{font-size:15px;font-weight:600;color:var(--charcoal);margin-bottom:6px}
.st-bc-empty-sub{font-size:13px;color:var(--muted);line-height:1.6;max-width:320px;margin:0 auto}

/* Quick Access Row */
.st-quickrow{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:0;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .28s both}
.st-qcard{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px;display:flex;align-items:center;gap:14px;cursor:pointer;transition:border-color .18s,background .18s,transform .22s cubic-bezier(.16,1,.3,1)}
.st-qcard:hover{transform:translateY(-2px);border-color:var(--b2);box-shadow:0 6px 20px rgba(0,0,0,.1)}
.st-qcard-ico{width:38px;height:38px;border-radius:10px;background:var(--bg3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.st-qcard-ico svg{width:17px;height:17px;stroke:var(--muted);fill:none}
.st-qcard-body{flex:1}
.st-qcard-title{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:3px}
.st-qcard-sub{font-size:11px;color:var(--muted)}
.st-qcard-arr{width:14px;height:14px;stroke:var(--m2);flex-shrink:0;opacity:0;transform:translateX(-3px);transition:opacity .18s,transform .18s}
.st-qcard:hover .st-qcard-arr{opacity:1;transform:translateX(0)}

/* Panel overlay — fixed over full app */
.sh-panel-view{position:fixed;inset:0;z-index:800;display:flex;flex-direction:column;background:var(--bg)}
.sh-panel-view.hidden{display:none}
.sh-panel-header{display:flex;align-items:center;gap:16px;padding:14px 24px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}
.sh-back-btn{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--muted);background:none;border:none;cursor:pointer;padding:6px 10px;border-radius:8px;transition:color .2s,background .2s}
.sh-back-btn:hover{color:var(--charcoal);background:var(--bg2)}
.sh-back-btn svg{width:14px;height:14px;stroke:currentColor}
.sh-panel-title{font-size:15px;font-weight:600;color:var(--charcoal)}
.studio-panel{display:none;flex:1;overflow-y:auto}
.studio-panel.active{display:flex;flex-direction:column}

/* ── Saved ── */
.saved-panel{padding:24px}
.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.acard{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);overflow:hidden;transition:all var(--t);position:relative}
.acard:hover{box-shadow:var(--shm)}
.acard:hover .aov{opacity:1}
.ath{height:90px;display:flex;align-items:center;justify-content:center;background:var(--bg2)}
.ameta{padding:9px 11px}
.a-name{font-size:11px;font-weight:500;color:var(--charcoal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-info{font-size:10px;color:var(--muted);margin-top:2px}
.aov{position:absolute;inset:0;background:rgba(0,0,0,.58);display:flex;align-items:center;justify-content:center;gap:6px;opacity:0;transition:opacity var(--t);border-radius:var(--rl)}
.aov-btn{width:30px;height:30px;border-radius:7px;border:none;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.aov-btn:hover{background:rgba(255,255,255,.26)}
.aov-btn svg{width:13px;height:13px}

/* ── Brand Check — New Design ── */
.bc-idle{display:flex;flex-direction:column;align-items:center;gap:16px;padding:44px 24px 32px;text-align:center}
.bc-idle-ico{width:64px;height:64px;border-radius:18px;background:color-mix(in srgb, var(--green) 6%, transparent);border:1px solid color-mix(in srgb, var(--green) 18%, transparent);display:flex;align-items:center;justify-content:center;box-shadow:0 0 40px color-mix(in srgb, var(--green) 10%, transparent);color:var(--gm)}
.bc-idle-ttl{font-size:17px;font-weight:600;color:var(--charcoal);letter-spacing:-.2px}
.bc-idle-sub{font-size:13px;color:var(--muted);line-height:1.6;max-width:320px}

.bc-analyzing{display:flex;flex-direction:column;gap:0}
.bc-analyze-hd{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 24px 20px;text-align:center}
.bc-analyze-orb{width:44px;height:44px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb, var(--green) 25%, transparent) 0%,transparent 70%);border:1.5px solid color-mix(in srgb, var(--green) 40%, transparent);animation:bcOrb 1.8s ease-in-out infinite}
@keyframes bcOrb{0%,100%{box-shadow:0 0 16px color-mix(in srgb, var(--green) 15%, transparent)}50%{box-shadow:0 0 36px color-mix(in srgb, var(--green) 45%, transparent)}}
.bc-analyze-ttl{font-size:14px;font-weight:600;color:var(--charcoal);letter-spacing:-.15px}
.bc-analyze-sub{font-size:12px;color:var(--muted)}

.bc-steps{display:flex;flex-direction:column}
.bc-step{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);opacity:.28;transition:opacity .2s ease}
.bc-step:last-child{border-bottom:none}
.bc-step-active{opacity:1!important}
.bc-step-done{opacity:.65!important}
.bc-step-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bc-step-spinner{width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--gm);border-radius:50%;animation:spin .65s linear infinite}
.bc-step-ck{width:18px;height:18px;border-radius:50%;background:color-mix(in srgb, var(--green) 12%, transparent);border:1px solid color-mix(in srgb, var(--green) 35%, transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bc-step-lbl{font-size:13px;color:var(--charcoal);flex:1}
.bc-step-active .bc-step-lbl{font-weight:500;color:var(--gm)}

/* Brand Check results */
.bc-score-block{display:flex;align-items:center;gap:20px;padding:20px 0 20px;border-bottom:1px solid var(--border);margin-bottom:4px}
.bc-score-ring{width:92px;height:92px;border-radius:50%;border:3px solid var(--gm);display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}
.bc-score-num{font-family:'Instrument Serif',serif;font-size:32px;color:var(--charcoal);line-height:1;letter-spacing:-1px}
.bc-score-num span{font-size:14px;color:var(--muted)}
.bc-score-lbl{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-top:2px}
.bc-score-meta{display:flex;flex-direction:column;gap:4px;flex:1}
.bc-score-level{font-size:19px;font-weight:700;letter-spacing:-.3px;line-height:1}
.bc-score-level-sub{font-size:11px;color:var(--muted);margin-bottom:4px}
.bc-reanalyze-btn{align-self:flex-start;margin-top:4px}

.bc-section{margin-top:16px}
.bc-section-hd{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:var(--c2);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.bc-section-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.bc-dot-str{background:var(--green)}
.bc-dot-opp{background:#F59E0B}
.bc-dot-rec{background:var(--green)}
.bc-item{display:flex;align-items:flex-start;gap:9px;padding:8px 0;border-bottom:1px solid var(--border)}
.bc-item:last-child{border-bottom:none}
.bc-item span{font-size:13px;color:var(--charcoal);line-height:1.5}
.bc-rec-item{align-items:flex-start}
.bc-rec-num{flex-shrink:0;width:18px;height:18px;border-radius:50%;background:rgba(129,140,248,.12);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);font-size:10px;font-weight:700;color:var(--green);display:flex;align-items:center;justify-content:center;margin-top:1px}
.bc-summary{margin-top:16px;padding:14px 16px;background:var(--bg2);border-radius:var(--rl);font-size:13px;color:var(--muted);line-height:1.65;font-style:italic;border-left:2px solid color-mix(in srgb, var(--green) 30%, transparent)}

/* ── Brand Check (legacy) ── */
.check-outer{padding:24px;display:flex;flex-direction:column;gap:16px}
.up-zone{border:2px dashed var(--b2);border-radius:var(--rx);padding:56px 24px;text-align:center;cursor:pointer;transition:all var(--t);background:var(--surface);display:flex;flex-direction:column;align-items:center;gap:14px}
.up-zone:hover,.up-zone.drag-over{border-color:var(--gm);background:var(--gpale)}
.up-zone svg{width:42px;height:42px;color:var(--m2)}
.up-zone h3{font-size:16px;font-weight:600;color:var(--charcoal);letter-spacing:-.2px}
.up-zone p{font-size:13px;color:var(--muted)}
.ck-or-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.6px}
.ck-or-divider::before,.ck-or-divider::after{content:'';flex:1;height:1px;background:var(--border)}
.ck-manual-btn{width:100%;padding:18px 20px;font-size:14px;font-weight:500;border-radius:var(--rx);border:1.5px solid var(--border);background:var(--surface);color:var(--charcoal);cursor:pointer;transition:border-color var(--t),background var(--t),color var(--t);display:flex;align-items:center;justify-content:center;gap:10px;letter-spacing:-.1px}
.ck-manual-btn svg{width:18px;height:18px;flex-shrink:0;stroke:currentColor}
.ck-manual-btn:hover{border-color:var(--gm);background:var(--gpale);color:var(--gm)}
.ck-preview-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;display:flex;align-items:center;gap:14px}
.ck-preview-thumb{width:72px;height:72px;border-radius:10px;overflow:hidden;flex-shrink:0;background:var(--bg3);position:relative}
.ck-preview-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ck-preview-ph{width:100%;height:100%;display:none;align-items:center;justify-content:center;position:absolute;inset:0}
.ck-preview-meta{flex:1}
.ck-preview-name{font-size:13px;font-weight:500;color:var(--charcoal);margin-bottom:3px}
.ck-preview-sub{font-size:11px;color:var(--muted)}
.ck-actions-row{display:flex;gap:8px;align-items:center}
.check-result-wrap{display:flex;flex-direction:column;gap:0}
.scd{background:var(--surface);border:1px solid var(--border);border-radius:var(--rx);padding:24px}
.big-s{font-family:'Instrument Serif',serif;font-size:64px;color:var(--charcoal);line-height:1;letter-spacing:-2px}
.big-s span{font-size:28px;color:var(--m2)}
.s-desc{font-size:12px;color:var(--muted);margin-top:4px;margin-bottom:16px}
.sbars{display:flex;flex-direction:column;gap:9px}
.sbar-row{display:flex;align-items:center;gap:10px}
.sbar-name{font-size:11px;color:var(--charcoal);width:120px;flex-shrink:0}
.sbar-track{flex:1;height:4px;background:var(--bg3);border-radius:2px;overflow:hidden}
.sbar-fill{height:100%;border-radius:2px;transition:width .6s ease}
.sbar-val{font-size:11px;font-weight:600;color:var(--c2);width:30px;text-align:right;flex-shrink:0}
.ck-items{display:flex;flex-direction:column}
.ck-row{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:1px solid var(--border)}
.ck-row:last-child{border-bottom:none}
.ck-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-top:4px}
.ck-dot.p{background:var(--green)}.ck-dot.w{background:#F59E0B}.ck-dot.f{background:#EF4444}
.ck-txt p{font-size:12px;color:var(--charcoal);line-height:1.45}
.ck-txt small{font-size:11px;color:var(--muted)}

/* ── Campaigns ── */
.camp-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;cursor:pointer;transition:all var(--t);margin-bottom:10px}
.camp-card:hover{transform:translateY(-2px);box-shadow:var(--shm);border-color:var(--b2)}
.camp-name{font-size:14px;font-weight:600;color:var(--charcoal);margin-bottom:3px}
.camp-meta{font-size:12px;color:var(--muted);margin-bottom:8px}
.camp-pb{height:3px;background:var(--bg3);border-radius:2px;overflow:hidden}
.camp-pf{height:100%;background:var(--green);border-radius:2px;transition:width .4s ease}
.camp-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:4px}
.camp-detail-card{background:var(--bg2);border-radius:var(--r);padding:12px 14px}
.camp-detail-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--m2);margin-bottom:4px}
.camp-detail-val{font-size:13px;color:var(--charcoal);line-height:1.5}
.camp-asset-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.camp-asset-thumb{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;cursor:pointer;transition:transform var(--t)}
.camp-asset-thumb:hover{transform:scale(1.08)}
.camp-preview-grid{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:4px}
.camp-preview-item{display:flex;flex-direction:column;align-items:center}
.camp-preview-frame:hover{opacity:.85}
.camp-detail-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--border);margin-top:16px}
.nc-asset-pick{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:var(--r);border:1.5px solid var(--border);cursor:pointer;transition:all var(--t);margin-bottom:6px}
.nc-asset-pick:hover{border-color:var(--gm);background:var(--gpale)}
.nc-asset-pick.selected{border-color:var(--gm);background:var(--gpale)}

@media(max-width:900px){
  .st-canvas{grid-template-columns:1fr}
  .st-intel-col{order:-1}
}
@media(max-width:640px){
  .st-quickrow{grid-template-columns:1fr}
}
@media(max-width:540px){
  .st-outer{padding:64px 20px 40px}
  .st-bc-grid{grid-template-columns:repeat(2,1fr)}
}


/* ═══ BRAND CORE ═══════════════════════════════════════════════ */
#page-brandcore{padding:28px 32px;max-width:1000px}
.ph{margin-bottom:28px}
.ph-ttl{font-family:'Instrument Serif',serif;font-size:24px;color:var(--charcoal);letter-spacing:-.3px;margin-bottom:3px}
.ph-sub{font-size:13px;color:var(--muted);line-height:1.5}
.bcs{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:20px;margin-bottom:16px}
.bcs-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.bcs-ttl{font-size:14px;font-weight:600;color:var(--charcoal)}
.sw-list{display:flex;gap:10px;flex-wrap:wrap}
.sw-card{cursor:pointer;transition:transform var(--t);display:flex;flex-direction:column;align-items:center;gap:5px}
.sw-card:hover{transform:translateY(-2px)}
.sw-blk{width:52px;height:44px;border-radius:9px;border:1px solid rgba(0,0,0,.06)}
.sw-name{font-size:10px;font-weight:500;color:var(--c2)}.sw-hex{font-size:10px;color:var(--m2)}
.frow{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}
.frow:last-child{border-bottom:none}
.f-ptxt{flex:1}.f-role{font-size:11px;font-weight:600;color:var(--m2);text-transform:uppercase;letter-spacing:.6px;margin-bottom:3px}
.f-demo{font-size:22px;color:var(--charcoal);line-height:1}.f-meta{font-size:11px;color:var(--muted);margin-top:3px}
.tag{display:inline-flex;align-items:center;gap:4px;background:var(--glt);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);color:var(--gm);font-size:12px;padding:4px 10px;border-radius:20px;margin:3px}
.tag-r{background:var(--err-bg);border-color:#FECACA;color:var(--err-c)}
/* Legacy logo placeholders — kept for compatibility */
.logo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.lcard{background:var(--bg2);border:1px solid var(--border);border-radius:var(--rl);padding:20px;text-align:center}
.lcard-dk{background:var(--charcoal);border-color:#333}
.l-prev{width:52px;height:52px;border-radius:12px;background:var(--green);display:flex;align-items:center;justify-content:center;font-family:'Instrument Serif',serif;font-size:18px;color:#000;margin:0 auto 10px}
.l-lbl{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--m2)}
.lcard-dk .l-lbl{color:rgba(255,255,255,.4)}

/* ── Logo management cards ──────────────────────────────────── */
.logo-mgmt-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:4px;
}
.logo-mgmt-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--rx);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.lmc-preview{
  aspect-ratio:1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  padding:14px;
  overflow:hidden;
}
.lmc-img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:4px;
  display:block;
}
.lmc-empty{
  aspect-ratio:1 / 1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  cursor:pointer;
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  transition:background var(--t),color var(--t);
}
.lmc-empty:hover{background:var(--glt);color:var(--gm)}
.lmc-empty span{font-size:11.5px;font-weight:500}
.lmc-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 11px;
  gap:6px;
}
.lmc-lbl{
  font-size:11.5px;
  font-weight:600;
  color:var(--charcoal);
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.lmc-actions{display:flex;gap:5px;flex-shrink:0;align-items:center}
.lmc-remove-btn{
  width:26px;height:26px;padding:0;
  border-radius:50%;
  background:none;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:10px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all var(--t);
  flex-shrink:0;
}
.lmc-remove-btn:hover{
  background:var(--err-bg,#FEF2F2);
  border-color:#FECACA;
  color:var(--err-c,#DC2626);
}

/* AI logo result */
.logo-ai-result{padding:16px 0 0}
.logo-ai-img{
  width:100%;
  border-radius:var(--rx);
  border:1px solid var(--border);
  display:block;
  margin-bottom:14px;
  background:var(--bg2);
}
.logo-ai-save-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:12px 14px;
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:var(--rx);
}
.logo-ai-save-lbl{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  margin-right:2px;
}

/* ═══ IDEAS (was: INSPIRATION) ══════════════════════════════════ */
#page-inspiration{display:none;padding:0}
#page-inspiration.active{display:block}

.id-outer{width:100%}
.id-cont{max-width:1040px;margin:0 auto;padding:0 40px 80px}

/* Hero */
.id-hero{position:relative;padding:44px 0 36px;overflow:hidden;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) both;text-align:center}
.id-hero-aura{position:absolute;top:-60px;left:50%;width:600px;height:400px;transform:translateX(-50%);background:radial-gradient(ellipse at center,color-mix(in srgb, var(--green) 3.5%, transparent) 0%,transparent 65%);pointer-events:none}
.id-eyebrow{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}
.id-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);animation:dashDotPulse 2.5s ease-in-out infinite;flex-shrink:0}
.id-eyebrow-txt{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.id-headline{font-family:'Instrument Serif',serif;font-size:clamp(36px,5vw,58px);font-weight:400;color:var(--charcoal);letter-spacing:-1.8px;line-height:1.05;margin-bottom:14px}
.id-headline em{font-style:italic;color:var(--green)}
.id-sub{font-size:14px;color:var(--muted);line-height:1.7;max-width:440px;margin:0 auto}

/* Filter tabs */
.id-filter-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:14px;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .08s both}
.id-filt{padding:7px 16px;border-radius:20px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;transition:border-color .18s,color .18s,background .18s}
.id-filt:hover{border-color:var(--b2);color:var(--charcoal)}
.id-filt.id-filt-active{border-color:color-mix(in srgb, var(--green) 40%, transparent);color:var(--green);background:color-mix(in srgb, var(--green) 7%, transparent)}

/* Curation note */
.id-curation-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:24px;font-size:11px;color:var(--m2);animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .12s both}
.id-curation-note svg{width:12px;height:12px;flex-shrink:0}

/* Concept card grid */
.id-concept-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .16s both}

/* Concept card */
.id-concept-card{border-radius:18px;overflow:hidden;cursor:pointer;border:1px solid var(--border);display:flex;flex-direction:column;transition:transform .28s cubic-bezier(.16,1,.3,1),box-shadow .28s,border-color .28s}
.id-concept-card:hover{transform:translateY(-4px);box-shadow:0 20px 52px rgba(0,0,0,.26);border-color:rgba(255,255,255,.1)}

/* Card thumbnail */
.id-card-thumb{height:148px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:14px 18px;flex-shrink:0}
.id-card-thumb::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 30%,rgba(0,0,0,.62) 100%);pointer-events:none;z-index:1}
.id-thumb-glow{position:absolute;width:140px;height:140px;border-radius:50%;top:-50px;right:-30px;filter:blur(48px);opacity:.28;pointer-events:none;z-index:0;transition:opacity .3s}
.id-concept-card:hover .id-thumb-glow{opacity:.42}
.id-thumb-lbl{font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.4);position:relative;z-index:2;margin-bottom:5px}
.id-thumb-hl{font-family:'Instrument Serif',serif;font-size:17px;font-weight:400;color:rgba(255,255,255,.88);line-height:1.25;position:relative;z-index:2}

/* Card body */
.id-card-body{background:var(--surface);padding:15px 18px 17px;flex:1;display:flex;flex-direction:column;gap:5px}
.id-card-cat{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.id-card-title{font-size:13px;font-weight:700;color:var(--charcoal);letter-spacing:-.15px;line-height:1.3}
.id-card-desc{font-size:11px;color:var(--muted);line-height:1.65;flex:1}
.id-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}
.id-card-use{font-size:11px;font-weight:600;color:var(--muted);transition:color .18s}
.id-concept-card:hover .id-card-use{color:var(--charcoal)}
.id-card-arr{width:12px;height:12px;stroke:var(--m2);fill:none;opacity:.4;flex-shrink:0;transition:opacity .18s,transform .18s}
.id-concept-card:hover .id-card-arr{opacity:.75;transform:translateX(3px)}

/* Panel overlay (preserved — fixed like Studio) */
.id-panel-view{position:fixed;inset:0;z-index:800;display:flex;flex-direction:column;background:var(--bg)}
.id-panel-view.hidden{display:none}
.id-panel-header{display:flex;align-items:center;gap:16px;padding:14px 24px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}
.id-back-btn{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--muted);background:none;border:none;cursor:pointer;padding:6px 10px;border-radius:8px;transition:color .2s,background .2s}
.id-back-btn:hover{color:var(--charcoal);background:var(--bg2)}
.id-back-btn svg{width:14px;height:14px;stroke:currentColor}
.id-panel-title{font-size:15px;font-weight:600;color:var(--charcoal)}
.id-panel-content{flex:1;overflow-y:auto;padding:32px 32px 48px}
.id-ideas-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;max-width:1040px;margin:0 auto}
.id-idea-card{background:var(--surface);border:1.5px solid var(--border);border-radius:16px;padding:20px 22px 22px;display:flex;flex-direction:column;gap:9px;transition:border-color .2s ease,box-shadow .2s ease}
.id-idea-card:hover{border-color:var(--b2);box-shadow:0 4px 20px rgba(0,0,0,.07)}
.id-idea-label{font-size:15px;font-weight:700;color:var(--charcoal);letter-spacing:-.2px;line-height:1.25}
.id-idea-desc{font-size:12.5px;color:var(--muted);line-height:1.65;flex:1}
.id-idea-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:4px}
.id-cta-primary{background:var(--green);color:#fff;border:none;border-radius:20px;padding:7px 16px;font-size:12px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s;pointer-events:all !important;white-space:nowrap}
.id-cta-primary:hover{background:var(--green);transform:scale(1.03)}
.id-cta-secondary{background:var(--bg2);color:var(--charcoal);border:1.5px solid var(--border);border-radius:20px;padding:7px 16px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s,transform .15s;pointer-events:all !important;white-space:nowrap}
.id-cta-secondary:hover{background:var(--bg3);transform:scale(1.03)}


/* ── Inspiration V1: section layout ──────────────────────────── */
.id-section{margin-bottom:48px;animation:dashFadeUp .45s cubic-bezier(.22,1,.36,1) both}
.id-section+.id-section{animation-delay:.06s}
.id-section-hdr{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.id-section-emoji{font-size:16px;line-height:1;flex-shrink:0}
.id-section-lbl{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.id-section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

/* ── Use This Inspiration button ──────────────────────────────── */
.id-card-cta{display:block;width:100%;margin-top:12px;padding:9px 14px;background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);border-radius:10px;color:color-mix(in srgb, var(--green) 75%, transparent);font-size:11.5px;font-weight:600;text-align:center;cursor:pointer;transition:background .18s,border-color .18s,color .18s;pointer-events:none;letter-spacing:.01em}
.id-concept-card:hover .id-card-cta{background:color-mix(in srgb, var(--green) 16%, transparent);border-color:color-mix(in srgb, var(--green) 45%, transparent);color:var(--green)}

@media(max-width:900px){.id-section-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.id-section-grid{grid-template-columns:1fr}}
@media(max-width:860px){.id-concept-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){
  .id-cont{padding:0 20px 60px}
  .id-hero{padding:56px 0 28px}
  .id-concept-grid{grid-template-columns:1fr}
  .id-filter-row{gap:6px}
  .id-panel-content{padding:20px}
}


/* ═══ SIDEBAR USAGE INDICATOR ══════════════════════════════════ */
.sb-usage-wrap{padding:4px 8px 2px}
.sb-plan-row{margin-bottom:5px}
.sb-plan-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border-radius:20px;padding:2px 9px}
.sb-plan-free    {background:var(--bg2);color:var(--muted)}
.sb-plan-starter {background:var(--glt);color:var(--gm)}
.sb-plan-creator     {background:#EEF5FF;color:#2563EB}
.sb-plan-professional{background:#FFF0E6;color:#C45511}
.usage-badge{display:inline-block;font-size:11px;font-weight:500;border-radius:20px;padding:3px 10px;letter-spacing:.01em}
.usage-badge-ok   {background:var(--glt);color:var(--gm)}
.usage-badge-low  {background:var(--warn-bg);color:var(--warn-c)}
.usage-badge-empty{background:var(--err-bg);color:var(--err-c)}

/* ═══ USAGE LIMIT IN-FEED MESSAGE ══════════════════════════════ */
.usage-limit-msg{margin:8px 0}
.usage-limit-inner{
  display:flex;align-items:center;gap:14px;
  background:var(--warn-bg);
  border:1px solid rgba(146,64,14,.18);
  border-radius:var(--rl);
  padding:16px 18px;
}
.usage-limit-icon{width:26px;height:26px;flex-shrink:0;color:var(--warn-c)}
.usage-limit-icon svg{width:26px;height:26px}
.usage-limit-text{flex:1;min-width:0}
.usage-limit-title{font-size:13px;font-weight:600;color:var(--warn-c);margin-bottom:3px}
.usage-limit-sub{font-size:12px;color:var(--charcoal);line-height:1.55}
.usage-limit-cta{flex-shrink:0}

/* ═══ SOFT PAYWALL ══════════════════════════════════════════════ */
#softPaywallModal{
  position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,0.72);
  display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(4px);
  opacity:0;transition:opacity 0.28s ease;
}
#softPaywallModal.sp-visible{opacity:1;}
.sp-card{
  position:relative;width:400px;max-width:calc(100vw - 32px);
  background:#0E0E0E;border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;overflow:hidden;
  box-shadow:0 24px 64px rgba(0,0,0,0.6);
  transform:translateY(10px);transition:transform 0.28s ease;
}
#softPaywallModal.sp-visible .sp-card{transform:translateY(0);}
.sp-accent-bar{height:3px;background:linear-gradient(90deg,var(--green) 0%,color-mix(in srgb, var(--green) 25%, transparent) 100%);}
.sp-body{padding:28px 28px 24px;}
.sp-close{
  position:absolute;top:14px;right:14px;width:28px;height:28px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,0.45);transition:background 0.18s,color 0.18s;
}
.sp-close:hover{background:rgba(255,255,255,0.12);color:#fff;}
.sp-close svg{width:12px;height:12px;}
.sp-title{font-size:20px;font-weight:700;color:#fff;letter-spacing:-0.3px;margin-bottom:6px;}
.sp-sub{font-size:14px;color:rgba(255,255,255,0.45);margin-bottom:22px;line-height:1.5;}
.sp-progress-section{
  background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);
  border-radius:10px;padding:16px;margin-bottom:22px;
}
.sp-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.sp-progress-label{font-size:11px;font-weight:600;color:rgba(255,255,255,0.35);text-transform:uppercase;letter-spacing:0.7px;}
.sp-progress-pct{font-size:11px;font-weight:700;color:var(--green);}
.sp-progress-track{height:4px;background:rgba(255,255,255,0.08);border-radius:2px;overflow:hidden;margin-bottom:14px;}
.sp-progress-fill{height:100%;width:0;background:var(--green);border-radius:2px;transition:width 0.55s cubic-bezier(.4,0,.2,1);}
.sp-progress-list{display:flex;flex-direction:column;gap:8px;}
.sp-progress-item{display:flex;align-items:center;gap:10px;font-size:13px;}
.sp-done .sp-item-label{color:rgba(255,255,255,0.85);}
.sp-locked .sp-item-label{color:rgba(255,255,255,0.3);}
.sp-item-icon{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.sp-item-icon svg{width:14px;height:14px;}
.sp-cta-primary{
  width:100%;padding:13px;background:var(--green);color:#080808;
  border:none;border-radius:8px;font-size:14px;font-weight:700;letter-spacing:-0.1px;
  cursor:pointer;margin-bottom:10px;transition:opacity 0.18s;
}
.sp-cta-primary:hover{opacity:0.86;}
.sp-cta-secondary{
  width:100%;padding:10px;background:transparent;color:rgba(255,255,255,0.38);
  border:none;border-radius:8px;font-size:13px;cursor:pointer;transition:color 0.18s;
}
.sp-cta-secondary:hover{color:rgba(255,255,255,0.65);}

/* ── Upgrade reminder bar ─────────────────────────────────────── */
#upgradeBar{
  position:fixed;bottom:0;left:0;right:0;z-index:8888;
  background:#0E0E0E;border-top:1px solid color-mix(in srgb, var(--green) 18%, transparent);
  padding:13px 20px;display:flex;align-items:center;justify-content:space-between;
  transform:translateY(100%);transition:transform 0.28s ease;
}
#upgradeBar.upgrade-bar-visible{transform:translateY(0);}
.upgrade-bar-inner{display:flex;align-items:center;gap:6px;font-size:13px;color:rgba(255,255,255,0.5);}
.upgrade-bar-link{
  background:none;border:none;color:var(--green);font-size:13px;font-weight:600;
  cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:2px;
}
.upgrade-bar-link:hover{opacity:0.75;}
.upgrade-bar-dismiss{
  background:none;border:none;color:rgba(255,255,255,0.28);font-size:18px;line-height:1;
  cursor:pointer;padding:0 2px;transition:color 0.18s;
}
.upgrade-bar-dismiss:hover{color:rgba(255,255,255,0.6);}

/* ═══ TEAM PAGE ══════════════════════════════════════════════════ */
#page-team{display:none;padding:0}
#page-team.active{display:flex;flex-direction:column;height:100%}
.tm-outer{display:flex;flex-direction:column;height:100%;padding:22px 32px 14px;gap:14px;overflow-y:auto}

/* Compact header */
.tm-hdr{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) both}
.tm-hdr-left{display:flex;flex-direction:column;gap:6px}
.tm-eyebrow{display:flex;align-items:center;gap:7px}
.tm-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);animation:dashDotPulse 2.5s ease-in-out infinite;flex-shrink:0}
.tm-eyebrow span{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.tm-hdr-title{font-family:'Instrument Serif',serif;font-size:clamp(20px,2.4vw,28px);font-weight:400;color:var(--charcoal);letter-spacing:-.6px;line-height:1.1;margin:0}
.tm-hdr-title em{font-style:italic;color:var(--green)}
.tm-hdr-stats{display:flex;gap:24px;align-items:center}
.tm-hdr-stat{display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.tm-stat-val{font-family:'Instrument Serif',serif;font-size:20px;color:var(--charcoal);letter-spacing:-.6px;line-height:1}
.tm-stat-lbl{font-size:9px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tm-stat-status{font-family:'Geist',sans-serif;font-size:13px;font-weight:700;color:var(--green);letter-spacing:0}

/* Section base */
.tm-section{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px}
.tm-section-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.tm-section-title{font-size:13px;font-weight:700;color:var(--charcoal);letter-spacing:-.2px}
.tm-section-sub{font-size:11px;color:var(--muted);margin-top:2px}

/* Projects — primary centerpiece */
.tm-projects-section{flex-shrink:0;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .08s both}
.tm-proj-list{display:flex;flex-direction:column;gap:8px}
.tm-proj-row{display:flex;align-items:center;gap:16px;background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:14px 18px;transition:border-color .18s,transform .22s cubic-bezier(.16,1,.3,1)}
.tm-proj-row:hover{border-color:color-mix(in srgb, var(--green) 18%, transparent);transform:translateX(3px)}
.tm-proj-type{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:3px 9px;border-radius:20px;flex-shrink:0}
.tm-proj-name{font-size:13px;font-weight:700;color:var(--charcoal);letter-spacing:-.2px;flex:1;min-width:0}
.tm-proj-meta{font-size:11px;color:var(--muted);flex-shrink:0;white-space:nowrap}
.tm-proj-bar-wrap{width:80px;flex-shrink:0}
.tm-proj-bar{height:2px;border-radius:2px;background:var(--border)}
.tm-proj-fill{height:100%;border-radius:2px;transition:width 1s cubic-bezier(.16,1,.3,1)}
.tm-proj-empty{padding:28px 20px;text-align:center}
.tm-proj-empty strong{display:block;font-size:13px;font-weight:700;color:var(--charcoal);margin-bottom:4px}
.tm-proj-empty span{font-size:12px;color:var(--muted)}

/* Lower grid — members + activity */
.tm-lower{display:grid;grid-template-columns:1fr 1fr;gap:14px;flex-shrink:0;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .16s both}
.tm-lower-panel{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px}

/* Invite button */
.tm-invite-btn{display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:20px;border:1px solid color-mix(in srgb, var(--green) 30%, transparent);background:color-mix(in srgb, var(--green) 6%, transparent);color:var(--green);font-size:11px;font-weight:600;cursor:pointer;transition:border-color .18s,background .18s;flex-shrink:0}
.tm-invite-btn:hover{border-color:color-mix(in srgb, var(--green) 50%, transparent);background:color-mix(in srgb, var(--green) 10%, transparent)}
.tm-invite-btn svg{width:11px;height:11px}

/* Member rows */
.tm-member-list{display:flex;flex-direction:column;flex:1}
.tm-member-row{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid var(--border)}
.tm-member-row:last-child{border-bottom:none}
.tm-mavatar{width:30px;height:30px;border-radius:50%;background:color-mix(in srgb, var(--green) 10%, transparent);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:-.5px;flex-shrink:0}
.tm-mavatar-self{background:rgba(167,139,250,.1);color:#A78BFA}
.tm-minfo{flex:1;min-width:0}
.tm-mname{font-size:12px;font-weight:600;color:var(--charcoal);letter-spacing:-.15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-memail{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-mbadge{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:20px;flex-shrink:0}
.tm-mbadge-admin{background:color-mix(in srgb, var(--green) 10%, transparent);color:var(--green);border:1px solid color-mix(in srgb, var(--green) 20%, transparent)}
.tm-mbadge-editor{background:#EEF5FF;color:#2563EB;border:1px solid #BFDBFE}
.tm-mbadge-member{background:var(--bg2);color:var(--muted);border:1px solid var(--border)}
.tm-mbadge-viewer{background:var(--bg2);color:var(--muted);border:1px solid var(--border)}
.tm-mremove{width:20px;height:20px;border-radius:50%;background:none;border:1px solid var(--border);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:all .18s;flex-shrink:0}
.tm-mremove:hover{background:rgba(239,68,68,.08);border-color:#FECACA;color:#DC2626}
.tm-invite-row{display:flex;align-items:center;gap:11px;padding:10px 0;cursor:pointer;opacity:.55;transition:opacity .18s}
.tm-invite-row:hover{opacity:1}
.tm-invite-row-icon{width:30px;height:30px;border-radius:50%;background:none;border:1.5px dashed var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0}
.tm-invite-row-txt{font-size:12px;font-weight:600;color:var(--muted)}

/* Activity */
.tm-activity{display:flex;flex-direction:column;flex:1}
.tm-act-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border)}
.tm-act-item:last-child{border-bottom:none}
.tm-act-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.tm-act-body{flex:1;font-size:11px;color:var(--charcoal);line-height:1.4}
.tm-act-body strong{font-weight:600}
.tm-act-time{font-size:10px;color:var(--muted);white-space:nowrap}
.tm-act-empty{display:flex;align-items:center;justify-content:center;flex:1;padding:20px;text-align:center;font-size:12px;color:var(--muted);line-height:1.6}

@media(max-width:800px){.tm-lower{grid-template-columns:1fr}}
@media(max-width:620px){
  .tm-outer{padding:16px 16px 8px}
  .tm-hdr{flex-direction:column;align-items:flex-start;gap:10px}
  .tm-hdr-stats{gap:16px}
  .tm-proj-bar-wrap{display:none}
}

/* ═══ GUIDED FLOW SYSTEM ════════════════════════════════════════ */

.flow-pg{
  padding:40px 28px 80px;
  max-width:640px;
  width:100%;
  margin:0 auto;
}
/* Center the builder page's scroll area */
#page-builder.active{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow-y:auto;
}

/* Topbar */
.flow-topbar{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:32px;
}
.flow-back-btn{
  background:none;border:1px solid var(--border);border-radius:var(--rx);
  padding:7px 14px;font-size:13px;color:var(--charcoal);
  cursor:pointer;transition:all var(--t);flex-shrink:0;
}
.flow-back-btn:hover{border-color:var(--gm);color:var(--gm);background:var(--glt)}
.flow-brand-pill{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--glt);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius:20px;padding:5px 13px;
  font-size:12.5px;font-weight:600;color:var(--gm);
}
.flow-brand-pill::before{
  content:"";width:8px;height:8px;border-radius:50%;
  background:var(--gm);flex-shrink:0;
}

/* AI Guide bubble */
.flow-guide{
  display:flex;align-items:flex-start;gap:14px;
  margin-bottom:28px;
  padding:20px 22px;
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:var(--rx);
}
.flow-guide-avatar{
  width:40px;height:40px;border-radius:50%;
  background:#f4f5f3;
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;flex-shrink:0;
}
.flow-guide-logo{
  width:26px;height:26px;object-fit:contain;display:block;
}
.flow-guide-content{flex:1;min-width:0}
.flow-guide-label{
  font-size:10.5px;font-weight:600;text-transform:uppercase;
  letter-spacing:.07em;color:var(--gm);margin-bottom:5px;
}
.flow-guide-message{
  font-size:15.5px;font-weight:500;color:var(--charcoal);
  line-height:1.45;transition:opacity .15s;
}

/* Progress dots */
.flow-progress{
  display:flex;gap:6px;margin-bottom:28px;
  align-items:center;flex-wrap:wrap;
}
.flow-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--border);transition:all .3s;
}
.flow-dot.done{background:var(--gm);opacity:.4}
.flow-dot.active{background:var(--gm);width:22px;border-radius:4px}

/* History strip */
.flow-history{display:flex;flex-direction:column;gap:0;margin-bottom:4px}
.flow-hist-item{
  display:flex;align-items:center;gap:10px;
  padding:7px 10px;border-radius:8px;
  cursor:pointer;transition:background .15s;
}
.flow-hist-item:hover{background:var(--bg2)}
.flow-hist-q{
  font-size:12px;color:var(--muted);flex:1;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.flow-hist-a{
  font-size:12px;font-weight:600;color:var(--charcoal);
  background:var(--bg2);border-radius:20px;padding:3px 10px;
  white-space:nowrap;max-width:180px;
  overflow:hidden;text-overflow:ellipsis;flex-shrink:0;
}

/* Step area */
.flow-step-wrap{margin-bottom:16px}
.flow-step{animation:flowStepIn .22s ease both}
@keyframes flowStepIn{
  from{opacity:0;transform:translateY(9px)}
  to{opacity:1;transform:none}
}

/* Flow option buttons (tall cards) */
.flow-options{display:flex;flex-direction:column;gap:9px}
.flow-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.flow-option{
  display:flex;align-items:center;gap:12px;
  padding:14px 17px;
  border:1.5px solid var(--border);border-radius:var(--rx);
  background:var(--surface);cursor:pointer;
  transition:border-color .16s,background .16s,color .16s;
  font-size:14px;font-weight:500;color:var(--charcoal);
  text-align:left;width:100%;
}
.flow-option:hover{border-color:var(--gm);background:var(--glt);color:var(--gm)}
.flow-option.active{border-color:var(--gm);background:var(--gm);color:#000}
.flow-option-check{
  width:18px;height:18px;border-radius:50%;
  border:1.5px solid currentColor;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;opacity:.45;transition:opacity .16s;
}
.flow-option.active .flow-option-check{
  opacity:1;background:rgba(255,255,255,.22);border-color:transparent;
}
.flow-option-label{flex:1}

/* Text/textarea inputs in flow */
.flow-input-wrap{margin-top:2px}
.flow-helper-text{
  font-size:12px;color:var(--muted);line-height:1.55;
  margin-bottom:8px;font-style:italic;
}
.flow-inp{
  width:100%;padding:13px 16px;
  border-radius:var(--rx);border:1.5px solid var(--border);
  background:var(--surface);font-size:14px;color:var(--charcoal);
  transition:border-color .18s;outline:none;
  font-family:inherit;box-sizing:border-box;
}
.flow-inp:focus{border-color:var(--gm)}
.flow-inp::placeholder{color:var(--muted)}
textarea.flow-inp{min-height:90px;resize:vertical}

/* Flow nav */
.flow-nav{display:flex;align-items:center;gap:10px;margin-top:14px}
.flow-nav-back{
  background:none;border:1px solid var(--border);border-radius:var(--rx);
  padding:10px 18px;font-size:13px;color:var(--muted);
  cursor:pointer;transition:all .18s;flex-shrink:0;
}
.flow-nav-back:hover{border-color:var(--charcoal);color:var(--charcoal)}
.flow-nav-continue{flex:1;padding:11px;font-size:14px;font-weight:600}

/* Generating state */
.flow-generating{
  display:flex;flex-direction:column;align-items:center;
  gap:16px;padding:56px 20px;text-align:center;
}
.flow-generating-icon{
  width:56px;height:56px;background:var(--gm);border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#fff;
  animation:flowPulse 1.9s ease-in-out infinite;
}
@keyframes flowPulse{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 color-mix(in srgb, var(--green) 30%, transparent)}
  50%{transform:scale(1.07);box-shadow:0 0 0 14px color-mix(in srgb, var(--green) 0%, transparent)}
}
.flow-generating-text{font-size:15px;font-weight:600;color:var(--charcoal)}
.flow-generating-sub{font-size:13px;color:var(--muted);margin-top:-4px}

/* ── BrandCore review panel (image flow step 3) ─────────────── */
.flow-brandcore-panel{
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:var(--rx);
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.flow-brandcore-empty{
  align-items:center;
  text-align:center;
  padding:32px 24px;
  border-style:dashed;
  opacity:.75;
}
.fbp-empty-icon{color:var(--muted);margin-bottom:8px;display:flex;justify-content:center}
.fbp-empty-title{font-size:13.5px;font-weight:600;color:var(--charcoal);margin-bottom:6px}
.fbp-empty-sub{font-size:12.5px;color:var(--muted);line-height:1.65;max-width:280px}
.fbp-header{display:flex;align-items:center;gap:12px}
.fbp-icon{
  width:32px;height:32px;
  background:var(--glt);border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;color:var(--gm);
}
.fbp-brand-name{font-size:14px;font-weight:700;color:var(--charcoal);letter-spacing:-.2px}
.fbp-sub{font-size:11.5px;color:var(--muted);margin-top:2px}
.fbp-rows{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);padding-top:14px}
.fbp-row{display:flex;align-items:center;gap:14px}
.fbp-row-label{
  font-size:10.5px;font-weight:600;text-transform:uppercase;
  letter-spacing:.07em;color:var(--muted);
  width:72px;flex-shrink:0;
}
.fbp-row-value{font-size:13px;color:var(--charcoal);line-height:1.4}
.fbp-colors{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.fbp-swatch{
  width:22px;height:22px;border-radius:6px;
  border:1px solid rgba(0,0,0,.09);
  flex-shrink:0;cursor:default;
}
.fbp-note{
  font-size:11.5px;color:var(--muted);line-height:1.65;
}
.fbp-footer{
  border-top:1px solid var(--border);padding-top:12px;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;
}
.fbp-edit-link{
  font-size:11.5px;color:var(--gm);text-decoration:none;font-weight:500;white-space:nowrap;
}
.fbp-edit-link:hover{text-decoration:underline}

/* ── Upload step ───────────────────────────────────────── */
.flow-upload-step{display:flex;flex-direction:column;gap:12px}
.flow-upload-types{display:flex;flex-direction:column;gap:8px}
.flow-upload-type-btn{
  display:flex;flex-direction:column;gap:2px;
  width:100%;text-align:left;
  background:var(--surface);border:1.5px solid var(--border);
  border-radius:var(--rx);padding:11px 14px;cursor:pointer;
  transition:border-color .15s,background .15s;
}
.flow-upload-type-btn:hover{border-color:var(--gm);background:var(--glt)}
.flow-upload-type-btn.active{border-color:var(--gm);background:var(--glt)}
.fut-label{font-size:13.5px;font-weight:600;color:var(--charcoal)}
.fut-hint{font-size:12px;color:var(--muted);margin-top:1px}
.flow-upload-area{
  border:1.5px dashed var(--border);border-radius:var(--rx);
  padding:28px 20px;text-align:center;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  transition:border-color .15s,background .15s;
}
.flow-upload-area:hover{border-color:var(--gm);background:var(--glt)}
.fua-label{font-size:13.5px;font-weight:600;color:var(--charcoal)}
.fua-hint{font-size:12px;color:var(--muted)}
.flow-upload-done{
  display:flex;align-items:center;gap:10px;
  background:var(--glt);border:1.5px solid var(--gm);
  border-radius:var(--rx);padding:10px 14px;
}
.fud-check{
  width:24px;height:24px;border-radius:50%;background:var(--gm);
  color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.fud-info{flex:1;font-size:13px;font-weight:600;color:var(--charcoal)}
.fud-remove{
  font-size:12px;color:var(--muted);background:none;border:none;
  cursor:pointer;padding:2px 4px;text-decoration:underline;
}
.fud-remove:hover{color:var(--charcoal)}

/* Keep legacy builder classes used by result/ad/campaign rendering */
.builder-section{margin-bottom:22px}
.builder-lbl{
  font-size:12px;font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted);margin-bottom:10px;
  display:flex;align-items:center;gap:8px;
}
.builder-opt{font-weight:400;text-transform:none;letter-spacing:0;font-size:11.5px;color:var(--muted);opacity:.7}
.builder-req{font-weight:500;text-transform:none;letter-spacing:0;font-size:11px;color:var(--err-c,#DC2626);opacity:.85}
.b-pills{display:flex;flex-wrap:wrap;gap:8px}
.b-pill{
  padding:7px 16px;border-radius:20px;font-size:13px;font-weight:500;
  border:1.5px solid var(--border);background:var(--surface);
  color:var(--charcoal);cursor:pointer;transition:all var(--t);user-select:none;
}
.b-pill:hover{border-color:var(--gm);color:var(--gm);background:var(--glt)}
.b-pill.active{border-color:var(--gm);background:var(--gm);color:#000}

/* ── Image builder brand preview ── */
.builder-section--brand{border-top:1px solid var(--border);padding-top:18px;margin-top:4px}
.img-brand-preview{
  background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:14px 16px;
}
.img-brand-preview--empty{
  font-size:13px;color:var(--muted);text-align:center;padding:14px 16px;
  border:1px dashed var(--border);border-radius:10px;
}
.img-brand-preview--empty a{color:var(--gm);text-decoration:none}
.ibp-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ibp-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.ibp-edit{font-size:12px;color:var(--gm);text-decoration:none;font-weight:500}
.ibp-edit:hover{text-decoration:underline}
.ibp-rows{display:flex;flex-direction:column;gap:5px}
.ibp-row{display:flex;gap:10px;align-items:baseline;font-size:13px}
.ibp-lbl{color:var(--dim);min-width:52px;font-size:12px}
.ibp-val{color:var(--charcoal);line-height:1.4}

.builder-result-wrap{
  margin-top:28px;
  border:1px solid var(--border);border-radius:var(--rx);
  overflow:hidden;
  background:var(--surface);
}
.builder-result-bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;border-bottom:1px solid var(--border);
  background:var(--bg2);
}
.builder-result-label{
  font-size:12px;font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted);
}
.builder-result-actions{display:flex;gap:8px}
.builder-result-body{padding:20px}

/* Image result */
.builder-result-img{
  width:100%;border-radius:calc(var(--rx) - 2px);
  display:block;
}

/* Text result */
.builder-result-text{
  font-size:14.5px;line-height:1.7;color:var(--charcoal);
  white-space:pre-wrap;
}

/* ── Web: brand confirmation panel ──────────────────────────── */
.wbc-panel{
  padding:24px 0 8px;
  max-width:560px;
}
.wbc-title{font-size:17px;font-weight:700;color:var(--text);margin-bottom:4px}
.wbc-sub{font-size:13px;color:var(--muted);margin-bottom:20px;line-height:1.5}
.wbc-logo-wrap{margin-bottom:20px}
.wbc-logo-img{max-height:48px;max-width:180px;object-fit:contain;display:block}
.wbc-logo-empty{
  font-size:13px;font-weight:600;color:var(--muted);
  padding:10px 14px;border:1px dashed var(--border);border-radius:6px;
  display:inline-block;
}
.wbc-cols{display:flex;gap:32px;flex-wrap:wrap;margin-bottom:24px}
.wbc-section{flex:1;min-width:180px}
.wbc-section-label{
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);margin-bottom:12px;
}
.wbc-color-row{
  display:flex;align-items:center;gap:10px;
  margin-bottom:8px;cursor:pointer;
}
.wbc-swatch-wrap{position:relative;flex-shrink:0}
.wbc-swatch{
  width:28px;height:28px;border-radius:6px;
  border:1px solid rgba(255,255,255,.12);
  pointer-events:none;
}
.wbc-color-inp{
  position:absolute;inset:0;opacity:0;cursor:pointer;
  width:100%;height:100%;border:none;padding:0;
}
.wbc-color-info{display:flex;flex-direction:column;gap:1px}
.wbc-color-label{font-size:12px;font-weight:600;color:var(--text)}
.wbc-color-hex{font-size:11px;color:var(--muted);font-family:monospace}
.wbc-font-row{
  display:flex;flex-direction:column;gap:2px;
  margin-bottom:10px;
}
.wbc-font-role{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.wbc-font-name{font-size:14px;color:var(--text)}
.wbc-actions{display:flex;gap:10px;padding-top:4px}
.wbc-section-full{margin-bottom:20px}
.wbc-section-sub{font-size:12px;color:var(--muted);margin-bottom:12px}

/* ── Web: section picker ─────────────────────────────────── */
.wbs-grid{display:flex;flex-wrap:wrap;gap:8px}
.wbs-item{
  display:flex;align-items:center;gap:6px;
  padding:6px 12px;border-radius:20px;
  border:1px solid var(--border);background:var(--bg2);
  cursor:pointer;user-select:none;
  font-size:12.5px;font-weight:500;color:var(--muted);
  transition:background .12s,border-color .12s,color .12s;
}
.wbs-item:hover{border-color:var(--green);color:var(--green)}
.wbs-item-on{
  background:var(--green);border-color:var(--green);color:#000;
}
.wbs-item-on:hover{background:var(--gm);border-color:var(--gm);color:#000}
.wbs-item-locked{cursor:default;opacity:.75}
.wbs-check{display:none}
.wbs-lock{
  font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;opacity:.7;
}

/* ── Web: edit mode indicator ────────────────────────────── */
.bwr-editbar{
  padding:8px 16px;font-size:12px;font-weight:600;
  color:#92400E;background:#FEF3C7;
  border-bottom:1px solid #FDE68A;
}
.bwr-btn-edit{border-color:var(--green);color:var(--green)}
.bwr-btn-edit:hover{background:var(--green);color:#fff}
.bwr-btn-done{border-color:#BFA07A;background:#BFA07A;color:#fff}
.bwr-btn-done:hover{background:#a88a60;border-color:#a88a60}

/* ── Web: result area ─────────────────────────────────────── */
.builder-web-result{display:flex;flex-direction:column;gap:0}
.bwr-toolbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 16px;border-bottom:1px solid var(--border);
  background:var(--bg2);
}
.bwr-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.bwr-actions{display:flex;gap:8px}
.bwr-btn{
  font-size:12px;font-weight:600;padding:6px 14px;
  border-radius:6px;border:1px solid var(--border);
  background:var(--surface);color:var(--text);cursor:pointer;
  transition:background .15s,border-color .15s;
}
.bwr-btn:hover{background:var(--bg2);border-color:var(--accent)}
.bwr-btn-zip{border-color:var(--accent);color:var(--accent)}
.bwr-btn-zip:hover{background:var(--accent);color:#fff}
.bwr-frame{
  width:100%;height:560px;border:none;
  background:#fff;display:block;
}
/* ── Web: publish guide ─────────────────────────────────── */
.bwr-publish{
  padding:20px 20px 16px;
  border-top:1px solid var(--border);
  background:var(--bg2);
}
.bwr-publish-title{
  font-size:13px;font-weight:700;color:var(--text);
  margin-bottom:10px;
}
.bwr-publish-steps{
  margin:0;padding-left:18px;
  display:flex;flex-direction:column;gap:6px;
}
.bwr-publish-steps li{
  font-size:12.5px;color:var(--muted);line-height:1.5;
}
.bwr-publish-steps li strong{color:var(--text)}

/* ── Image composite (visual + text overlay) ─────────────────── */
.img-composite{
  display:flex;
  flex-direction:column;
  border-radius:calc(var(--rx) - 2px);
  overflow:hidden;
}

/* Format frames — correct aspect ratios */
.img-frame{
  position:relative;
  overflow:hidden;
  width:100%;
  background:var(--bg2);
}
.img-frame-1x1  { aspect-ratio:1/1; }
.img-frame-4x5  { aspect-ratio:4/5; }
.img-frame-9x16 { aspect-ratio:9/16; max-width:340px; margin:0 auto; }
.img-frame-16x9 { aspect-ratio:16/9; }

.img-bg-layer{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Text overlay layer */
.img-text-layer{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px 24px;
  transition:opacity .2s;
}
.img-text-inner{
  display:flex;
  flex-direction:column;
  gap:5px;
}

/* ── Light text (default) ── */
.img-txt-light .img-text-layer{
  background:linear-gradient(to top,rgba(0,0,0,.55) 0%,rgba(0,0,0,.18) 55%,transparent 100%);
}
.img-txt-light .itl-headline,
.img-txt-light .itl-subtext,
.img-txt-light .itl-cta { color:#fff; }

/* ── Dark text ── */
.img-txt-dark .img-text-layer{
  background:linear-gradient(to top,rgba(255,255,255,.62) 0%,rgba(255,255,255,.18) 55%,transparent 100%);
}
.img-txt-dark .itl-headline,
.img-txt-dark .itl-subtext,
.img-txt-dark .itl-cta { color:#18181A; }

/* ── Bold text style ── */
.img-txt-bold .itl-headline{
  font-family:'Geist',sans-serif;
  font-size:clamp(18px,3.8vw,32px);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.05;
  text-transform:uppercase;
}
.img-txt-bold .itl-subtext{
  font-size:clamp(11px,1.8vw,14px);
  font-weight:500;
  opacity:.9;
  line-height:1.4;
}
.img-txt-bold .itl-cta{
  font-size:clamp(10px,1.5vw,12px);
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-top:6px;
}

/* ── Minimal text style ── */
.img-txt-minimal .itl-headline{
  font-family:'Geist',sans-serif;
  font-size:clamp(16px,3vw,26px);
  font-weight:300;
  letter-spacing:.05em;
  line-height:1.25;
}
.img-txt-minimal .itl-subtext{
  font-size:clamp(10px,1.5vw,12px);
  font-weight:400;
  opacity:.72;
  letter-spacing:.04em;
}
.img-txt-minimal .itl-cta{
  font-size:clamp(10px,1.4vw,11px);
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-top:6px;
}

/* ── Editorial text style ── */
.img-txt-editorial .itl-headline{
  font-family:'Instrument Serif',serif;
  font-size:clamp(18px,4vw,34px);
  font-weight:400;
  font-style:italic;
  line-height:1.15;
  letter-spacing:-.005em;
}
.img-txt-editorial .itl-subtext{
  font-family:'Geist',sans-serif;
  font-size:clamp(10px,1.5vw,12px);
  font-weight:400;
  letter-spacing:.07em;
  text-transform:uppercase;
  opacity:.78;
}
.img-txt-editorial .itl-cta{
  font-family:'Geist',sans-serif;
  font-size:clamp(10px,1.4vw,12px);
  font-weight:500;
  letter-spacing:.05em;
  margin-top:6px;
}

/* ── Clean text style ── */
.img-txt-clean .itl-headline{
  font-family:'Geist',sans-serif;
  font-size:clamp(16px,3.2vw,28px);
  font-weight:600;
  letter-spacing:-.01em;
  line-height:1.2;
}
.img-txt-clean .itl-subtext{
  font-size:clamp(11px,1.6vw,13px);
  font-weight:400;
  opacity:.84;
  line-height:1.5;
}
.img-txt-clean .itl-cta{
  font-size:clamp(10px,1.5vw,12px);
  font-weight:600;
  letter-spacing:.03em;
  margin-top:6px;
}

/* ── Premium text style ── */
.img-txt-premium .itl-headline{
  font-family:'Instrument Serif',serif;
  font-size:clamp(18px,3.8vw,32px);
  font-weight:400;
  letter-spacing:.02em;
  line-height:1.2;
}
.img-txt-premium .itl-subtext{
  font-family:'Geist',sans-serif;
  font-size:clamp(10px,1.5vw,11px);
  font-weight:400;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.78;
}
.img-txt-premium .itl-cta{
  font-family:'Geist',sans-serif;
  font-size:clamp(10px,1.4vw,11px);
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-top:6px;
}

/* Composite control bar */
.img-composite-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 14px;
  border-top:1px solid var(--border);
  background:var(--bg2);
  flex-wrap:wrap;
  gap:8px;
}
.img-toggle-label{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12.5px;
  color:var(--charcoal);
  cursor:pointer;
  user-select:none;
}
.img-toggle-label input{cursor:pointer;accent-color:var(--gm)}
.img-color-row{display:flex;align-items:center;gap:7px}
.img-bar-lbl{font-size:12px;color:var(--muted)}
.icb{
  padding:4px 13px;
  border-radius:20px;
  font-size:12px;
  font-weight:500;
  border:1.5px solid var(--border);
  background:var(--surface);
  color:var(--charcoal);
  cursor:pointer;
  transition:all var(--t);
}
.icb.active{border-color:var(--gm);background:var(--gm);color:#000}
.icb:hover:not(.active){border-color:var(--gm);color:var(--gm)}

/* Required label in builder */
.builder-req{
  font-weight:500;
  text-transform:none;
  letter-spacing:0;
  font-size:11px;
  color:var(--err-c,#DC2626);
  opacity:.85;
}

/* Ad result */
.builder-ad-result{display:flex;flex-direction:column;gap:16px}
.builder-ad-result img{
  width:100%;border-radius:calc(var(--rx) - 2px);
  display:block;margin-bottom:4px;
}
.bar-title{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--gm);margin-bottom:4px}
.bar-headline{font-size:18px;font-weight:700;color:var(--charcoal);line-height:1.3}
.bar-body{font-size:14px;color:var(--charcoal);line-height:1.65;opacity:.85}
.bar-cta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.bar-cta{
  padding:8px 20px;border-radius:20px;font-size:13px;font-weight:600;
  background:var(--gm);color:#000;display:inline-block;
}

/* Campaign variation cards */
.camp-variations{display:flex;flex-direction:column;gap:20px}
.camp-var-card{border:1px solid var(--border);border-radius:var(--rx);overflow:hidden;background:var(--surface)}
.cvcard-img-wrap{width:100%}
.cvcard-img{width:100%;display:block}
.cvcard-body{padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.cvcard-num{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--gm)}
.cvcard-title{font-size:13px;font-weight:700;color:var(--charcoal)}
.cvcard-headline{font-size:16px;font-weight:700;color:var(--charcoal);line-height:1.3}
.cvcard-text{font-size:13.5px;color:var(--charcoal);line-height:1.65;opacity:.85}
.cvcard-cta-row{display:flex;margin-top:4px}
.cvcard-cta{padding:7px 18px;border-radius:20px;font-size:13px;font-weight:600;background:var(--gm);color:#000;display:inline-block}

/* Campaign result (legacy) */
.builder-campaign-result{display:flex;flex-direction:column;gap:20px}
.bcr-title{font-size:17px;font-weight:700;color:var(--charcoal);margin-bottom:4px}
.bcr-message{font-size:14px;color:var(--charcoal);line-height:1.65;opacity:.85}
.bcr-body{font-size:13.5px;color:var(--charcoal);line-height:1.7;white-space:pre-wrap}

/* Loading — terminal code writer */
.code-loader{
  background:#0A0A0A;border:1px solid color-mix(in srgb, var(--green) 14%, transparent);
  border-radius:10px;overflow:hidden;
  font-family:'JetBrains Mono','Fira Code','Courier New',monospace;
  margin:12px 0;
}
.cl-header{
  display:flex;align-items:center;gap:7px;padding:10px 14px;
  background:#111;border-bottom:1px solid rgba(255,255,255,0.06);
}
.cl-dot{width:10px;height:10px;border-radius:50%}
.cl-red{background:#FF5F56}.cl-yellow{background:#FFBD2E}.cl-green{background:#27C93F}
.cl-title{
  font-size:11px;color:rgba(255,255,255,0.28);margin-left:6px;letter-spacing:0.3px;
  font-family:'Geist',system-ui,sans-serif;
}
.cl-body{padding:18px 20px;display:flex;flex-direction:column;gap:11px;min-height:160px}
/* Base line styles — items are injected by JS, start invisible */
.cl-line,.cl-micro{
  display:flex;align-items:flex-start;gap:10px;
  opacity:1;transition:opacity 0.22s ease;
}
.cl-line.cl-enter,.cl-micro.cl-enter{
  opacity:0;transform:translateX(-4px);
  transition:opacity 0.24s ease,transform 0.24s ease;
}
/* Active step (currently running) */
.cl-line-active .cl-prompt{color:var(--green)}
/* Completed step */
.cl-line-done{opacity:0.48!important}
.cl-line-done .cl-prompt{color:color-mix(in srgb, var(--green) 55%, transparent)!important;font-size:11px}
.cl-prompt{color:var(--green);font-size:12px;font-weight:700;flex-shrink:0;margin-top:1px;user-select:none}
.cl-text{color:rgba(255,255,255,0.75);font-size:12.5px;line-height:1.5}
/* Animated dots on active step */
.cl-dots{color:color-mix(in srgb, var(--green) 70%, transparent);font-size:12px;letter-spacing:2px;margin-left:2px}
.cl-dots::after{
  content:'';animation:clDotsCycle 1.4s steps(4,end) infinite;
}
@keyframes clDotsCycle{
  0%  {content:''}
  25% {content:'.'}
  50% {content:'..'}
  75% {content:'...'}
  100%{content:''}
}
/* Micro-update lines */
.cl-micro{gap:8px}
.cl-micro-prompt{color:rgba(255,255,255,0.2);font-size:11px;flex-shrink:0;margin-top:1px;user-select:none}
.cl-micro-text{color:rgba(255,255,255,0.32);font-size:11.5px;font-style:italic}
/* Blinking cursor */
.cl-cursor{
  display:inline-block;width:7px;height:13px;background:var(--green);border-radius:1px;
  animation:clBlink 1.05s step-end infinite;vertical-align:middle;margin-left:2px;
}
@keyframes clBlink{0%,100%{opacity:1}50%{opacity:0}}

/* Error */
.builder-error{
  padding:20px;text-align:center;
  font-size:13.5px;color:var(--err-c,#DC2626);
  background:var(--err-bg,#FEF2F2);border-radius:calc(var(--rx) - 2px);
}

/* ═══ SETTINGS ══════════════════════════════════════════════════ */
#page-settings{display:none;padding:0}
/* Responsive Layout Audit pass — #page-settings is a direct .app child
   (same structural family as #page-campaign-results/#page-autopilot,
   see the app-shell overflow comment ~line 24660), but unlike those two
   it had no overflow-y of its own at all (defaulted to the CSS initial
   value, visible). .app's own overflow:hidden then invisibly clipped any
   Settings content taller than one viewport, with no scrollbar anywhere
   to reach it — confirmed by directly measuring the real rendered page:
   content was clipped with zero scroll affordance. Settings' own tab
   content easily exceeds one viewport (Business Profile, Brand Identity,
   Team, Billing, etc.), so this was a genuine, reachable bug, not a
   theoretical one. */
#page-settings.active{display:block;overflow-y:auto;overflow-x:hidden}
.se-outer{max-width:1040px;margin:0 auto;padding:44px 40px 80px}

/* Settings hero */
.se-hero{padding:44px 0 36px;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) both}
.se-hero-eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.se-hero-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);flex-shrink:0;animation:dashDotPulse 2.5s ease-in-out infinite}
.se-hero-eyebrow span{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.se-headline{font-family:'Instrument Serif',serif;font-size:clamp(30px,4vw,46px);font-weight:400;color:var(--charcoal);letter-spacing:-1.4px;line-height:1.05;margin-bottom:10px}
.se-hero-sub{font-size:14px;color:var(--muted);line-height:1.6;max-width:400px}

/* Layout */
.se-layout{display:grid;grid-template-columns:156px 1fr;gap:24px;align-items:start;animation:dashFadeUp .5s cubic-bezier(.22,1,.36,1) .06s both}
.se-content{min-width:0}

/* Nav */
.se-nav{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:12px;position:sticky;top:20px}
.se-nav-group{margin-bottom:0}
.se-nav-group+.se-nav-group{margin-top:6px;padding-top:10px;border-top:1px solid var(--border)}
.se-nav-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--charcoal);padding:4px 10px 7px;opacity:.6;cursor:default;pointer-events:none;user-select:none}
.snav-item{padding:9px 12px;border-radius:10px;font-size:13px;color:var(--muted);cursor:pointer;transition:background .15s,color .15s;margin-bottom:1px;line-height:1.3}
.snav-item:hover{background:var(--bg2);color:var(--charcoal)}
.snav-item.active{background:var(--gpale);color:var(--green);font-weight:600}

/* Panels */
.spanel{display:none}.spanel.active{display:block}
.se-panel-hd{padding-bottom:22px;border-bottom:1px solid var(--border);margin-bottom:28px}
.se-panel-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);opacity:.5;margin-bottom:10px;display:none}
.se-panel-title{font-family:'Geist',system-ui,-apple-system,sans-serif;font-size:20px;font-weight:700;color:var(--charcoal);letter-spacing:-.03em;line-height:1.15;margin-bottom:7px}
.se-panel-sub{font-size:13px;color:var(--muted);line-height:1.65;max-width:460px}

/* Cards */
.se-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;margin-bottom:12px}
.se-card-title{font-size:13px;font-weight:700;color:var(--charcoal);letter-spacing:-.15px;margin-bottom:10px}
.se-card-help{font-size:12px;color:var(--muted);line-height:1.6;margin-top:-4px}
.se-input-row{display:flex;align-items:center;gap:10px;margin-top:12px}
.se-input-row .inp{max-width:280px}
.se-theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}

/* AI card */
.se-card-ai{background:linear-gradient(135deg,color-mix(in srgb, var(--green) 3%, transparent) 0%,color-mix(in srgb, var(--green) 1%, transparent) 100%);border-color:color-mix(in srgb, var(--green) 10%, transparent)}
.se-ai-insight{display:flex;align-items:flex-start;gap:10px;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:10px}
.se-ai-insight-dot{width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0;margin-top:4px}
.se-ai-insight-body{font-size:12px;color:var(--muted);line-height:1.6}

/* Danger zone */
.se-danger-zone{border:1px solid rgba(239,68,68,.2);background:rgba(254,242,242,.5);border-radius:16px;padding:24px}
.se-danger-title{font-size:13px;font-weight:700;color:#DC2626;margin-bottom:6px}
.se-danger-desc{font-size:12px;color:#7F1D1D;margin-bottom:16px;line-height:1.65}

/* ═══ CONFIGURATOR BAR (Image / Ads / Campaign / Video) ════════ */
.img-cfg{
  border-top:1px solid var(--border);
  padding:14px 20px 12px;
  background:var(--surface);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.img-cfg-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.img-cfg-lbl{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  min-width:44px;
  flex-shrink:0;
}
.img-type-pills,
.img-format-pills{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.img-pill{
  font-size:12px;
  font-weight:500;
  color:var(--muted);
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:20px;
  padding:4px 13px;
  cursor:pointer;
  transition:all .14s ease;
  line-height:1.5;
  white-space:nowrap;
}
.img-pill:hover{
  color:var(--charcoal);
  border-color:var(--b2);
  background:var(--bg3);
}
.img-pill.active{
  color:#fff;
  background:var(--green);
  border-color:var(--green);
}
.img-pill-hint{
  font-size:10px;
  opacity:.6;
  margin-left:2px;
}

/* ═══ YOUR PLAN SECTION ════════════════════════════════════════ */
.plan-status-bar{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:14px 16px;margin-bottom:20px;display:flex;flex-direction:column;gap:8px}
.plan-status-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.plan-status-badge{background:var(--green);color:#000;font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;letter-spacing:.2px}
.plan-status-renew{font-size:13px;color:var(--muted)}
.plan-status-pending{display:flex;align-items:center;gap:6px;font-size:12px;background:var(--warn-bg);color:var(--warn-c);border-radius:8px;padding:8px 12px;flex-wrap:wrap}
.plan-status-pending svg{flex-shrink:0}
.plan-cancel-btn{background:none;border:1px solid currentColor;border-radius:6px;color:inherit;font-size:11px;padding:2px 8px;cursor:pointer;margin-left:auto;line-height:1.4}
.plan-cancel-btn:hover{opacity:.7}
.plan-credits-block{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:16px 18px;margin-bottom:20px}
.plan-credits-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.plan-credits-label{font-size:13px;font-weight:600;color:var(--charcoal)}
.plan-credits-count{font-size:13px;font-weight:700;color:var(--gm);font-variant-numeric:tabular-nums}
.plan-credits-bar{height:6px;background:var(--bg3);border-radius:4px;overflow:hidden;margin-bottom:8px}
.plan-credits-fill{height:100%;border-radius:4px;transition:width .4s ease}
.plan-credits-sub{font-size:11px;color:var(--muted);line-height:1.4}

/* ── Plan Usage block ──────────────────────────────────────── */
.plan-usage-block{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:18px 20px;margin-bottom:20px}
.plan-usage-title{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:16px}
.plan-usage-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.plan-usage-row:last-of-type{margin-bottom:0}
.plan-usage-row-lbl{font-size:12px;color:var(--c2);flex:0 0 120px;white-space:nowrap}
.plan-usage-row-right{flex:1;display:flex;align-items:center;gap:10px;min-width:0}
.plan-usage-bar{flex:1;height:5px;background:var(--bg3);border-radius:3px;overflow:hidden}
.plan-usage-fill{height:100%;border-radius:3px;transition:width .5s ease}
.plan-usage-count{font-size:12px;font-weight:600;color:var(--charcoal);font-variant-numeric:tabular-nums;white-space:nowrap;flex:0 0 44px;text-align:right}
.plan-usage-meta{margin-top:16px;padding-top:14px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:10px}
.plan-usage-meta-item{display:flex;flex-direction:column;gap:2px;flex:1;min-width:80px}
.plan-usage-meta-lbl{font-size:10px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.plan-usage-meta-val{font-size:13px;font-weight:600;color:var(--gm)}

.plan-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:4px}
.plan-card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--rl);padding:24px 20px 18px;display:flex;flex-direction:column;gap:14px;transition:border-color var(--t),box-shadow var(--t);position:relative}
.plan-card--current{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.plan-card--pending{border-color:var(--gm);border-style:dashed}
.plan-card--popular{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.plan-card--agency{border-style:dashed;opacity:.8}
.plan-price-cs{font-size:16px;font-weight:600;color:var(--muted);letter-spacing:-.2px}
.plan-popular-tag{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:var(--green);color:#000;font-size:10px;font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;letter-spacing:.3px}
.plan-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.plan-card-name{font-size:15px;font-weight:600;color:var(--charcoal)}
.plan-badge{font-size:10px;font-weight:600;padding:3px 8px;border-radius:20px;white-space:nowrap}
.plan-badge--current{background:var(--glt);color:var(--green)}
.plan-badge--pending{background:var(--warn-bg);color:var(--warn-c)}
.plan-card-price{display:flex;align-items:baseline;gap:3px}
.plan-price-num{font-family:'Instrument Serif',serif;font-size:26px;color:var(--charcoal);letter-spacing:-.5px}
.plan-price-per{font-size:12px;color:var(--muted)}
.plan-features{list-style:none;display:flex;flex-direction:column;gap:7px;flex:1}
.plan-features li{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:var(--c2);line-height:1.45}
.plan-features svg{flex-shrink:0;margin-top:1px;stroke:var(--gm)}
.plan-card-action{margin-top:auto}
.plan-card-action .btn{width:100%;justify-content:center}
.plan-free-row{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--rl);padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px;flex-wrap:wrap}
.plan-free-row--current{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.plan-free-row--pending{border-color:var(--gm);border-style:dashed}
.plan-free-info{flex:1;min-width:0}
.plan-free-name{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:3px}
.plan-free-feats{font-size:11px;color:var(--muted);line-height:1.5}
.plan-free-right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.plan-free-price{font-family:'Instrument Serif',serif;font-size:20px;color:var(--charcoal)}
@media(max-width:1040px){.plan-cards{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.plan-cards{grid-template-columns:1fr}}

/* ── MOBILE HEADER BAR (desktop: hidden; mobile: fixed strip at top) ── */
#mobileBar{
  display:none;position:fixed;top:0;left:0;right:0;
  height:56px;z-index:1001;
  background:var(--surface);border-bottom:1px solid var(--border);
  align-items:center;padding:0 8px;
}
.mb-wordmark{
  flex:1;display:flex;align-items:center;justify-content:center;
  gap:8px;padding-right:44px;pointer-events:none;user-select:none;
}
.mb-wordmark img{width:20px;height:20px;object-fit:contain;display:block}
.mb-name{font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--charcoal);text-transform:uppercase;line-height:1}

/* ── HAMBURGER BUTTON (lives inside #mobileBar on mobile) ──────── */
#sbToggle{
  display:none;
  width:44px;height:44px;border-radius:10px;
  background:none;border:none;
  align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
}
#sbToggle svg{width:18px;height:18px;stroke:var(--charcoal);fill:none;stroke-width:1.8;stroke-linecap:round}

/* ── SIDEBAR OVERLAY ──────────────────────────────────────────── */
#sbOverlay{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:998;
}
#sbOverlay.active{display:block}

/* ── TABLET / MOBILE BREAKPOINT ─────────────────────────────── */
@media(max-width:768px){
  /* ── 1. Show mobile bar + hamburger ── */
  #mobileBar{display:flex}
  #sbToggle{display:flex}

  /* ── 3. Sidebar off-canvas drawer — starts below the 56px mobile bar ── */
  .sb{
    position:fixed;left:-220px;top:56px;height:calc(100vh - 56px);z-index:999;
    width:200px;min-width:200px;
    transition:left .25s ease;
    box-shadow:var(--shl);
  }
  .sb.sb-open{left:0}

  /* ── 4. Logo area: clean padding, no hamburger clearance needed ── */
  .sb-logo{
    display:flex;
    align-items:center;
    padding:14px 16px;
  }
  .sb-logo .logo{gap:8px}

  /* ── 5. Remove the green identity card in drawer mode — the rounded
          dark-green box clips and splits against the drawer edge at mobile
          widths, making it look broken. Replace with flat unstyled text. ── */
  .sb-identity{
    background:none;
    border-radius:0;
    padding:6px 4px 2px;
    margin:0;
  }
  .sb-identity-name{color:var(--charcoal)}
  .sb-identity-sub{color:var(--muted)}
  .sb-signout{color:var(--muted)}

  /* Override any icon-only rules from the old 480px block */
  .sb .logo-name,.ni span{display:initial}
  .ni{padding:9px 10px;justify-content:flex-start}

  /* Main content fills full width */
  .mc{width:100%}
  .page{padding-top:0}

  /* Dashboard — page-level scroll, no nested overflow */
  #page-dashboard.active{height:auto;min-height:100%}
  #page-dashboard .dash-outer{padding:64px 20px 60px;height:auto}
  .dash-col-item{overflow:visible;height:auto}
  .dash-col-item>div:not(.dash-section-hd){overflow-y:visible;flex:none;height:auto}

  /* Create */
  .cr-outer{padding:0 20px 60px}
  .cr-hero{padding:64px 0 40px}
  #page-create-workspace{padding:64px 20px 40px}

  /* Studio */
  #page-studio .st-outer{padding-top:64px}
  /* BrandCore scroll container — clear mobile bar + 28px breathing room */
  .bcp-scroll{padding-top:calc(56px + env(safe-area-inset-top,0px) + 28px)}
  #page-inspiration .ph{padding-top:64px}

  /* Brand Assistant — just needs extra top space */
  .chat-shell{padding:0 12px}
  #page-aichat .chat-shell{padding-top:64px}

  /* Settings */
  #page-settings .se-outer{padding-top:64px}
  .se-layout{grid-template-columns:1fr}
  .se-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;padding:10px;border-radius:12px}
  .se-nav-group{display:contents}
  .se-nav-label{display:none}
  .snav-item{padding:6px 11px;font-size:12px;border-radius:8px;margin-bottom:0}

  /* Plan cards — single column */
  .plan-cards{grid-template-columns:1fr}
  .plan-status-bar{flex-direction:column;align-items:flex-start;gap:8px}
  .plan-free-row{flex-direction:column;align-items:flex-start;gap:8px}
  .plan-free-right{width:100%;justify-content:space-between}

  /* Studio panel — slide in from right, clear hamburger */
  .sh-panel-view:not(.hidden){animation:spSlideIn 0.24s cubic-bezier(.22,.68,0,1.2) both}
  @keyframes spSlideIn{from{transform:translateX(22px);opacity:0}to{transform:translateX(0);opacity:1}}
  .sh-panel-header{padding-top:calc(56px + env(safe-area-inset-top,0px) + 18px);padding-bottom:18px} /* clear bar + safe area, balanced below */
  .sh-back-btn{min-height:44px;padding:10px 14px;font-size:14px}
  .sh-back-btn svg{width:16px;height:16px}
  .studio-panel.active{padding-bottom:env(safe-area-inset-bottom,24px)}

  /* Studio page tab bar */
  .studio-tabs,.tabs-row{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}

  /* Ideas page */
  #page-inspiration .id-cont{padding-top:64px}
  .id-concept-grid{grid-template-columns:1fr}
  .sh-cards{grid-template-columns:1fr}

  /* Team page */
  #page-team .tm-outer{padding-top:64px}
  .check-panel{grid-template-columns:1fr}
}

/* ── SMALL MOBILE ────────────────────────────────────────────── */
@media(max-width:480px){
  .sb{width:200px;min-width:200px}
  .sb .logo-name,.sb-identity,.ni span{display:initial}
  .ni{padding:9px 10px;justify-content:flex-start}
  .create-h1{font-size:24px}
  .snav-item{font-size:11px;padding:4px 8px}
  .plan-popular-tag{font-size:9px;padding:2px 7px}
}

/* ── THEME PICKER ─────────────────────────────────────────────── */
.theme-pick{
  border:2px solid var(--border);
  border-radius:var(--rl);
  padding:12px;
  cursor:pointer;
  transition:all var(--t);
}
.theme-pick:hover{border-color:var(--b2)}
.theme-pick.active{border-color:var(--green);background:var(--gpale)}
.theme-prev{
  display:flex;gap:6px;
  border-radius:8px;overflow:hidden;
  height:60px;margin-bottom:8px;
}
.theme-prev-light{background:#F6F3EE}
.theme-prev-dark{background:#0F0F10}
.tp-sidebar{width:30%;background:#FFF;border-right:1px solid #E0DAD1}
.tp-sidebar-dark{background:#18181A;border-right-color:#2C2C2E}
.tp-content{flex:1;padding:6px;display:flex;flex-direction:column;gap:4px}
.tp-card{height:16px;background:#FFF;border-radius:4px;border:1px solid #E0DAD1}
.tp-card-dark{background:#1A1A1C;border-color:#2C2C2E}
.theme-pick-label{font-size:12px;font-weight:600;color:var(--c2);text-align:center}

/* ── ACCENT COLOR PICKER ───────────────────────────────────── */
.accent-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.accent-swatch{
  width:34px;height:34px;border-radius:50%;border:2.5px solid transparent;
  cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s;
  outline:none;box-shadow:0 2px 6px rgba(0,0,0,.14);
  display:flex;align-items:center;justify-content:center;
}
.accent-swatch:hover{transform:scale(1.13)}
.accent-swatch.active{
  border-color:var(--charcoal);
  box-shadow:0 0 0 3px rgba(0,0,0,.1),0 2px 6px rgba(0,0,0,.14);
}
.accent-swatch.active::after{
  content:'';width:8px;height:8px;border-radius:50%;background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.3);
}

.logo-mk img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
/* ── CANCEL PLAN SECTION ────────────────────────────────────── */
.plan-cancel-section{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:16px 20px;margin-top:12px;
  border:1px solid var(--border);border-radius:10px;
  background:var(--surface);
}
.plan-cancel-section-title{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:2px}
.plan-cancel-section-sub{font-size:12px;color:var(--muted)}
/* Was a hardcoded light background (#fff9f9) with no dark-mode override --
   .btn-g's text (var(--c2)) and .plan-cancel-confirm-text (var(--charcoal))
   both flip to near-white in dark mode, so on the always-light card that
   rendered as white-on-white. Reuses the existing theme-aware danger
   tokens (--err-bg/--err-c, already defined for both themes in :root /
   body.dark-mode) instead of a bespoke color, so both themes stay legible. */
.plan-cancel-confirm{
  padding:16px 20px;margin-top:8px;
  border:1px solid color-mix(in srgb, var(--err-c) 30%, transparent);
  border-radius:10px;
  background:var(--err-bg);
}
.plan-cancel-confirm-title{font-size:14px;font-weight:700;color:var(--charcoal);margin-bottom:4px}
.plan-cancel-confirm-text{font-size:13px;color:var(--charcoal);margin-bottom:12px;line-height:1.5}
.plan-cancel-confirm-btns{display:flex;gap:8px}
.btn-danger{
  background:#e53935;color:#fff;border:none;
}
.btn-danger:hover{background:#c62828}

/* ── EMAIL VERIFICATION BANNER ──────────────────────────────── */
.verify-banner{
  position:fixed;bottom:0;left:0;right:0;z-index:7999;
  background:#78350f;color:#fef3c7;
  display:flex;align-items:center;gap:12px;
  padding:11px 20px;font-size:13px;line-height:1.4;
  border-top:1px solid rgba(0,0,0,.15);
}
.verify-banner-icon{flex-shrink:0;opacity:.85}
.verify-banner-text{flex:1}
.verify-banner-resend{
  flex-shrink:0;
  background:rgba(255,255,255,.15);
  color:#fef3c7;
  border:1px solid rgba(255,255,255,.3);
  border-radius:7px;
  font-size:12px;font-weight:600;
  cursor:pointer;
  padding:5px 13px;
  white-space:nowrap;
  transition:background .15s;
}
.verify-banner-resend:hover:not(:disabled){background:rgba(255,255,255,.25)}
.verify-banner-resend:disabled{opacity:.55;cursor:not-allowed}
.verify-banner-close{
  flex-shrink:0;background:none;border:none;
  color:rgba(254,243,199,.65);cursor:pointer;
  padding:4px;display:flex;align-items:center;
  border-radius:5px;transition:color .15s;
}
.verify-banner-close:hover{color:#fef3c7}
@media(max-width:600px){
  .verify-banner{flex-wrap:wrap;gap:8px;padding:12px 16px 14px}
  .verify-banner-text{font-size:12px;min-width:0}
}

/* ════════════════════════════════════════════════════════════
   AI CONVERSATION FLOW OVERLAY
   ════════════════════════════════════════════════════════════ */

/* ── Overlay backdrop ── */
.cf-overlay{
  position:fixed;inset:0;z-index:9800;
  display:flex;align-items:center;justify-content:center;
  background:rgba(10,12,10,.72);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  transition:opacity 0.28s ease;
  padding:16px;
}

/* ── Panel ── */
.cf-panel{
  width:100%;max-width:620px;
  background:var(--surface);
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow:0 24px 72px rgba(0,0,0,.16),0 8px 24px rgba(0,0,0,.10);
  display:flex;flex-direction:column;
  max-height:calc(100vh - 48px);
  overflow:hidden;
}

/* ── Top bar ── */
.cf-topbar{
  display:flex;align-items:center;gap:10px;
  padding:18px 20px 14px;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.cf-close-btn{ margin-left:auto; }
.cf-type-pill{
  display:flex;align-items:center;gap:7px;
  background:var(--gpale);
  border:1px solid var(--glt);
  border-radius:20px;
  padding:5px 12px 5px 10px;
  color:var(--gm);
}
.cf-type-icon{ display:flex;align-items:center;flex-shrink:0; }
.cf-type-label{ font-size:12.5px;font-weight:600;letter-spacing:.02em; }
.cf-close-btn{
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;
  background:none;border:none;cursor:pointer;
  color:var(--muted);transition:background .14s,color .14s;
}
.cf-close-btn:hover{ background:var(--bg2);color:var(--charcoal); }

/* ── Progress track ── */
.cf-progress-track{
  height:2px;background:var(--border);flex-shrink:0;
}
.cf-progress-fill{
  height:100%;background:var(--gm);
  transition:width 0.45s cubic-bezier(.4,0,.2,1);
  width:0%;
}

/* ── Brand Core bar ── */
.cf-brand-bar{
  display:flex;align-items:center;gap:7px;
  padding:8px 20px;
  background:color-mix(in srgb, var(--green) 3.5%, transparent);
  border-bottom:1px solid color-mix(in srgb, var(--green) 8%, transparent);
  flex-shrink:0;overflow:hidden;
}
.cf-brand-bar-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--green);box-shadow:0 0 0 2px color-mix(in srgb, var(--green) 18%, transparent);
  flex-shrink:0;animation:dashDotPulse 2.5s ease-in-out infinite;
}
.cf-brand-bar-label{
  font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:color-mix(in srgb, var(--green) 55%, transparent);flex-shrink:0;
}
.cf-brand-bar-name{
  font-size:11.5px;font-weight:700;color:rgba(255,255,255,.72);flex-shrink:0;
}
.cf-brand-bar-sep{color:rgba(255,255,255,.18);flex-shrink:0;}
.cf-brand-bar-detail{
  font-size:11px;color:rgba(255,255,255,.28);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* ── History area ── */
.cf-history{
  flex-shrink:0;
  max-height:160px;overflow-y:auto;
  padding:0 28px;
  display:flex;flex-direction:column;gap:8px;
  scrollbar-width:none;
}
.cf-history:empty{ padding:0; }
.cf-history:not(:empty){ padding-top:20px; }
.cf-history::-webkit-scrollbar{ display:none; }

.cf-hist-item{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;
  padding:8px 12px;
  background:var(--sf2);
  border:1px solid var(--border);
  border-radius:9px;
  animation:cfHistIn .28s ease both;
}
@keyframes cfHistIn{
  from{opacity:0;transform:translateY(-5px)}
  to{opacity:1;transform:translateY(0)}
}
.cf-hist-q{
  font-size:11.5px;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:220px;
}
.cf-hist-sep{
  font-size:11px;color:var(--b2);flex-shrink:0;
}
.cf-hist-a{
  font-size:12px;font-weight:600;color:var(--gm);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:200px;
}

/* ── Stage ── */
.cf-stage{
  flex:1;display:flex;flex-direction:column;
  padding:28px 28px 24px;
  gap:24px;overflow:hidden;
  justify-content:center;
  min-height:260px;
}

/* ── Question block ── */
.cf-question-block{
  display:flex;align-items:flex-start;gap:14px;
  will-change:opacity,transform;
}
.cf-avatar{
  flex-shrink:0;
  width:38px;height:38px;
  border-radius:50%;
  background:var(--gpale);
  border:1px solid var(--glt);
  display:flex;align-items:center;justify-content:center;
  margin-top:2px;
}
.cf-avatar img{ border-radius:50%; }
.cf-question-content{ flex:1;min-width:0; }

.cf-question-text{
  font-size:22px;font-weight:700;line-height:1.3;
  color:var(--charcoal);
  letter-spacing:-.02em;
  min-height:1.3em;
}

/* Blinking cursor while AI types */
.cf-typing::after{
  content:"|";
  display:inline-block;
  margin-left:1px;
  color:var(--gm);
  animation:cfBlink .55s step-end infinite;
}
@keyframes cfBlink{
  0%,100%{opacity:1}
  50%{opacity:0}
}

.cf-question-desc{
  margin-top:7px;
  font-size:13.5px;color:var(--muted);
  line-height:1.5;
  opacity:0;
  transition:opacity 0.35s ease;
}

/* ── Options grid ── */
.cf-options{
  display:flex;flex-wrap:wrap;gap:9px;
  will-change:opacity,transform;
}

.cf-opt{
  padding:10px 18px;
  border:1.5px solid var(--border);
  border-radius:30px;
  background:var(--surface);
  color:var(--charcoal);
  font-size:13.5px;font-weight:500;
  cursor:pointer;
  transition:border-color .14s,background .14s,color .14s,transform .1s;
  animation:cfOptIn .3s ease both;
  white-space:nowrap;
}
@keyframes cfOptIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
.cf-opt:hover:not(:disabled){
  border-color:var(--gm);
  background:var(--gpale);
  color:var(--gm);
  transform:translateY(-1px);
}
.cf-opt-selected{
  border-color:var(--gm)!important;
  background:var(--gm)!important;
  color:#000!important;
}
.cf-opt:disabled:not(.cf-opt-selected){
  opacity:.35;cursor:not-allowed;transform:none;
}

/* ── Card-style options (website type selection) ── */
.cf-opts-cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.cf-opt-card{
  background:rgba(255,255,255,0.03);
  border:1.5px solid var(--border);
  border-radius:12px;
  padding:16px 18px;
  text-align:left;cursor:pointer;
  display:flex;flex-direction:column;gap:6px;
  transition:border-color .2s,background .2s;
  font-family:'Geist',sans-serif;
}
.cf-opt-card:hover{
  border-color:color-mix(in srgb, var(--green) 30%, transparent);
  background:color-mix(in srgb, var(--green) 4%, transparent);
}
.cf-opt-card.cf-opt-selected{
  border-color:var(--green)!important;
  background:color-mix(in srgb, var(--green) 8%, transparent)!important;
}
.cf-opt-card:disabled:not(.cf-opt-selected){opacity:.35;cursor:not-allowed}
.cf-opt-card-label{
  font-size:13px;font-weight:600;color:var(--charcoal);letter-spacing:-.1px;
}
.cf-opt-card-desc{
  font-size:11.5px;color:var(--muted);line-height:1.45;
}

/* ── Avatar picker grid ─────────────────────────────────────── */
.cf-avatar-grid-wrap{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  min-height:100px;
}

/* ── Format bar (locked indicator) ── */
.cf-fmt-bar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1.5px solid var(--border);
  border-radius:10px;
  background:rgba(255,255,255,.02);
  flex-shrink:0;
}
.cf-fmt-bar-label{
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  white-space:nowrap;
}
.cf-fmt-bar-active{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:600;
  color:var(--charcoal);
}
.cf-fmt-bar-ratio{
  font-size:10px;
  font-weight:700;
  color:var(--green);
  letter-spacing:.05em;
  background:color-mix(in srgb, var(--green) 10%, transparent);
  padding:2px 5px;
  border-radius:4px;
}
.cf-fmt-bar-note{
  font-size:11px;
  color:var(--muted);
  margin-left:auto;
  white-space:nowrap;
}

/* ── Format tabs (reserved for future multi-format support) ── */
.cf-fmt-tabs{ display:flex; gap:6px; flex-shrink:0; }
.cf-fmt-tab{
  flex:1; display:flex; flex-direction:column; align-items:center;
  gap:3px; padding:9px 6px 8px; border:1.5px solid var(--border);
  border-radius:10px; background:rgba(255,255,255,.03); color:var(--muted);
  font-family:inherit; cursor:pointer;
  transition:border-color .14s, background .14s, color .14s;
}
.cf-fmt-tab:hover{ border-color:color-mix(in srgb, var(--green) 30%, transparent); background:color-mix(in srgb, var(--green) 4%, transparent); color:var(--charcoal); }
.cf-fmt-tab-active{ border-color:var(--green)!important; background:color-mix(in srgb, var(--green) 8%, transparent)!important; color:var(--charcoal)!important; }
.cf-fmt-ratio{ font-size:10px; font-weight:700; letter-spacing:.04em; color:inherit; opacity:.7; }
.cf-fmt-tab-active .cf-fmt-ratio{ color:var(--green); opacity:1; }
.cf-fmt-label{ font-size:12px; font-weight:600; color:inherit; letter-spacing:-.01em; }
.cf-avatar-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  max-height:400px;
  overflow-y:auto;
  padding:2px 2px 6px;
  scrollbar-width:thin;
  width:100%;
}
.cf-avatar-grid::-webkit-scrollbar{ width:4px; }
.cf-avatar-grid::-webkit-scrollbar-track{ background:transparent; }
.cf-avatar-grid::-webkit-scrollbar-thumb{ background:var(--border); border-radius:2px; }

.cf-avatar-card{
  background:rgba(255,255,255,.03);
  border:1.5px solid var(--border,#2a2a2a);
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  text-align:center;
  transition:border-color .15s, background .15s, box-shadow .15s, transform .12s;
  position:relative;
}
.cf-avatar-card:hover{
  border-color:color-mix(in srgb, var(--green) 40%, transparent);
  background:rgba(255,255,255,.06);
  transform:translateY(-2px);
  box-shadow:0 4px 16px rgba(0,0,0,.18);
}
.cf-avatar-card.cf-avatar-selected{
  border-color:var(--green)!important;
  background:color-mix(in srgb, var(--green) 8%, transparent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent)!important;
}
.cf-avatar-card:disabled:not(.cf-avatar-selected){opacity:.3;cursor:not-allowed;transform:none}

/* ── Thumbnail — shared by img, video, nothumb ── */
.cf-avatar-thumb{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  object-position:top center;
  display:block;
  background:var(--bg2,#1a1a1a);
}
.cf-avatar-nothumb{
  width:100%;
  aspect-ratio:3/4;
  background:var(--bg2,#1a1a1a);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted,#555);
}

/* Play-hint dot shown on cards that have a video preview */
.cf-avatar-play-hint{
  position:absolute;
  top:7px;right:7px;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--green);
  opacity:.7;
  pointer-events:none;
}
.cf-avatar-card:hover .cf-avatar-play-hint{ opacity:0; }

.cf-avatar-name{
  font-size:11px;
  font-weight:500;
  color:var(--charcoal,#ccc);
  padding:7px 5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
  line-height:1;
}

/* ── "Create Your Creator" card ── */
.cf-avatar-create{ border-style:dashed; }
.cf-avatar-create-thumb{
  width:100%;
  aspect-ratio:3/4;
  background:var(--bg2,#1a1a1a);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted,#555);
  transition:color .15s;
}
.cf-avatar-create:hover .cf-avatar-create-thumb{ color:var(--gm); }

/* ── Loading / error states ── */
.cf-avatar-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:36px 20px;
  color:var(--muted,#888);
  font-size:13px;
  gap:4px;
  width:100%;
}
.cf-avatar-err{
  color:#EF4444;
  font-size:12.5px;
  text-align:center;
  padding:20px 0;
  margin:0;
  width:100%;
}
@media(max-width:480px){
  .cf-avatar-grid{grid-template-columns:repeat(2,1fr);max-height:320px;}
}
@media(max-width:480px){
  .cf-opts-cards{grid-template-columns:1fr}
}

/* ── Voice picker ───────────────────────────────────────────── */
.cf-voice-picker-wrap{width:100%;display:flex;flex-direction:column;gap:10px;min-height:100px}
.cf-voice-tabs{display:flex;gap:6px;flex-shrink:0}
.cf-voice-tab{flex:1;padding:9px 10px;border:1.5px solid var(--border);border-radius:10px;background:rgba(255,255,255,.03);font-size:13px;font-weight:600;color:var(--muted);font-family:inherit;cursor:pointer;transition:border-color .14s,background .14s,color .14s;text-align:center}
.cf-voice-tab:hover{border-color:color-mix(in srgb, var(--green) 30%, transparent);background:color-mix(in srgb, var(--green) 4%, transparent);color:var(--charcoal)}
.cf-voice-tab-active{border-color:var(--green)!important;background:color-mix(in srgb, var(--green) 8%, transparent)!important;color:var(--charcoal)!important}
/* Grid — 2 columns so cards stay a manageable width */
.cf-voice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:420px;overflow-y:auto;padding:2px 2px 6px;scrollbar-width:thin}
.cf-voice-grid::-webkit-scrollbar{width:4px}
.cf-voice-grid::-webkit-scrollbar-track{background:transparent}
.cf-voice-grid::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}
/* Card — vertical flex column, no overflow:hidden, no absolute children */
.cf-voice-card{display:flex;flex-direction:column;gap:10px;background:rgba(255,255,255,.03);border:1.5px solid var(--border,#2a2a2a);border-radius:12px;padding:14px;transition:border-color .14s,background .14s,box-shadow .14s;box-sizing:border-box}
.cf-voice-card:hover{border-color:color-mix(in srgb, var(--green) 25%, transparent);background:rgba(255,255,255,.05)}
.cf-voice-card.cf-voice-selected{border-color:var(--green)!important;background:color-mix(in srgb, var(--green) 6%, transparent)!important;box-shadow:0 0 0 2px color-mix(in srgb, var(--green) 10%, transparent)!important}
/* Top — name + meta */
.cf-voice-top{display:flex;flex-direction:column;gap:3px}
.cf-voice-name{font-size:13px;font-weight:700;color:var(--charcoal);letter-spacing:-.15px;line-height:1.35;word-break:break-word}
.cf-voice-meta{font-size:11px;color:var(--muted);line-height:1.4}
/* Preview button — full width, always contained */
.cf-voice-play-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;box-sizing:border-box;padding:7px 10px;border-radius:8px;border:1px solid var(--border);background:rgba(255,255,255,.04);color:var(--muted);font-size:12px;font-weight:600;cursor:pointer;transition:border-color .14s,color .14s,background .14s;font-family:inherit;line-height:1;flex-shrink:0}
.cf-voice-play-btn:hover{border-color:color-mix(in srgb, var(--green) 40%, transparent);color:var(--charcoal);background:color-mix(in srgb, var(--green) 6%, transparent)}
.cf-voice-play-btn.cf-voice-play-active{border-color:var(--green);color:var(--green);background:color-mix(in srgb, var(--green) 8%, transparent)}
/* Select button — full width, always contained */
.cf-voice-select-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;box-sizing:border-box;padding:8px 10px;border-radius:8px;border:1.5px solid var(--border);background:rgba(255,255,255,.04);color:var(--muted);font-size:12px;font-weight:600;cursor:pointer;transition:border-color .14s,color .14s,background .14s;font-family:inherit;line-height:1;flex-shrink:0;margin-top:auto}
.cf-voice-select-btn:hover{border-color:color-mix(in srgb, var(--green) 40%, transparent);color:var(--charcoal);background:color-mix(in srgb, var(--green) 6%, transparent)}
.cf-voice-selected .cf-voice-select-btn{border-color:var(--green);background:color-mix(in srgb, var(--green) 12%, transparent);color:var(--green)}
.cf-voice-empty{grid-column:1/-1;text-align:center;padding:28px;font-size:13px;color:var(--muted)}
@media(max-width:480px){.cf-voice-grid{grid-template-columns:1fr}}

/* ── Free-text input ── */
.cf-free-input{
  display:flex;flex-direction:column;gap:12px;
  will-change:opacity,transform;
}
.cf-textarea{
  width:100%;padding:12px 14px;
  border:1.5px solid var(--border);
  border-radius:12px;
  background:var(--sf2);
  color:var(--charcoal);
  font-size:14px;line-height:1.55;
  resize:none;
  transition:border-color .15s;
  min-height:86px;
}
.cf-textarea:focus{
  outline:none;border-color:var(--gm);
  background:var(--surface);
}
.cf-input-row{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
}
.cf-skip-btn{
  background:none;border:none;cursor:pointer;
  font-size:13px;color:var(--muted);
  padding:8px 4px;
  transition:color .14s;
}
.cf-skip-btn:hover{ color:var(--charcoal); }
.cf-continue-btn{
  display:flex;align-items:center;gap:7px;
  padding:10px 20px;
  background:var(--gm);border:none;
  border-radius:24px;color:#000;
  font-size:13.5px;font-weight:600;
  cursor:pointer;
  transition:background .14s,transform .1s;
}
.cf-continue-btn:hover{ background:var(--green);transform:translateY(-1px); }
.cf-continue-btn:active{ transform:translateY(0); }

/* ── Prompt Preview step ─────────────────────────────────────── */
.cf-preview-panel{
  display:flex;flex-direction:column;gap:12px;width:100%;
}

/* Brand Core Applied panel */
.cf-pv-bc-panel{
  border-radius:10px;padding:11px 14px;
  border:1px solid transparent;
}
.cf-pv-bc-ok{
  background:rgba(159,232,31,.06);
  border-color:rgba(159,232,31,.18);
}
.cf-pv-bc-partial{
  background:rgba(251,146,60,.05);
  border-color:rgba(251,146,60,.18);
}
.cf-pv-bc-none{
  background:rgba(255,255,255,.03);
  border-color:var(--border);
}
.cf-pv-bc-hdr{
  display:flex;align-items:center;gap:6px;
  font-size:12px;font-weight:700;letter-spacing:.03em;
  margin-bottom:8px;
}
.cf-pv-bc-ok    .cf-pv-bc-hdr{ color:var(--gm); }
.cf-pv-bc-partial .cf-pv-bc-hdr{ color:rgba(251,146,60,.9); }
.cf-pv-bc-none  .cf-pv-bc-hdr{ color:var(--muted); }
.cf-pv-bc-sub{
  font-size:11.5px;color:var(--muted);margin:0;
}
.cf-pv-bc-checks{
  display:flex;flex-wrap:wrap;gap:6px 10px;
}
.cf-pv-bc-ck{
  display:inline-flex;align-items:center;gap:4px;
  font-size:11px;font-weight:500;
}
.cf-pv-bc-ck-ok   { color:var(--gm); }
.cf-pv-bc-ck-miss { color:rgba(251,146,60,.8); }

/* Logo Source (motion graphics) */
.cf-pv-logo-section{
  display:flex;flex-direction:column;gap:7px;
}
.cf-pv-logo-label{
  font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--muted);
}
.cf-pv-logo-opts{
  display:flex;flex-direction:column;gap:6px;
}
.cf-pv-logo-opt{
  display:flex;align-items:center;gap:9px;
  cursor:pointer;padding:8px 11px;
  border-radius:8px;border:1px solid var(--border);
  background:transparent;
  font-size:13px;color:var(--charcoal);
  transition:border-color .15s,background .15s;
  user-select:none;
}
.cf-pv-logo-opt:has(input:checked){
  border-color:var(--gm);
  background:rgba(159,232,31,.05);
}
.cf-pv-logo-opt-dis{
  opacity:.45;cursor:default;
}
.cf-pv-logo-opt input[type="radio"]{
  display:none;
}
.cf-pv-logo-dot{
  width:14px;height:14px;border-radius:50%;
  border:2px solid var(--border);flex-shrink:0;
  position:relative;transition:border-color .14s;
}
.cf-pv-logo-opt:has(input:checked) .cf-pv-logo-dot{
  border-color:var(--gm);
}
.cf-pv-logo-opt:has(input:checked) .cf-pv-logo-dot::after{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:6px;height:6px;border-radius:50%;
  background:var(--gm);
}
.cf-pv-logo-thumb{
  width:22px;height:22px;object-fit:contain;border-radius:4px;flex-shrink:0;
}
.cf-pv-logo-hint{
  color:var(--muted);font-size:11px;
}

/* Editable prompt textarea */
.cf-pv-prompt-wrap{
  display:flex;flex-direction:column;gap:6px;
}
.cf-pv-prompt-lbl{
  font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--muted);
  display:flex;align-items:center;gap:8px;
}
.cf-pv-prompt-hint{
  font-size:10.5px;font-weight:400;letter-spacing:0;text-transform:none;
  color:var(--m2);
}
.cf-pv-ta{
  width:100%;padding:11px 13px;
  border:1.5px solid var(--border);
  border-radius:10px;
  background:var(--sf2);
  color:var(--charcoal);
  font-size:12.5px;line-height:1.6;
  resize:vertical;
  transition:border-color .15s,background .15s;
  min-height:120px;
  font-family:inherit;
}
.cf-pv-ta:focus{
  outline:none;border-color:var(--gm);
  background:var(--surface);
}

/* Generate button */
.cf-pv-gen-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 26px;
  background:var(--gm);border:none;
  border-radius:26px;color:#000;
  font-size:14px;font-weight:700;
  cursor:pointer;
  transition:background .14s,transform .1s,box-shadow .14s;
  align-self:flex-start;
  box-shadow:0 0 0 0 rgba(159,232,31,0);
}
.cf-pv-gen-btn:hover{
  background:var(--green);
  transform:translateY(-1px);
  box-shadow:0 4px 18px rgba(159,232,31,.22);
}
.cf-pv-gen-btn:active{ transform:translateY(0);box-shadow:none; }

/* Dark mode overrides for preview */
body.dark-mode .cf-pv-ta{
  background:var(--sf2);border-color:var(--border);color:var(--charcoal);
}
body.dark-mode .cf-pv-ta:focus{ background:var(--surface); }
body.dark-mode .cf-pv-logo-opt{ background:transparent;border-color:var(--border);color:var(--charcoal); }

/* ── Dark mode overrides ── */
body.dark-mode .cf-panel{ background:var(--surface);border-color:var(--border); }
body.dark-mode .cf-topbar{ border-color:var(--border); }
body.dark-mode .cf-type-pill{ background:var(--gpale);border-color:var(--glt); }
body.dark-mode .cf-close-btn:hover{ background:var(--bg2); }
body.dark-mode .cf-hist-item{ background:var(--sf2);border-color:var(--border); }
body.dark-mode .cf-opt{ background:var(--surface);border-color:var(--border);color:var(--charcoal); }
body.dark-mode .cf-opt:hover:not(:disabled){ background:var(--gpale);border-color:var(--gm); }
body.dark-mode .cf-textarea{ background:var(--sf2);border-color:var(--border);color:var(--charcoal); }
body.dark-mode .cf-textarea:focus{ background:var(--surface); }

/* ── Mobile ── */
@media(max-width:600px){
  .cf-panel{ border-radius:14px;max-height:calc(100vh - 24px); }
  .cf-topbar{ padding:16px 18px 12px; }
  .cf-stage{ padding:20px 18px 20px; }
  .cf-history{ padding-left:18px;padding-right:18px; }
  .cf-question-text{ font-size:19px; }
  .cf-hist-q{ max-width:140px; }
  .cf-hist-a{ max-width:130px; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE UX — iOS SAFE AREA + INPUT ZOOM + SCROLL FIXES
   ════════════════════════════════════════════════════════════ */

/* Fill iOS status bar with app background color */
html{ background:#0B0B0B; }

/* ── Mobile bar: grow to fill notch / Dynamic Island ── */
@supports(padding-top:env(safe-area-inset-top)){
  @media(max-width:768px){
    #mobileBar{
      height:calc(56px + env(safe-area-inset-top));
      padding-top:env(safe-area-inset-top);
    }
    .sb{
      top:calc(56px + env(safe-area-inset-top));
      height:calc(100vh - 56px - env(safe-area-inset-top));
    }
  }
}

/* ── Sidebar bottom: lift above home indicator bar ── */
@supports(padding-bottom:env(safe-area-inset-bottom)){
  .sb-bottom{
    padding-bottom:calc(20px + env(safe-area-inset-bottom));
  }
}

/* ── Auth overlay: push content below the status bar ── */
@supports(padding-top:env(safe-area-inset-top)){
  #authOverlay{
    padding-top:calc(24px + env(safe-area-inset-top)) !important;
  }
}

/* ── iOS input zoom fix — font-size must be ≥ 16px on mobile ── */
@media(max-width:768px){
  .inp,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea{
    font-size:16px !important;
  }
  /* Keep cf-textarea readable but still above 16px threshold */
  .cf-textarea{ font-size:16px !important; }
}


/* ── Inspiration page: make scrollable on mobile ── */
@media(max-width:768px){
  #page-inspiration.active{
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .id-outer{
    height:auto;
    min-height:100%;
    justify-content:flex-start;
    padding-top:80px;
    padding-bottom:40px;
  }
}

/* ── Create page: add safe-area top spacing ── */
@media(max-width:768px){
  @supports(padding-top:env(safe-area-inset-top)){
    #page-create.active,
    #page-create-workspace.active{
      padding-top:calc(64px + env(safe-area-inset-top));
    }
  }
}

/* ════════════════════════════════════════════════════════════
   GUEST LANDING SCREEN (#guestOnboard)
   ════════════════════════════════════════════════════════════ */

#guestOnboard{
  position:fixed;inset:0;z-index:9850;
  background:#0B0B0B;
  display:none;align-items:center;justify-content:center;
  padding:24px;overflow:hidden;
}
.gob-bg{
  position:absolute;inset:0;pointer-events:none;overflow:hidden;
}
.gob-blob-1{
  position:absolute;width:640px;height:640px;border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb, var(--green) 7%, transparent) 0%,transparent 65%);
  top:-220px;left:-120px;
  animation:gobBlob1 16s ease-in-out infinite;
}
.gob-blob-2{
  position:absolute;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb, var(--green) 5%, transparent) 0%,transparent 65%);
  bottom:-120px;right:-60px;
  animation:gobBlob2 20s ease-in-out infinite;
}
@keyframes gobBlob1{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%     { transform:translate(60px,40px) scale(1.08); }
}
@keyframes gobBlob2{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%     { transform:translate(-40px,-30px) scale(1.06); }
}
.gob-content{
  position:relative;z-index:1;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  max-width:520px;width:100%;
}
.gob-logo{
  display:flex;align-items:center;justify-content:center;
  margin-bottom:48px;
}
.gob-logo-img{
  width:72px;height:72px;object-fit:contain;display:block;
  filter:drop-shadow(0 0 24px color-mix(in srgb, var(--green) 14%, transparent));
  opacity:0.92;
}
.gob-headline{
  font-family:'Instrument Serif',Georgia,serif;
  font-size:clamp(40px,8vw,64px);
  line-height:1.08;font-weight:400;
  color:#F0EDE6;margin:0 0 20px;
}
.gob-headline em{
  font-style:italic;color:var(--green);
}
.gob-sub{
  font-size:16px;line-height:1.7;
  color:rgba(240,237,230,0.42);
  margin:0 0 44px;max-width:380px;
}
.gob-ctas{
  display:flex;flex-direction:column;gap:12px;
  width:100%;max-width:300px;margin-bottom:22px;
}
.gob-try{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:15px 28px;
  background:var(--green);color:#0B0B0B;
  border:none;border-radius:12px;
  font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;
  transition:opacity 0.15s,transform 0.15s;
  box-shadow:0 0 32px color-mix(in srgb, var(--green) 22%, transparent);
}
.gob-try:hover{ opacity:0.9;transform:translateY(-1px); }
.gob-try:active{ transform:translateY(0); }
.gob-login{
  padding:13px 28px;background:transparent;
  border:1px solid rgba(255,255,255,0.12);border-radius:12px;
  font-size:14px;font-weight:500;
  color:rgba(240,237,230,0.48);cursor:pointer;font-family:inherit;
  transition:border-color 0.2s,color 0.2s;
}
.gob-login:hover{
  border-color:rgba(255,255,255,0.22);color:rgba(240,237,230,0.72);
}
.gob-note{
  font-size:12px;color:rgba(240,237,230,0.2);margin:0;
}
@media(max-width:480px){
  .gob-headline{ font-size:34px; }
  .gob-sub{ font-size:13.5px;margin-bottom:28px; }
  .gob-logo{ margin-bottom:28px; }
  .gob-ctas{ flex-direction:column;gap:10px;width:100%; }
  .gob-try,.gob-login{ width:100%;justify-content:center; }
}

/* ════════════════════════════════════════════════════════════
   GUEST BRANDCORE ENTRY OVERLAY (#guestBCEntry / .gbc-*)
   ════════════════════════════════════════════════════════════ */

#guestBCEntry{
  position:fixed;inset:0;z-index:9700;
  background:#0B0B0B;
  display:none;align-items:center;justify-content:center;
  padding:24px;overflow-y:auto;-webkit-overflow-scrolling:touch;
}
.gbc-bg{
  position:absolute;inset:0;pointer-events:none;overflow:hidden;
}
.gbc-blob{
  position:absolute;width:500px;height:500px;border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb, var(--green) 6%, transparent) 0%,transparent 65%);
  top:50%;left:50%;
  animation:gbcBlob 9s ease-in-out infinite;
}
@keyframes gbcBlob{
  0%,100%{ transform:translate(-50%,-50%) scale(1);opacity:0.6; }
  50%     { transform:translate(-50%,-50%) scale(1.18);opacity:1; }
}
.gbc-wrap{
  position:relative;z-index:1;
  width:100%;max-width:480px;
}
.gbc-wrap-center{
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.gbc-header{ margin-bottom:32px; }
.gbc-title{
  font-family:'Instrument Serif',Georgia,serif;
  font-size:clamp(24px,5vw,34px);font-weight:400;
  color:#F0EDE6;margin:0 0 10px;line-height:1.15;
}
.gbc-sub{
  font-size:14px;color:rgba(240,237,230,0.4);margin:0;line-height:1.6;
}
.gbc-back{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;color:rgba(240,237,230,0.36);
  background:none;border:none;cursor:pointer;
  padding:0;margin-bottom:28px;font-family:inherit;
  transition:color 0.15s;
}
.gbc-back:hover{ color:rgba(240,237,230,0.65); }
.gbc-options{
  display:flex;flex-direction:column;gap:12px;margin-bottom:24px;
}
.gbc-opt{
  display:flex;align-items:center;gap:16px;
  padding:20px;position:relative;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);border-radius:16px;
  cursor:pointer;text-align:left;font-family:inherit;
  transition:border-color 0.2s,background 0.2s,transform 0.15s;
}
.gbc-opt:hover{
  border-color:color-mix(in srgb, var(--green) 22%, transparent);
  background:color-mix(in srgb, var(--green) 3%, transparent);transform:translateY(-1px);
}
.gbc-opt:active{ transform:translateY(0); }
.gbc-opt-featured{
  border-color:color-mix(in srgb, var(--green) 20%, transparent);background:color-mix(in srgb, var(--green) 4%, transparent);
}
.gbc-opt-featured:hover{
  border-color:color-mix(in srgb, var(--green) 38%, transparent);background:color-mix(in srgb, var(--green) 7%, transparent);
}
.gbc-opt-badge{
  position:absolute;top:-10px;left:18px;
  font-size:10px;font-weight:700;letter-spacing:0.07em;text-transform:uppercase;
  background:var(--green);color:#0B0B0B;
  padding:3px 10px;border-radius:20px;
}
.gbc-opt-icon{
  width:46px;height:46px;border-radius:12px;flex-shrink:0;
  background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 15%, transparent);
  display:flex;align-items:center;justify-content:center;
  color:var(--green);
}
.gbc-opt-icon-plain{
  background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1);
  color:rgba(240,237,230,0.5);
}
.gbc-opt-body{ flex:1;min-width:0; }
.gbc-opt-title{
  font-size:14.5px;font-weight:700;color:#F0EDE6;margin-bottom:4px;
}
.gbc-opt-desc{
  font-size:12.5px;color:rgba(240,237,230,0.4);line-height:1.5;
}
.gbc-opt-arr{
  color:rgba(240,237,230,0.2);flex-shrink:0;
  transition:color 0.15s,transform 0.15s;
}
.gbc-opt:hover .gbc-opt-arr{
  color:color-mix(in srgb, var(--green) 55%, transparent);transform:translateX(2px);
}
.gbc-hint{
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:12px;color:rgba(240,237,230,0.25);
}
.gbc-hint-dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--green);opacity:0.5;flex-shrink:0;
}
.gbc-input{
  display:block;width:100%;box-sizing:border-box;
  padding:15px 16px;margin-bottom:14px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);border-radius:12px;
  font-size:15px;color:#F0EDE6;font-family:inherit;
  outline:none;transition:border-color 0.2s;
}
.gbc-input::placeholder{ color:rgba(240,237,230,0.24); }
.gbc-input:focus{ border-color:color-mix(in srgb, var(--green) 40%, transparent); }
.gbc-gen-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:15px 20px;margin-bottom:14px;
  background:var(--green);color:#0B0B0B;
  border:none;border-radius:12px;
  font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;
  transition:opacity 0.15s,transform 0.15s;
  box-shadow:0 0 28px color-mix(in srgb, var(--green) 18%, transparent);
}
.gbc-gen-btn:hover{ opacity:0.9;transform:translateY(-1px); }
.gbc-gen-btn:active{ transform:translateY(0); }
.gbc-input-hint{
  font-size:12px;color:rgba(240,237,230,0.2);text-align:center;margin:0;
}
.gbc-orb{
  position:relative;width:88px;height:88px;margin:0 auto 32px;
}
.gbc-orb-core{
  position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 38% 36%,#2D6A4F,#0E2B1D);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 40px color-mix(in srgb, var(--green) 18%, transparent),0 8px 32px rgba(0,0,0,0.6);
  animation:gbcOrbGlow 3s ease-in-out infinite;
}
.gbc-orb-ring{
  position:absolute;inset:-14px;border-radius:50%;
  border:1.5px solid color-mix(in srgb, var(--green) 20%, transparent);
  animation:gbcOrbRing 2.6s ease-out infinite;
}
.gbc-orb-ring-2{
  inset:-28px;border-color:color-mix(in srgb, var(--green) 10%, transparent);animation-delay:0.4s;
}
@keyframes gbcOrbGlow{
  0%,100%{ box-shadow:0 0 30px color-mix(in srgb, var(--green) 12%, transparent),0 8px 32px rgba(0,0,0,0.6); }
  50%     { box-shadow:0 0 60px color-mix(in srgb, var(--green) 28%, transparent),0 8px 32px rgba(0,0,0,0.6); }
}
@keyframes gbcOrbRing{
  0%  { transform:scale(1);opacity:0.7; }
  100%{ transform:scale(1.45);opacity:0; }
}
.gbc-loading-label{
  font-size:16px;font-weight:500;
  color:rgba(240,237,230,0.72);margin-bottom:8px;
  transition:opacity 0.3s;
}
.gbc-loading-sub{
  font-size:13px;color:rgba(240,237,230,0.26);margin-bottom:26px;
}
.gbc-loading-dots{
  display:flex;gap:7px;justify-content:center;
}
.gbc-loading-dots span{
  width:6px;height:6px;border-radius:50%;
  background:color-mix(in srgb, var(--green) 50%, transparent);
  animation:gbcDot 1.2s ease-in-out infinite;
}
.gbc-loading-dots span:nth-child(2){ animation-delay:.2s; }
.gbc-loading-dots span:nth-child(3){ animation-delay:.4s; }
@keyframes gbcDot{
  0%,80%,100%{ opacity:0.3;transform:scale(0.85); }
  40%         { opacity:1;transform:scale(1.1); }
}
body.guest-mode #stBCEmpty{ display:none !important; }

/* ════════════════════════════════════════════════════════════
   GUEST CTA BAR (.gcta-*)
   ════════════════════════════════════════════════════════════ */
.gcta-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:9500;
  display:flex;align-items:center;justify-content:center;
  gap:16px;padding:14px 24px;flex-wrap:wrap;
  background:rgba(11,11,11,0.96);
  border-top:1px solid color-mix(in srgb, var(--green) 10%, transparent);
  backdrop-filter:blur(20px);
}
.gcta-text{
  font-size:13.5px;color:rgba(240,237,230,0.48);white-space:nowrap;
}
.gcta-actions{ display:flex;gap:8px; }
.gcta-signup{
  padding:10px 22px;
  background:var(--green);color:#0B0B0B;
  border:none;border-radius:9px;
  font-size:13.5px;font-weight:700;cursor:pointer;font-family:inherit;
  transition:opacity 0.15s;
}
.gcta-signup:hover{ opacity:0.88; }
.gcta-login{
  padding:10px 22px;background:transparent;
  color:rgba(240,237,230,0.52);
  border:1px solid rgba(255,255,255,0.12);border-radius:9px;
  font-size:13.5px;font-weight:500;cursor:pointer;font-family:inherit;
  transition:border-color 0.15s,color 0.15s;
}
.gcta-login:hover{
  border-color:rgba(255,255,255,0.22);color:rgba(240,237,230,0.78);
}

/* Usage bar in create modal */
.gcm-usage-bar{
  display:flex;align-items:center;gap:7px;
  font-size:12px;font-weight:600;
  color:color-mix(in srgb, var(--green) 80%, transparent);
  background:color-mix(in srgb, var(--green) 8%, transparent);
  border:1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius:8px;padding:7px 12px;
  margin-bottom:18px;
}
/* ════════════════════════════════════════════════════════════
   GUEST CREATE MODAL — in-app 1-shot generation
   ════════════════════════════════════════════════════════════ */

#guestCreateModal{
  position:fixed;inset:0;z-index:9500;
  display:none;align-items:center;justify-content:center;
  background:rgba(11,11,11,0.80);backdrop-filter:blur(16px);
  padding:20px;
}

.gcm-panel{
  width:100%;max-width:480px;
  background:#141414;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:20px;padding:32px 28px 26px;
  box-shadow:0 24px 80px rgba(0,0,0,0.65);
  max-height:90vh;overflow-y:auto;
}

.gcm-back{
  display:flex;align-items:center;gap:6px;
  font-size:12px;color:rgba(240,237,230,0.38);
  background:none;border:none;cursor:pointer;
  padding:0;margin-bottom:22px;font-family:inherit;
  transition:color 0.15s;
}
.gcm-back:hover{ color:rgba(240,237,230,0.65); }

.gcm-top{ text-align:center;margin-bottom:24px; }
.gcm-icon{
  width:52px;height:52px;border-radius:14px;
  background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
}
.gcm-title{
  font-family:'Instrument Serif',Georgia,serif;
  font-size:24px;font-weight:400;color:#F0EDE6;
  margin:0 0 8px;line-height:1.2;
}
.gcm-sub{
  font-size:13px;color:rgba(240,237,230,0.45);margin:0;
}

/* Type selector row */
.gcm-type-row{
  display:flex;gap:8px;margin-bottom:14px;
}
.gcm-type-chip{
  display:inline-flex;align-items:flex-start;gap:8px;
  flex:1;padding:10px 12px;border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  color:rgba(240,237,230,0.55);
  font-family:inherit;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
  text-align:left;
}
.gcm-type-chip svg{ margin-top:2px;flex-shrink:0; }
.gcm-type-chip:hover{
  border-color:color-mix(in srgb, var(--green) 35%, transparent);
  color:rgba(240,237,230,0.85);
}
.gcm-type-chip-on{
  background:color-mix(in srgb, var(--green) 12%, transparent);
  border-color:color-mix(in srgb, var(--green) 45%, transparent);
  color:var(--green);
}
.gcm-chip-label{
  display:flex;flex-direction:column;gap:2px;
  font-size:13px;font-weight:600;line-height:1.2;
}
.gcm-chip-desc{
  font-size:11px;font-weight:400;
  color:rgba(240,237,230,0.38);line-height:1.3;
}
.gcm-type-chip-on .gcm-chip-desc{ color:color-mix(in srgb, var(--green) 65%, transparent); }

/* Campaign ad-count selector */
.gcm-count-row{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;margin-bottom:14px;
  background:color-mix(in srgb, var(--green) 6%, transparent);
  border:1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius:10px;
}
.gcm-count-label{
  font-size:12.5px;font-weight:600;
  color:rgba(240,237,230,0.65);flex:1;
}
.gcm-count-opts{ display:flex;gap:6px; }
.gcm-count-btn{
  width:36px;height:30px;border-radius:7px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  color:rgba(240,237,230,0.55);
  font-size:13px;font-weight:600;font-family:inherit;
  cursor:pointer;transition:background .12s,border-color .12s,color .12s;
}
.gcm-count-btn:hover{ border-color:color-mix(in srgb, var(--green) 40%, transparent);color:var(--green); }
.gcm-count-btn-on{
  background:color-mix(in srgb, var(--green) 18%, transparent);
  border-color:color-mix(in srgb, var(--green) 55%, transparent);
  color:var(--green);
}

.gcm-input{
  width:100%;background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:10px;padding:13px 16px;
  font-size:15px;color:#F0EDE6;outline:none;
  font-family:inherit;box-sizing:border-box;
  transition:border-color 0.2s,background 0.2s;
  margin-bottom:12px;display:block;
}
.gcm-input::placeholder{ color:rgba(240,237,230,0.3); }
.gcm-input:focus{
  border-color:color-mix(in srgb, var(--green) 45%, transparent);
  background:rgba(255,255,255,0.08);
}

.gcm-gen-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:14px;border-radius:10px;
  background:var(--gm,var(--gm));color:#0B0B0B;
  font-size:14px;font-weight:700;border:none;cursor:pointer;
  font-family:inherit;transition:opacity 0.15s;margin-bottom:16px;
}
.gcm-gen-btn:hover{ opacity:0.88; }
.gcm-gen-btn:disabled{ opacity:0.5;cursor:not-allowed; }

.gcm-result-img{
  width:100%;border-radius:12px;overflow:hidden;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
  min-height:80px;display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
}
.gcm-result-img img{ width:100%;display:block;border-radius:12px; }

/* Guest campaign variation cards */
.gcm-camp-list{display:flex;flex-direction:column;gap:12px;}
.gcm-camp-card{border-radius:12px;overflow:hidden;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);}
.gcm-camp-img{width:100%;display:block;}
.gcm-camp-body{padding:14px 16px;display:flex;flex-direction:column;gap:6px;}
.gcm-camp-num{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--gm,var(--gm));}
.gcm-camp-headline{font-size:15px;font-weight:700;color:#f0ede6;line-height:1.3;}
.gcm-camp-text{font-size:13px;color:rgba(240,237,230,0.72);line-height:1.6;}
.gcm-camp-cta-row{margin-top:4px;}
.gcm-camp-cta{display:inline-block;padding:6px 16px;border-radius:20px;font-size:12px;font-weight:600;background:var(--gm,var(--gm));color:#0B0B0B;}

.gcm-footer{
  text-align:center;font-size:11.5px;color:rgba(240,237,230,0.22);
}

/* In-modal soft gate — appears over result bottom after generation */
.gcm-gate{
  position:relative;z-index:5;
  margin-top:-110px;padding:110px 0 0;
  background:linear-gradient(to bottom,transparent 0%,#141414 38%);
  animation:gcGateFadeIn 0.5s ease both;
}
@keyframes gcGateFadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
.gcm-gate-card{
  background:#141414;padding:20px 4px 4px;text-align:center;
}
.gcm-gate-title{
  font-size:17px;font-weight:600;color:#f0ede6;margin:0 0 8px;
}
.gcm-gate-sub{
  font-size:13px;color:rgba(240,237,230,0.52);margin:0 0 20px;line-height:1.5;
}
.gcm-gate-actions{display:flex;flex-direction:column;gap:10px;}
.gcm-gate-primary{
  width:100%;padding:13px 20px;border-radius:10px;
  background:var(--gm,var(--gm));color:#0B0B0B;
  font-size:14px;font-weight:700;border:none;cursor:pointer;
  font-family:inherit;transition:opacity 0.15s;
}
.gcm-gate-primary:hover{opacity:0.88;}
.gcm-gate-ghost{
  background:transparent;border:none;
  color:rgba(240,237,230,0.4);font-size:13px;
  cursor:pointer;padding:6px;font-family:inherit;
  transition:color 0.15s;
}
.gcm-gate-ghost:hover{color:rgba(240,237,230,0.72);}

/* Shared loading animation */
.gl-generating{
  display:flex;flex-direction:column;align-items:center;gap:14px;
  padding:40px 24px;color:rgba(240,237,230,0.45);font-size:13px;
}
.gl-gen-dots{ display:flex;gap:7px; }
.gl-gen-dots span{
  width:8px;height:8px;border-radius:50%;
  background:color-mix(in srgb, var(--green) 60%, transparent);
  animation:glDotBounce 1.1s infinite ease-in-out;
}
.gl-gen-dots span:nth-child(2){ animation-delay:0.18s; }
.gl-gen-dots span:nth-child(3){ animation-delay:0.36s; }
@keyframes glDotBounce{
  0%,80%,100%{ transform:translateY(0);opacity:0.4; }
  40%{ transform:translateY(-8px);opacity:1; }
}

/* ════════════════════════════════════════════════════════════
   GUEST LOCK SCREEN — shown for locked tab clicks
   ════════════════════════════════════════════════════════════ */

#guestLockScreen{
  position:fixed;inset:0;z-index:9500;
  display:none;align-items:center;justify-content:center;
  background:rgba(11,11,11,0.80);backdrop-filter:blur(16px);
  padding:20px;
}

.gls-panel{
  width:100%;max-width:400px;
  background:#141414;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:20px;padding:32px 28px 28px;
  box-shadow:0 24px 80px rgba(0,0,0,0.65);
  text-align:center;position:relative;
}

.gls-back{
  position:absolute;top:20px;left:22px;
  display:flex;align-items:center;gap:6px;
  font-size:12px;color:rgba(240,237,230,0.38);
  background:none;border:none;cursor:pointer;
  padding:0;font-family:inherit;transition:color 0.15s;
}
.gls-back:hover{ color:rgba(240,237,230,0.65); }

.gls-lock-icon{
  width:60px;height:60px;border-radius:50%;
  background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.09);
  display:flex;align-items:center;justify-content:center;
  margin:10px auto 20px;color:rgba(240,237,230,0.4);
}

.gls-title{
  font-family:'Instrument Serif',Georgia,serif;
  font-size:26px;color:#F0EDE6;margin:0 0 12px;
}

.gls-desc{
  font-size:14px;color:rgba(240,237,230,0.45);
  line-height:1.65;margin:0 0 20px;
}

.gls-unlock{
  font-size:12px;font-weight:600;
  color:color-mix(in srgb, var(--green) 70%, transparent);
  margin:0 0 20px;letter-spacing:.03em;
}

.gls-cta{
  width:100%;padding:13px;border-radius:10px;
  background:var(--gm,var(--gm));color:#0B0B0B;
  font-size:14px;font-weight:700;border:none;cursor:pointer;
  font-family:inherit;transition:opacity 0.15s;
  margin-bottom:10px;display:block;
}
.gls-cta:hover{ opacity:0.88; }

.gls-login{
  width:100%;padding:11px;border-radius:10px;
  background:rgba(255,255,255,0.05);color:rgba(240,237,230,0.6);
  font-size:13px;font-weight:500;border:1px solid rgba(255,255,255,0.08);
  cursor:pointer;font-family:inherit;
  transition:background 0.15s,color 0.15s;display:block;
}
.gls-login:hover{ background:rgba(255,255,255,0.09);color:#F0EDE6; }

@media(max-width:480px){
  .gcm-panel,.gls-panel{ padding:24px 20px 22px; }
  .gob-card{ padding:22px 20px; }
}

/* ── Mobile: Landing overlay ── */
@media(max-width:600px){
  #guestOnboard{ padding:20px 20px env(safe-area-inset-bottom,0); }
  .gob-content{ width:100%;max-width:100%; }
  .gob-logo{ margin-bottom:32px; }
  .gob-headline{ font-size:clamp(32px,9vw,44px);margin-bottom:14px; }
  .gob-sub{ font-size:14px;margin-bottom:32px; }
  .gob-ctas{ flex-direction:column;gap:10px;width:100%; }
  .gob-try,.gob-login{ width:100%;justify-content:center; }
  .gob-note{ font-size:11px; }
}

/* ── Mobile: BrandCore entry overlay ── */
@media(max-width:600px){
  #guestBCEntry{ padding:20px 16px;align-items:flex-start;padding-top:env(safe-area-inset-top,20px); }
  .gbc-wrap{ width:100%;max-width:100%;padding-top:24px; }
  .gbc-title{ font-size:22px; }
  .gbc-sub{ font-size:13.5px; }
  .gbc-options{ gap:10px; }
  .gbc-opt{ padding:16px 14px;gap:12px; }
  .gbc-opt-icon{ width:38px;height:38px;flex-shrink:0; }
  .gbc-opt-title{ font-size:14px; }
  .gbc-opt-desc{ font-size:12px; }
  .gbc-input{ font-size:16px; } /* prevent iOS zoom */
  .gbc-gen-btn{ padding:14px 16px;font-size:14.5px; }
  .gbc-orb{ width:72px;height:72px;margin-bottom:24px; }
  .gbc-orb-ring{ inset:-10px; }
  .gbc-orb-ring-2{ inset:-20px; }
}

/* ── Mobile: CTA bar ── */
@media(max-width:480px){
  .gcta-bar{ padding:12px 16px 12px;gap:10px; }
  .gcta-text{ font-size:12.5px; }
  .gcta-signup,.gcta-login{ padding:9px 16px;font-size:13px; }
}

/* ── Light mode overrides — lock screen panel ── */
body:not(.dark-mode) #guestLockScreen{ background:rgba(0,0,0,0.42); }
body:not(.dark-mode) .gls-panel{
  background:#ffffff;
  border-color:rgba(0,0,0,0.09);
  box-shadow:0 24px 80px rgba(0,0,0,0.18);
}
body:not(.dark-mode) .gls-back{ color:rgba(0,0,0,0.38); }
body:not(.dark-mode) .gls-back:hover{ color:rgba(0,0,0,0.65); }
body:not(.dark-mode) .gls-lock-icon{ background:rgba(0,0,0,0.04); border-color:rgba(0,0,0,0.09); color:rgba(0,0,0,0.38); }
body:not(.dark-mode) .gls-title{ color:#18181A; }
body:not(.dark-mode) .gls-desc{ color:rgba(0,0,0,0.5); }
body:not(.dark-mode) .gls-login{ background:rgba(0,0,0,0.04); border-color:rgba(0,0,0,0.1); color:rgba(0,0,0,0.6); }
body:not(.dark-mode) .gls-login:hover{ background:rgba(0,0,0,0.08); color:#18181A; }

/* ── Light mode overrides — create modal panel ── */
body:not(.dark-mode) #guestCreateModal{ background:rgba(0,0,0,0.42); }
body:not(.dark-mode) .gcm-panel{
  background:#ffffff;
  border-color:rgba(0,0,0,0.09);
  box-shadow:0 24px 80px rgba(0,0,0,0.18);
}
body:not(.dark-mode) .gcm-back{ color:rgba(0,0,0,0.38); }
body:not(.dark-mode) .gcm-back:hover{ color:rgba(0,0,0,0.65); }
body:not(.dark-mode) .gcm-title{ color:#18181A; }
body:not(.dark-mode) .gcm-sub{ color:rgba(0,0,0,0.48); }
body:not(.dark-mode) .gcm-input{
  background:rgba(0,0,0,0.04);
  border-color:rgba(0,0,0,0.12);
  color:#18181A;
}
body:not(.dark-mode) .gcm-input::placeholder{ color:rgba(0,0,0,0.3); }
body:not(.dark-mode) .gcm-input:focus{ border-color:rgba(26,66,41,0.4); background:rgba(0,0,0,0.06); }
body:not(.dark-mode) .gcm-footer{ color:rgba(0,0,0,0.38); }

/* ════════════════════════════════════════════════════════════
   GUEST GATE MODAL — post-generation signup wall
   ════════════════════════════════════════════════════════════ */

#guestGate{
  position:fixed;inset:0;z-index:9600;
  display:none;align-items:center;justify-content:center;
  background:rgba(11,11,11,0.82);backdrop-filter:blur(18px);
  padding:20px;
}

.gg-panel{
  background:#141414;border:1px solid rgba(255,255,255,0.09);
  border-radius:18px;width:100%;max-width:420px;
  max-height:90vh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  box-shadow:0 24px 80px rgba(0,0,0,0.7);
}

/* Preview image strip */
.gg-preview{
  width:100%;aspect-ratio:1/1;overflow:hidden;
  border-radius:18px 18px 0 0;position:relative;
}
.gg-preview img{
  width:100%;height:100%;object-fit:cover;display:block;
  filter:brightness(0.75);
}
.gg-preview-label{
  position:absolute;inset:0;display:flex;align-items:flex-end;
  padding:18px;
  background:linear-gradient(to top,rgba(11,11,11,0.7) 0%,transparent 55%);
}
.gg-preview-text{
  font-size:11px;font-weight:600;letter-spacing:.08em;
  color:rgba(240,237,230,0.65);text-transform:uppercase;
}

/* Main view */
#ggMain{ padding:36px 28px 32px;text-align:center; }
#ggMain .gg-check-wrap{
  width:64px;height:64px;border-radius:50%;
  background:color-mix(in srgb, var(--green) 12%, transparent);border:1.5px solid color-mix(in srgb, var(--green) 30%, transparent);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}
#ggMain .gg-title{
  font-family:'Instrument Serif',Georgia,serif;
  font-size:26px;font-weight:400;color:#F0EDE6;
  margin:0 0 12px;line-height:1.2;
}
#ggMain .gg-sub{
  font-size:14px;color:rgba(240,237,230,0.5);
  line-height:1.65;margin:0 0 28px;
}
.gg-cta-col{
  display:flex;flex-direction:column;gap:10px;
}
.gg-signup-btn{
  width:100%;padding:14px;border-radius:10px;
  background:var(--gm,var(--gm));color:#0B0B0B;
  font-size:14px;font-weight:700;border:none;cursor:pointer;
  font-family:inherit;transition:opacity 0.15s;
}
.gg-signup-btn:hover{ opacity:0.88; }
.gg-login-link{
  width:100%;padding:12px;border-radius:10px;
  background:rgba(255,255,255,0.05);color:rgba(240,237,230,0.65);
  font-size:13px;font-weight:500;border:1px solid rgba(255,255,255,0.08);
  cursor:pointer;font-family:inherit;transition:background 0.15s,color 0.15s;
}
.gg-login-link:hover{
  background:rgba(255,255,255,0.09);color:#F0EDE6;
}

/* Signup / Login form views */
#ggSignup,#ggLogin{ padding:28px 28px 30px; }
.gg-back-btn{
  display:flex;align-items:center;gap:6px;
  font-size:12px;color:rgba(240,237,230,0.4);
  background:none;border:none;cursor:pointer;
  padding:0;margin-bottom:20px;font-family:inherit;
  transition:color 0.15s;
}
.gg-back-btn:hover{ color:rgba(240,237,230,0.75); }
.gg-form-title{
  font-size:20px;font-weight:700;color:#F0EDE6;
  margin:0 0 20px;
}
.gg-field-row{ display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px; }
.gg-field{ margin-bottom:10px; }
.gg-input{
  width:100%;background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:8px;padding:11px 14px;
  font-size:14px;color:#F0EDE6;outline:none;
  font-family:inherit;box-sizing:border-box;
  transition:border-color 0.2s,background 0.2s;
}
.gg-input::placeholder{ color:rgba(240,237,230,0.3); }
.gg-input:focus{
  border-color:color-mix(in srgb, var(--green) 45%, transparent);
  background:rgba(255,255,255,0.08);
}
.gg-err{
  display:none;font-size:12px;color:#F56E6E;
  background:rgba(245,110,110,0.08);border-radius:7px;
  padding:9px 12px;margin-bottom:12px;line-height:1.5;
}
.gg-submit-btn{
  width:100%;padding:13px;border-radius:9px;
  background:var(--gm,var(--gm));color:#0B0B0B;
  font-size:14px;font-weight:700;border:none;cursor:pointer;
  font-family:inherit;margin-top:8px;transition:opacity 0.15s;
}
.gg-submit-btn:hover{ opacity:0.88; }
.gg-submit-btn:disabled{ opacity:0.5;cursor:not-allowed; }

/* Input error states */
.gg-input.gg-input-err{
  border-color:rgba(245,110,110,0.55) !important;
  background:rgba(245,110,110,0.05) !important;
}
.inp.inp-err{
  border-color:rgba(239,68,68,0.5) !important;
  background:rgba(239,68,68,0.04) !important;
}

@media(max-width:460px){
  #ggMain{ padding:28px 20px 26px; }
  #ggSignup,#ggLogin{ padding:22px 20px 24px; }
  .gg-field-row{ grid-template-columns:1fr; }
}

/* ── Light mode overrides — gate panel ── */
body:not(.dark-mode) #guestGate{ background:rgba(0,0,0,0.42); }
body:not(.dark-mode) .gg-panel{
  background:#ffffff;
  border-color:rgba(0,0,0,0.09);
  box-shadow:0 24px 80px rgba(0,0,0,0.18);
}
body:not(.dark-mode) #ggMain .gg-title{ color:#18181A; }
body:not(.dark-mode) #ggMain .gg-sub{ color:rgba(0,0,0,0.5); }
body:not(.dark-mode) .gg-login-link{
  background:rgba(0,0,0,0.04);
  border-color:rgba(0,0,0,0.1);
  color:rgba(0,0,0,0.6);
}
body:not(.dark-mode) .gg-login-link:hover{ background:rgba(0,0,0,0.08); color:#18181A; }
body:not(.dark-mode) .gg-form-title{ color:#18181A; }
body:not(.dark-mode) .gg-back-btn{ color:rgba(0,0,0,0.38); }
body:not(.dark-mode) .gg-back-btn:hover{ color:rgba(0,0,0,0.7); }
body:not(.dark-mode) .gg-input{
  background:rgba(0,0,0,0.04);
  border-color:rgba(0,0,0,0.12);
  color:#18181A;
}
body:not(.dark-mode) .gg-input::placeholder{ color:rgba(0,0,0,0.3); }
body:not(.dark-mode) .gg-input:focus{ border-color:rgba(26,66,41,0.4); background:rgba(0,0,0,0.06); }

/* ════════════════════════════════════════════════════════════
   GUEST OVERVIEW PANEL — quick feature highlights
   ════════════════════════════════════════════════════════════ */
.gob-overview{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(12,15,13,0.94);
  pointer-events:all;
  z-index:3;
}
.gov-card{
  width:100%;max-width:420px;
  background:#141414;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:20px;
  padding:32px 28px 28px;
  margin:0 20px;
}
.gov-eyebrow{
  font-size:10px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:color-mix(in srgb, var(--green) 80%, transparent);margin:0 0 12px;
}
.gov-title{
  font-family:'Instrument Serif',Georgia,serif;
  font-size:26px;font-weight:400;color:#F0EDE6;
  margin:0 0 22px;line-height:1.2;
}
.gov-list{
  display:flex;flex-direction:column;gap:14px;margin:0 0 26px;
}
.gov-item{
  display:flex;align-items:flex-start;gap:13px;
}
.gov-icon{
  width:36px;height:36px;border-radius:9px;
  background:color-mix(in srgb, var(--green) 10%, transparent);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-top:1px;
}
.gov-name{
  font-size:13.5px;font-weight:600;color:#F0EDE6;margin-bottom:2px;
}
.gov-desc{
  font-size:12.5px;color:rgba(240,237,230,0.44);line-height:1.5;
}

/* ════════════════════════════════════════════════════════════
   MINI ONBOARDING — post-signup feature highlights (step 2)
   ════════════════════════════════════════════════════════════ */
.ob-feat-list{
  display:flex;flex-direction:column;gap:14px;
  max-width:360px;width:100%;margin:0 0 40px;text-align:left;
}
.ob-feat-item{
  display:flex;align-items:flex-start;gap:14px;
}
.ob-feat-icon{
  width:40px;height:40px;border-radius:10px;
  background:color-mix(in srgb, var(--green) 8%, transparent);
  border:1px solid color-mix(in srgb, var(--green) 16%, transparent);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-top:1px;
}
.ob-feat-name{
  font-size:14px;font-weight:600;color:#F0EDE6;margin-bottom:3px;
}
.ob-feat-desc{
  font-size:12.5px;color:rgba(240,237,230,0.42);line-height:1.5;
}

/* ════════════════════════════════════════════════════════════
   GUEST CREATE SECONDARY RESULT
   ════════════════════════════════════════════════════════════ */
.gcm-secondary{
  margin-top:14px;
  padding:14px 16px;
  background:color-mix(in srgb, var(--green) 5%, transparent);
  border:1px solid color-mix(in srgb, var(--green) 16%, transparent);
  border-radius:10px;
}
.gcm-secondary-label{
  font-size:10px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:color-mix(in srgb, var(--green) 75%, transparent);margin-bottom:7px;
}
.gcm-secondary-text{
  font-size:13.5px;color:rgba(240,237,230,0.75);line-height:1.65;
}

/* ════════════════════════════════════════════════════════════
   GUEST GATE — no #ggMain, forms only
   ════════════════════════════════════════════════════════════ */
#guestGate{
  position:fixed;inset:0;z-index:9600;
  display:none;align-items:center;justify-content:center;
  background:rgba(8,8,8,0.88);backdrop-filter:blur(16px);
  padding:20px;
}
.gg-panel{
  background:#141414;border:1px solid rgba(255,255,255,0.09);
  border-radius:18px;width:100%;max-width:420px;
  max-height:90vh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  box-shadow:0 24px 80px rgba(0,0,0,0.7);
  padding:28px 28px 32px;
}

/* ════════════════════════════════════════════════════════════
   GUIDE TOUR — corner orb, spotlight, tooltips
   ════════════════════════════════════════════════════════════ */

#obCornerOrb {
  position: fixed; bottom: 32px; right: 32px;
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #2D6A4F, #0E2B1D);
  display: flex; align-items: center; justify-content: center;
  z-index: 9100; opacity: 0;
  transform: scale(0.5) translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.22,.68,0,1.4);
  cursor: default;
  box-shadow: 0 0 30px rgba(82,183,136,0.22), 0 4px 20px rgba(0,0,0,0.5);
  animation: obCornerPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
#obCornerOrb.ob-orb-visible { opacity: 1; transform: scale(1) translateY(0); }
@keyframes obCornerPulse {
  0%,100% { box-shadow: 0 0 30px rgba(82,183,136,0.22), 0 4px 20px rgba(0,0,0,0.5); }
  55% { box-shadow: 0 0 50px rgba(82,183,136,0.38), 0 0 0 10px rgba(82,183,136,0), 0 4px 20px rgba(0,0,0,0.5); }
}

#gtSpot {
  position: fixed;
  z-index: 9200;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(12,15,13,0.72);
  border: 1.5px solid rgba(82,183,136,0.5);
  display: none;
  opacity: 0;
  transition: opacity 0.38s ease,
              top    0.4s cubic-bezier(.22,.68,0,1.2),
              left   0.4s cubic-bezier(.22,.68,0,1.2),
              width  0.4s cubic-bezier(.22,.68,0,1.2),
              height 0.4s cubic-bezier(.22,.68,0,1.2);
}
#gtSpot.gt-on { opacity: 1; }

#gtTip {
  position: fixed;
  z-index: 9201;
  width: 290px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.05);
  display: none;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,.68,0,1.2);
  font-family: 'Geist', -apple-system, sans-serif;
}
#gtTip.gt-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gt-tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.gt-tip-icon {
  width: 26px; height: 26px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.gt-tip-step {
  font-size: 11px;
  font-weight: 600;
  color: #52B788;
  letter-spacing: 0.06em;
  flex: 1;
}
.gt-tip-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.gt-tip-close:hover { background: rgba(0,0,0,0.1); color: #333; }
.gt-tip-title {
  font-size: 15px;
  font-weight: 700;
  color: #18181A;
  margin: 0 0 7px;
  line-height: 1.35;
}
.gt-tip-body {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px;
}
.gt-tip-btn {
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, #1A4229, #2D6A4F);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 14px rgba(26,66,41,0.4);
}
.gt-tip-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,66,41,0.52); }
.gt-tip-btn:active { transform: translateY(0); }

#gtOrbMsg {
  position: fixed;
  bottom: 94px;
  right: 24px;
  z-index: 9203;
  display: none;
  align-items: center;
  gap: 8px;
  background: #0C0F0D;
  color: rgba(240,237,230,0.9);
  font-size: 13px;
  font-family: 'Geist', -apple-system, sans-serif;
  padding: 9px 14px;
  border-radius: 12px 12px 4px 12px;
  max-width: 230px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,.68,0,1.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#gtOrbMsg.gt-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#gtOrbMsg::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 16px;
  border: 6px solid transparent;
  border-top-color: #0C0F0D;
  border-bottom: none;
}
.gt-orb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #52B788;
  flex-shrink: 0;
  animation: obMsgDot 1.5s ease-in-out infinite;
}
@keyframes obMsgDot {
  0%,100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

#gtBd {
  position: fixed;
  inset: 0;
  background: rgba(12,15,13,0.78);
  z-index: 9199;
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#gtBd.gt-on { opacity: 1; }

#gtTip.gt-centered { width: 340px; }
#gtTip.gt-centered:not(.gt-on) {
  transform: translate(-50%, -50%) scale(0.97) !important;
  opacity: 0;
}
#gtTip.gt-centered.gt-on {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1;
}

.gt-tip-bullets {
  list-style: none;
  margin: -4px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gt-tip-bullets li {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  padding: 5px 9px;
  background: rgba(82,183,136,0.07);
  border-radius: 7px;
  border-left: 2px solid rgba(82,183,136,0.4);
}
.gt-tip-bullets li strong { color: #1A4229; font-weight: 600; }
.gt-tip-bullets li span   { color: #888; }

.gt-progress-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
}
.gt-pdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  transition: background 0.3s ease, transform 0.3s ease;
}
.gt-pdot.gt-pdot-on     { background: rgba(82,183,136,0.45); }
.gt-pdot.gt-pdot-active { background: #52B788; transform: scale(1.35); }

#gtSkipBtn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  background: none;
  border: none;
  color: #bbb;
  font-size: 12px;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}
#gtSkipBtn:hover { color: #777; }

/* ── Paywall modal plan cards ───────────────────────────────── */
.pw-feat{
  display:flex;align-items:flex-start;gap:8px;
  font-size:12px;color:var(--charcoal,#18181A);line-height:1.6;
  padding:2px 0;
}
.pw-feat::before{
  content:"";display:block;flex-shrink:0;
  width:6px;height:6px;border-radius:50%;
  background:var(--gm,var(--gm));margin-top:5px;
}
.pw-plan-btn{
  width:100%;justify-content:center;font-size:13px;
}
.pw-plan-btn:disabled{
  opacity:0.55;cursor:default;
  background:var(--bg2,#EEE9E1) !important;
  color:var(--muted,#888) !important;
  border-color:var(--border,rgba(0,0,0,.1)) !important;
  box-shadow:none !important;
}

/* ── UGC Video Test ─────────────────────────────────────────── */
.ugc-wrap{ padding:0 32px 48px; }
.ugc-card{ background:var(--bg2,#F4EFE7);border-radius:16px;padding:24px;max-width:640px;display:flex;flex-direction:column;gap:16px; }
.ugc-label{ font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--muted,#888);text-transform:uppercase;display:block;margin-bottom:6px; }
.ugc-textarea{ width:100%;box-sizing:border-box;min-height:120px;resize:vertical;font-size:14px;line-height:1.65;padding:12px 14px;border:1.5px solid var(--border,rgba(0,0,0,.1));border-radius:10px;background:var(--bg,#FAF6F0);font-family:inherit;color:var(--charcoal,#18181A);outline:none;transition:border-color .15s; }
.ugc-textarea:focus{ border-color:var(--gm,var(--gm)); }
.ugc-selects{ display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.ugc-field{ display:flex;flex-direction:column; }
.ugc-sel{ width:100%; }
.ugc-result{ max-width:640px;margin-top:4px; }
.ugc-status-row{ display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted,#888);padding:14px 0; }
.ugc-spinner{ width:16px!important;height:16px!important;border-width:2.5px!important;flex-shrink:0; }
.ugc-status-ok{ font-size:13px;color:#22c55e;font-weight:600;padding:14px 0; }
.ugc-status-err{ font-size:13px;color:#EF4444;padding:14px 0;line-height:1.5; }
@media(max-width:600px){ .ugc-wrap{ padding:0 16px 48px; } .ugc-selects{ grid-template-columns:1fr; } }

/* ── UGC Creator Overlay ─────────────────────────────────────── */
.uc-panel{ max-width:680px; }
.uc-body{ padding:24px 24px 20px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:0; }
.uc-ai-row{ display:flex;align-items:flex-start;gap:10px;margin-bottom:20px; }
.uc-ai-msg{ font-size:14px;font-weight:500;color:var(--charcoal,#18181A);line-height:1.55;padding-top:3px; }
.uc-fields{ display:flex;flex-direction:column;gap:14px;margin-bottom:24px; }
.uc-grid-2{ display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.uc-footer{ display:flex;align-items:center;gap:10px;padding-top:4px; }
.uc-main-btn{ display:flex;align-items:center;gap:7px;padding:10px 20px; }
.uc-script-ta{ min-height:140px;resize:vertical;line-height:1.65;font-size:13.5px;font-family:inherit; }
.uc-status-wrap{ padding:20px 0; }
.uc-video-el{ width:100%;height:auto;border-radius:14px;display:block;box-shadow:0 8px 40px rgba(0,0,0,.22); }
.uc-creator-grid{ display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }
.uc-creator-card{ background:var(--bg2);border:1.5px solid var(--border,#2a2a2a);border-radius:10px;padding:12px 10px;cursor:pointer;text-align:left;transition:border-color .15s,background .15s;display:flex;flex-direction:column;gap:3px;width:100%; }
.uc-creator-card:hover{ border-color:#5a5a5a; }
.uc-creator-active{ border-color:var(--green)!important;background:color-mix(in srgb, var(--green) 6%, transparent)!important; }
.uc-creator-name{ font-size:13px;font-weight:600;color:var(--charcoal,#f0f0f0); }
.uc-creator-sub{ font-size:11px;color:var(--muted,#888); }

/* Background selection pills */
.uc-bg-grid{ display:flex;flex-wrap:wrap;gap:7px; }
.uc-bg-pill{ background:var(--bg3,#1a1a1a);border:1.5px solid var(--border,#2a2a2a);border-radius:8px;padding:7px 13px;font-size:12px;font-weight:500;color:var(--muted,#888);cursor:pointer;transition:border-color .15s,color .15s,background .15s;white-space:nowrap; }
.uc-bg-pill:hover{ border-color:#5a5a5a;color:var(--charcoal,#f0f0f0); }
.uc-bg-pill-active{ border-color:var(--green)!important;color:var(--charcoal,#f0f0f0)!important;background:color-mix(in srgb, var(--green) 7%, transparent)!important; }

/* Script mode toggle */
.uc-script-mode-row{ display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.uc-script-opt{ background:var(--bg2,#141414);border:1.5px solid var(--border,#2a2a2a);border-radius:10px;padding:11px 13px;cursor:pointer;text-align:left;transition:border-color .15s,background .15s;display:flex;flex-direction:column;gap:3px;width:100%; }
.uc-script-opt:hover{ border-color:#5a5a5a; }
.uc-script-opt-active{ border-color:var(--green)!important;background:color-mix(in srgb, var(--green) 6%, transparent)!important; }
.uc-sopt-title{ font-size:13px;font-weight:600;color:var(--charcoal,#f0f0f0); }
.uc-sopt-desc{ font-size:11px;color:var(--muted,#888);line-height:1.4; }

@media(max-width:520px){ .uc-grid-2{ grid-template-columns:1fr; } .uc-creator-grid{ grid-template-columns:1fr; } .uc-script-mode-row{ grid-template-columns:1fr; } .uc-panel{ max-width:100%; } }

/* ── UGC Result — video frame + format variants ─────────────── */
.uc-video-frame{ display:flex;justify-content:center;align-items:flex-start;width:100%;margin:0 auto; }
.uc-fmt-vertical { max-width:300px; }
.uc-fmt-square   { max-width:420px; }
.uc-fmt-landscape{ max-width:100%; }

/* Download hint */
.uc-dl-hint{ font-size:11.5px;color:var(--muted,#666);text-align:center;margin:10px 0 0;letter-spacing:0.01em; }

/* Result action row */
.uc-action-row{ display:flex;justify-content:center;margin-top:16px; }

/* ── Char counter (cfOverlay textarea steps) ────────────────── */
.cf-char-counter{ font-size:11px;color:var(--muted,#666);text-align:right;margin:5px 0 2px;transition:color .2s; }
.cf-char-counter.cf-char-warn{ color:#f59e0b; }

/* ═══════════════════════════════════════════════════════════════
   PAYWALL MODAL — premium dark
   ═══════════════════════════════════════════════════════════════ */
.pw-modal{
  /* Back to four cards (Free added) -- restored to the 1160px width this
     modal used the last time it held four plans (Starter/Creator/
     Professional/Agency), before Agency was removed and it shrank to
     900px for three. max-width keeps it fluid on anything narrower than
     the modal itself. */
  width:1160px;max-width:calc(100vw - 32px);padding:0;overflow:visible;
  background:#0D0D0D;border:1px solid rgba(255,255,255,.1);
  border-radius:24px;box-shadow:0 40px 100px rgba(0,0,0,.85);
}
.pw-close-btn{
  position:absolute;top:16px;right:16px;width:32px;height:32px;
  border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
  cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;
  color:rgba(255,255,255,.5);transition:background .15s,color .15s;
}
.pw-close-btn:hover{background:rgba(255,255,255,.12);color:#fff;}
.pw-header{
  padding:32px 32px 24px;text-align:center;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.pw-eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius:20px;padding:4px 13px;margin-bottom:14px;
  font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--green);text-transform:uppercase;
}
.pw-eyebrow-dot{width:5px;height:5px;border-radius:50%;background:var(--green);flex-shrink:0;}
.pw-title{
  font-family:'Instrument Serif',serif;font-size:26px;font-weight:400;
  color:#F0F0F0;letter-spacing:-.6px;margin:0 0 8px;line-height:1.15;
}
.pw-title em{font-style:italic;color:var(--green);}
.pw-sub{font-size:13px;color:rgba(240,240,240,.38);margin:0;line-height:1.55;}
.pw-grid{
  /* Four equal columns (Free, Starter, Creator, Professional), centered as
     one group -- grid's default align-items:stretch already gives every
     card equal height and keeps buttons aligned regardless of
     feature-list length, no extra rules needed. */
  padding:24px 24px 18px;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
  max-width:1080px;margin:0 auto;
}
.pw-card{
  background:#111111;border:1px solid rgba(255,255,255,.09);
  border-radius:16px;padding:22px 18px;display:flex;flex-direction:column;
  transition:border-color .15s;
}
.pw-card:hover{border-color:rgba(255,255,255,.18);}
.pw-card-featured{
  border-color:color-mix(in srgb, var(--green) 30%, transparent)!important;background:#0F1A0A;
  position:relative;
}
.pw-card-featured:hover{border-color:color-mix(in srgb, var(--green) 55%, transparent)!important;}
.pw-featured-badge{
  position:absolute;top:-10px;left:50%;transform:translateX(-50%);
  background:var(--green);color:#000;font-size:9px;font-weight:800;
  letter-spacing:.1em;text-transform:uppercase;padding:3px 12px;border-radius:20px;white-space:nowrap;
}
.pw-card-name{
  font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(240,240,240,.4);margin-bottom:10px;
}
.pw-price-row{display:flex;align-items:baseline;gap:3px;margin-bottom:6px;}
.pw-price{
  font-family:'Instrument Serif',serif;font-size:36px;
  color:#F0F0F0;letter-spacing:-1px;line-height:1;
}
.pw-period{font-size:12px;color:rgba(240,240,240,.35);}
/* Final Pricing Cleanup pass — credit allowance shown once, directly under
   the price (paywall/onboarding equivalent of .ov-pc-credits below the
   landing card's price). */
.pw-credits-inline{font-size:12px;font-weight:600;color:rgba(240,240,240,.55);margin-bottom:10px;}
.pw-card-desc{font-size:12.5px;color:rgba(240,240,240,.35);line-height:1.5;margin-bottom:14px;}
.pw-card-divider{height:1px;background:rgba(255,255,255,.07);margin-bottom:14px;}
.pw-feats-list{list-style:none;display:flex;flex-direction:column;gap:7px;flex:1;margin-bottom:18px;}
.pw-feats-list .pw-feat{
  display:flex;align-items:flex-start;gap:8px;
  font-size:12px;color:rgba(240,240,240,.55);line-height:1.45;
}
.pw-feats-list .pw-feat::before{
  content:"";display:block;flex-shrink:0;
  width:5px;height:5px;border-radius:50%;
  background:var(--green);margin-top:4px;opacity:.7;
}
/* Free plan card — excluded items (Autopilot, higher limits, premium
   features) render muted with an X instead of the green dot, so what the
   Free plan doesn't include reads as informative, not as an error. */
.pw-feats-list .pw-feat-excluded{ color:rgba(240,240,240,.3); }
.pw-feats-list .pw-feat-excluded::before{
  content:"\2715"; width:auto; height:auto; border-radius:0; background:none;
  font-size:10px; line-height:1; margin-top:2px; opacity:.5; color:rgba(240,240,240,.4);
}
.pw-card-free{ border-color:rgba(255,255,255,.14); }
.pw-card-free:hover{ border-color:rgba(255,255,255,.24); }
.pw-btn{
  width:100%;padding:11px 0;font-size:13px;font-weight:700;
  border-radius:30px;border:none;cursor:pointer;font-family:inherit;
  transition:background .15s,transform .1s,box-shadow .15s;letter-spacing:-.05px;
}
.pw-btn-primary{background:var(--green);color:#000;}
.pw-btn-primary:hover:not(:disabled){background:var(--gm);transform:translateY(-1px);box-shadow:0 5px 16px color-mix(in srgb, var(--green) 22%, transparent);}
.pw-btn-outline{background:rgba(255,255,255,.07);color:#F0F0F0;border:1px solid rgba(255,255,255,.13);}
.pw-btn-outline:hover:not(:disabled){background:rgba(255,255,255,.12);}
.pw-btn:disabled{opacity:.45;cursor:not-allowed;}
.pw-footer{
  padding:14px 24px 18px;text-align:center;
  border-top:1px solid rgba(255,255,255,.07);
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.pw-skip-btn{
  background:none;border:none;font-size:12.5px;color:rgba(240,240,240,.3);
  cursor:pointer;font-family:inherit;transition:color .15s;padding:4px 8px;
}
.pw-skip-btn:hover{color:rgba(240,240,240,.6);}
.pw-footer-note{font-size:11px;color:rgba(240,240,240,.18);}
/* Four columns down to 768px, then a balanced 2x2 between 768px and the
   580px mobile breakpoint -- never an uneven 3-and-1 split with the last
   card stranded alone on its own row. Explicitly range-scoped (not just
   max-width:768px) so it structurally cannot win over the single-column
   mobile rule below at narrower widths regardless of source order -- the
   same class of media-query specificity conflict fixed elsewhere this
   session, avoided here by construction instead of !important. */
@media(max-width:768px) and (min-width:581px){
  .pw-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px;}
}
@media(max-width:580px){.pw-grid{grid-template-columns:1fr;}}

/* ═══════════════════════════════════════════════════════════════
   INTEGRATIONS PANEL
   ═══════════════════════════════════════════════════════════════ */
.int-row{display:flex;align-items:flex-start;gap:16px;}
.int-icon{flex-shrink:0;width:40px;height:40px;border-radius:10px;overflow:hidden;}
.int-info{flex:1;min-width:0;}
.int-name{font-size:14px;font-weight:600;color:var(--text);margin-bottom:4px;}
.int-desc{font-size:12.5px;color:var(--text-2);line-height:1.5;}
.int-action{flex-shrink:0;display:flex;align-items:flex-start;}
.int-connected{
  margin-top:20px;padding-top:16px;
  border-top:1px solid rgba(0,0,0,.06);
  display:flex;flex-direction:column;gap:8px;
}
body.dark-mode .int-connected{border-color:rgba(255,255,255,.07);}
.int-field-row{display:flex;align-items:center;gap:12px;font-size:13px;}
.int-field-label{color:var(--text-2);min-width:110px;flex-shrink:0;}
.int-field-val{color:var(--text);font-weight:500;}
.int-status-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:#22C55E;margin-right:6px;flex-shrink:0;vertical-align:middle;
}
.int-status-warn{background:#F59E0B;}
.int-account-row{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;background:var(--surface-2,rgba(0,0,0,.04));margin-bottom:6px;cursor:pointer;border:1px solid transparent;transition:background .12s,border-color .12s;}
.int-account-row:hover:not(.int-account-selected){background:var(--bg2,rgba(0,0,0,.07));}
body.dark-mode .int-account-row{background:rgba(255,255,255,.05);}
body.dark-mode .int-account-row:hover:not(.int-account-selected){background:rgba(255,255,255,.08);}
.int-account-selected{background:var(--gpale,color-mix(in srgb, var(--green) 7%, transparent))!important;border-color:color-mix(in srgb, var(--green) 30%, transparent)!important;}
body.dark-mode .int-account-selected{background:color-mix(in srgb, var(--green) 8%, transparent)!important;}
.int-account-row-inner{display:flex;align-items:flex-start;gap:10px;}
.int-account-check{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--gm,var(--green));margin-top:2px;}
.int-account-name{font-size:13px;font-weight:500;color:var(--text);}
.int-account-id{font-size:12px;color:var(--text-2);}
.int-account-meta{font-size:11px;color:var(--text-2);}
.int-account-active-badge{display:inline-block;font-size:10px;font-weight:600;background:var(--gpale,color-mix(in srgb, var(--green) 12%, transparent));color:var(--gm,var(--green));border-radius:20px;padding:1px 8px;margin-left:6px;vertical-align:middle;letter-spacing:.01em;}
.int-account-type-badge{display:inline-block;font-size:10px;font-weight:600;border-radius:20px;padding:1px 8px;margin-left:6px;vertical-align:middle;letter-spacing:.01em;}
.int-account-type-client{background:rgba(99,179,237,.12);color:#63b3ed;}
.int-account-type-mcc{background:rgba(237,137,54,.12);color:#ed8935;}
.int-account-row-mcc{cursor:default!important;opacity:.8;}
.int-account-row-mcc:hover{background:var(--surface-2,rgba(0,0,0,.04))!important;}
body.dark-mode .int-account-row-mcc:hover{background:rgba(255,255,255,.05)!important;}
.int-account-mcc-warn{font-size:11px;color:#ed8935;margin-top:3px;}

/* ── INTEGRATIONS PAGE ──────────────────────────────────────── */
.intg-page{max-width:720px;margin:0 auto;padding:48px 24px 80px;}
.intg-hdr{margin-bottom:36px;}
.intg-title{font-size:22px;font-weight:700;color:var(--charcoal,#111);margin:0 0 10px;letter-spacing:-.01em;}
.intg-sub{font-size:14px;color:var(--muted);line-height:1.65;max-width:520px;margin:0;}
.intg-section-label{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:12px;}
.intg-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px 24px;margin-bottom:10px;transition:border-color .15s;}
.intg-card-top{display:flex;align-items:center;gap:16px;}
.intg-card-logo{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:10px;overflow:hidden;}
.intg-card-body{flex:1;min-width:0;}
.intg-card-name{font-size:14px;font-weight:600;color:var(--charcoal,#111);}
body.dark-mode .intg-card-name{color:var(--text,#e8e8e8);}
.intg-card-desc{font-size:13px;color:var(--muted);margin-top:3px;line-height:1.5;}
.intg-card-coming{opacity:.65;}
.intg-card-info{margin-top:20px;padding-top:20px;border-top:1px solid var(--border);}
@media(max-width:600px){.intg-page{padding:32px 16px 80px;}.intg-card{padding:16px;}.intg-card-top{flex-wrap:wrap;gap:12px;}}

/* ── ADS DASHBOARD ──────────────────────────────────────────── */
.ads-page{max-width:1160px;margin:0 auto;padding:36px 24px 80px;}
.ads-hdr{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap;}
.ads-title{font-size:22px;font-weight:700;color:var(--charcoal,#111);margin:0 0 6px;letter-spacing:-.01em;}
body.dark-mode .ads-title{color:var(--text,#e8e8e8);}
.ads-account-bar{display:inline-flex;align-items:center;gap:4px;font-size:13px;}
.ads-account-name{font-weight:500;color:var(--charcoal,#111);}
body.dark-mode .ads-account-name{color:var(--text,#e8e8e8);}
.ads-account-id{color:var(--muted);}
/* Date pills */
.ads-date-row{display:flex;gap:6px;flex-shrink:0;}
.ads-date-pill{padding:5px 14px;border-radius:20px;font-size:12px;font-weight:500;border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;transition:background .12s,color .12s,border-color .12s;}
.ads-date-pill:hover{border-color:var(--gm);color:var(--charcoal);}
.ads-date-pill.active{background:var(--gm,var(--green));color:#000;border-color:var(--gm,var(--green));}
/* Empty state */
.ads-empty{text-align:center;padding:80px 24px;}
.ads-empty-ico{width:56px;height:56px;border-radius:16px;background:var(--bg2);display:flex;align-items:center;justify-content:center;margin:0 auto 20px;color:var(--muted);}
.ads-empty-title{font-size:18px;font-weight:600;color:var(--charcoal);margin-bottom:8px;}
body.dark-mode .ads-empty-title{color:var(--text);}
.ads-empty-sub{font-size:14px;color:var(--muted);margin-bottom:24px;max-width:360px;margin-left:auto;margin-right:auto;line-height:1.6;}
/* Loading */
@keyframes ads-spin{to{transform:rotate(360deg);}}
.ads-loading-wrap{display:flex;align-items:center;gap:12px;padding:48px 0;color:var(--muted);font-size:14px;}
.ads-spinner{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--gm,var(--green));border-radius:50%;animation:ads-spin .7s linear infinite;flex-shrink:0;}
/* KPI cards */
.ads-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px;margin-bottom:28px;}
.ads-kpi{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 16px;}
.ads-kpi-val{font-size:26px;font-weight:800;color:var(--charcoal,#111);letter-spacing:-.03em;line-height:1;margin-bottom:7px;}
body.dark-mode .ads-kpi-val{color:var(--text,#e8e8e8);}
.ads-kpi-lbl{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;}
.ads-kpi-accent{border-color:color-mix(in srgb, var(--green) 30%, transparent);background:var(--gpale,color-mix(in srgb, var(--green) 7%, transparent));}
.ads-kpi-accent .ads-kpi-val{color:var(--gm,var(--green));}
/* Section */
.ads-section{margin-bottom:24px;}
.ads-section-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.ads-section-title{font-size:13px;font-weight:700;color:var(--charcoal,#111);letter-spacing:-.01em;}
body.dark-mode .ads-section-title{color:var(--text);}
/* Table */
.ads-table-wrap{overflow-x:auto;border-radius:14px;border:1px solid var(--border);}
.ads-table{width:100%;border-collapse:collapse;font-size:13px;min-width:640px;}
.ads-table th{padding:10px 14px;text-align:left;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom:1px solid var(--border);background:var(--bg);white-space:nowrap;}
.ads-table th.ads-num,.ads-table td.ads-num{text-align:right;}
.ads-table td{padding:11px 14px;border-bottom:1px solid var(--border);color:var(--charcoal,#111);vertical-align:middle;}
body.dark-mode .ads-table td{color:var(--text);}
.ads-table tbody tr:last-child td{border-bottom:none;}
.ads-table tbody tr{cursor:pointer;transition:background .1s;}
.ads-table tbody tr:hover{background:var(--bg2);}
.ads-table .ads-name{font-weight:500;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* Back button */
.ads-back-btn{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);padding:6px 0;cursor:pointer;border:none;background:none;margin-bottom:8px;}
.ads-back-btn:hover{color:var(--charcoal);}
body.dark-mode .ads-back-btn:hover{color:var(--text);}
.ads-detail-title{font-size:18px;font-weight:700;color:var(--charcoal);margin:12px 0 20px;letter-spacing:-.01em;}
body.dark-mode .ads-detail-title{color:var(--text);}
/* Oriven Score card */
.ads-score-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px 24px;margin-bottom:10px;}
.ads-score-wrap{display:flex;align-items:flex-start;gap:28px;flex-wrap:wrap;}
.ads-score-ring-wrap{position:relative;flex-shrink:0;width:120px;height:120px;}
.ads-score-num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:var(--charcoal,#111);letter-spacing:-.03em;}
body.dark-mode .ads-score-num{color:var(--text);}
.ads-score-track{fill:none;stroke:var(--border);stroke-width:10;}
.ads-score-fill{fill:none;stroke:var(--green);stroke-width:10;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .7s cubic-bezier(.4,0,.2,1);}
.ads-score-info-title{font-size:15px;font-weight:700;color:var(--charcoal);margin-bottom:3px;}
body.dark-mode .ads-score-info-title{color:var(--text);}
.ads-score-sub{font-size:12px;color:var(--muted);margin-bottom:14px;}
/* AI cards */
.ads-ai-card{background:var(--surface);border:1px solid color-mix(in srgb, var(--green) 18%, transparent);border-radius:16px;padding:14px 22px;margin-bottom:10px;position:relative;overflow:hidden;}
/* Sits directly under the new KPI ring / chart modules — a faint top
   gradient marks it as the dashboard's final "intelligence layer" without
   touching its own analysis logic, endpoint, or button. */
.ads-ai-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--green) 55%, transparent), transparent);}
.ads-card-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:4px;flex-wrap:wrap;}
/* AI Analysis header: the button sits beside the title specifically (not
   top-aligned against the whole two-line title+subtitle block), so its
   vertical center matches the title's regardless of their differing
   heights -- confirmed via direct measurement that top-alignment alone
   left the button ~2px lower than the title's center. */
.ads-card-hd-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px;}
.ads-card-title{font-size:14px;font-weight:700;color:var(--charcoal);margin-bottom:2px;}
body.dark-mode .ads-card-title{color:var(--text);}
.ads-card-sub{font-size:12px;color:var(--muted);line-height:1.5;margin-bottom:0;}
/* Findings grid */
.ads-findings{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;margin-top:16px;}
.ads-finding{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:16px;}
.ads-finding-hd{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px;}
.ads-finding-ico{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ads-finding-title{font-size:13px;font-weight:600;color:var(--charcoal);}
body.dark-mode .ads-finding-title{color:var(--text);}
.ads-finding-sev{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-top:2px;}
.ads-finding-detail{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:8px;}
.ads-finding-action{font-size:12px;color:var(--charcoal);font-weight:500;padding-top:8px;border-top:1px solid var(--border);line-height:1.4;}
body.dark-mode .ads-finding-action{color:var(--text);}
/* Recommendations */
.ads-recs-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px;}
.ads-rec-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:10px;}
.ads-rec-list{list-style:none;margin:0;padding:0;}
.ads-rec-item{padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;color:var(--charcoal);line-height:1.4;}
body.dark-mode .ads-rec-item{color:var(--text);}
.ads-rec-item:last-child{border-bottom:none;}
.ads-rec-badge{display:inline-block;font-size:9px;font-weight:700;border-radius:4px;padding:2px 5px;margin-right:5px;vertical-align:middle;letter-spacing:.03em;}
.ads-rec-broad{background:#dbeafe;color:#1e40af;}
.ads-rec-phrase{background:#fef3c7;color:#92400e;}
.ads-rec-exact{background:#d1fae5;color:#065f46;}
.ads-rec-neg{background:#fee2e2;color:#991b1b;}
body.dark-mode .ads-rec-broad{background:rgba(96,165,250,.2);color:#93c5fd;}
body.dark-mode .ads-rec-phrase{background:rgba(245,158,11,.2);color:#fcd34d;}
body.dark-mode .ads-rec-exact{background:rgba(52,211,153,.2);color:#6ee7b7;}
body.dark-mode .ads-rec-neg{background:rgba(239,68,68,.2);color:#fca5a5;}
/* Campaign info bar */
.ads-camp-info-bar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px;}
.ads-camp-chip{display:inline-block;font-size:11px;font-weight:500;color:var(--muted);background:var(--surface-2,rgba(0,0,0,.05));border:1px solid var(--border);border-radius:6px;padding:3px 9px;white-space:nowrap;}

/* Clickable ad rows */
.ads-ad-row{cursor:pointer;transition:background .1s;}
.ads-ad-row:hover{background:var(--bg2,rgba(0,0,0,.04));}
.ads-ad-row-active{background:color-mix(in srgb, var(--green) 6%, transparent)!important;outline:1px solid color-mix(in srgb, var(--green) 25%, transparent);}

/* Ad preview panel */
.ads-ad-preview{background:var(--surface,#fff);border:1px solid var(--border);border-radius:14px;padding:20px;margin:12px 0 20px;animation:ads-slide-in .18s ease;}
body.dark-mode .ads-ad-preview{background:var(--surface-dark,#1a1a1a);}
@keyframes ads-slide-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.ads-ad-preview-inner{display:flex;flex-direction:column;gap:0;}
.ads-ad-preview-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.ads-ad-type-badge{display:inline-block;font-size:10px;font-weight:700;background:rgba(96,165,250,.12);color:#60a5fa;border-radius:5px;padding:2px 7px;letter-spacing:.04em;}
.ads-ad-url-row{display:flex;align-items:center;gap:6px;margin:10px 0;padding:8px 10px;background:var(--bg2,rgba(0,0,0,.04));border-radius:8px;overflow:hidden;}
.ads-ad-url-link{font-size:12px;color:var(--muted);word-break:break-all;text-decoration:none;}
.ads-ad-url-link:hover{color:var(--charcoal);text-decoration:underline;}

/* Creative sections */
.ads-creative-section{margin-top:16px;padding-top:14px;border-top:1px solid var(--border);}
.ads-creative-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px;}
.ads-creative-list{display:flex;flex-direction:column;gap:4px;}
.ads-creative-item{display:flex;align-items:baseline;gap:8px;font-size:13px;color:var(--charcoal);line-height:1.45;padding:4px 0;}
body.dark-mode .ads-creative-item{color:var(--text);}
.ads-creative-idx{flex-shrink:0;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;background:var(--surface-2,rgba(0,0,0,.06));border-radius:50%;color:var(--muted);}

/* Google Search Ad simulation */
.ads-google-sim{background:var(--bg,#fff);border:1px solid var(--border);border-radius:10px;padding:14px 16px;max-width:560px;}
body.dark-mode .ads-google-sim{background:rgba(255,255,255,.04);}
.ads-google-sim-label{display:inline-block;font-size:10px;font-weight:700;color:#188038;border:1px solid #188038;border-radius:4px;padding:1px 5px;margin-bottom:6px;letter-spacing:.02em;}
.ads-google-sim-url{font-size:13px;color:#202124;margin-bottom:2px;word-break:break-all;}
body.dark-mode .ads-google-sim-url{color:var(--muted);}
.ads-google-sim-headline{font-size:18px;font-weight:400;color:#1a0dab;line-height:1.3;margin-bottom:4px;}
body.dark-mode .ads-google-sim-headline{color:#8ab4f8;}
.ads-google-sim-desc{font-size:13px;color:#4d5156;line-height:1.5;}
body.dark-mode .ads-google-sim-desc{color:var(--muted);}

/* Ad performance insight bar */
.ads-ad-insight{margin-top:14px;font-size:12px;color:var(--muted);background:var(--surface-2,rgba(0,0,0,.04));border-radius:8px;padding:8px 12px;border-left:3px solid var(--border);}

/* Responsive */
@media(max-width:768px){
  .ads-page{padding:24px 16px 80px;}
  .ads-kpis{grid-template-columns:repeat(2,1fr);}
  .ads-recs-grid{grid-template-columns:1fr;}
  .ads-findings{grid-template-columns:1fr;}
  .ads-score-wrap{gap:16px;}
  .ads-google-sim{max-width:100%;}
  .ads-google-sim-headline{font-size:15px;}
}

/* ═══════════════════════════════════════════════════════════════
   AD INSPECTOR — right-side drawer
   ═══════════════════════════════════════════════════════════════ */

/* Backdrop overlay */
.ads-inspector-overlay{position:fixed;inset:0;background:rgba(0,0,0,0);z-index:1000;pointer-events:none;transition:background .25s ease;}
.ads-inspector-overlay.open{background:rgba(0,0,0,.45);pointer-events:all;}

/* Drawer */
.ads-inspector{position:fixed;top:0;right:0;bottom:0;width:500px;max-width:100vw;background:var(--surface);border-left:1px solid var(--border);z-index:1001;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s cubic-bezier(.22,1,.36,1);overflow:hidden;box-shadow:-8px 0 32px rgba(0,0,0,.12);}
.ads-inspector.open{transform:translateX(0);}

/* Header */
.ads-insp-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 16px;border-bottom:1px solid var(--border);flex-shrink:0;}
.ads-insp-title{font-size:13px;font-weight:700;color:var(--charcoal);letter-spacing:-.01em;margin-bottom:6px;}
body.dark-mode .ads-insp-title{color:var(--text);}
.ads-insp-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.ads-insp-close{width:28px;height:28px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:none;background:var(--bg2,rgba(0,0,0,.05));border-radius:7px;cursor:pointer;color:var(--muted);transition:background .12s,color .12s;}
.ads-insp-close:hover{background:var(--border);color:var(--charcoal);}
body.dark-mode .ads-insp-close:hover{color:var(--text);}

/* Scrollable body */
.ads-insp-body{flex:1;overflow-y:auto;padding:20px;}

/* Section */
.ads-insp-sec{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--border);}
.ads-insp-sec:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0;}
.ads-insp-sec-label{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);margin-bottom:14px;}

/* Google Search Ad simulation (inspector version — more accurate) */
.ads-gsim{background:var(--bg,#fff);border:1px solid var(--border);border-radius:12px;padding:16px 18px;}
body.dark-mode .ads-gsim{background:rgba(255,255,255,.035);}
.ads-gsim-sponsored{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#188038;margin-bottom:5px;}
.ads-gsim-sponsored-dot{width:6px;height:6px;border-radius:50%;background:#188038;flex-shrink:0;}
.ads-gsim-url{font-size:14px;color:#202124;line-height:1.3;margin-bottom:1px;word-break:break-word;}
body.dark-mode .ads-gsim-url{color:rgba(255,255,255,.7);}
.ads-gsim-breadcrumb{font-size:12px;color:#5f6368;margin-bottom:8px;word-break:break-word;}
body.dark-mode .ads-gsim-breadcrumb{color:var(--muted);}
.ads-gsim-headline{font-size:20px;font-weight:400;color:#1a0dab;line-height:1.3;margin-bottom:5px;}
body.dark-mode .ads-gsim-headline{color:#8ab4f8;}
.ads-gsim-desc{font-size:13px;color:#4d5156;line-height:1.55;}
body.dark-mode .ads-gsim-desc{color:var(--muted);}

/* Asset lists (headlines / descriptions) */
.ads-insp-asset-hd{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:16px 0 8px;}
.ads-insp-asset-note{font-size:10px;font-weight:400;text-transform:none;letter-spacing:0;color:var(--muted);opacity:.7;}
.ads-insp-asset-list{display:flex;flex-direction:column;}
.ads-insp-asset-row{display:flex;align-items:baseline;gap:9px;font-size:13px;color:var(--charcoal);line-height:1.45;padding:6px 0;border-bottom:1px solid var(--border);}
.ads-insp-asset-row:last-child{border-bottom:none;}
body.dark-mode .ads-insp-asset-row{color:var(--text);}
.ads-insp-asset-num{flex-shrink:0;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;background:var(--bg2,rgba(0,0,0,.06));border-radius:50%;color:var(--muted);}

/* Final URL chip */
.ads-insp-url-chip{display:flex;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 12px;background:var(--bg2,rgba(0,0,0,.04));border-radius:8px;}
.ads-insp-url-label{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);white-space:nowrap;padding-top:2px;}
.ads-insp-url-val{font-size:12px;color:var(--muted);word-break:break-all;text-decoration:none;}
.ads-insp-url-val:hover{color:var(--gm);text-decoration:underline;}

/* Info grid (Ad Information section) */
.ads-insp-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.ads-insp-info-cell{background:var(--bg2,rgba(0,0,0,.03));border:1px solid var(--border);border-radius:10px;padding:10px 12px;}
.ads-insp-info-cell.full{grid-column:1/-1;}
.ads-insp-info-lbl{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:3px;}
.ads-insp-info-val{font-size:12px;font-weight:500;color:var(--charcoal);word-break:break-all;line-height:1.4;}
body.dark-mode .ads-insp-info-val{color:var(--text);}

/* Performance stats grid */
.ads-insp-perf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.ads-insp-stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:13px 12px;}
.ads-insp-stat.accent{border-color:color-mix(in srgb, var(--green) 25%, transparent);background:color-mix(in srgb, var(--green) 5%, transparent);}
.ads-insp-stat-val{font-size:20px;font-weight:800;color:var(--charcoal);letter-spacing:-.03em;line-height:1;margin-bottom:5px;}
body.dark-mode .ads-insp-stat-val{color:var(--text);}
.ads-insp-stat.accent .ads-insp-stat-val{color:var(--gm,var(--green));}
.ads-insp-stat-lbl{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;}
.ads-insp-insight{margin-top:12px;font-size:12px;color:var(--muted);background:var(--surface-2,rgba(0,0,0,.04));border-radius:8px;padding:9px 12px;border-left:3px solid var(--border);line-height:1.5;}

/* Keywords table inside inspector */
.ads-insp-kw-wrap{overflow-x:auto;border-radius:10px;border:1px solid var(--border);}
.ads-insp-kw-table{width:100%;border-collapse:collapse;font-size:12px;min-width:300px;}
.ads-insp-kw-table th{padding:8px 10px;text-align:left;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom:1px solid var(--border);background:var(--bg);white-space:nowrap;}
.ads-insp-kw-table th.r,.ads-insp-kw-table td.r{text-align:right;}
.ads-insp-kw-table td{padding:9px 10px;border-bottom:1px solid var(--border);color:var(--charcoal);vertical-align:middle;}
body.dark-mode .ads-insp-kw-table td{color:var(--text);}
.ads-insp-kw-table tbody tr:last-child td{border-bottom:none;}
.ads-insp-kw-name{font-weight:500;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* Responsive */
@media(max-width:768px){
  .ads-inspector{width:100vw;border-left:none;border-top:1px solid var(--border);top:auto;height:85vh;}
  .ads-insp-perf-grid{grid-template-columns:repeat(2,1fr);}
  .ads-insp-info-grid{grid-template-columns:1fr 1fr;}
}

/* ── Platform tabs ───────────────────────────────────────────── */
.ads-ptabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:24px;}
.ads-ptab{display:flex;align-items:center;gap:8px;padding:9px 18px;font-size:13px;font-weight:500;color:var(--muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s,border-color .15s;margin-bottom:-1px;white-space:nowrap;letter-spacing:-.01em;}
.ads-ptab:hover{color:var(--charcoal);}
body.dark-mode .ads-ptab:hover{color:var(--text);}
.ads-ptab.active{color:var(--gm,var(--green));border-bottom-color:var(--gm,var(--green));}
.ads-ptab-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;opacity:.55;}
.ads-ptab.active .ads-ptab-dot{opacity:1;}
/* Meta ad creative preview */
.meta-ad-preview{border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:16px;}
.meta-ad-preview-img{width:100%;max-height:200px;object-fit:cover;display:block;background:var(--border);}
.meta-ad-preview-body{padding:12px 14px;}
.meta-ad-preview-headline{font-size:14px;font-weight:700;color:var(--charcoal);line-height:1.3;margin-bottom:4px;}
body.dark-mode .meta-ad-preview-headline{color:var(--text);}
.meta-ad-preview-text{font-size:12px;color:var(--muted);line-height:1.5;}
.meta-ad-preview-cta{display:inline-block;margin-top:10px;padding:7px 14px;background:var(--gm,var(--green));color:#000;border-radius:7px;font-size:12px;font-weight:700;}

/* Hard paywall mode — close button and skip button hidden */
#modal-paywall.pw-hard .pw-close-btn,
#modal-paywall.pw-hard .pw-skip-btn { display:none !important; }
/* Plan step right after the free first ad (paywall.js openOnboardingPlans
   'first_ad'): a choice is required, and Free is one of the choices. */
#modal-paywall.pw-choose .pw-close-btn,
#modal-paywall.pw-choose .pw-skip-btn { display:none !important; }

/* Flow step indicator in paywall (shown in hard mode only) */
.pw-flow-steps{
  display:none; align-items:center; gap:8px;
  justify-content:center; margin-bottom:20px;
}
#modal-paywall.pw-hard .pw-flow-steps{ display:flex; }
.pw-flow-step{
  font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(240,240,240,.28); display:flex; align-items:center; gap:5px;
}
.pw-flow-step.pw-flow-done{ color:color-mix(in srgb, var(--green) 70%, transparent); }
.pw-flow-step.pw-flow-active{ color:#fff; }
.pw-flow-sep{ font-size:10px; color:rgba(240,240,240,.18); }

/* Flow step indicator in onboarding overlay */
.ob-flow-steps{
  display:flex; align-items:center; gap:8px; justify-content:center;
  margin-bottom:24px;
}
.ob-flow-step{
  font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(240,240,240,.28); display:flex; align-items:center; gap:5px;
}
.ob-flow-step.ob-flow-done{ color:color-mix(in srgb, var(--green) 70%, transparent); }
.ob-flow-step.ob-flow-active{ color:#fff; }
.ob-flow-sep{ font-size:10px; color:rgba(240,240,240,.18); }

/* ═══════════════════════════════════════════════════════════════
   SPOTLIGHT ONBOARDING SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* Spotlight ring — positioned over the spotlit nav item.
   The massive box-shadow dims everything outside the ring while
   the transparent interior lets the nav item show through. */
#ob-ring{
  display:none;
  position:fixed;
  /* Above .orv-sb (z-index:9200 !important) — otherwise the sidebar would
     render above the ring's dimming box-shadow and never actually dim. */
  z-index:9300;
  background:transparent;
  pointer-events:none;
  opacity:0;
  border-radius:12px;
  transition:opacity .3s ease,
             top .35s cubic-bezier(.4,0,.2,1),
             left .35s cubic-bezier(.4,0,.2,1),
             width .35s cubic-bezier(.4,0,.2,1),
             height .35s cubic-bezier(.4,0,.2,1);
  box-shadow:0 0 0 9999px rgba(0,0,0,.78),
             0 0 0 2px color-mix(in srgb, var(--green) 75%, transparent),
             0 0 22px color-mix(in srgb, var(--green) 18%, transparent);
}

/* Full-screen backdrop for the final CTA step (no spotlight target) */
#ob-backdrop{
  display:none;
  position:fixed;inset:0;
  background:rgba(0,0,0,.82);
  z-index:9300;
  pointer-events:auto;
  opacity:0;
  transition:opacity .3s ease;
}

/* Tooltip card */
#ob-tooltip{
  display:none;
  position:fixed;
  z-index:9301;
  width:290px;
  max-width:calc(100vw - 32px);
  background:#111;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:20px 20px 16px;
  opacity:0;
  transition:opacity .22s ease;
  box-shadow:0 16px 56px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.05);
  pointer-events:auto;
}
#ob-tooltip.ob-tt-center{ width:420px; max-width:calc(100vw - 40px); }

/* Left-pointing arrow on tooltip (hidden in centered mode).
   --ob-arrow-top is set dynamically by _obRender() so the arrow
   always points at the nav item's centre even when the card is
   shifted to stay inside the viewport. */
#ob-tooltip{ --ob-arrow-top: 18px; }
#ob-tooltip.ob-tt-arrow::before{
  content:'';position:absolute;left:-8px;top:var(--ob-arrow-top);
  width:0;height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-right:8px solid rgba(255,255,255,.1);
}
#ob-tooltip.ob-tt-arrow::after{
  content:'';position:absolute;left:-7px;top:var(--ob-arrow-top);
  width:0;height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-right:8px solid #111;
}

.ob-tt-top{ display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:12px; }
.ob-tt-section{ font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green); }
.ob-tt-skip{
  background:none;border:none;color:rgba(255,255,255,.32);font-size:11px;font-family:inherit;
  cursor:pointer;padding:2px 0;transition:color .15s;flex-shrink:0;
}
.ob-tt-skip:hover{ color:rgba(255,255,255,.6); }
.ob-tt-title{ font-size:16px;font-weight:600;color:#fff;line-height:1.35;margin:0 0 10px; }
.ob-tt-title em{ font-style:italic;color:var(--green); }
.ob-tt-desc{ font-size:13px;color:rgba(240,240,240,.44);line-height:1.65;margin:0 0 20px; }
.ob-tt-nav{ display:flex;align-items:center;justify-content:space-between;gap:12px; }
.ob-tt-progress{ display:flex;flex-direction:column;gap:5px; }
.ob-tt-steplabel{ font-size:10.5px;font-weight:500;color:rgba(255,255,255,.32); }
.ob-tt-dots{ display:flex;gap:5px;align-items:center; }
.ob-tt-dot{ display:inline-block;width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.2);transition:background .2s,transform .2s; }
.ob-tt-dot.ob-tt-dot-active{ background:var(--green);transform:scale(1.4); }
.ob-tt-btns{ display:flex;gap:8px;align-items:center; }
.ob-tt-back{
  background:none;border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.5);
  border-radius:8px;padding:7px 14px;font-size:13px;font-family:inherit;cursor:pointer;
  transition:border-color .15s,color .15s;
}
.ob-tt-back:hover{ border-color:rgba(255,255,255,.28);color:rgba(255,255,255,.8); }
.ob-tt-next{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;
  border-radius:8px;padding:7px 16px;font-size:13px;font-family:inherit;
  cursor:pointer;font-weight:500;transition:background .15s;
}
.ob-tt-next:hover{ background:rgba(255,255,255,.14); }
.ob-tt-next.ob-tt-cta{ background:var(--green);color:#000;border-color:var(--green);font-weight:600; }
.ob-tt-next.ob-tt-cta:hover{ background:var(--gm); }
/* Interactive-wait frames (Generate / Publish) — no click to fire, just a
   quiet status instead of a disabled-looking button. */
.ob-tt-next.ob-tt-waiting{
  background:none;border:1px dashed rgba(255,255,255,.18);color:rgba(255,255,255,.4);
  cursor:default;font-weight:400;font-style:italic;
}
.ob-tt-next.ob-tt-waiting:hover{ background:none; }

/* ── Legacy overlay styles (kept as dead code — elements removed) ─ */
#onboardingOverlay{
  position:fixed;inset:0;z-index:8000;
  background:rgba(0,0,0,.88);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.ob-tour-skip{
  position:absolute;top:20px;right:24px;
  background:none;border:none;font-size:12px;color:rgba(255,255,255,.28);
  cursor:pointer;font-family:inherit;transition:color .15s;letter-spacing:.02em;
}
.ob-tour-skip:hover{color:rgba(255,255,255,.6);}
.ob-tour-card{
  width:100%;max-width:500px;background:#111111;
  border:1px solid rgba(255,255,255,.09);border-radius:24px;
  padding:40px 36px 32px;position:relative;
  box-shadow:0 32px 80px rgba(0,0,0,.7);
}
/* Steps: hidden by default, shown when .ob-active */
.ob-step{display:none;flex-direction:column;align-items:flex-start;animation:obFadeIn .35s ease;}
.ob-step.ob-active{display:flex;}
.ob-step.ob-exit{animation:obFadeOut .25s ease forwards;}
@keyframes obFadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes obFadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}
/* Tour icon */
.ob-tour-icon{
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:22px;flex-shrink:0;
}
.ob-tour-icon svg{width:24px;height:24px;}
.ob-icon-dashboard{background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);color:var(--green);}
.ob-icon-create{background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.2);color:#A78BFA;}
.ob-icon-studio{background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.2);color:#3B82F6;}
.ob-icon-inspiration{background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.2);color:#F59E0B;}
.ob-icon-settings{background:rgba(156,163,175,.1);border:1px solid rgba(156,163,175,.15);color:#9CA3AF;}
.ob-icon-team{background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.2);color:#A78BFA;}
/* Tour text */
.ob-tour-section{
  font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:color-mix(in srgb, var(--green) 70%, transparent);margin-bottom:8px;
}
.ob-tour-title{
  font-family:'Instrument Serif',serif;font-size:26px;font-weight:400;
  color:#F0F0F0;letter-spacing:-.5px;line-height:1.2;margin-bottom:12px;
}
.ob-tour-title em{font-style:italic;color:var(--green);}
.ob-tour-desc{font-size:14px;color:rgba(240,240,240,.42);line-height:1.65;margin-bottom:28px;}
/* Navigation */
.ob-tour-nav{display:flex;align-items:center;justify-content:space-between;}
.ob-dots{display:flex;gap:6px;align-items:center;}
.ob-dot{
  width:6px;height:6px;border-radius:50%;
  background:rgba(255,255,255,.15);transition:background .2s,transform .2s;
}
.ob-dot.ob-dot-active{background:var(--green);transform:scale(1.3);}
.ob-tour-btns{display:flex;gap:10px;align-items:center;}
.ob-back-btn{
  background:none;border:none;font-size:13px;color:rgba(255,255,255,.3);
  cursor:pointer;font-family:inherit;transition:color .15s;padding:0;
}
.ob-back-btn:hover{color:rgba(255,255,255,.65);}
.ob-next-btn{
  padding:10px 24px;background:var(--green);color:#000;
  font-size:13px;font-weight:700;border-radius:30px;border:none;
  cursor:pointer;font-family:inherit;transition:background .15s,transform .1s,box-shadow .15s;
  letter-spacing:-.05px;
}
.ob-next-btn:hover{background:var(--gm);transform:translateY(-1px);box-shadow:0 5px 14px color-mix(in srgb, var(--green) 22%, transparent);}
.ob-next-btn.ob-finish{background:#F0F0F0;color:#0A0A0A;}
.ob-next-btn.ob-finish:hover{background:#fff;}

/* Navigation hint — subtle cue below the tour card */
.ob-nav-hint{
  margin-top:14px;
  text-align:center;
  font-size:11px;
  font-weight:500;
  letter-spacing:.06em;
  color:rgba(240,240,240,.28);
  user-select:none;
  pointer-events:none;
}
.ob-hint-mobile{ display:none; }
.ob-hint-desktop{ display:inline; }
@media(max-width:767px){
  .ob-hint-desktop{ display:none; }
  .ob-hint-mobile{ display:inline; }
}

/* ═══════════════════════════════════════════════════════════════
   BRANDCORE AI WIZARD
   ═══════════════════════════════════════════════════════════════ */
.bcw-overlay{
  position:fixed;inset:0;z-index:8500;
  background:rgba(0,0,0,.92);backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;
  padding:24px;opacity:0;transition:opacity .28s ease;
}
.bcw-panel{
  width:100%;max-width:560px;background:#111111;
  border:1px solid rgba(255,255,255,.1);border-radius:24px;
  display:flex;flex-direction:column;min-height:480px;
  box-shadow:0 32px 80px rgba(0,0,0,.7);position:relative;overflow:hidden;
}
.bcw-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 24px 0;
}
.bcw-logo{
  display:flex;align-items:center;gap:8px;
  font-size:12.5px;font-weight:700;color:rgba(240,240,240,.5);letter-spacing:.02em;
}
.bcw-close{
  width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.4);transition:background .15s,color .15s;
}
.bcw-close:hover{background:rgba(255,255,255,.13);color:#fff;}
.bcw-progress{
  display:flex;align-items:center;gap:12px;padding:16px 24px 0;
}
.bcw-prog-track{flex:1;height:2px;background:rgba(255,255,255,.08);border-radius:2px;overflow:hidden;}
.bcw-prog-fill{height:100%;background:var(--green);border-radius:2px;transition:width .35s ease;}
.bcw-prog-lbl{font-size:11px;color:rgba(240,240,240,.25);letter-spacing:.04em;white-space:nowrap;}
.bcw-content{flex:1;padding:32px 28px 20px;position:relative;}
.bcw-step{display:none;flex-direction:column;animation:bcwIn .3s ease;}
.bcw-step.bcw-step-active{display:flex;}
@keyframes bcwIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.bcw-step-eyebrow{
  font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:color-mix(in srgb, var(--green) 65%, transparent);margin-bottom:10px;
}
.bcw-step-q{
  font-family:'Instrument Serif',serif;font-size:24px;color:#F0F0F0;
  letter-spacing:-.5px;line-height:1.2;margin-bottom:8px;
}
.bcw-step-q em{font-style:italic;color:var(--green);}
.bcw-step-sub{font-size:13px;color:rgba(240,240,240,.38);line-height:1.6;margin-bottom:22px;}
.bcw-inp{
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  border-radius:12px;padding:13px 16px;font-size:14px;color:#F0F0F0;
  font-family:inherit;outline:none;width:100%;box-sizing:border-box;
  transition:border-color .15s,background .15s;
}
.bcw-inp:focus{border-color:color-mix(in srgb, var(--green) 40%, transparent);background:rgba(255,255,255,.07);}
.bcw-inp::placeholder{color:rgba(240,240,240,.18);}
.bcw-textarea{resize:none;}
.bcw-pills{display:flex;flex-wrap:wrap;gap:8px;}
.bcw-pill{
  padding:8px 16px;background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);border-radius:20px;
  font-size:13px;color:rgba(240,240,240,.65);cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.bcw-pill:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);}
.bcw-pill.bcw-pill-sel{background:color-mix(in srgb, var(--green) 12%, transparent);border-color:color-mix(in srgb, var(--green) 45%, transparent);color:var(--green);}
.bcw-nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 24px 22px;border-top:1px solid rgba(255,255,255,.07);
}
.bcw-back-btn{
  background:none;border:none;font-size:13px;color:rgba(255,255,255,.28);
  cursor:pointer;font-family:inherit;transition:color .15s;padding:0;
}
.bcw-back-btn:hover{color:rgba(255,255,255,.65);}
.bcw-next-btn{
  padding:11px 28px;background:var(--green);color:#000;
  font-size:13.5px;font-weight:700;border-radius:30px;border:none;
  cursor:pointer;font-family:inherit;letter-spacing:-.05px;
  transition:background .15s,transform .1s,box-shadow .15s;
}
.bcw-next-btn:hover{background:var(--gm);transform:translateY(-1px);box-shadow:0 5px 16px color-mix(in srgb, var(--green) 25%, transparent);}
.bcw-generate{background:#F0F0F0;color:#0A0A0A;}
.bcw-generate:hover{background:#fff;}

/* ═══════════════════════════════════════════════════════════════
   BRANDCORE MANUAL SETUP — expanded modal
   ═══════════════════════════════════════════════════════════════ */
.bcs-section{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--border);}
.bcs-section:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0;}
.bcs-section-label{
  font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:12px;
}
.bcs-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.bcs-color-row{display:flex;align-items:center;gap:8px;}
.bcs-color-inp{flex:1;}
.bcs-color-swatch{
  width:32px;height:32px;border-radius:8px;flex-shrink:0;
  border:1px solid rgba(0,0,0,.08);background:transparent;transition:background .15s;
}
.bcs-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;}

/* ═══════════════════════════════════════════════════════════════
   BRANDCORE PROFILE PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll container ─────────────────────────────────────────── */
.bcp-scroll{height:100%;overflow-y:auto;padding:0;}

/* ── Empty state ──────────────────────────────────────────────── */
.bcp-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:70vh;padding:48px 32px;text-align:center;
}
.bcp-empty-orb{
  width:72px;height:72px;border-radius:50%;
  background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  display:flex;align-items:center;justify-content:center;margin-bottom:24px;
}
.bcp-empty-title{
  font-family:'Instrument Serif',serif;font-size:28px;font-weight:400;
  color:var(--charcoal);letter-spacing:-.5px;margin-bottom:10px;line-height:1.2;
}
.bcp-empty-title em{font-style:italic;color:var(--green);}
.bcp-empty-sub{font-size:14px;color:var(--muted);line-height:1.65;max-width:420px;margin-bottom:28px;}
.bcp-empty-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.bcp-btn-primary{
  padding:12px 28px;background:var(--green);color:#000;font-size:14px;font-weight:700;
  border-radius:30px;border:none;cursor:pointer;font-family:inherit;
  display:flex;align-items:center;gap:8px;
  transition:background .15s,transform .1s,box-shadow .15s;letter-spacing:-.05px;
}
.bcp-btn-primary:hover{background:var(--gm);transform:translateY(-1px);box-shadow:0 5px 16px color-mix(in srgb, var(--green) 22%, transparent);}
.bcp-btn-ghost{
  padding:12px 28px;background:transparent;color:var(--charcoal);font-size:14px;font-weight:600;
  border-radius:30px;border:1px solid var(--border);cursor:pointer;font-family:inherit;
  transition:background .15s,border-color .15s;
}
.bcp-btn-ghost:hover{background:var(--bg2);border-color:var(--b2);}

/* ── Profile layout ───────────────────────────────────────────── */
.bcp-profile{max-width:900px;margin:0 auto;padding:32px 32px 64px;}
@media(max-width:680px){.bcp-profile{padding:20px 16px 48px;}}

/* ── Brand Header ─────────────────────────────────────────────── */
.bcp-header{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:24px;margin-bottom:48px;flex-wrap:wrap;
}
.bcp-hdr-left{flex:1;min-width:200px;}
.bcp-eyebrow{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:12px;
  font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);
}
.bcp-eyebrow-dot{
  width:6px;height:6px;border-radius:50%;background:var(--border);
  transition:background .3s;
}
.bcp-eyebrow-dot.active{background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent);}
.bcp-brand-name{
  font-family:'Instrument Serif',serif;font-size:44px;font-weight:400;
  color:var(--charcoal);letter-spacing:-1.2px;line-height:1;margin-bottom:10px;
}
@media(max-width:500px){.bcp-brand-name{font-size:32px;}}
.bcp-brand-tagline{
  font-size:15px;color:var(--muted);font-weight:400;line-height:1.5;
  font-style:italic;
}
.bcp-hdr-right{display:flex;flex-direction:column;align-items:flex-end;gap:16px;}
.bcp-score-block{text-align:right;}
.bcp-score-num{
  font-family:'Instrument Serif',serif;font-size:48px;font-weight:400;
  color:var(--green);letter-spacing:-1.5px;line-height:1;margin-bottom:4px;
}
.bcp-score-lbl{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px;}
.bcp-score-bar-track{
  width:160px;height:3px;background:var(--border);border-radius:3px;overflow:hidden;
  margin-left:auto;margin-bottom:8px;
}
.bcp-score-bar-fill{height:100%;background:var(--green);border-radius:3px;transition:width .6s cubic-bezier(.4,0,.2,1);}
.bcp-score-msg{font-size:11.5px;color:var(--muted);line-height:1.5;max-width:180px;text-align:right;}
.bcp-hdr-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.bcp-action-btn{
  display:flex;align-items:center;gap:6px;padding:8px 16px;
  background:var(--bg2);border:1px solid var(--border);border-radius:20px;
  font-size:12px;font-weight:600;color:var(--charcoal);cursor:pointer;
  font-family:inherit;transition:background .15s,border-color .15s,transform .1s;
}
.bcp-action-btn:hover{background:var(--bg3);border-color:var(--b2);}
.bcp-action-btn-primary{
  background:var(--green);color:#000;border-color:var(--green);
}
.bcp-action-btn-primary:hover{background:var(--gm);border-color:var(--gm);transform:translateY(-1px);}

/* ── Logo empty state ───────────────────────────────────────── */
.bcp-logo-empty{
  padding:32px 24px;text-align:center;
  border:1.5px dashed var(--border);border-radius:14px;
}
.bcp-logo-empty-msg{font-size:14px;font-weight:600;color:var(--charcoal);margin-bottom:6px;}
.bcp-logo-empty-sub{font-size:13px;color:var(--muted);line-height:1.55;margin-bottom:20px;}
.bcp-logo-empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}

/* ── Regenerate choice modal ────────────────────────────────── */
.bcp-regen-choice{
  display:flex;align-items:flex-start;gap:16px;padding:18px 20px;
  background:var(--bg2);border:1px solid var(--border);border-radius:14px;
  cursor:pointer;text-align:left;font-family:inherit;width:100%;
  transition:background .15s,border-color .15s;
}
.bcp-regen-choice:hover{background:var(--bg3);border-color:var(--b2);}
.bcp-regen-ai:hover{border-color:color-mix(in srgb, var(--green) 40%, transparent);background:color-mix(in srgb, var(--green) 4%, transparent);}
.bcp-regen-choice-icon{
  width:36px;height:36px;border-radius:10px;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;background:var(--bg3);color:var(--muted);
}
.bcp-regen-ai .bcp-regen-choice-icon{background:color-mix(in srgb, var(--green) 10%, transparent);color:var(--green);}
.bcp-regen-choice-body{flex:1;}
.bcp-regen-choice-title{font-size:14px;font-weight:700;color:var(--charcoal);margin-bottom:4px;}
.bcp-regen-choice-sub{font-size:12.5px;color:var(--muted);line-height:1.5;}

/* ── Section wrapper ──────────────────────────────────────────── */
.bcp-section{margin-bottom:40px;}
.bcp-section-half{flex:1;min-width:240px;}
.bcp-row-2{display:flex;gap:20px;margin-bottom:40px;flex-wrap:wrap;}
.bcp-row-2 .bcp-section{margin-bottom:0;}
.bcp-section-hd{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:16px;
}
.bcp-section-label{
  font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);
}
.bcp-section-act{
  font-size:12px;font-weight:600;color:var(--muted);
  background:none;border:none;cursor:pointer;font-family:inherit;
  padding:4px 0;transition:color .15s;
}
.bcp-section-act:hover{color:var(--charcoal);}
.bcp-empty-field{font-size:13px;color:var(--muted);font-style:italic;}

/* ── Color System ─────────────────────────────────────────────── */
.bcp-colors{display:flex;gap:12px;flex-wrap:wrap;}
.bcp-color-chip{
  display:flex;flex-direction:column;border-radius:14px;overflow:hidden;
  border:1px solid var(--border);cursor:pointer;transition:transform .15s,border-color .15s;
  min-width:120px;flex:1;max-width:160px;
}
.bcp-color-chip:hover{transform:translateY(-2px);border-color:var(--b2);}
.bcp-color-swatch{
  height:90px;display:flex;align-items:flex-end;padding:8px 10px;
  transition:height .15s;
}
.bcp-color-hex{font-size:10.5px;font-weight:700;letter-spacing:.04em;opacity:.85;}
.bcp-color-meta{padding:10px 11px;background:var(--bg2);}
.bcp-color-role{font-size:11.5px;font-weight:600;color:var(--charcoal);margin-bottom:3px;}
.bcp-color-exp{font-size:10.5px;color:var(--muted);line-height:1.4;}
.bcp-color-add{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-width:80px;max-width:80px;height:130px;border:1.5px dashed var(--border);
  border-radius:14px;cursor:pointer;color:var(--muted);font-size:11.5px;font-weight:600;
  transition:border-color .15s,color .15s;
}
.bcp-color-add:hover{border-color:var(--b2);color:var(--charcoal);}

/* ── Typography ───────────────────────────────────────────────── */
.bcp-typo-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media(max-width:540px){.bcp-typo-grid{grid-template-columns:1fr;}}
.bcp-typo-card{
  background:var(--bg2);border:1px solid var(--border);
  border-radius:14px;padding:22px 20px;
}
.bcp-typo-role{
  font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:12px;
}
.bcp-typo-sample{
  font-size:22px;color:var(--charcoal);line-height:1.2;margin-bottom:10px;
  font-weight:400;
}
.bcp-typo-name{font-size:13px;font-weight:700;color:var(--charcoal);margin-bottom:6px;}
.bcp-typo-reason{font-size:12px;color:var(--muted);line-height:1.5;}

/* ── Brand Personality chips ──────────────────────────────────── */
.bcp-personality{display:flex;gap:10px;flex-wrap:wrap;}
.bcp-chip{
  padding:11px 22px;border-radius:30px;font-size:14px;font-weight:700;
  letter-spacing:-.2px;border:1px solid;
}
.bcp-chip-a{background:color-mix(in srgb, var(--green) 10%, transparent);border-color:color-mix(in srgb, var(--green) 30%, transparent);color:var(--green);}
.bcp-chip-b{background:rgba(167,139,250,.1);border-color:rgba(167,139,250,.3);color:#A78BFA;}
.bcp-chip-c{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.3);color:#3B82F6;}
.bcp-chip-d{background:rgba(245,158,11,.1);border-color:rgba(245,158,11,.3);color:#F59E0B;}

/* ── Tone of Voice quote ──────────────────────────────────────── */
.bcp-tone-card{
  background:var(--bg2);border:1px solid var(--border);border-radius:14px;
  padding:22px 22px 22px 28px;border-left:3px solid var(--green);
}
.bcp-quote{
  font-family:'Geist',system-ui,-apple-system,sans-serif;font-size:14px;font-style:normal;font-weight:400;
  color:var(--charcoal);line-height:1.65;
}

/* ── Positioning statement ────────────────────────────────────── */
.bcp-statement-card{
  background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:24px 28px;
}
.bcp-statement{
  font-family:'Geist',system-ui,-apple-system,sans-serif;font-size:14px;font-weight:400;
  color:var(--charcoal);line-height:1.65;letter-spacing:-.01em;
}

/* ── Target Audience ──────────────────────────────────────────── */
.bcp-audience-card{
  background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:20px 22px;
}
.bcp-audience-text{font-size:14px;color:var(--charcoal);line-height:1.65;}

/* ── Visual Direction ─────────────────────────────────────────── */
.bcp-visual-block{
  background:var(--bg2);border:1px solid var(--border);border-radius:14px;
  padding:20px 22px;margin-bottom:14px;
}
.bcp-visual-desc{font-size:14px;color:var(--charcoal);line-height:1.65;}

/* ── Moodboard ────────────────────────────────────────────────── */
.bcp-moodboard{
  border:1.5px dashed var(--border);border-radius:14px;padding:18px 20px;
}
.bcp-mood-label{
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:14px;
}
.bcp-mood-grid{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.bcp-mood-item{position:relative;width:90px;height:90px;border-radius:10px;overflow:hidden;}
.bcp-mood-img{width:100%;height:100%;object-fit:cover;}
.bcp-mood-remove{
  position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;
  border:none;border-radius:50%;width:18px;height:18px;font-size:10px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:1;padding:0;
}
.bcp-mood-add{
  display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;
  color:var(--muted);background:none;border:none;cursor:pointer;font-family:inherit;
  transition:color .15s;padding:0;
}
.bcp-mood-add:hover{color:var(--charcoal);}

/* ── Logo System ──────────────────────────────────────────────── */
.bcp-logos{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px;}
.bcp-logo-slot{
  display:flex;flex-direction:column;border:1px solid var(--border);
  border-radius:14px;overflow:hidden;min-width:160px;flex:1;max-width:220px;
}
.bcp-logo-preview{
  height:110px;background:var(--bg2);display:flex;align-items:center;
  justify-content:center;cursor:pointer;position:relative;overflow:hidden;
}
.bcp-logo-img{max-width:80%;max-height:80%;object-fit:contain;}
.bcp-logo-overlay{
  position:absolute;inset:0;background:rgba(0,0,0,.5);display:flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:600;
  color:#fff;opacity:0;transition:opacity .2s;
}
.bcp-logo-preview:hover .bcp-logo-overlay{opacity:1;}
.bcp-logo-upload{
  height:110px;background:var(--bg2);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:7px;cursor:pointer;
  color:var(--muted);font-size:12px;font-weight:600;transition:background .15s;
}
.bcp-logo-upload:hover{background:var(--bg3);}
.bcp-logo-footer{padding:12px 14px;}
.bcp-logo-name{font-size:12.5px;font-weight:700;color:var(--charcoal);margin-bottom:3px;}
.bcp-logo-hint{font-size:11px;color:var(--muted);line-height:1.4;margin-bottom:8px;}
.bcp-logo-remove{
  font-size:11px;color:var(--muted);background:none;border:none;cursor:pointer;
  padding:0;font-family:inherit;transition:color .15s;
}
.bcp-logo-remove:hover{color:#EF4444;}
.bcp-logo-desc-block{
  background:var(--bg2);border:1px solid var(--border);border-radius:12px;padding:14px 16px;
}
.bcp-logo-desc-lbl{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.bcp-logo-desc-txt{font-size:13px;color:var(--charcoal);line-height:1.55;}

/* ── Quick row at bottom ──────────────────────────────────────── */
.bcp-quick-row{margin-top:12px;}
.bcp-quick-card{
  display:flex;align-items:center;gap:14px;padding:16px 18px;
  background:var(--bg2);border:1px solid var(--border);border-radius:14px;
  cursor:pointer;transition:background .15s,border-color .15s;
}
.bcp-quick-card:hover{background:var(--bg3);border-color:var(--b2);}
.bcp-quick-ico{
  width:36px;height:36px;border-radius:10px;background:var(--bg3);
  display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0;
}
.bcp-quick-body{flex:1;}
.bcp-quick-title{font-size:13.5px;font-weight:600;color:var(--charcoal);}
.bcp-quick-sub{font-size:12px;color:var(--muted);margin-top:2px;}
.cf-char-counter.cf-char-over{ color:#EF4444;font-weight:600; }


/* ══════════════════════════════════════════════════════════════
   PUBLIC PAGES — Landing · Login · Signup · Plan
   All styles scoped to body.public-page or prefixed .lp- .au- .pl-
   ══════════════════════════════════════════════════════════════ */

/* Override app body rules for public pages */
body.public-page {
  display: block; /* override app body's display:flex — public pages need normal block flow for vertical scroll */
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   ORIVEN — Landing Page
   ═══════════════════════════════════════════════════════════════ */

:root {
  --lp-bg:       #0A0A0A;
  --lp-bg2:      #111111;
  --lp-bg3:      #161616;
  --lp-surface:  #141414;
  --lp-border:   rgba(255,255,255,.08);
  --lp-border2:  rgba(255,255,255,.05);
  --lp-green:    var(--green);
  --lp-green-d:  color-mix(in srgb, var(--green) 10%, transparent);
  --lp-white:    #F0F0F0;
  --lp-muted:    rgba(240,240,240,.45);
  --lp-muted2:   rgba(240,240,240,.25);
  --lp-r:        16px;
  --lp-rl:       20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ── Scene stage ────────────────────────────────────────────── */
#lp-stage {
  position: fixed;
  inset: 0;
  background: var(--lp-bg);
  overflow: hidden;
  z-index: 1;
}
.lp-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  overflow: hidden;
}
.lp-scene.is-current {
  opacity: 1;
  pointer-events: auto;
}
/* Scene-level inner wrapper */
.lp-si {
  width: 100%;
  max-width: 1200px;
  padding: 0 80px;
  margin: 0 auto;
}

/* ── Progress dots (right edge) ─────────────────────────────── */
#lp-progress {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.lp-pg-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  cursor: pointer;
  transition: background .25s, height .25s, border-radius .25s;
}
.lp-pg-dot.is-on {
  background: var(--lp-green);
  height: 18px;
  border-radius: 3px;
}

body.public-page {
  background: var(--lp-bg);
  color: var(--lp-white);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utilities ─────────────────────────────────────────────────── */
.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.lp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 18px;
}
.lp-section-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lp-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
  flex-shrink: 0;
}
.lp-section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--lp-white);
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.lp-section-title em { font-style: italic; color: var(--lp-green); }
.lp-section-sub {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--lp-green);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  letter-spacing: -.1px;
  white-space: nowrap;
  font-family: inherit;
}
button.lp-cta-btn { cursor:pointer; border:none; }
.lp-cta-btn:hover {
  background: var(--gm);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--green) 28%, transparent);
}
.lp-cta-btn-lg { padding: 15px 32px; font-size: 15px; }
.lp-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: transparent;
  color: var(--lp-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 40px;
  border: 1px solid var(--lp-border);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
  font-family: inherit;
  white-space: nowrap;
}
.lp-ghost-btn:hover { color: var(--lp-white); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }

/* ── Navigation ────────────────────────────────────────────────── */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10,10,10,.82);
  /* Final Polish — was blur(20px). A position:fixed element blurring
     everything scrolling underneath it inside a custom-scroll container
     is a real, well-documented cause of scroll compositing cost/jank,
     independent of any JS scroll listener. Backdrop blur itself is kept
     (not removed -- it's part of the intended look), just reduced to a
     noticeably cheaper radius; still reads as frosted glass. */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s, border-color .3s;
}
.lp-nav.lp-nav-scrolled {
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-nav-inner {
  max-width: 1320px; /* Redesign: was 1100px — wider desktop layout */
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}
.lp-logo-img { width: 52px; height: 52px; object-fit: contain; }
.lp-logo-txt {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-white);
  letter-spacing: -.3px;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.lp-nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
  transition: color .15s, background .15s;
}
.lp-nav-link:hover { color: var(--lp-white); background: rgba(255,255,255,.05); }
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lp-nav-login {
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
  padding: 7px 13px;
  border-radius: 8px;
  transition: color .15s;
}
.lp-nav-login:hover { color: var(--lp-white); }
.lp-nav .lp-cta-btn { padding: 9px 20px; font-size: 13px; }
.lp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.lp-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--lp-white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.lp-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.lp-hamburger.open span:nth-child(2) { opacity: 0; }
.lp-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* Mobile Polish pass — the overlay itself no longer scrolls (and no
   longer centers its content with `justify-content: center`, which is
   what made the expanded Product accordion unreachable/unscrollable:
   a fixed, non-overflowing flex box centering content taller than the
   viewport just clips the overflow with nowhere to scroll it into).
   The overlay stays a fixed, non-scrolling shell so .lp-mm-close keeps
   a stable position:absolute anchor and is always reachable regardless
   of how far the content below has scrolled; .lp-mm-scroll (new, see
   below) is the actual scrolling region. */
.lp-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6%);
  transition: opacity .3s ease, visibility .3s ease, transform .38s cubic-bezier(.16,1,.3,1);
}
.lp-mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* The real scroll container. flex:1 + min-height:0 is the actual fix
   (the classic flex-child-won't-shrink-below-content gotcha — without
   min-height:0 this box would just grow to fit its content instead of
   clipping/scrolling it, and overflow-y:auto would never engage).
   `justify-content: safe center` centers short content (nothing
   expanded) exactly like the old `justify-content:center` did, but
   falls back to top-aligned + fully scrollable the moment content
   exceeds the viewport (the `safe` keyword is the whole point: it's
   what `center` alone does NOT do — plain `center` on overflowing flex
   content clips the start of the overflow with no way to scroll back
   to it, which is the flexbox-specific mechanism behind this bug).
   overscroll-behavior:contain stops an over-scroll at the top/bottom
   edge from chaining into a page-behind-the-overlay scroll. */
.lp-mm-scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 0;
  padding: 76px 0 max(28px, env(safe-area-inset-bottom));
}

/* ── Hero ──────────────────────────────────────────────────────── */
.lp-hero {
  padding: 0 80px;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 7%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid var(--lp-border);
  border-radius: 40px;
  background: rgba(255,255,255,.03);
}
.lp-hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lp-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
  animation: lpPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.lp-hero-h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  color: var(--lp-white);
  letter-spacing: -2.5px;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.lp-hero-h1 em { font-style: italic; color: var(--lp-green); }
.lp-hero-sub {
  font-size: 18px;
  color: var(--lp-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}
.lp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lp-hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-muted2);
}
.lp-note-dot { opacity: .35; }

/* ── Browser Frame Mockup ──────────────────────────────────────── */
.lp-mockup-section {
  padding: 20px 28px 100px;
  position: relative;
}
.lp-mockup-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(to bottom, transparent, var(--lp-bg));
  pointer-events: none;
}
.lp-browser {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg2);
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  transform: perspective(1200px) rotateX(3deg);
  transform-origin: top center;
}
.lp-browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--lp-bg3);
  border-bottom: 1px solid var(--lp-border);
}
.lp-browser-dots { display: flex; gap: 6px; }
.lp-browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.lp-browser-dots span:nth-child(1) { background: #FF5F57; }
.lp-browser-dots span:nth-child(2) { background: #FEBC2E; }
.lp-browser-dots span:nth-child(3) { background: #28C840; }
.lp-browser-url {
  flex: 1;
  margin: 0 auto;
  max-width: 280px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--lp-muted2);
  text-align: center;
  font-family: 'Geist Mono', monospace;
  letter-spacing: .02em;
}
/* App UI inside browser */
.lp-app-ui {
  display: grid;
  grid-template-columns: 52px 1fr;
  height: 420px;
  overflow: hidden;
}
.lp-app-sidebar {
  background: var(--lp-bg2);
  border-right: 1px solid var(--lp-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 6px;
}
.lp-sb-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--lp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.lp-sb-logo svg { width: 14px; height: 14px; stroke: #000; fill: none; stroke-width: 2; }
.lp-sb-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.28);
  transition: background .15s, color .15s;
}
.lp-sb-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lp-sb-icon.active { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--lp-green); }
.lp-sb-sep { flex: 1; }
/* Dashboard content */
.lp-app-content { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.lp-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-app-title-row { display: flex; flex-direction: column; gap: 3px; }
.lp-app-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3);
}
.lp-app-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lp-green); flex-shrink: 0; }
.lp-app-h { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--lp-white); letter-spacing: -1px; font-weight: 400; }
.lp-app-h em { font-style: italic; color: var(--lp-green); }
.lp-app-level-badge {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
  font-size: 10px;
  font-weight: 600;
  color: var(--lp-muted);
  letter-spacing: .04em;
}
/* Metric cards row */
.lp-app-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-app-metric {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-app-metric-val {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  color: var(--lp-white);
  letter-spacing: -1px;
  line-height: 1;
}
.lp-app-metric-lbl { font-size: 10px; color: rgba(255,255,255,.3); font-weight: 500; letter-spacing: .02em; }
.lp-app-metric-bar { height: 2px; background: var(--lp-border); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.lp-app-metric-fill { height: 100%; background: var(--lp-green); border-radius: 2px; }
/* Quick cards row */
.lp-app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-app-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-app-card-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-app-card-ico svg { width: 12px; height: 12px; fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.6; stroke-linecap: round; }
.lp-app-card-body { min-width: 0; }
.lp-app-card-ttl { font-size: 11px; font-weight: 600; color: var(--lp-white); letter-spacing: -.1px; }
.lp-app-card-sub { font-size: 9px; color: rgba(255,255,255,.3); }
/* Activity feed */
.lp-app-feed { display: flex; flex-direction: column; gap: 6px; }
.lp-app-feed-hd { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 4px; }
.lp-app-feed-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 8px;
}
.lp-app-feed-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.lp-app-feed-txt { font-size: 10px; color: rgba(255,255,255,.4); flex: 1; }
.lp-app-feed-time { font-size: 9px; color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════════════
   SCENE 1 — HERO (two-column)
   ═══════════════════════════════════════════════════════════════ */
.lp-s-hero-left { max-width: 520px; }
.lp-s-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lp-muted); margin-bottom: 28px;
  padding: 6px 14px; border: 1px solid var(--lp-border); border-radius: 40px;
  background: rgba(255,255,255,.03);
}
.lp-s-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lp-green); }
.lp-s-h1 {
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 700; color: var(--lp-white);
  line-height: 1.08; letter-spacing: -2px; margin-bottom: 22px;
}
.lp-s-h1 em { font-style: italic; color: var(--lp-green); font-family: 'Instrument Serif', serif; font-weight: 400; }
.lp-s-sub { font-size: 16px; color: var(--lp-muted); line-height: 1.7; margin-bottom: 36px; max-width: 440px; }
.lp-s-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.lp-s-note { font-size: 12px; color: rgba(255,255,255,.22); display: flex; gap: 10px; align-items: center; }

/* Hero right: app preview */
.lp-s-hero-right { flex: 1; min-width: 0; }
.lp-s-prev-frame {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  background: #111;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}
.lp-s-prev-frame:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0deg); }
.lp-s-prev-body {
  display: flex;
  height: 360px;
}
.lp-s-prev-sidebar {
  width: 52px;
  background: #0d0d0d;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}
.lp-s-sb-logo {
  width: 28px; height: 28px;
  background: var(--lp-green);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.lp-s-sb-dot {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.lp-s-sb-dot svg { width: 13px; height: 13px; opacity: .3; }
.lp-s-sb-dot.active { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.lp-s-sb-dot.active svg { opacity: .8; }

.lp-s-prev-main {
  flex: 1; padding: 18px 16px; overflow: hidden;
}
.lp-s-prev-hdr { font-size: 11px; color: rgba(255,255,255,.3); margin-bottom: 14px; letter-spacing: .04em; }
.lp-s-tool-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.lp-s-tool {
  padding: 12px 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.lp-s-tool-ico {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.lp-s-tool-ico svg { width: 12px; height: 12px; }
.lp-s-tool-name { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: -.1px; }
.lp-s-tool-sub { font-size: 9px; color: rgba(255,255,255,.28); }
.lp-s-prev-pulse {
  margin-top: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--green) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
}
.lp-s-pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lp-green);
  flex-shrink: 0;
  animation: lpPulse 2s infinite;
}
@keyframes lpPulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.lp-s-pulse-txt { font-size: 10px; color: color-mix(in srgb, var(--green) 60%, transparent); }

/* ═══════════════════════════════════════════════════════════════
   SCENE 2 — AI SYSTEMS
   ═══════════════════════════════════════════════════════════════ */
.lp-s-ai {
  width: 100%; max-width: 1100px; padding: 0 80px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: center;
}
.lp-s-ai-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lp-muted); margin-bottom: 20px; text-align: center;
}
.lp-s-ai-title {
  font-size: clamp(34px, 4vw, 52px); font-weight: 700; color: var(--lp-white);
  letter-spacing: -2px; line-height: 1.06; margin-bottom: 12px; text-align: center;
}
.lp-s-ai-title em { font-style: italic; color: var(--lp-green); font-family: 'Instrument Serif', serif; font-weight: 400; }
.lp-s-ai-sub { font-size: 15px; color: var(--lp-muted); text-align: center; max-width: 420px; margin: 0 auto; }
.lp-s-ai-hdr { grid-column: 1 / -1; text-align: center; margin-bottom: 64px; }

/* Providers column */
.lp-s-ai-providers { display: flex; flex-direction: column; gap: 12px; }
.lp-s-ai-provider {
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s;
}
.lp-s-ai-provider:hover { border-color: color-mix(in srgb, var(--green) 20%, transparent); background: color-mix(in srgb, var(--green) 4%, transparent); }
.lp-s-ai-pico {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: -.5px;
  flex-shrink: 0;
}
.lp-s-ai-pname { font-size: 13px; font-weight: 600; color: var(--lp-white); letter-spacing: -.2px; }
.lp-s-ai-psub { font-size: 10px; color: var(--lp-muted); margin-top: 1px; }

/* Center ORIVEN hub */
.lp-s-ai-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 40px; gap: 16px;
}
.lp-s-ai-hub {
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 18%, transparent) 0%, color-mix(in srgb, var(--green) 4%, transparent) 60%, transparent 100%);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px color-mix(in srgb, var(--green) 12%, transparent);
}
.lp-s-ai-hub img { width: 44px; height: 44px; object-fit: contain; }
.lp-s-ai-arrow {
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--green) 30%, transparent), transparent);
}
.lp-s-ai-arrow.flip { transform: rotate(180deg); }

/* Outputs column */
.lp-s-ai-outputs { display: flex; flex-direction: column; gap: 10px; }
.lp-s-ai-output {
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  display: flex; align-items: center; gap: 10px;
}
.lp-s-ai-out-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lp-green); opacity: .5; flex-shrink: 0;
}
.lp-s-ai-out-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65); letter-spacing: -.1px; }

/* ═══════════════════════════════════════════════════════════════
   SCENES 3-5 — PROCESS (in scene context, no sticky)
   ═══════════════════════════════════════════════════════════════ */
.lp-scene-proc .lp-proc-step {
  border: none;
  height: 100%;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   SCENE 6 — TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.lp-s-testi {
  width: 100%; max-width: 1100px; padding: 0 80px; margin: 0 auto;
}
.lp-s-testi-eyebrow {
  text-align: center; margin-bottom: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted);
}
.lp-s-testi-title {
  text-align: center; margin-bottom: 56px;
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; color: var(--lp-white); letter-spacing: -1.5px; line-height: 1.1;
}
.lp-s-testi-title em { font-style: italic; color: var(--lp-green); font-family: 'Instrument Serif', serif; font-weight: 400; }
.lp-s-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lp-s-tcard {
  padding: 28px 24px;
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  display: flex; flex-direction: column; gap: 18px;
}
.lp-s-tcard-stars { color: var(--lp-green); font-size: 12px; letter-spacing: 2px; }
.lp-s-tcard-quote { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.72; flex: 1; }
.lp-s-tcard-quote em { color: var(--lp-white); font-style: normal; }
.lp-s-tcard-person { display: flex; align-items: center; gap: 12px; }
.lp-s-tcard-av {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #000; flex-shrink: 0;
}
.lp-s-tcard-name { font-size: 13px; font-weight: 600; color: var(--lp-white); letter-spacing: -.2px; }
.lp-s-tcard-role { font-size: 11px; color: var(--lp-muted); }

/* ═══════════════════════════════════════════════════════════════
   SCENE 7 — PRICING
   ═══════════════════════════════════════════════════════════════ */
.lp-s-pricing {
  width: 100%; max-width: 1100px; padding: 0 80px; margin: 0 auto;
}
.lp-s-pricing-hdr { text-align: center; margin-bottom: 48px; }
.lp-s-pricing-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 14px;
}
.lp-s-pricing-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; color: var(--lp-white); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 10px;
}
.lp-s-pricing-title em { font-style: italic; color: var(--lp-green); font-family: 'Instrument Serif', serif; font-weight: 400; }
.lp-s-pricing-sub { font-size: 14px; color: var(--lp-muted); }

/* ═══════════════════════════════════════════════════════════════
   SCENE 8 — FAQ
   ═══════════════════════════════════════════════════════════════ */
.lp-s-faq {
  width: 100%; max-width: 780px; padding: 0 40px; margin: 0 auto;
}
.lp-s-faq-hdr { text-align: center; margin-bottom: 48px; }
.lp-s-faq-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 14px;
}
.lp-s-faq-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; color: var(--lp-white); letter-spacing: -1.5px; line-height: 1.1;
}
.lp-s-faq-title em { font-style: italic; color: var(--lp-green); font-family: 'Instrument Serif', serif; font-weight: 400; }

/* ═══════════════════════════════════════════════════════════════
   SCENE 9 — ABOUT
   ═══════════════════════════════════════════════════════════════ */
.lp-s-about {
  width: 100%; max-width: 1100px; padding: 0 80px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   SCENE 3 — PROCESS
   ═══════════════════════════════════════════════════════════════ */
.lp-s-proc {
  width: 100%; max-width: 1100px; padding: 0 80px; margin: 0 auto;
}
.lp-s-proc-eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lp-green); margin-bottom: 20px; font-weight: 600;
}
.lp-s-proc-title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  color: var(--lp-white); line-height: 1.06; margin-bottom: 72px;
  letter-spacing: -.02em;
}
.lp-s-proc-title em {
  font-style: italic; color: var(--lp-green);
  font-family: 'Instrument Serif', serif; font-weight: 400;
}
.lp-s-proc-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.lp-s-proc-step { border-top: 1px solid rgba(255,255,255,.08); padding-top: 32px; }
.lp-s-proc-num {
  font-size: 72px; font-weight: 700; line-height: 1;
  color: var(--lp-green); letter-spacing: -.04em; margin-bottom: 24px;
  opacity: .55;
}
.lp-s-proc-step-h {
  font-size: 20px; font-weight: 600; color: var(--lp-white);
  margin-bottom: 14px; letter-spacing: -.01em;
}
.lp-s-proc-step-p { font-size: 14px; line-height: 1.75; color: var(--lp-muted); }

/* ═══════════════════════════════════════════════════════════════
   SCENE 7 — CONTACT
   ═══════════════════════════════════════════════════════════════ */
.lp-s-contact {
  width: 100%; max-width: 700px; padding: 0 48px; margin: 0 auto;
  text-align: center;
}
.lp-s-contact-eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lp-green); margin-bottom: 24px; font-weight: 600;
}
.lp-s-contact-title {
  font-size: clamp(40px, 6vw, 68px); font-weight: 700;
  color: var(--lp-white); line-height: 1.05; margin-bottom: 24px;
  letter-spacing: -.02em;
}
.lp-s-contact-title em {
  font-style: italic; color: var(--lp-green);
  font-family: 'Instrument Serif', serif; font-weight: 400;
}
.lp-s-contact-sub {
  font-size: 17px; color: var(--lp-muted); line-height: 1.65;
  max-width: 480px; margin: 0 auto 44px;
}
.lp-s-contact-actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 40px;
}
.lp-s-contact-email {
  font-size: 13px; color: rgba(255,255,255,.3); letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════
   SCENE 8 — FOOTER
   ═══════════════════════════════════════════════════════════════ */
.lp-scene-footer {
  align-items: stretch;
  overflow-y: auto;
}
.lp-scene-footer .lp-footer {
  width: 100%;
  margin: auto 0;
}

/* ── [data-in] entrance animation targets ────────────────────── */
[data-in] {
  opacity: 0;
}

/* ── Mobile landing: each scene must fit within the viewport ─── */
/* No internal scrolling. Users swipe between scenes, not inside them. */
/* If content doesn't fit, we reduce spacing/fonts or hide non-essentials. */
@media (max-width: 820px) {
  /* Scenes lock to viewport — no internal scroll */
  .lp-scene {
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 0 0;
  }

  /* ── Hero ──────────────────────────────────────────────────── */
  .lp-hero { grid-template-columns: 1fr; gap: 0; padding: 16px 20px 0; align-items: flex-start; }
  .lp-s-hero-right { display: none; }
  .lp-s-eyebrow { margin-bottom: 14px; font-size: 10px; padding: 5px 11px; }
  .lp-s-h1 { font-size: clamp(26px, 7.5vw, 42px); letter-spacing: -1.8px; margin-bottom: 10px; }
  .lp-s-sub { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
  .lp-s-actions { gap: 10px; flex-wrap: wrap; }
  .lp-ghost-btn { display: none; }
  .lp-s-note { margin-top: 12px; font-size: 11px; }

  /* ── AI Systems ─────────────────────────────────────────────── */
  .lp-s-ai { grid-template-columns: 1fr; padding: 0 20px; gap: 18px; }
  .lp-s-ai-center { flex-direction: row; padding: 0; gap: 10px; }
  .lp-s-ai-hub { width: 48px; height: 48px; }
  .lp-s-ai-hdr { margin-bottom: 20px; }
  .lp-s-ai-providers { gap: 6px; }
  .lp-s-ai-provider { padding: 8px 11px; }

  /* ── Testimonials ────────────────────────────────────────────── */
  .lp-s-testi { padding: 0 20px; }
  .lp-s-testi-hdr { margin-bottom: 18px; }
  .lp-tc-arrow { display: none; }
  .lp-tc-card { width: calc(100% / 5); }
  .lp-s-testi-grid { grid-template-columns: 1fr; gap: 10px; }

  /* ── Pricing — compact 3-column, no feature lists ────────────── */
  .lp-s-pricing { padding: 0 14px; width: 100%; max-width: none; }
  .lp-s-pricing-hdr { margin-bottom: 14px; text-align: left; }
  .lp-s-pricing-eyebrow { margin-bottom: 6px; }
  .lp-s-pricing-title { font-size: clamp(20px, 5.5vw, 28px); }
  .lp-s-pricing-sub { display: none; }
  .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lp-plan { padding: 14px 10px; }
  .lp-plan-tag { font-size: 8px; padding: 2px 8px; top: -8px; }
  .lp-plan-name { font-size: 10px; letter-spacing: .06em; margin-bottom: 6px; }
  .lp-plan-price { margin-bottom: 8px; }
  .lp-plan-price-num { font-size: 22px; letter-spacing: -1px; }
  .lp-plan-price-period { font-size: 10px; }
  .lp-plan-desc { display: none; }
  .lp-plan-features { display: none; }
  .lp-plan-divider { margin-bottom: 8px; }
  .lp-plan-cta { padding: 9px 6px; font-size: 11px; }

  /* ── FAQ — first 3 questions only, no open answers ───────────── */
  .lp-s-faq { padding: 0 20px; width: 100%; max-width: none; }
  .lp-s-faq-hdr { margin-bottom: 14px; }
  .lp-s-faq-title { font-size: clamp(20px, 5.5vw, 28px); }
  .lp-faq-item:nth-child(n+4) { display: none; }
  .lp-faq-a { display: none !important; }
  .lp-faq-q { padding: 11px 0; font-size: 13px; }

  /* ── About ───────────────────────────────────────────────────── */
  .lp-s-about { grid-template-columns: 1fr; gap: 22px; padding: 0 20px; }

  /* ── Process ─────────────────────────────────────────────────── */
  .lp-s-proc { padding: 0 20px; }
  .lp-s-proc-eyebrow { margin-bottom: 10px; }
  .lp-s-proc-title { font-size: clamp(22px, 6vw, 30px); margin-bottom: 20px; }
  .lp-s-proc-steps { grid-template-columns: 1fr; gap: 10px; }
  .lp-s-proc-step { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
  .lp-s-proc-num { font-size: 30px; margin-bottom: 8px; opacity: .45; }
  .lp-s-proc-step-h { font-size: 15px; margin-bottom: 0; }
  .lp-s-proc-step-p { display: none; }
  .lp-proc-step { height: auto; padding: 56px 0; }

  /* ── Contact + Footer ────────────────────────────────────────── */
  /* Suppress inner wrap's own scroll so outer scene overflow:hidden wins */
  .lp-s-contact-wrap { overflow: hidden; }
  .lp-s-contact-wrap .lp-s-contact { padding: 28px 20px 20px; min-height: 0; flex: none; }
  .lp-s-contact-title { font-size: clamp(26px, 7vw, 40px); margin-bottom: 10px; }
  .lp-s-contact-eyebrow { margin-bottom: 10px; }
  .lp-s-contact-sub { font-size: 13px; margin-bottom: 18px; }
  .lp-s-contact-actions { flex-direction: column; align-items: center; gap: 10px; }
  /* Compact footer */
  .lp-footer-top { padding: 16px 0 12px; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 20px; }
  .lp-footer-brand { grid-column: 1 / -1; }
  .lp-footer-tagline { display: none; }
  .lp-footer-bottom { padding: 10px 20px; }
  .lp-footer-sep { display: none; }
  .lp-footer-copy:not(:first-child) { display: none; }

  /* ── General ─────────────────────────────────────────────────── */
  .lp-s-prev-frame { transform: scale(1); }
  #lp-progress { display: none; }
}

/* ── Features ──────────────────────────────────────────────────── */
.lp-features {
  padding: 100px 28px;
  background: var(--lp-bg2);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-features-hd { max-width: 1100px; margin: 0 auto 56px; }
.lp-features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--lp-border);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-rl);
  overflow: hidden;
}
.lp-feat {
  padding: 32px 28px;
  background: var(--lp-bg2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .18s;
}
.lp-feat:hover { background: var(--lp-bg3); }
.lp-feat-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--lp-border);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-feat-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--lp-green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lp-feat-title { font-size: 15px; font-weight: 700; color: var(--lp-white); letter-spacing: -.3px; }
.lp-feat-desc { font-size: 13px; color: var(--lp-muted); line-height: 1.65; }
.lp-feat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lp-muted2);
  margin-top: auto;
  padding-top: 6px;
}

/* ── How It Works ──────────────────────────────────────────────── */
.lp-how {
  padding: 100px 28px;
  text-align: center;
}
.lp-how-inner { max-width: 1100px; margin: 0 auto; }
.lp-how-hd { margin-bottom: 64px; }
.lp-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.lp-how-steps::before {
  content: '';
  position: absolute;
  top: 24px; left: calc(33.33% / 2);
  right: calc(33.33% / 2);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--lp-border), var(--lp-border), transparent);
}
.lp-how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}
.lp-how-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--lp-bg2);
  border: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--lp-white);
  letter-spacing: -.5px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.lp-how-step.active .lp-how-num {
  background: var(--lp-green-d);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--lp-green);
}
.lp-how-step-title { font-size: 16px; font-weight: 700; color: var(--lp-white); letter-spacing: -.3px; }
.lp-how-step-desc { font-size: 13px; color: var(--lp-muted); line-height: 1.65; max-width: 240px; margin: 0 auto; }

/* ── About ─────────────────────────────────────────────────────── */
.lp-about {
  padding: 100px 28px;
  background: var(--lp-bg2);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lp-about-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.lp-about-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--lp-white);
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 20px;
}
.lp-about-title em { font-style: italic; color: var(--lp-green); }
.lp-about-body { font-size: 15px; color: var(--lp-muted); line-height: 1.75; margin-bottom: 28px; }
.lp-about-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-about-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--lp-muted);
}
.lp-about-pillar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lp-green);
  flex-shrink: 0;
}
.lp-about-visual {
  background: var(--lp-bg3);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
}
.lp-about-stat-val {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--lp-green);
  letter-spacing: -1.5px;
  line-height: 1;
}
.lp-about-stat-lbl { font-size: 12px; color: var(--lp-muted); }
.lp-about-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-about-quote {
  padding: 20px;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 10%, transparent);
  border-radius: 12px;
  font-size: 13px;
  color: var(--lp-muted);
  line-height: 1.65;
  font-style: italic;
}
.lp-about-quote strong { color: var(--lp-white); font-style: normal; }

/* ── Testimonials ──────────────────────────────────────────────── */
.lp-testimonials { padding: 100px 28px; }
.lp-testi-inner { max-width: 1100px; margin: 0 auto; }
.lp-testi-hd { text-align: center; margin-bottom: 56px; }
.lp-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-testi-card {
  background: var(--lp-bg2);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-rl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .18s;
}
.lp-testi-card:hover { border-color: rgba(255,255,255,.14); }
.lp-testi-stars { display: flex; gap: 3px; }
.lp-testi-star { color: var(--lp-green); font-size: 14px; }
.lp-testi-quote { font-size: 14px; color: var(--lp-muted); line-height: 1.7; flex: 1; }
.lp-testi-quote em { color: var(--lp-white); font-style: normal; font-weight: 600; }
.lp-testi-person { display: flex; align-items: center; gap: 12px; }
.lp-testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  flex-shrink: 0;
}
.lp-testi-name { font-size: 13px; font-weight: 700; color: var(--lp-white); letter-spacing: -.15px; }
.lp-testi-role { font-size: 11px; color: var(--lp-muted2); margin-top: 1px; }

/* ── Pricing ───────────────────────────────────────────────────── */
.lp-pricing {
  padding: 80px 28px;
  background: var(--lp-bg2);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-pricing-inner { max-width: 1320px; margin: 0 auto; }
.lp-pricing-hd { text-align: center; margin-bottom: 40px; }
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
.lp-plan {
  background: var(--lp-bg3);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-rl);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.lp-plan-popular {
  border-color: var(--lp-green);
  box-shadow: 0 0 0 1px var(--lp-green);
}
.lp-plan-agency {
  border-color: rgba(160,160,200,.28);
  box-shadow: 0 0 0 1px rgba(160,160,200,.14);
}
.lp-plan-tag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--lp-green);
  color: #000;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.lp-plan-tag-agency {
  background: rgba(160,160,200,.18);
  color: rgba(200,200,230,.75);
  border: 1px solid rgba(160,160,200,.25);
}
.lp-plan-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.lp-plan-price-num {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  color: var(--lp-white);
  letter-spacing: -1.5px;
  line-height: 1;
}
.lp-plan-price-period { font-size: 12px; color: var(--lp-muted); }
.lp-plan-desc { font-size: 12px; color: var(--lp-muted); line-height: 1.5; margin-bottom: 14px; }
.lp-plan-divider { height: 1px; background: var(--lp-border); margin-bottom: 14px; }
.lp-plan-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lp-plan-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-muted);
  line-height: 1.4;
}
.lp-plan-feat-check {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp-plan-feat-check svg { width: 7px; height: 7px; fill: none; stroke: var(--lp-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lp-plan-cta { width: 100%; justify-content: center; margin-top: auto; }
.lp-plan-cta-outline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 40px;
  border: 1px solid var(--lp-border);
  background: transparent;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
  font-family: inherit;
  text-decoration: none;
  margin-top: auto;
}
.lp-plan-cta-outline:hover { border-color: rgba(255,255,255,.2); color: var(--lp-white); background: rgba(255,255,255,.04); }
.lp-plan-cta-agency {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 40px;
  border: 1px solid rgba(160,160,200,.3);
  background: rgba(160,160,200,.06);
  color: rgba(200,200,230,.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
  font-family: inherit;
  text-decoration: none;
  margin-top: auto;
}
.lp-plan-cta-agency:hover { border-color: rgba(160,160,200,.5); color: rgba(220,220,245,.9); background: rgba(160,160,200,.1); }

/* Pricing responsive */
@media (max-width: 1100px) {
  .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .lp-pricing-grid { grid-template-columns: 1fr; }
  .lp-pricing { padding: 60px 20px; }
}

/* ── FAQ ───────────────────────────────────────────────────────── */
.lp-faq { padding: 100px 28px; }
.lp-faq-inner { max-width: 720px; margin: 0 auto; }
.lp-faq-hd { text-align: center; margin-bottom: 48px; }
.lp-faq-list { display: flex; flex-direction: column; gap: 0; }
.lp-faq-item {
  border-bottom: 1px solid var(--lp-border);
}
.lp-faq-item:first-child { border-top: 1px solid var(--lp-border); }
.lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-white);
  letter-spacing: -.2px;
  user-select: none;
}
.lp-faq-q:hover { color: var(--lp-white); }
.lp-faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--lp-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--lp-muted);
  transition: transform .22s, background .18s, border-color .18s;
}
.lp-faq-icon svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lp-faq-item.open .lp-faq-icon { transform: rotate(45deg); background: var(--lp-green-d); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--lp-green); }
.lp-faq-a {
  display: none;
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.75;
  padding-bottom: 20px;
}
.lp-faq-item.open .lp-faq-a { display: block; }

/* ── Final CTA ─────────────────────────────────────────────────── */
.lp-final {
  padding: 120px 28px;
  text-align: center;
  background: var(--lp-bg2);
  border-top: 1px solid var(--lp-border);
  position: relative;
  overflow: hidden;
}
.lp-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.lp-final-h {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: var(--lp-white);
  letter-spacing: -1.8px;
  line-height: 1.06;
  margin-bottom: 20px;
  position: relative;
}
.lp-final-h em { font-style: italic; color: var(--lp-green); }
.lp-final-sub {
  font-size: 16px;
  color: var(--lp-muted);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.lp-final-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lp-final-note { margin-top: 20px; font-size: 12px; color: var(--lp-muted2); }

/* ── Footer ────────────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--lp-border); }
.lp-footer-top { padding: 36px 0 24px; }
.lp-footer-grid { max-width: 1100px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.lp-footer-brand { display: flex; flex-direction: column; }
.lp-footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.lp-footer-logo img { width: 32px; height: 32px; object-fit: contain; }
.lp-footer-logo-txt { font-size: 15px; font-weight: 700; color: var(--lp-white); letter-spacing: -.3px; }
.lp-footer-tagline { font-size: 13px; color: var(--lp-muted); line-height: 1.65; max-width: 210px; }
.lp-footer-col { display: flex; flex-direction: column; }
.lp-footer-col-hd { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted2); margin-bottom: 14px; }
.lp-footer-link { font-size: 13.5px; color: var(--lp-muted); transition: color .15s; margin-bottom: 9px; width: fit-content; }
.lp-footer-link:hover { color: var(--lp-white); }
.lp-footer-bottom { border-top: 1px solid var(--lp-border2); padding: 18px 0; }
.lp-footer-bottom-inner { max-width: 1100px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; }
.lp-footer-copy { font-size: 12px; color: var(--lp-muted2); }
.lp-footer-sep { font-size: 12px; color: var(--lp-muted2); margin: 0 8px; }
.lp-footer-email { transition: color .15s; }
.lp-footer-email:hover { color: var(--lp-white); }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
  50%       { box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 6%, transparent); }
}
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-fade-in { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); transform: translateY(20px); }
.lp-fade-in.visible { opacity: 1; transform: translateY(0); }
.lp-hero-eyebrow,
.lp-hero-h1,
.lp-hero-sub,
.lp-hero-actions,
.lp-hero-note { animation: lpFadeUp .7s cubic-bezier(.16,1,.3,1) both; }
.lp-hero-eyebrow { animation-delay: .05s; }
.lp-hero-h1      { animation-delay: .12s; }
.lp-hero-sub     { animation-delay: .20s; }
.lp-hero-actions { animation-delay: .28s; }
.lp-hero-note    { animation-delay: .36s; }

/* ── Responsive ────────────────────────────────────────────────── */
@media(max-width:900px){
  .lp-nav-links { display: none; }
  .lp-hamburger { display: flex; }
  .lp-features-grid { grid-template-columns: 1fr 1fr; }
  .lp-how-steps { grid-template-columns: 1fr; gap: 40px; }
  .lp-how-steps::before { display: none; }
  .lp-about-inner { grid-template-columns: 1fr; gap: 48px; }
  .lp-testi-grid { grid-template-columns: 1fr 1fr; }
  .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-app-ui { height: 300px; }
  .lp-browser { transform: none; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
}
@media(max-width:600px){
  .lp-hero { padding: 120px 20px 60px; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-testi-grid { grid-template-columns: 1fr; }
  .lp-about-stats-row { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .lp-footer-brand { grid-column: 1 / -1; }
  .lp-app-ui { height: 240px; }
  .lp-app-cards { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE PREVIEW
   ═══════════════════════════════════════════════════════════════ */
.lp-preview-section { padding: 0 28px 100px; position: relative; }
.lp-preview-section::after { content:''; position:absolute; bottom:0; left:0; right:0; height:260px; background:linear-gradient(to bottom,transparent,var(--lp-bg)); pointer-events:none; }
.lp-prev-frame { max-width:940px; margin:0 auto; border-radius:14px; border:1px solid var(--lp-border); background:#0D0D0D; box-shadow:0 40px 120px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.04); overflow:hidden; transform:perspective(1200px) rotateX(2deg); transform-origin:top center; }
.lp-prev-chrome { display:flex; align-items:center; gap:12px; padding:10px 16px; background:#0A0A0A; border-bottom:1px solid var(--lp-border); }
.lp-prev-app { display:grid; grid-template-columns:178px 1fr; height:480px; }

/* Sidebar */
.lp-prev-sidebar { background:#0D0D0D; border-right:1px solid var(--lp-border); display:flex; flex-direction:column; padding:14px 10px; }
.lp-prev-sb-top { margin-bottom:20px; padding-left:4px; }
.lp-prev-sb-logo { display:flex; align-items:center; gap:8px; }
.lp-prev-nav { display:flex; flex-direction:column; gap:2px; flex:1; }
.lp-prev-nav-item { display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:9px; cursor:pointer; color:rgba(255,255,255,.3); font-size:12px; font-weight:500; transition:background .14s,color .14s; user-select:none; }
.lp-prev-nav-item svg { width:14px; height:14px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.lp-prev-nav-item:hover { background:rgba(255,255,255,.05); color:rgba(255,255,255,.6); }
.lp-prev-active { background:color-mix(in srgb, var(--green) 10%, transparent)!important; color:var(--green)!important; }
.lp-prev-active svg { stroke:var(--green); }
.lp-prev-sb-bottom { margin-top:auto; border-top:1px solid rgba(255,255,255,.06); padding-top:8px; }

/* Content area + screens */
.lp-prev-content { position:relative; overflow:hidden; background:#0F0F0F; }
.lp-prev-screen { position:absolute; inset:0; padding:20px 22px; opacity:0; pointer-events:none; transition:opacity .22s ease; overflow-y:auto; scrollbar-width:none; }
.lp-prev-screen::-webkit-scrollbar { display:none; }
.lp-prev-screen-active { opacity:1!important; pointer-events:auto!important; }

/* Screen sub-components */
.lp-ps-header { margin-bottom:16px; }
.lp-ps-eyebrow { display:flex; align-items:center; gap:6px; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.28); margin-bottom:5px; }
.lp-ps-dot { width:5px; height:5px; border-radius:50%; background:var(--green); flex-shrink:0; }
.lp-ps-title { font-family:'Instrument Serif',serif; font-size:21px; color:#F0F0F0; letter-spacing:-.7px; font-weight:400; line-height:1.1; }
.lp-ps-title em { font-style:italic; color:var(--green); }
.lp-ps-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:20px; border:1px solid color-mix(in srgb, var(--green) 18%, transparent); background:color-mix(in srgb, var(--green) 6%, transparent); font-size:10px; font-weight:600; color:rgba(240,240,240,.45); margin-top:7px; letter-spacing:.04em; }
.lp-ps-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:10px; }
.lp-ps-metric { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:10px; padding:11px 12px; cursor:pointer; transition:border-color .14s; }
.lp-ps-metric:hover { border-color:rgba(255,255,255,.12); }
.lp-ps-metric-val { font-family:'Instrument Serif',serif; font-size:22px; color:#F0F0F0; letter-spacing:-1px; line-height:1; }
.lp-ps-metric-lbl { font-size:9px; color:rgba(255,255,255,.3); margin-top:3px; }
.lp-ps-bar { height:2px; background:rgba(255,255,255,.07); border-radius:2px; overflow:hidden; margin-top:8px; }
.lp-ps-bar-fill { height:100%; background:var(--green); border-radius:2px; }
.lp-ps-quickrow { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
.lp-ps-qcard { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:10px; padding:11px 12px; cursor:pointer; transition:border-color .14s; }
.lp-ps-qcard:hover { border-color:color-mix(in srgb, var(--green) 20%, transparent); }
.lp-ps-qcard-ico { width:26px; height:26px; border-radius:7px; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lp-ps-qcard-ico svg { width:12px; height:12px; fill:none; stroke:rgba(255,255,255,.4); stroke-width:1.5; stroke-linecap:round; }
.lp-ps-qcard-ttl { font-size:12px; font-weight:600; color:#F0F0F0; letter-spacing:-.1px; }
.lp-ps-qcard-sub { font-size:10px; color:rgba(255,255,255,.3); }
.lp-ps-qcard-arr { margin-left:auto; font-size:13px; color:rgba(255,255,255,.2); }
.lp-ps-feed-hd { font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.2); margin-bottom:6px; }
.lp-ps-feed { display:flex; flex-direction:column; gap:4px; }
.lp-ps-feed-item { display:flex; align-items:center; gap:8px; padding:7px 10px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.04); border-radius:7px; }
.lp-ps-feed-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.lp-ps-feed-txt { flex:1; font-size:10px; color:rgba(255,255,255,.4); }
.lp-ps-feed-time { font-size:9px; color:rgba(255,255,255,.2); }

/* Create screen */
.lp-ps-tool-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.lp-ps-tool { display:flex; flex-direction:column; gap:6px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:10px; padding:13px 12px; cursor:pointer; transition:border-color .14s,background .14s; }
.lp-ps-tool:hover:not(.lp-ps-tool-soon) { border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.05); }
.lp-ps-tool-soon { opacity:.45; cursor:default; }
.lp-ps-tool-ico { width:30px; height:30px; border-radius:8px; border:1px solid; display:flex; align-items:center; justify-content:center; margin-bottom:2px; flex-shrink:0; }
.lp-ps-tool-ico svg { width:13px; height:13px; }
.lp-ps-tool-ttl { font-size:12px; font-weight:700; color:#F0F0F0; letter-spacing:-.1px; display:flex; align-items:center; gap:5px; }
.lp-ps-tool-sub { font-size:10px; color:rgba(255,255,255,.3); }
.lp-ps-soon-tag { font-size:8px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:1px 5px; border-radius:20px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.35); }

/* Studio screen */
.lp-ps-st-tabs { display:flex; gap:4px; margin-bottom:14px; }
.lp-ps-tab { padding:6px 12px; border-radius:20px; font-size:11px; font-weight:600; color:rgba(255,255,255,.32); cursor:pointer; border:1px solid transparent; transition:all .14s; }
.lp-ps-tab.active { background:color-mix(in srgb, var(--green) 10%, transparent); border-color:color-mix(in srgb, var(--green) 20%, transparent); color:var(--green); }
.lp-ps-tab:hover:not(.active) { color:rgba(255,255,255,.6); background:rgba(255,255,255,.04); }
.lp-ps-bc-card { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:12px; overflow:hidden; cursor:pointer; transition:border-color .14s; }
.lp-ps-bc-card:hover { border-color:rgba(255,255,255,.1); }
.lp-ps-bc-row { display:flex; align-items:flex-start; gap:12px; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,.04); }
.lp-ps-bc-label { font-size:10px; font-weight:600; color:rgba(255,255,255,.28); width:76px; flex-shrink:0; padding-top:1px; }
.lp-ps-bc-val { font-size:11px; color:rgba(255,255,255,.65); flex:1; line-height:1.4; }
.lp-ps-bc-tag { display:inline-flex; padding:2px 7px; border-radius:20px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); font-size:9px; font-weight:600; color:rgba(255,255,255,.45); }

/* Inspiration screen */
.lp-ps-filter-row { display:flex; gap:5px; margin-bottom:12px; }
.lp-ps-filter { padding:5px 11px; border-radius:20px; font-size:11px; font-weight:600; color:rgba(255,255,255,.32); border:1px solid rgba(255,255,255,.07); cursor:pointer; transition:all .14s; }
.lp-ps-filter.active { background:color-mix(in srgb, var(--green) 10%, transparent); border-color:color-mix(in srgb, var(--green) 20%, transparent); color:var(--green); }
.lp-ps-ideas { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.lp-ps-idea { border-radius:10px; overflow:hidden; cursor:pointer; border:1px solid rgba(255,255,255,.06); transition:border-color .14s,transform .2s; }
.lp-ps-idea:hover { border-color:rgba(255,255,255,.14); transform:translateY(-2px); }
.lp-ps-idea-thumb { height:68px; position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; padding:8px 10px; }
.lp-ps-idea-glow { position:absolute; width:80px; height:80px; border-radius:50%; top:-30px; right:-20px; filter:blur(28px); opacity:.35; pointer-events:none; }
.lp-ps-idea-hl { font-family:'Instrument Serif',serif; font-size:11.5px; font-weight:400; color:rgba(255,255,255,.82); position:relative; z-index:1; line-height:1.2; }
.lp-ps-idea-body { background:rgba(255,255,255,.03); padding:7px 10px; }
.lp-ps-idea-cat { font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:2px; }
.lp-ps-idea-title { font-size:11px; font-weight:600; color:rgba(255,255,255,.75); }

/* Team screen */
.lp-ps-team { display:flex; flex-direction:column; }
.lp-ps-member { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.lp-ps-avatar { width:28px; height:28px; border-radius:50%; background:color-mix(in srgb, var(--green) 12%, transparent); color:var(--green); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; flex-shrink:0; font-family:'Geist',sans-serif; }
.lp-ps-member-info { flex:1; }
.lp-ps-member-name { font-size:12px; font-weight:600; color:rgba(255,255,255,.75); }
.lp-ps-member-email { font-size:10px; color:rgba(255,255,255,.28); }
.lp-ps-role-badge { font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:2px 7px; border-radius:20px; background:rgba(255,255,255,.06); color:rgba(255,255,255,.3); border:1px solid rgba(255,255,255,.07); }
.lp-ps-role-badge.admin { background:color-mix(in srgb, var(--green) 10%, transparent); color:var(--green); border-color:color-mix(in srgb, var(--green) 18%, transparent); }
.lp-ps-invite-row { display:flex; align-items:center; gap:10px; padding:10px 0; cursor:pointer; opacity:.5; transition:opacity .14s; }
.lp-ps-invite-row:hover { opacity:1; }
.lp-ps-invite-ico { width:28px; height:28px; border-radius:50%; border:1.5px dashed rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:14px; color:rgba(255,255,255,.28); flex-shrink:0; }
.lp-ps-invite-txt { font-size:12px; font-weight:600; color:rgba(255,255,255,.32); }

/* Preview hint */
.lp-prev-hint { text-align:center; margin-top:16px; font-size:12px; color:rgba(240,240,240,.22); position:relative; z-index:1; }
.lp-prev-hint-link { color:rgba(240,240,240,.45); text-decoration:underline; text-underline-offset:2px; }

/* ── Preview explain panel ──────────────────────────────────── */
/* Layout: panel left + preview right */
.lp-prev-layout { display:grid; grid-template-columns:210px 1fr; gap:28px; align-items:start; }
.lp-prev-right { min-width:0; }
/* Left feature spotlight panel */
.lp-prev-panel { background:color-mix(in srgb, var(--green) 3%, transparent); border:1px solid color-mix(in srgb, var(--green) 10%, transparent); border-radius:18px; padding:18px 12px; position:sticky; top:80px; }
.lp-prev-panel-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:color-mix(in srgb, var(--green) 40%, transparent); padding:0 8px; margin-bottom:10px; }
.lp-prev-panel-item { padding:9px 8px; border-radius:10px; cursor:pointer; transition:background .14s; }
.lp-prev-panel-item:hover:not(.lp-prev-panel-active) { background:rgba(255,255,255,.04); }
.lp-prev-panel-active { background:color-mix(in srgb, var(--green) 9%, transparent); }
.lp-prev-panel-name { font-size:12px; font-weight:600; color:rgba(255,255,255,.5); transition:color .14s; line-height:1.2; }
.lp-prev-panel-active .lp-prev-panel-name { color:var(--green); }
.lp-prev-panel-desc { font-size:11px; color:rgba(255,255,255,.38); line-height:1.5; max-height:0; overflow:hidden; opacity:0; transition:max-height .22s ease,opacity .18s ease,margin-top .18s ease; margin-top:0; }
.lp-prev-panel-active .lp-prev-panel-desc { max-height:80px; opacity:1; margin-top:4px; }
.lp-prev-panel-badge { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:color-mix(in srgb, var(--green) 50%, transparent); background:color-mix(in srgb, var(--green) 7%, transparent); border:1px solid color-mix(in srgb, var(--green) 14%, transparent); border-radius:10px; padding:2px 6px; display:inline-flex; margin-top:5px; }
@media(max-width:860px) { .lp-prev-layout { grid-template-columns:1fr; } .lp-prev-panel { display:none; } }

/* ── Signup modal ───────────────────────────────────────────── */
.lp-signup-modal { position:fixed; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); z-index:500; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .22s ease; }
.lp-signup-modal.open { opacity:1; pointer-events:auto; }
.lp-signup-box { background:#141414; border:1px solid rgba(255,255,255,.1); border-radius:20px; padding:36px 32px; max-width:360px; width:calc(100% - 40px); text-align:center; position:relative; }
.lp-signup-modal.open .lp-signup-box { animation:lpFadeUp .3s cubic-bezier(.16,1,.3,1) both; }
.lp-signup-close { position:absolute; top:14px; right:14px; width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; cursor:pointer; color:rgba(255,255,255,.4); transition:color .14s; }
.lp-signup-close:hover { color:rgba(255,255,255,.8); }
.lp-signup-close svg { width:10px; height:10px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.lp-signup-logo { margin-bottom:16px; display:flex; justify-content:center; }
.lp-signup-title { font-family:'Instrument Serif',serif; font-size:22px; color:#F0F0F0; letter-spacing:-.6px; margin-bottom:10px; font-weight:400; line-height:1.2; }
.lp-signup-sub { font-size:13px; color:rgba(240,240,240,.45); line-height:1.65; margin-bottom:24px; }
.lp-signup-note { margin-top:14px; font-size:11px; color:rgba(240,240,240,.25); }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.lp-testi-set { display:none; }
.lp-testi-set.active { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; animation:lpCarouselIn .38s cubic-bezier(.16,1,.3,1) both; }
@keyframes lpCarouselIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }
.lp-testi-controls { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:36px; }
.lp-testi-btn { width:38px; height:38px; border-radius:50%; border:1px solid var(--lp-border); background:rgba(255,255,255,.04); display:flex; align-items:center; justify-content:center; cursor:pointer; color:rgba(240,240,240,.4); transition:border-color .15s,color .15s,background .15s; }
.lp-testi-btn:hover { border-color:rgba(255,255,255,.18); color:var(--lp-white); background:rgba(255,255,255,.07); }
.lp-testi-btn svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.lp-testi-dots { display:flex; gap:7px; align-items:center; }
.lp-testi-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.18); transition:background .22s,transform .22s; cursor:pointer; }
.lp-testi-dot.active { background:var(--green); transform:scale(1.35); }

/* ── Logo sizing update ─────────────────────────────────────── */
.lp-logo-img { width:52px; height:52px; object-fit:contain; }

/* ── Enhanced scroll animations ─────────────────────────────── */
.lp-stagger > * { opacity:0; transform:translateY(18px); transition:opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
.lp-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.lp-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.1s; }
.lp-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.16s; }
.lp-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.22s; }
.lp-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.28s; }
.lp-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.34s; }
.lp-slide-left { opacity:0; transform:translateX(-28px); transition:opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.lp-slide-right { opacity:0; transform:translateX(28px); transition:opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.lp-slide-left.visible, .lp-slide-right.visible { opacity:1; transform:none; }
.lp-reveal-left  { opacity:0; transform:translateX(-44px); transition:opacity .85s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.lp-reveal-right { opacity:0; transform:translateX( 44px); transition:opacity .85s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.lp-reveal-left.visible, .lp-reveal-right.visible { opacity:1; transform:none; }
@keyframes lpFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── Preview responsive ─────────────────────────────────────── */
@media(max-width:860px){
  .lp-prev-app { grid-template-columns:48px 1fr; }
  .lp-prev-nav-item span, .lp-prev-sb-logo span { display:none; }
  .lp-prev-nav-item { justify-content:center; padding:8px; }
  .lp-prev-sb-top { padding-left:0; display:flex; justify-content:center; }
  .lp-ps-tool-grid { grid-template-columns:repeat(2,1fr); }
  .lp-ps-ideas { grid-template-columns:repeat(2,1fr); }
  .lp-ps-quickrow { grid-template-columns:1fr; }
}
@media(max-width:600px){
  .lp-prev-frame { transform:none; }
  .lp-prev-app { height:360px; }
  .lp-testi-set.active { grid-template-columns:1fr; }
  .lp-ps-tool-grid { grid-template-columns:1fr 1fr; }
  .lp-ps-metrics { grid-template-columns:repeat(3,1fr); }
}

/* ── Settings preview screen ────────────────────────────────── */
.lp-ps-team-intel{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.05)}
.lp-ps-settings-layout{display:grid;grid-template-columns:110px 1fr;gap:10px;height:calc(100% - 60px)}
.lp-ps-settings-nav{display:flex;flex-direction:column;gap:2px}
.lp-ps-sn-group{margin-bottom:6px}
.lp-ps-sn-label{font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.18);padding:2px 8px 5px}
.lp-ps-sn-item{font-size:11px;color:rgba(255,255,255,.35);padding:6px 8px;border-radius:7px;cursor:default}
.lp-ps-sn-active{background:color-mix(in srgb, var(--green) 10%, transparent);color:var(--green)}
.lp-ps-settings-panel{display:flex;flex-direction:column;gap:8px}
.lp-ps-set-eyebrow{font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.2);margin-bottom:2px}
.lp-ps-set-title{font-family:'Instrument Serif',serif;font-size:18px;color:#F0F0F0;letter-spacing:-.6px;font-weight:400;line-height:1.1}
.lp-ps-set-sub{font-size:10px;color:rgba(255,255,255,.28);margin-bottom:4px}
.lp-ps-set-card{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:11px 13px}
.lp-ps-set-card-label{font-size:10px;font-weight:700;color:rgba(255,255,255,.4);margin-bottom:7px;letter-spacing:-.1px}
.lp-ps-set-card-field{font-size:11px;color:rgba(255,255,255,.55);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:7px;padding:6px 9px}
.lp-ps-set-tgl-row{display:flex;align-items:center;gap:10px}
.lp-ps-set-tgl-body{flex:1}
.lp-ps-set-tgl-ttl{font-size:11px;font-weight:600;color:rgba(255,255,255,.65)}
.lp-ps-set-tgl-sub{font-size:9px;color:rgba(255,255,255,.28);margin-top:2px;line-height:1.4}
.lp-ps-set-tgl{width:30px;height:16px;border-radius:8px;background:rgba(255,255,255,.1);flex-shrink:0;position:relative}
.lp-ps-set-tgl.on{background:color-mix(in srgb, var(--green) 25%, transparent)}
.lp-ps-set-tgl::after{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.4)}
.lp-ps-set-tgl.on::after{left:16px;background:var(--green);transition:left .15s}

/* ── Settings — new components ──────────────────────────────── */
/* Profile panel */
.se-profile-row{display:flex;flex-direction:column;gap:14px;margin-top:12px}
.se-profile-field{display:flex;flex-direction:column;gap:3px}
.se-profile-label{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.se-profile-val{font-size:14px;color:var(--charcoal);font-weight:500}

/* Intelligence — ORIVEN AI core card */
.se-card-ai-core{background:var(--glt);border-color:var(--gm)!important}
.se-ai-core-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.tgl-always-active{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--green);background:rgba(0,0,0,.06);border-radius:20px;padding:4px 10px;white-space:nowrap;flex-shrink:0;cursor:default}
.tgl-always-active::before{content:'';display:block;width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0}
.se-ai-inject-list{display:flex;flex-wrap:wrap;gap:6px}
.se-ai-inject-list span{font-size:11px;font-weight:500;color:var(--muted);background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:3px 8px}

/* Toggle hint line */
.se-tgl-hint{font-size:12px;color:var(--green);font-weight:500;margin-top:8px;padding-left:2px;transition:color .15s}
.se-tgl-hint--off{color:var(--muted)}

/* Default View selector */
.view-opts{display:flex;gap:8px}
.view-opt{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:10px;border:1.5px solid var(--border);font-size:13px;font-weight:500;color:var(--muted);cursor:pointer;transition:border-color .15s,color .15s,background .15s}
.view-opt:hover{border-color:var(--gm);color:var(--charcoal)}
.view-opt.active{border-color:var(--green);background:var(--glt);color:var(--green);font-weight:600}

/* Create compact view */
.cr-grid.cr-compact{grid-template-columns:repeat(4,1fr);gap:10px}
.cr-grid.cr-compact .cr-card{padding:16px}
.cr-grid.cr-compact .cr-card-icon{width:36px;height:36px;font-size:18px;margin-bottom:8px}
.cr-grid.cr-compact .cr-card-title{font-size:13px}
.cr-grid.cr-compact .cr-card-desc{font-size:11px;-webkit-line-clamp:2}

/* ── Global left-alignment — SaaS standard ───────────────────── */
/* Create hero — override core centering */
.cr-hero{text-align:left}
.cr-eyebrow{justify-content:flex-start}
.cr-sub{margin:0}
/* Inspiration hero — override core centering */
.id-hero{text-align:left}
.id-eyebrow{justify-content:flex-start}
.id-sub{margin:0}
/* Settings hero — override core centering */
.se-hero{text-align:left}
.se-hero-eyebrow{justify-content:flex-start}
.se-hero-sub{margin:0}

/* ── Landing page preview — accuracy pass additions ─────────── */
.lp-ps-value-hint{font-size:10px;color:rgba(255,255,255,.3);line-height:1.5;margin-top:4px}
.lp-pstg-9 .lp-ps-tool{padding:9px 10px;gap:4px;cursor:default}
.lp-pstg-9 .lp-ps-tool:hover{border-color:rgba(255,255,255,.06)!important;background:rgba(255,255,255,.03)!important}
.lp-ps-horizon{margin-top:10px}
.lp-ps-horizon-hd{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.2);margin-bottom:6px}
.lp-ps-horizon-list{display:flex;gap:6px}
.lp-ps-hor-item{display:flex;align-items:center;gap:7px;flex:1;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.05);border-radius:8px;padding:7px 9px;cursor:default}
.lp-ps-hor-ico{width:22px;height:22px;border-radius:6px;border:1px solid;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.lp-ps-hor-name{font-size:10px;font-weight:600;color:rgba(255,255,255,.3)}
.lp-ps-hor-badge{font-size:8px;font-weight:700;color:rgba(255,255,255,.18);text-transform:uppercase;letter-spacing:.08em;margin-left:auto}
.lp-ps-biz-badge{display:inline-flex;align-items:center;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:color-mix(in srgb, var(--green) 55%, transparent);background:color-mix(in srgb, var(--green) 6%, transparent);border:1px solid color-mix(in srgb, var(--green) 12%, transparent);border-radius:20px;padding:3px 10px;margin-bottom:10px}
.lp-ps-explain-card{background:color-mix(in srgb, var(--green) 4%, transparent);border:1px solid color-mix(in srgb, var(--green) 13%, transparent);border-radius:10px;padding:9px 13px;font-size:11px;color:rgba(255,255,255,.58);line-height:1.5;letter-spacing:-.01em;margin-bottom:12px;box-shadow:0 0 18px color-mix(in srgb, var(--green) 3%, transparent)}
.lp-ps-ast-chat{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.lp-ps-ast-msg{display:flex;align-items:flex-start;gap:7px}
.lp-ps-ast-ai{flex-direction:row}
.lp-ps-ast-user{flex-direction:row-reverse}
.lp-ps-ast-ava{width:22px;height:22px;border-radius:6px;background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0;stroke:var(--green)}
.lp-ps-ast-ava svg{width:11px;height:11px;stroke:var(--green)}
.lp-ps-ast-bbl{font-size:10.5px;line-height:1.55;padding:8px 11px;border-radius:10px;max-width:80%}
.lp-ps-ast-bbl-ai{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);color:rgba(255,255,255,.65)}
.lp-ps-ast-bbl-user{background:color-mix(in srgb, var(--green) 7%, transparent);border:1px solid color-mix(in srgb, var(--green) 14%, transparent);color:rgba(255,255,255,.7)}
.lp-ps-ast-input-row{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.1);border-radius:14px;padding:9px 12px;margin-top:8px;position:sticky;bottom:0}
.lp-ps-ast-input-placeholder{flex:1;font-size:10.5px;color:rgba(255,255,255,.25);font-style:italic}
.lp-ps-ast-send-btn{width:22px;height:22px;border-radius:6px;background:color-mix(in srgb, var(--green) 12%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* ── How It Works vertical timeline ─────────────────────────── */
.lp-how-timeline{position:relative;max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:0}
.lp-how-timeline::before{content:'';position:absolute;left:19px;top:40px;bottom:40px;width:2px;background:linear-gradient(to bottom,color-mix(in srgb, var(--green) 25%, transparent) 0%,color-mix(in srgb, var(--green) 12%, transparent) 60%,transparent 100%);pointer-events:none;border-radius:2px}
.lp-how-step{position:relative;padding-left:62px;padding-bottom:0;cursor:pointer}
.lp-how-step:last-child{padding-bottom:0}
.lp-how-step-marker{position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-family:'Instrument Serif',serif;font-size:17px;color:rgba(255,255,255,.28);transition:background .22s,border-color .22s,color .22s;flex-shrink:0}
.lp-how-step-open .lp-how-step-marker{background:color-mix(in srgb, var(--green) 10%, transparent);border-color:color-mix(in srgb, var(--green) 35%, transparent);color:var(--green)}
.lp-how-step-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px 9px 0;min-height:40px;border-radius:8px;margin-right:-4px;transition:background .16s}
.lp-how-step:hover .lp-how-step-head{background:rgba(255,255,255,.035)}
.lp-how-step-title{font-size:15px;font-weight:700;color:rgba(255,255,255,.55);letter-spacing:-.3px;line-height:1.3;transition:color .18s}
.lp-how-step:hover .lp-how-step-title{color:rgba(255,255,255,.82)}
.lp-how-step-open .lp-how-step-title{color:rgba(255,255,255,.92)}
.lp-how-step-toggle{width:22px;height:22px;border-radius:6px;border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:16px;font-weight:400;color:rgba(255,255,255,.28);line-height:1;transition:color .18s,transform .22s,border-color .18s,background .18s}
.lp-how-step:hover .lp-how-step-toggle{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.55)}
.lp-how-step-open .lp-how-step-toggle{color:var(--green);border-color:color-mix(in srgb, var(--green) 35%, transparent);background:color-mix(in srgb, var(--green) 8%, transparent);transform:rotate(45deg)}
.lp-how-step-body{font-size:13.5px;color:var(--lp-muted);line-height:1.75;max-height:0;overflow:hidden;opacity:0;transition:max-height .3s ease,opacity .24s ease,padding-bottom .3s ease;padding-bottom:0}
.lp-how-step-open .lp-how-step-body{max-height:200px;opacity:1;padding-bottom:28px}
.lp-how-step-divider{height:1px;background:rgba(255,255,255,.05);margin:0;display:block}
.lp-how-step:last-child .lp-how-step-divider{display:none}
@media(max-width:680px){.lp-how-timeline{max-width:100%}}

/* ── Process — fullscreen snap scenes ───────────────────────── */
.lp-proc-step {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--lp-bg);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
  scroll-snap-align: start;
}
/* Persistent eyebrow */
.lp-proc-eyebrow {
  position: absolute;
  top: 36px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  z-index: 2;
}
/* Inner content — animated on entrance */
.lp-proc-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}
/* Hidden before entering viewport */
.lp-proc-step:not(.lp-in) .lp-proc-inner { opacity: 0; }
.lp-proc-step[data-enter="left"]:not(.lp-in) .lp-proc-inner  { transform: translateX(-52px); }
.lp-proc-step[data-enter="right"]:not(.lp-in) .lp-proc-inner { transform: translateX(52px); }
/* Visible */
.lp-proc-step.lp-in .lp-proc-inner { opacity: 1; transform: none; }

.lp-proc-text { max-width: 520px; }
.lp-proc-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  margin-bottom: 20px;
}
.lp-proc-h {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  color: var(--lp-white);
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  font-family: 'Geist', sans-serif;
}
.lp-proc-h em {
  font-style: italic;
  color: var(--lp-green);
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}
.lp-proc-body {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.78;
  max-width: 420px;
}
/* Large background step number */
.lp-proc-numvis {
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 800;
  font-family: 'Instrument Serif', serif;
  color: rgba(255,255,255,.03);
  letter-spacing: -8px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
/* Progress dots */
.lp-proc-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.lp-proc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  transition: width .25s, border-radius .25s, background .25s, border-color .25s;
}
.lp-proc-dot-on {
  width: 20px;
  border-radius: 3px;
  background: var(--lp-green);
  border-color: var(--lp-green);
}
/* Mobile: stack as normal content */
@media (max-width: 820px) {
  /* Disable snap scroll entirely on mobile — touch scroll feels better */
  html { scroll-snap-type: none; }
  .lp-snap { scroll-snap-align: none; min-height: auto; display: block; }
  .lp-hero.lp-snap { display: flex; } /* hero keeps its flex centering */

  .lp-proc-step {
    height: auto;
    padding: 80px 0;
    scroll-snap-align: none;
  }
  .lp-proc-step:not(.lp-in) .lp-proc-inner,
  .lp-proc-step.lp-in .lp-proc-inner { opacity: 1; transform: none; }
  .lp-proc-inner { padding: 0 28px; flex-direction: column; align-items: flex-start; gap: 0; }
  .lp-proc-h { font-size: clamp(40px, 12vw, 60px); letter-spacing: -1.5px; }
  .lp-proc-numvis { display: none; }
  .lp-proc-eyebrow { left: 28px; }
  .lp-proc-dots { display: none; }
}
/* Reduced motion: show statically */
@media (prefers-reduced-motion: reduce) {
  .lp-proc-step { height: auto; padding: 80px 0; scroll-snap-align: none; }
  .lp-proc-step:not(.lp-in) .lp-proc-inner,
  .lp-proc-step.lp-in .lp-proc-inner { opacity: 1; transform: none; }
  .lp-proc-inner { padding: 0 80px; }
  .lp-proc-dots { display: none; }
}

/* ── Footer scroll-to-top ───────────────────────────────────── */
.lp-scroll-top{margin-left:auto;flex-shrink:0;width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);display:flex;align-items:center;justify-content:center;cursor:pointer;color:rgba(240,240,240,.35);transition:border-color .18s,color .18s,background .18s,transform .18s}
.lp-scroll-top:hover{border-color:color-mix(in srgb, var(--green) 35%, transparent);color:var(--green);background:color-mix(in srgb, var(--green) 7%, transparent);transform:translateY(-2px)}
.lp-scroll-top svg{width:12px;height:12px}

/* ── Nav active state underline ─────────────────────────────── */
.lp-nav-link{position:relative}
.lp-nav-link::after{content:'';position:absolute;bottom:-3px;left:0;height:1.5px;width:0;background:var(--green);border-radius:2px;transition:width .35s cubic-bezier(.16,1,.3,1)}
.lp-nav-link.lp-nav-active{color:var(--lp-white)}
.lp-nav-link.lp-nav-active::after{width:100%}

/* ── Nav hover description ───────────────────────────────────── */
.lp-nav-tip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  color: rgba(240,240,240,.45);
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 201;
}
.lp-nav-link:hover .lp-nav-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Reviews carousel ────────────────────────────────────────── */
.lp-s-testi-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.lp-tc-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.lp-tc-arrow:hover {
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
  color: var(--green);
}
.lp-tc-arrow svg { width: 16px; height: 16px; }
.lp-tc-viewport { flex: 1; overflow: hidden; }
.lp-tc-track {
  display: flex;
  width: 500%;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.lp-tc-card {
  width: calc(100% / 15);
  padding: 0 10px;
  box-sizing: border-box;
}
.lp-tc-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.lp-tc-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lp-tc-dot.active {
  background: var(--lp-green);
  transform: scale(1.3);
}

/* ── Contact + Footer (final scene) ─────────────────────────── */
.lp-s-contact-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.lp-s-contact-wrap .lp-s-contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 48px 36px;
  text-align: center;
  min-height: 280px;
}
.lp-s-contact-wrap .lp-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 0;
}

/* ── Process step initial state ─────────────────────────────── */
[data-proc-step] { opacity: 0; }

/* ── AI Hub breathing animation ─────────────────────────────── */
@keyframes lpBreathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0px color-mix(in srgb, var(--green) 0%, transparent)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--green) 18%, transparent)); }
}
.lp-s-ai-hub.is-breathing {
  animation: lpBreathe 3.6s ease-in-out infinite;
  transform-origin: center center;
}

/* ── Hero preview: scale + interactive screens ───────────────── */
.lp-s-prev-frame { transform: scale(0.9); transform-origin: center top; }

/* Preview screen switching — override app-context absolute/opacity/padding rules */
.lp-prev-screen { display: none !important; }
.lp-prev-screen.active {
  display: block !important;
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* Sidebar dot hover — cursor already set inline; add hover glow */
.lp-s-sb-dot:hover:not(.active) {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

/* Dashboard screen */
.lp-prev-db-block { margin-bottom: 10px; }
.lp-prev-db-score { font-size: 28px; font-weight: 700; color: var(--lp-white); line-height: 1; letter-spacing: -.04em; margin-bottom: 3px; }
.lp-prev-db-pct { font-size: 16px; font-weight: 600; }
.lp-prev-db-lbl { font-size: 9px; color: rgba(255,255,255,.3); letter-spacing: .04em; margin-bottom: 6px; }
.lp-prev-db-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.lp-prev-db-fill { height: 100%; background: var(--lp-green); border-radius: 2px; transition: width .6s ease; }
.lp-prev-sec-lbl { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.22); margin: 10px 0 6px; }
.lp-prev-acts { display: flex; flex-direction: column; gap: 5px; }
.lp-prev-act-row { display: flex; align-items: center; gap: 6px; }
.lp-prev-act-d { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.18); flex-shrink: 0; }
.lp-prev-act-name { font-size: 9.5px; color: rgba(255,255,255,.5); flex: 1; }
.lp-prev-act-t { font-size: 9px; color: rgba(255,255,255,.2); flex-shrink: 0; }

/* Inspiration screen */
.lp-prev-insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-prev-insp-card {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.lp-prev-insp-card:hover { border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.lp-prev-insp-tag { font-size: 8px; color: rgba(255,255,255,.3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.lp-prev-insp-name { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.65); }

/* Team screen */
.lp-prev-team { display: flex; flex-direction: column; gap: 7px; }
.lp-prev-team-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; }
.lp-prev-team-av { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }

/* "Try it yourself" label */
.lp-prev-try-label {
  text-align: center;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,240,240,.2);
  pointer-events: none;
}

/* Screen 1 — Create */
.lp-prev-create-prompt {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.lp-prev-chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lp-prev-chip {
  font-size: 9.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.35);
  letter-spacing: .02em;
}
.lp-prev-chip.on {
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  color: color-mix(in srgb, var(--green) 80%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
}
.lp-prev-gen-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  background: var(--lp-green); color: #000;
  border-radius: 20px; padding: 7px 14px;
  letter-spacing: -.1px; width: fit-content;
}

/* Screen 2 — BrandCore */
.lp-prev-bc-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.lp-prev-bc-sw { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.lp-prev-bc-label { font-size: 9.5px; color: rgba(255,255,255,.3); margin-left: 4px; letter-spacing: .04em; }

/* Screen 3 — Chat */
.lp-prev-chat { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.lp-prev-chat-bubble {
  font-size: 10px; line-height: 1.5; border-radius: 10px;
  padding: 8px 11px; max-width: 90%;
}
.lp-prev-chat-bubble.user {
  align-self: flex-end;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  border-bottom-right-radius: 3px;
}
.lp-prev-chat-bubble.ai {
  align-self: flex-start;
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  color: rgba(255,255,255,.75);
  border-bottom-left-radius: 3px;
}
.lp-prev-chat-bubble.typing {
  display: flex; align-items: center; gap: 3px; padding: 10px 14px;
}
.lp-prev-chat-bubble.typing span {
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 50%, transparent);
  animation: lpDot .9s infinite;
}
.lp-prev-chat-bubble.typing span:nth-child(2) { animation-delay: .18s; }
.lp-prev-chat-bubble.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes lpDot { 0%,80%,100%{opacity:.25} 40%{opacity:1} }

/* ── Shared miniature preview elements ──────────────────── */
.lp-prev-eyebrow { display: flex; align-items: center; gap: 5px; }
.lp-prev-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lp-green); animation: lpPulse 2s infinite; flex-shrink: 0; }
.lp-prev-eyebrow span { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.lp-prev-dash-headline { font-size: 13px; font-weight: 700; color: var(--lp-white); letter-spacing: -.3px; line-height: 1.2; }
.lp-prev-hl { font-style: italic; color: var(--lp-green); font-family: 'Instrument Serif', serif; font-weight: 400; }

/* ── Screen 0: Dashboard ────────────────────────────────── */
.lp-prev-dash-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.lp-prev-dash-left { flex: 1; min-width: 0; }
.lp-prev-dash-left .lp-prev-eyebrow { margin-bottom: 5px; }
.lp-prev-dash-status { font-size: 8.5px; color: rgba(255,255,255,.25); margin-top: 3px; }
.lp-prev-dash-score-block { text-align: right; flex-shrink: 0; }
.lp-prev-dash-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.lp-prev-score-breakdown { display: flex; flex-direction: column; gap: 5px; }
.lp-prev-sb-row { display: flex; align-items: center; gap: 4px; }
.lp-prev-sb-lbl { font-size: 8px; color: rgba(255,255,255,.3); width: 36px; flex-shrink: 0; }
.lp-prev-sb-track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.lp-prev-sb-fill { height: 100%; background: var(--lp-green); border-radius: 2px; }
.lp-prev-sb-val { font-size: 8px; color: rgba(255,255,255,.22); width: 24px; text-align: right; flex-shrink: 0; }

/* ── Screen 1: Create ───────────────────────────────────── */
.lp-prev-cr-filts { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.lp-prev-cr-filt { font-size: 8px; padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: rgba(255,255,255,.32); cursor: pointer; font-family: inherit; line-height: 1.4; }
.lp-prev-cr-filt.lp-prev-cr-filt-active { background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: color-mix(in srgb, var(--green) 85%, transparent); }
.lp-prev-cr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.lp-prev-cr-card { padding: 7px 7px 6px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; }
.lp-prev-cr-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.lp-prev-cr-ico { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-prev-cr-ico svg { width: 10px; height: 10px; }
.lp-prev-cr-tag { font-size: 7.5px; color: rgba(255,255,255,.25); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.lp-prev-cr-title { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: -.1px; line-height: 1.2; }

/* ── Screen 2: BrandCore ────────────────────────────────── */
.lp-prev-bc-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.lp-prev-bc-brand-name { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); letter-spacing: -.2px; }
.lp-prev-bc-tagline { font-size: 8.5px; color: rgba(255,255,255,.25); }
.lp-prev-bc-hdr-right { text-align: right; flex-shrink: 0; }
.lp-prev-bc-score-num { font-size: 20px; font-weight: 700; color: var(--lp-white); letter-spacing: -.04em; line-height: 1; }
.lp-prev-bc-score-num span { font-size: 12px; font-weight: 600; }
.lp-prev-bc-score-lbl { font-size: 8px; color: rgba(255,255,255,.25); margin: 2px 0 4px; }
.lp-prev-bc-btns { display: flex; gap: 4px; justify-content: flex-end; }
.lp-prev-bc-btn { font-size: 7.5px; padding: 3px 7px; border-radius: 4px; border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); cursor: default; }
.lp-prev-bc-btn.lp-prev-bc-btn-primary { background: var(--lp-green); color: #000; border-color: var(--lp-green); font-weight: 700; }
.lp-prev-bc-section { margin-bottom: 7px; }
.lp-prev-bc-section-lbl { font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: 5px; }
.lp-prev-bc-typo { font-size: 9.5px; color: rgba(255,255,255,.45); }
.lp-prev-bc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.lp-prev-bc-text { font-size: 9px; color: rgba(255,255,255,.32); line-height: 1.5; padding: 7px 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 7px; }

/* ── Screen 3: Inspiration ──────────────────────────────── */
.lp-prev-insp-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.lp-prev-insp-filt { font-size: 8.5px; padding: 4px 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); color: rgba(255,255,255,.38); cursor: default; font-family: inherit; line-height: 1; }
.lp-prev-insp-filt.lp-prev-insp-filt-active { background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: color-mix(in srgb, var(--green) 85%, transparent); }

/* ── Screen 4: Brand Assistant ──────────────────────────── */
.lp-prev-chat-ctrls { display: flex; gap: 5px; margin-top: 8px; margin-bottom: 6px; }
.lp-prev-chat-sel { font-size: 8px; padding: 4px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.38); cursor: default; white-space: nowrap; }
.lp-prev-chat-inputrow { display: flex; gap: 5px; align-items: center; }
.lp-prev-chat-inputbox { flex: 1; font-size: 9px; color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 7px 10px; line-height: 1.4; }
.lp-prev-chat-sendbtn { width: 26px; height: 26px; border-radius: 7px; background: var(--lp-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: default; }
.lp-prev-chat-sendbtn svg { width: 11px; height: 11px; }

/* ── Screen 5: Team ─────────────────────────────────────── */
.lp-prev-tm-stats { display: flex; gap: 14px; margin-bottom: 4px; }
.lp-prev-tm-stat-val { font-size: 15px; font-weight: 700; color: var(--lp-white); letter-spacing: -.04em; line-height: 1.1; }
.lp-prev-tm-stat-on { font-size: 10px !important; color: var(--lp-green) !important; }
.lp-prev-tm-stat-lbl { font-size: 8px; color: rgba(255,255,255,.25); }
.lp-prev-tm-projs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.lp-prev-tm-proj { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; }
.lp-prev-tm-proj-dot { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--green) 55%, transparent); flex-shrink: 0; }
.lp-prev-tm-proj-name { font-size: 9px; color: rgba(255,255,255,.5); flex: 1; }
.lp-prev-tm-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.lp-prev-tm-invite { float: right; font-size: 8px; color: color-mix(in srgb, var(--green) 65%, transparent); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ── 4-pillar features grid ─────────────────────────────────── */
.lp-feats-4{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--lp-border);border:1px solid var(--lp-border);border-radius:var(--lp-rl);overflow:hidden}
@media(max-width:860px){.lp-feats-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.lp-feats-4{grid-template-columns:1fr}}

/* ── Auth views (Login / Signup) ──────────────────────────────────── */
.au-view-wrap { min-height: 100vh; display: flex; flex-direction: column; background: #0A0A0A; }
.au-nav { position: fixed; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; padding: 0 32px; z-index: 10; justify-content: flex-start; }
.au-nav-logo { display: flex; align-items: center; text-decoration: none; }
.au-nav-logo img { height: 56px; width: auto; display: block; }
@media (max-width: 768px) { .au-nav { padding: 0 20px; height: 62px; } .au-nav-logo img { height: 46px; } }
@media (max-width: 480px) { .au-nav { padding: 0 16px; } .au-nav-logo img { height: 40px; } }
.au-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 88px 24px 48px; }
.au-card { width: 100%; max-width: 420px; background: #111111; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 36px 32px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.au-title { font-family: 'Geist', system-ui, -apple-system, sans-serif; font-size: 26px; color: #F0F0F0; letter-spacing: -.7px; font-weight: 600; margin-bottom: 6px; line-height: 1.1; }
.au-sub { font-size: 13px; color: rgba(240,240,240,.38); margin-bottom: 28px; line-height: 1.5; }
.au-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.au-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: rgba(240,240,240,.45); text-transform: uppercase; }
.au-input { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: #F0F0F0; font-family: inherit; outline: none; transition: border-color .15s; width: 100%; box-sizing: border-box; }
.au-input:focus { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: rgba(255,255,255,.07); }
.au-input::placeholder { color: rgba(240,240,240,.2); }
.au-input.au-err { border-color: rgba(239,68,68,.45) !important; }
/* Edge/IE's native password-reveal icon (::-ms-reveal) renders dark by
   default and is nearly invisible against this dark input background --
   there's no custom show/hide toggle built in this app to restyle
   directly, this is the browser's own UA-rendered control, only reachable
   via this non-standard pseudo-element. filter is the only way to
   recolor it (color/fill aren't honored here); invert flips it to a
   crisp white without touching the input's own background/border/size. */
.au-input::-ms-reveal { filter: invert(100%); }
.au-error { font-size: 12.5px; color: #EF4444; margin-bottom: 14px; display: none; line-height: 1.55; padding: 10px 13px; background: rgba(239,68,68,.08); border-radius: 8px; border: 1px solid rgba(239,68,68,.18); }
.au-btn { width: 100%; padding: 13px; background: var(--green); color: #000; font-size: 14px; font-weight: 700; border-radius: 40px; border: none; cursor: pointer; margin-top: 10px; font-family: inherit; transition: background .15s, transform .15s, box-shadow .15s; letter-spacing: -.1px; }
.au-btn:hover:not(:disabled) { background: var(--gm); transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--green) 22%, transparent); }
.au-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.au-divider { height: 1px; background: rgba(255,255,255,.07); margin: 22px 0; }
.au-footer { text-align: center; font-size: 13px; color: rgba(240,240,240,.32); }
.au-footer a { color: color-mix(in srgb, var(--green) 75%, transparent); text-decoration: none; font-weight: 600; }
.au-footer a:hover { color: var(--green); }
.au-terms { text-align: center; font-size: 11px; color: rgba(240,240,240,.2); margin-top: 14px; line-height: 1.5; }
.au-dev-link { display: none; text-align: center; margin-top: 16px; }
.au-dev-link a { font-size: 11.5px; color: color-mix(in srgb, var(--green) 40%, transparent); text-decoration: none; letter-spacing: .02em; }
.au-dev-link a:hover { color: color-mix(in srgb, var(--green) 70%, transparent); }

/* ── Plan selection page ─────────────────────────────────────────── */
.pl-view-wrap { min-height: 100vh; display: flex; flex-direction: column; background: #0A0A0A; }
.pl-nav { position: fixed; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; z-index: 10; }
.pl-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pl-nav-logo img { width: 40px; height: 40px; object-fit: contain; }
.pl-nav-step { font-size: 12px; color: rgba(240,240,240,.3); letter-spacing: .03em; }
.pl-page { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 96px 24px 64px; }
.pl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,240,240,.35); margin-bottom: 16px; }
.pl-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }
.pl-title { font-family: 'Instrument Serif', serif; font-size: 38px; color: #F0F0F0; letter-spacing: -.8px; font-weight: 400; text-align: center; line-height: 1.1; margin-bottom: 12px; }
.pl-title em { font-style: italic; color: var(--green); }
.pl-sub { font-size: 14px; color: rgba(240,240,240,.38); text-align: center; margin-bottom: 52px; line-height: 1.6; max-width: 440px; }
.pl-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 48px; }
.pl-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pl-step-num { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.pl-step.done .pl-step-num { background: var(--green); color: #000; }
.pl-step.done .pl-step-lbl { color: rgba(240,240,240,.5); }
.pl-step.active .pl-step-num { background: color-mix(in srgb, var(--green) 15%, transparent); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }
.pl-step.active .pl-step-lbl { color: #F0F0F0; }
.pl-step.idle .pl-step-num { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: rgba(240,240,240,.3); }
.pl-step.idle .pl-step-lbl { color: rgba(240,240,240,.25); }
.pl-step-sep { width: 28px; height: 1px; background: rgba(255,255,255,.1); }
.pl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; width: 100%; max-width: 900px; align-items: stretch; }
@media(max-width:720px){.pl-grid{grid-template-columns:1fr;max-width:420px}}
.pl-card { background: #111111; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 28px 24px 24px; display: flex; flex-direction: column; position: relative; transition: border-color .2s, transform .15s; }
.pl-card:hover { border-color: rgba(255,255,255,.16); transform: translateY(-2px); }
.pl-card.pl-popular { border-color: color-mix(in srgb, var(--green) 28%, transparent); background: #121812; }
.pl-card.pl-popular:hover { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.pl-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: #000; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.pl-card-name { font-size: 13px; font-weight: 700; color: rgba(240,240,240,.55); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.pl-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.pl-price-num { font-family: 'Instrument Serif', serif; font-size: 44px; color: #F0F0F0; letter-spacing: -1.5px; line-height: 1; }
.pl-price-period { font-size: 13px; color: rgba(240,240,240,.35); font-weight: 400; }
.pl-card-desc { font-size: 13px; color: rgba(240,240,240,.38); line-height: 1.55; margin-bottom: 20px; }
.pl-divider { height: 1px; background: rgba(255,255,255,.07); margin-bottom: 18px; }
.pl-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; flex: 1; }
.pl-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: rgba(240,240,240,.65); line-height: 1.4; }
.pl-feat-chk { width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pl-feat-chk svg { width: 8px; height: 8px; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pl-btn { width: 100%; padding: 13px; font-size: 14px; font-weight: 700; border-radius: 40px; border: none; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s, box-shadow .15s; letter-spacing: -.1px; text-align: center; }
.pl-btn-primary { background: var(--green); color: #000; }
.pl-btn-primary:hover:not(:disabled) { background: var(--gm); transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--green) 22%, transparent); }
.pl-btn-outline { background: rgba(255,255,255,.06); color: #F0F0F0; border: 1px solid rgba(255,255,255,.12); }
.pl-btn-outline:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.pl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.pl-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; border-radius: 50%; animation: plSpin .6s linear infinite; vertical-align: middle; margin-right: 6px; }
.pl-spinner-w { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.15); border-top-color: rgba(255,255,255,.7); border-radius: 50%; animation: plSpin .6s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-error { font-size: 12.5px; color: #EF4444; margin-top: 16px; padding: 10px 13px; background: rgba(239,68,68,.08); border-radius: 8px; border: 1px solid rgba(239,68,68,.18); display: none; text-align: center; max-width: 900px; width: 100%; }
.pl-note { font-size: 12px; color: rgba(240,240,240,.25); text-align: center; margin-top: 28px; }
.pl-note a { color: color-mix(in srgb, var(--green) 50%, transparent); text-decoration: none; }
.pl-note a:hover { color: var(--green); }
#plAuthCheck { position: fixed; inset: 0; background: #0A0A0A; display: flex; align-items: center; justify-content: center; z-index: 100; }
.pl-auth-spin { width: 32px; height: 32px; border: 2.5px solid color-mix(in srgb, var(--green) 15%, transparent); border-top-color: var(--green); border-radius: 50%; animation: plSpin .7s linear infinite; }

/* ══════════════════════════════════════════════════════════════
   INSPIRATION LAYOUT REFINEMENT
   These rules override earlier inspiration styles via cascade order.
   ══════════════════════════════════════════════════════════════ */

/* ── Section ─────────────────────────────────────────────────── */
.id-section {
  margin-bottom: 56px;
}

.id-section-hdr {
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.id-section-emoji {
  font-size: 17px;
}

.id-section-lbl {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ── Section grid: horizontal scroll row ─────────────────────── */
.id-section-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.id-section-grid::-webkit-scrollbar {
  height: 3px;
}
.id-section-grid::-webkit-scrollbar-track {
  background: transparent;
}
.id-section-grid::-webkit-scrollbar-thumb {
  background: var(--b2);
  border-radius: 2px;
}

/* ── Card: fixed width, equal height via flex row ────────────── */
.id-concept-card {
  flex: 0 0 300px;
  min-width: 300px;
  scroll-snap-align: start;
}

/* ── Card thumbnail ──────────────────────────────────────────── */
.id-card-thumb {
  height: 152px;
}

/* ── Card body: spacious, flex column with CTA at bottom ─────── */
.id-card-body {
  padding: 20px 22px 22px;
  gap: 0;
}

/* ── Visual hierarchy ────────────────────────────────────────── */
.id-card-cat {
  font-size: 10px;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.id-card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.28;
  margin-bottom: 10px;
}

.id-card-desc {
  font-size: 12px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0;
}

/* ── Use This Inspiration: anchored to card bottom ───────────── */
.id-card-cta {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  border-radius: 10px;
  color: color-mix(in srgb, var(--green) 70%, transparent);
  text-align: center;
  cursor: pointer;
  transition: background .18s, border-color .2s, color .18s;
  pointer-events: none;
  letter-spacing: .01em;
  flex-shrink: 0;
}

.id-concept-card:hover .id-card-cta {
  background: color-mix(in srgb, var(--green) 16%, transparent);
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
  color: var(--green);
}

/* ── Filter row: centered pill group ─────────────────────────── */
.id-filter-row {
  gap: 10px;
  margin-bottom: 28px;
}

.id-filt {
  padding: 8px 18px;
  font-size: 12.5px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media(max-width:640px) {
  .id-concept-card {
    flex: 0 0 272px;
    min-width: 272px;
  }
  .id-card-title {
    font-size: 14px;
  }
}

/* ══ Inspiration grid fix: responsive 3→2→1 column layout ══════ */
.id-section-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  overflow-x:visible;
}
.id-concept-card{
  flex:none;
  min-width:0;
  width:100%;
  scroll-snap-align:unset;
}
@media(max-width:860px){.id-section-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.id-section-grid{grid-template-columns:1fr}}


/* ══ Inspiration: wide cards, auto-responsive grid ═════════════
   auto-fill + minmax(300px,1fr) keeps cards at 300px+ and wraps
   automatically: 3 cols desktop → 2 tablet → 1 mobile.
   No fixed breakpoints needed. No horizontal overflow. ══════ */
.id-section-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:18px;
  overflow-x:visible;
}

/* Cards fill their grid cell; no fixed flex-width override */
.id-concept-card{
  flex:none;
  min-width:0;
  width:100%;
}

/* ══ Inspiration root fix: idFeed is a section container, not a card grid ══
   .id-concept-grid on #idFeed used to lay out individual cards.
   Now inspiration.js renders sections inside idFeed, so the outer grid
   must be a single-column stack. The card grid lives inside .id-section-grid. */

/* 1. Override the outer feed container to stack sections vertically */
#idFeed.id-concept-grid{
  display:flex;
  flex-direction:column;
  gap:0;
  grid-template-columns:none;
  animation:none;
}

/* 2. Section grid: 3-col on desktop, responsive below */
.id-section-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  width:100%;
  overflow-x:visible;
}

/* 3. Cards fill their grid cell — no fixed flex or min-width override */
.id-concept-card{
  flex:none;
  min-width:0;
  width:100%;
}

/* 4. Responsive breakpoints for the section card grid */
@media(max-width:860px){.id-section-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.id-section-grid{grid-template-columns:1fr}}

/* ══ Six Core Systems section ════════════════════════════════════ */
.lp-feats-6{
  max-width:1100px;margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--lp-border);
  border:1px solid var(--lp-border);
  border-radius:var(--lp-rl);
  overflow:hidden
}

/* Business plan badge on Team card */
.lp-feat-badge{
  display:inline-flex;
  align-items:center;
  font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:color-mix(in srgb, var(--green) 75%, transparent);
  background:color-mix(in srgb, var(--green) 8%, transparent);
  border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  padding:3px 9px;border-radius:20px;
  width:fit-content
}

/* Tablet: 2 columns */
@media(max-width:860px){.lp-feats-6{grid-template-columns:repeat(2,1fr)}}
/* Mobile: single column */
@media(max-width:520px){.lp-feats-6{grid-template-columns:1fr}}

/* ══ Five systems: single 5-col row, compact cards ═════════════ */
.lp-feats-5{
  grid-template-columns:repeat(5,1fr);
}
.lp-feats-5 .lp-feat:nth-child(1),
.lp-feats-5 .lp-feat:nth-child(2),
.lp-feats-5 .lp-feat:nth-child(3),
.lp-feats-5 .lp-feat:nth-child(4),
.lp-feats-5 .lp-feat:nth-child(5){
  grid-column:auto;
  padding:22px 18px;
  gap:10px;
}
.lp-feats-5 .lp-feat-ico{width:34px;height:34px;border-radius:8px}
.lp-feats-5 .lp-feat-ico svg{width:15px;height:15px}
.lp-feats-5 .lp-feat-title{font-size:13.5px}
.lp-feats-5 .lp-feat-desc{font-size:12px;line-height:1.6}
.lp-feats-5 .lp-feat-tag{font-size:9px;padding-top:4px}

@media(max-width:900px){
  .lp-feats-5{grid-template-columns:repeat(3,1fr)}
  .lp-feats-5 .lp-feat:nth-child(1),
  .lp-feats-5 .lp-feat:nth-child(2),
  .lp-feats-5 .lp-feat:nth-child(3),
  .lp-feats-5 .lp-feat:nth-child(4),
  .lp-feats-5 .lp-feat:nth-child(5){grid-column:auto}
}
@media(max-width:560px){.lp-feats-5{grid-template-columns:1fr}}

/* ══ Launch polish: Create / BrandCore / Settings ══════════════ */

/* ── Create: compact viewport-fit layout (no scroll on desktop) ── */
.cr-outer{padding-bottom:32px}
.cr-hero{padding:20px 0 24px}
.cr-eyebrow{margin-bottom:12px}
.cr-headline{font-size:clamp(26px,3.2vw,40px)}
.cr-sub{font-size:13px}
.cr-grid{gap:10px;margin-bottom:10px}
.cr-card{padding:18px 22px 16px;min-height:180px}
.cr-card-top{margin-bottom:10px}
.cr-card-title{font-size:16px;margin-bottom:6px}
.cr-card-foot{margin-top:10px}
.cr-horizon-hd{margin-bottom:8px}
.cr-hor-item{padding:12px 16px}

/* ── BrandCore: wider content area ─────────────────────────────── */
.bcp-profile{max-width:1140px;padding:32px 40px 64px}
@media(max-width:680px){.bcp-profile{padding:20px 16px 48px}}

/* ── Settings: centered hero, consistent with Create/Inspiration ─ */
.se-hero{text-align:center}
.se-hero-eyebrow{justify-content:center}
.se-hero-sub{margin:0 auto}

/* ── Email Designer card — Emerald #22C55E ──────────────────────── */
.cr-card-email{background:linear-gradient(140deg,#0A1C0E,#0A140E);border-color:rgba(34,197,94,.2);box-shadow:inset 0 0 60px rgba(34,197,94,.05)}
.cr-card-email::before{background:radial-gradient(ellipse at 20% 120%,rgba(34,197,94,.14) 0%,transparent 60%)}
.cr-card-email:hover{border-color:rgba(34,197,94,.4);box-shadow:0 16px 48px rgba(34,197,94,.1),inset 0 0 60px rgba(34,197,94,.08)}
.cr-card-email .cr-card-ico{background:#061408;border-color:rgba(34,197,94,.25)}
.cr-card-email .cr-card-ico svg{stroke:#22C55E}
.cr-card-email .cr-card-tag{color:rgba(34,197,94,.65)}
.cr-card-email .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-email .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-email .cr-card-chip{background:rgba(34,197,94,.09);color:rgba(34,197,94,.6);border:1px solid rgba(34,197,94,.14)}
.cr-card-email .cr-card-arrow svg{stroke:#22C55E}

/* ── Presentation card — Sky Blue #38BDF8 ───────────────────────── */
.cr-card-deck{background:linear-gradient(140deg,#081420,#081018);border-color:rgba(56,189,248,.2);box-shadow:inset 0 0 60px rgba(56,189,248,.05)}
.cr-card-deck::before{background:radial-gradient(ellipse at 20% 120%,rgba(56,189,248,.14) 0%,transparent 60%)}
.cr-card-deck:hover{border-color:rgba(56,189,248,.4);box-shadow:0 16px 48px rgba(56,189,248,.1),inset 0 0 60px rgba(56,189,248,.08)}
.cr-card-deck .cr-card-ico{background:#040E18;border-color:rgba(56,189,248,.25)}
.cr-card-deck .cr-card-ico svg{stroke:#38BDF8}
.cr-card-deck .cr-card-tag{color:rgba(56,189,248,.65)}
.cr-card-deck .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-deck .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-deck .cr-card-chip{background:rgba(56,189,248,.09);color:rgba(56,189,248,.6);border:1px solid rgba(56,189,248,.14)}
.cr-card-deck .cr-card-arrow svg{stroke:#38BDF8}

/* ── Poster Generator card — Soft Violet #C084FC ────────────────── */
.cr-card-poster{background:linear-gradient(140deg,#120A1E,#0E0818);border-color:rgba(192,132,252,.2);box-shadow:inset 0 0 60px rgba(192,132,252,.05)}
.cr-card-poster::before{background:radial-gradient(ellipse at 20% 120%,rgba(192,132,252,.14) 0%,transparent 60%)}
.cr-card-poster:hover{border-color:rgba(192,132,252,.4);box-shadow:0 16px 48px rgba(192,132,252,.1),inset 0 0 60px rgba(192,132,252,.08)}
.cr-card-poster .cr-card-ico{background:#0C0418;border-color:rgba(192,132,252,.25)}
.cr-card-poster .cr-card-ico svg{stroke:#C084FC}
.cr-card-poster .cr-card-tag{color:rgba(192,132,252,.65)}
.cr-card-poster .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-poster .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-poster .cr-card-chip{background:rgba(192,132,252,.09);color:rgba(192,132,252,.6);border:1px solid rgba(192,132,252,.14)}
.cr-card-poster .cr-card-arrow svg{stroke:#C084FC}
.cr-card-infographic{background:linear-gradient(140deg,#071A1A,#051414);border-color:rgba(20,184,166,.2);box-shadow:inset 0 0 60px rgba(20,184,166,.05)}
.cr-card-infographic::before{background:radial-gradient(ellipse at 20% 120%,rgba(20,184,166,.14) 0%,transparent 60%)}
.cr-card-infographic:hover{border-color:rgba(20,184,166,.4);box-shadow:0 16px 48px rgba(20,184,166,.1),inset 0 0 60px rgba(20,184,166,.08)}
.cr-card-infographic .cr-card-ico{background:#031010;border-color:rgba(20,184,166,.25)}
.cr-card-infographic .cr-card-ico svg{stroke:#2DD4BF}
.cr-card-infographic .cr-card-tag{color:rgba(20,184,166,.65)}
.cr-card-infographic .cr-card-title{color:rgba(255,255,255,.92)}
.cr-card-infographic .cr-card-desc{color:rgba(255,255,255,.44)}
.cr-card-infographic .cr-card-chip{background:rgba(20,184,166,.09);color:rgba(20,184,166,.6);border:1px solid rgba(20,184,166,.14)}
.cr-card-infographic .cr-card-arrow svg{stroke:#2DD4BF}

/* ── Email result renderer ──────────────────────────────────────── */
.builder-email-result{border:1px solid var(--border);border-radius:14px;overflow:hidden}
.ber-toolbar{background:var(--surface);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.ber-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ber-dl-btn{font-size:11px;font-weight:600;padding:5px 12px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--charcoal);cursor:pointer;transition:background .15s}
.ber-dl-btn:hover{background:var(--border)}
.ber-frame-wrap{background:#f0f0f0;padding:20px;display:flex;justify-content:center}
.ber-frame{width:600px;max-width:100%;height:620px;border:none;border-radius:6px;box-shadow:0 2px 24px rgba(0,0,0,.12)}

/* ── Deck result renderer ───────────────────────────────────────── */
.builder-deck-result{display:flex;flex-direction:column;gap:12px}
.deck-slide{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px 24px}
.ds-num{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.ds-title{font-size:20px;font-weight:700;letter-spacing:-.4px;color:var(--charcoal);margin-bottom:10px;line-height:1.2}
.ds-content{font-size:13px;line-height:1.75;color:var(--charcoal);white-space:pre-wrap}
/* NOTE: .ds-* rules below are superseded by the visual deck system — kept for fallback */
.ds-notes{margin-top:12px;padding-top:12px;border-top:1px solid var(--border);font-size:12px;color:var(--muted);line-height:1.6}
.ds-notes-lbl{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;display:block;margin-bottom:4px;opacity:.6}

/* ══ Deck result: visual slide cards ════════════════════════════ */
.deck-result-wrap{display:flex;flex-direction:column;gap:20px}
.deck-slides-list{display:flex;flex-direction:column;gap:16px}
.deck-slide-wrap{display:flex;flex-direction:column}
.dcs-meta{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.dcs-num{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.dcs-layout{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;padding:2px 7px;border-radius:4px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.3)}

/* ── Slide canvas (16:9 ratio) ──────────────────────────────────── */
.slide-canvas{width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;position:relative;background:#10101a;box-shadow:0 4px 24px rgba(0,0,0,.35)}

/* ── Decorative glow blobs ──────────────────────────────────────── */
.sc-deco{position:absolute;border-radius:50%;pointer-events:none}
.sc-deco-1{width:35%;height:70%;top:-20%;right:-10%;background:radial-gradient(circle,rgba(var(--dar,99),var(--dag,102),var(--dab,241),.2) 0%,transparent 70%)}
.sc-deco-2{width:20%;height:40%;bottom:-5%;left:-5%;background:radial-gradient(circle,rgba(var(--dar,99),var(--dag,102),var(--dab,241),.1) 0%,transparent 70%)}

/* ── Slide number badge ─────────────────────────────────────────── */
.sc-badge{position:absolute;bottom:4%;right:3%;font-size:10px;font-weight:700;letter-spacing:.06em;color:rgba(255,255,255,.18)}

/* ── Title slide ────────────────────────────────────────────────── */
.slide-canvas-title{background:linear-gradient(135deg,#0c0c1a,#150a28);display:flex;align-items:center;justify-content:center}
.slide-canvas-title .sc-deco-1{background:radial-gradient(circle,rgba(var(--dar,99),var(--dag,102),var(--dab,241),.28) 0%,transparent 65%)}
.sc-title-wrap{position:relative;z-index:1;text-align:center;padding:0 8%;width:100%}
.sc-eyebrow{font-size:clamp(8px,1vw,11px);font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--dac,#6366F1);margin-bottom:.6em;opacity:.85}
.sc-title{font-size:clamp(18px,3.8vw,44px);font-weight:800;color:#fff;line-height:1.08;letter-spacing:-.03em}
.sc-subtitle{font-size:clamp(10px,1.4vw,17px);color:rgba(255,255,255,.52);margin-top:.7em;line-height:1.4}

/* ── Content slide ──────────────────────────────────────────────── */
.slide-canvas-content{background:linear-gradient(160deg,#12121e,#0e0e18)}
.slide-canvas-content::after{content:'';position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(to bottom,var(--dac,#6366F1),transparent)}

/* ── Stats slide ────────────────────────────────────────────────── */
.slide-canvas-stats{background:linear-gradient(160deg,#0a0a18,#12101e)}

/* ── Feature slide ──────────────────────────────────────────────── */
.slide-canvas-feature{background:linear-gradient(160deg,#0f0f1c,#10101a)}
.slide-canvas-feature::after{content:'';position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(to bottom,var(--dac,#6366F1),transparent)}

/* ── Quote slide ────────────────────────────────────────────────── */
.slide-canvas-quote{background:linear-gradient(135deg,#0c0c1a,#1a0a28);display:flex;align-items:center;justify-content:center}

/* ── Closing slide ──────────────────────────────────────────────── */
.slide-canvas-closing{background:linear-gradient(135deg,#0c0c1a,#150a28);display:flex;align-items:center;justify-content:center}
.slide-canvas-closing .sc-deco-1{background:radial-gradient(circle,rgba(var(--dar,99),var(--dag,102),var(--dab,241),.28) 0%,transparent 65%)}

/* ── Shared inner layout ────────────────────────────────────────── */
.sc-inner{position:relative;z-index:1;padding:7% 8% 7% 9%;height:100%;box-sizing:border-box;display:flex;flex-direction:column}
.sc-slide-title{font-size:clamp(13px,2.2vw,24px);font-weight:700;color:#fff;letter-spacing:-.02em;margin-bottom:.55em;line-height:1.15}

/* ── Bullet list ────────────────────────────────────────────────── */
.sc-bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4em;flex:1}
.sc-bullets li{font-size:clamp(9px,1.25vw,14px);color:rgba(255,255,255,.72);padding-left:1.2em;position:relative;line-height:1.45}
.sc-bullets li::before{content:'';position:absolute;left:0;top:.5em;width:.44em;height:.44em;border-radius:50%;background:var(--dac,#6366F1)}
.sc-body-text{font-size:clamp(9px,1.2vw,14px);color:rgba(255,255,255,.62);line-height:1.65;flex:1}

/* ── Stats layout ───────────────────────────────────────────────── */
.sc-metrics-row{display:flex;gap:3%;align-items:stretch;flex:1;margin-top:.5em}
.sc-metric{flex:1;text-align:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:5% 3%;display:flex;flex-direction:column;justify-content:center}
.sc-metric-val{font-size:clamp(16px,3vw,38px);font-weight:800;color:var(--dac,#6366F1);letter-spacing:-.03em;line-height:1;margin-bottom:.25em}
.sc-metric-lbl{font-size:clamp(7px,.9vw,11px);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.38)}
.sc-metric-note{font-size:clamp(7px,.9vw,11px);color:rgba(255,255,255,.32);margin-top:.6em;line-height:1.5}

/* ── Feature layout ─────────────────────────────────────────────── */
.sc-feat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(28%,1fr));gap:2.5%;flex:1;margin-top:.5em;align-content:start}
.sc-feat-card{background:rgba(255,255,255,.04);border:1px solid rgba(var(--dar,99),var(--dag,102),var(--dab,241),.2);border-radius:7px;padding:5% 6%;font-size:clamp(8px,1.05vw,12px);font-weight:600;color:rgba(255,255,255,.72);line-height:1.4}

/* ── Quote layout ───────────────────────────────────────────────── */
.sc-quote-wrap{position:relative;z-index:1;padding:0 10%;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}
.sc-qmark{font-size:clamp(40px,7vw,80px);color:var(--dac,#6366F1);opacity:.3;line-height:.8;margin-bottom:.1em;font-family:Georgia,serif}
.sc-quote-text{font-size:clamp(11px,1.7vw,20px);font-style:italic;color:rgba(255,255,255,.84);line-height:1.5;max-width:80%}
.sc-attr{margin-top:.8em;font-size:clamp(8px,1vw,13px);color:rgba(255,255,255,.38);letter-spacing:.04em}

/* ── Closing layout ─────────────────────────────────────────────── */
.sc-closing-wrap{position:relative;z-index:1;text-align:center;padding:0 10%;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}
.sc-closing-title{font-size:clamp(16px,3vw,38px);font-weight:800;color:#fff;letter-spacing:-.02em;line-height:1.1;margin-bottom:.4em}
.sc-closing-body{font-size:clamp(9px,1.2vw,15px);color:rgba(255,255,255,.52);line-height:1.5;margin-bottom:.8em;max-width:72%}
.sc-cta{display:inline-block;background:var(--dac,#6366F1);color:#fff;font-size:clamp(9px,1.1vw,14px);font-weight:700;padding:.55em 1.6em;border-radius:6px;letter-spacing:.03em}

/* ── Speaker notes strip ────────────────────────────────────────── */
.dcs-notes{background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06);border-top:none;border-radius:0 0 8px 8px;padding:8px 14px;font-size:11px;line-height:1.6;color:rgba(255,255,255,.35)}
.dcs-notes-lbl{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.2);margin-right:.6em}

/* ── Deck info panel ────────────────────────────────────────────── */
.deck-info-panel{background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:16px 20px;margin-top:4px}
.dip-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.45);margin-bottom:6px}
.dip-body{font-size:12px;line-height:1.65;color:rgba(255,255,255,.32);margin-bottom:10px}
.dip-roadmap{display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.06);padding-top:8px}
.dip-lbl{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.22);white-space:nowrap}
.dip-list{font-size:11px;color:rgba(255,255,255,.28)}

/* ══ Email info panel ════════════════════════════════════════════ */
.ber-info-panel{margin-top:12px;background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:16px 20px}
.ber-info-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.45);margin-bottom:8px}
.ber-info-steps{margin:0 0 12px 0;padding-left:18px}
.ber-info-steps li{font-size:12px;line-height:1.65;color:rgba(255,255,255,.35);margin-bottom:4px}
.ber-info-steps li strong{color:rgba(255,255,255,.52);font-weight:600}
.ber-info-coming{display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.06);padding-top:8px}
.bic-label{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.22);white-space:nowrap}
.bic-list{font-size:11px;color:rgba(255,255,255,.28)}

/* ══ Poster result renderer ══════════════════════════════════════ */
.poster-result-wrap{border:1px solid var(--border);border-radius:14px;overflow:hidden}
.pr-toolbar{background:var(--surface);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.pr-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pr-dl-btn{font-size:11px;font-weight:600;padding:5px 12px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--charcoal);cursor:pointer;transition:background .15s}
.pr-dl-btn:hover{background:var(--border)}
.pr-frame-wrap{background:#1a1a1a;padding:24px;display:flex;justify-content:center;overflow-x:auto}
.pr-frame{width:794px;max-width:100%;height:1123px;border:none;border-radius:4px;box-shadow:0 4px 32px rgba(0,0,0,.45);display:block}
.infographic-result-wrap{border:1px solid var(--border);border-radius:14px;overflow:hidden}
.ir-toolbar{background:var(--surface);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.ir-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ir-dl-btn{font-size:11px;font-weight:600;padding:5px 12px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--charcoal);cursor:pointer;transition:background .15s}
.ir-dl-btn:hover{background:var(--border)}
.ir-frame-wrap{background:#1a1a1a;padding:24px;display:flex;justify-content:center;overflow-x:auto}
.ir-frame{width:794px;max-width:100%;height:1123px;border:none;border-radius:4px;box-shadow:0 4px 32px rgba(0,0,0,.45);display:block}

/* ── Page transition overlay ─────────────────────────────────── */
#lpTransitionOverlay{
  position:fixed;inset:0;z-index:99999;
  background:#0A0A0A;
  opacity:0;pointer-events:none;
  transition:opacity .2s ease;
}
#lpTransitionOverlay.lp-t-in{opacity:1;pointer-events:all}
#lpTransitionOverlay::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 50% 50%,color-mix(in srgb, var(--green) 6%, transparent) 0%,transparent 55%);
  opacity:0;transition:opacity .2s ease;
}
#lpTransitionOverlay.lp-t-in::after{opacity:1}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES — /terms /privacy /refund-policy /cookie-policy
                  /security /contact /about
   ══════════════════════════════════════════════════════════════ */
.lp-legal-wrap{min-height:100vh;display:flex;flex-direction:column;background:var(--lp-bg)}
.lp-legal-nav{padding:0 28px;height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--lp-border);flex-shrink:0}
.lp-legal-nav-logo{display:flex;align-items:center;gap:9px;text-decoration:none}
.lp-legal-nav-logo img{width:30px;height:30px;object-fit:contain}
.lp-legal-nav-logo span{font-size:14px;font-weight:700;color:var(--lp-white);letter-spacing:-.2px}
.lp-legal-nav-back{font-size:13px;color:var(--lp-muted);transition:color .15s;display:flex;align-items:center;gap:6px}
.lp-legal-nav-back:hover{color:var(--lp-white)}
.lp-legal-content{flex:1;padding:60px 28px 80px}
.lp-legal-inner{max-width:720px;margin:0 auto}
.lp-legal-header{margin-bottom:48px;padding-bottom:32px;border-bottom:1px solid var(--lp-border)}
.lp-legal-header h1{font-size:40px;font-weight:700;color:var(--lp-white);letter-spacing:-.03em;line-height:1.1;margin-bottom:8px}
.lp-legal-date{font-size:13px;color:var(--lp-muted2)}
.lp-legal-section{margin-bottom:36px}
.lp-legal-section h2{font-size:15px;font-weight:700;color:var(--lp-white);letter-spacing:-.2px;margin-bottom:10px}
.lp-legal-section p{font-size:14px;color:var(--lp-muted);line-height:1.8;margin-bottom:8px}
.lp-legal-section ul,.lp-legal-section ol{padding-left:20px;display:flex;flex-direction:column;gap:6px;margin-top:8px}
.lp-legal-section li{font-size:14px;color:var(--lp-muted);line-height:1.75}
.lp-legal-highlight{background:color-mix(in srgb, var(--green) 4%, transparent);border:1px solid color-mix(in srgb, var(--green) 12%, transparent);border-radius:12px;padding:18px 20px;margin:16px 0}
.lp-legal-highlight p{font-size:14px;color:var(--lp-muted);line-height:1.75;margin:0}
.lp-legal-email{color:var(--green);font-weight:600}
.lp-legal-email:hover{color:var(--lp-white)}
.lp-legal-footer{padding:20px 28px;border-top:1px solid var(--lp-border)}
.lp-legal-footer-inner{max-width:720px;margin:0 auto;font-size:12px;color:var(--lp-muted2)}
.lp-legal-footer-inner a,.ov-sub-footer-inner a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.lp-legal-footer-inner a:hover,.ov-sub-footer-inner a:hover{color:var(--lp-text,#F0F0F0)}
/* Contact page */
.lp-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.lp-contact-card{background:var(--lp-bg2);border:1px solid var(--lp-border);border-radius:14px;padding:22px 24px}
.lp-contact-card-lbl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--lp-muted2);margin-bottom:8px}
.lp-contact-card-val{font-size:14px;color:var(--lp-white);line-height:1.6}
.lp-contact-card-val a{color:var(--green);transition:color .15s}
.lp-contact-card-val a:hover{color:var(--lp-white)}
/* About page */
.lp-about-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}
.lp-about-stat{background:var(--lp-bg2);border:1px solid var(--lp-border);border-radius:14px;padding:22px 24px;text-align:center}
.lp-about-stat-num{font-family:'Instrument Serif',serif;font-size:36px;font-weight:400;color:var(--green);letter-spacing:-.5px;line-height:1}
.lp-about-stat-lbl{font-size:12px;color:var(--lp-muted2);margin-top:6px}
@media(max-width:600px){
  .lp-legal-header h1{font-size:30px}
  .lp-contact-grid{grid-template-columns:1fr}
  .lp-about-stat-row{grid-template-columns:1fr}
}

/* ── Creative Infrastructure marquee section ────────────────── */
.lp-infra {
  padding: 48px 0 72px;
  border-top: 1px solid var(--lp-border);
  overflow: hidden;
}

/* Marquee wrapper — clips the infinite track */
.lp-mq-wrap {
  overflow: hidden;
  margin-bottom: 14px;
}
.lp-mq-wrap:last-child { margin-bottom: 0; }

/* Track — one long flex row, sized to content */
.lp-mq-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

/* Animations */
@keyframes lpMqRtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes lpMqLtr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.lp-mq-rtl { animation: lpMqRtl 65s linear infinite; }
.lp-mq-ltr { animation: lpMqLtr 120s linear infinite; }

/* Pill base */
.lp-mq-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 100px;
  border: 1px solid var(--lp-border);
  background: rgba(255,255,255,.03);
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-white);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.01em;
  transition: border-color .18s;
  cursor: default;
  user-select: none;
}
.lp-mq-pill:hover { border-color: rgba(255,255,255,.22); }

/* Systems pills — slightly elevated surface, icon in green */
.lp-mq-pill-sys {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.lp-mq-pill-sys:hover { border-color: var(--lp-green); }

/* Sparkle icon */
.lp-mq-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--lp-green);
  opacity: 0.7;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lp-mq-rtl,
  .lp-mq-ltr { animation-play-state: paused; }
}

/* ── Infra header + flow separator ─────────────────────────── */
.lp-infra-hdr {
  text-align:center;
  padding:0 24px 44px;
  max-width:560px;
  margin:0 auto;
}
.lp-infra-title {
  font-size:clamp(24px,3.2vw,36px);
  font-weight:700;
  color:var(--lp-white);
  letter-spacing:-1px;
  line-height:1.2;
  margin-top:14px;
  margin-bottom:0;
}
.lp-infra-title em { font-style:italic; color:var(--lp-green); }
.lp-infra-sep {
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px 0;
  opacity:.7;
}

/* ══════════════════════════════════════════════════════════════
   VIDEO ADS — Yellow/Gold identity
   Distinct from all other Oriven tools (green = brand/visuals/UGC)
   ══════════════════════════════════════════════════════════════ */

/* ── Create card ──────────────────────────────────────────────── */
.cr-card-videoads {
  background: linear-gradient(140deg, #191508, #15120a);
  border-color: rgba(240,180,41,.22);
}
.cr-card-videoads .cr-card-ico {
  background: rgba(240,180,41,.09);
  border-radius: 11px;
  border: 1px solid rgba(240,180,41,.18);
}
.cr-card-videoads .cr-card-ico svg { stroke: #F0B429; fill: none; }
.cr-card-videoads .cr-card-chip {
  background: rgba(240,180,41,.09);
  color: rgba(240,180,41,.85);
}
.cr-card-videoads:hover { border-color: rgba(240,180,41,.45); box-shadow: 0 0 0 1px rgba(240,180,41,.12); }

/* ── Overlay panel ────────────────────────────────────────────── */
.va-panel {
  max-width: 560px;
  width: 100%;
}

/* Topbar pill override — gold instead of green */
.va-panel .cf-type-pill { border-color: rgba(240,180,41,.25); background: rgba(240,180,41,.06); }
.va-panel .cf-type-icon svg { stroke: #F0B429; }
.va-panel .cf-type-label { color: #F0B429; }

/* Back button */
.va-back-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .14s;
}
.va-back-btn:hover { color: var(--text); border-color: rgba(240,180,41,.4); }
.va-topbar-right { display: flex; align-items: center; gap: 8px; }

/* ── Shared phase wrapper ─────────────────────────────────────── */
.va-phase {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Phase 1: Mode selection ──────────────────────────────────── */
.va-phase-header { margin-bottom: 20px; }
.va-phase-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -.35px;
  margin: 0 0 4px;
}
.va-phase-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.va-modes { display: flex; flex-direction: column; gap: 10px; }
.va-mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg2, #111);
  transition: border-color .14s, background .14s;
  position: relative;
}
.va-mode-card:hover {
  border-color: rgba(240,180,41,.42);
  background: rgba(240,180,41,.04);
}
.va-mode-card.va-mode-recommended { border-color: rgba(240,180,41,.28); }
.va-mode-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(240,180,41,.09);
  border: 1px solid rgba(240,180,41,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.va-mode-icon svg { stroke: #F0B429; }
.va-mode-body { flex: 1; min-width: 0; }
.va-mode-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.2px;
}
.va-mode-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}
.va-mode-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #F0B429;
  background: rgba(240,180,41,.10);
  border: 1px solid rgba(240,180,41,.22);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.va-mode-arrow {
  color: var(--muted);
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .14s, transform .14s;
}
.va-mode-card:hover .va-mode-arrow { opacity: 1; transform: translateX(2px); }

/* ── Phase 2: Forms ───────────────────────────────────────────── */
.va-form { display: flex; flex-direction: column; gap: 18px; }
.va-form-row { display: flex; flex-direction: column; gap: 7px; }
.va-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.1px;
}
.va-input,
.va-textarea {
  width: 100%;
  background: var(--bg2, #111);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .14s;
  outline: none;
  resize: vertical;
}
.va-input:focus,
.va-textarea:focus { border-color: rgba(240,180,41,.5); box-shadow: 0 0 0 3px rgba(240,180,41,.08); }
.va-input::placeholder,
.va-textarea::placeholder { color: var(--muted); opacity: .6; }
.va-input-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Pill selectors */
.va-pill-select {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.va-pill-opt {
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--bg2, #111);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .14s;
  font-family: inherit;
}
.va-pill-opt:hover {
  color: var(--text);
  border-color: rgba(240,180,41,.35);
}
.va-pill-opt.active {
  background: rgba(240,180,41,.10);
  border-color: rgba(240,180,41,.45);
  color: #F0B429;
  font-weight: 600;
}

/* Presets row */
.va-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.va-preset-btn {
  padding: 5px 11px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all .14s;
  font-family: inherit;
}
.va-preset-btn:hover {
  border-color: rgba(240,180,41,.35);
  color: var(--text);
  background: rgba(240,180,41,.05);
}

/* Generate CTA */
.va-form-actions { margin-top: 4px; }
.va-generate-btn {
  width: 100%;
  padding: 13px 20px;
  background: #F0B429;
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: -.2px;
  transition: background .14s, opacity .14s;
}
.va-generate-btn:hover { background: #F7C24A; }
.va-generate-btn:active { opacity: .88; }

/* ── Phase 3: Generation status ───────────────────────────────── */
.va-body {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.va-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 0 12px;
  text-align: center;
}
.va-spinner { margin-bottom: 4px; }
.va-spinner .spin {
  width: 36px;
  height: 36px;
  border-width: 2.5px;
  border-color: rgba(240,180,41,.20);
  border-top-color: #F0B429;
  border-style: solid;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: 0 auto;
}
.va-status-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.3px;
}
.va-status-error { color: #f87171; }
.va-status-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 320px;
}
.va-audio-note {
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  max-width: 320px;
}
.va-video-frame {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.va-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.va-dl-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 6px 0 0;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT SHOOTS — Red identity
   Distinct from all other tools (green=brand, gold=video, red=shoots)
   ══════════════════════════════════════════════════════════════ */

/* ── Create card ──────────────────────────────────────────────── */
.cr-card-shoots {
  background: linear-gradient(140deg, #1a0808, #150505);
  border-color: rgba(232,64,64,.22);
}
.cr-card-shoots .cr-card-ico {
  background: rgba(232,64,64,.09);
  border-radius: 11px;
  border: 1px solid rgba(232,64,64,.18);
}
.cr-card-shoots .cr-card-ico svg { stroke: #E84040; fill: none; }
.cr-card-shoots .cr-card-chip {
  background: rgba(232,64,64,.09);
  color: rgba(232,64,64,.85);
}
.cr-card-shoots:hover { border-color: rgba(232,64,64,.45); box-shadow: 0 0 0 1px rgba(232,64,64,.12); }

/* ── Result overlay ───────────────────────────────────────────── */
.ps-panel {
  max-width: 600px;
  width: 100%;
}
.ps-panel .cf-type-pill { border-color: rgba(232,64,64,.25); background: rgba(232,64,64,.06); }
.ps-panel .cf-type-icon svg { stroke: #E84040; }
.ps-panel .cf-type-label { color: #E84040; }

.ps-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ps-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 0 12px;
  text-align: center;
}
.ps-spinner { margin-bottom: 4px; }
.ps-spinner .spin {
  width: 36px;
  height: 36px;
  border-width: 2.5px;
  border-color: rgba(232,64,64,.20);
  border-top-color: #E84040;
  border-style: solid;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: 0 auto;
}
.ps-status-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.3px;
}
.ps-status-error { color: #f87171; }
.ps-status-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 320px;
}

/* Image result grid */
.ps-result-wrap { display: flex; flex-direction: column; gap: 12px; }
.ps-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ps-image-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1;
}
.ps-image-item.ps-ratio-landscape { aspect-ratio: 16 / 9; }
.ps-image-item.ps-ratio-portrait  { aspect-ratio: 4 / 5; }
.ps-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-dl-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .15s;
}
.ps-image-item:hover .ps-dl-btn { opacity: 1; }
.ps-dl-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   CREATE PAGE — Card Grid
   ═══════════════════════════════════════════════════════════════ */

.cr2-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ── No Brand Core ─────────────────────────────────────────────── */
.cr2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px;
}

.cr2-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.cr2-empty-icon svg { stroke: color-mix(in srgb, var(--green) 60%, transparent); }

.cr2-empty-h {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  letter-spacing: -.4px;
  margin: 0 0 10px;
  max-width: 380px;
  line-height: 1.25;
}

.cr2-empty-sub {
  font-size: 14px;
  color: rgba(255,255,255,.35);
  margin: 0 0 28px;
  line-height: 1.55;
}

.cr2-empty-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.cr2-empty-pillars span {
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.38);
  font-weight: 500;
}

.cr2-empty-btn {
  padding: 13px 34px;
  border-radius: 100px;
  background: var(--green);
  color: #0A0A0C;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: .01em;
  transition: opacity .15s, transform .18s cubic-bezier(.16,1,.3,1);
}
.cr2-empty-btn:hover { opacity: .88; transform: translateY(-2px); }

/* ── Brand Core header bar ─────────────────────────────────────── */
.cr2-brand-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: color-mix(in srgb, var(--green) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 10%, transparent);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 36px;
}

.cr2-brand-main { flex: 1; min-width: 0; }

.cr2-brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.cr2-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
  flex-shrink: 0;
  animation: dashDotPulse 2.5s ease-in-out infinite;
}

.cr2-brand-status-txt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 62%, transparent);
}

.cr2-bc-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 2px 9px;
}

.cr2-brand-name {
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: -.5px;
  margin-bottom: 9px;
  line-height: 1.1;
}

.cr2-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,.28);
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.cr2-brand-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  padding-top: 3px;
}
.cr2-upd-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
}
.cr2-upd-val {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
}

/* ── Tools section ─────────────────────────────────────────────── */
.cr2-tools { margin-bottom: 48px; }

.cr2-section-h {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: -.2px;
  margin: 0 0 16px;
}

/* ── Card grid ─────────────────────────────────────────────────── */
.cr2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.cr2-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  text-align: left;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .22s cubic-bezier(.16,1,.3,1);
}
.cr2-card:not(.cr2-card-soon):hover {
  background: rgba(255,255,255,.046);
  border-color: color-mix(in srgb, var(--green) 20%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 7%, transparent), 0 8px 28px rgba(0,0,0,.22);
  transform: translateY(-2px);
}

.cr2-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.cr2-card-ico svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,.42);
  transition: stroke .2s;
}
.cr2-card:not(.cr2-card-soon):hover .cr2-card-ico {
  background: color-mix(in srgb, var(--green) 7%, transparent);
  border-color: color-mix(in srgb, var(--green) 20%, transparent);
}
.cr2-card:not(.cr2-card-soon):hover .cr2-card-ico svg { stroke: color-mix(in srgb, var(--green) 82%, transparent); }

.cr2-card-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.78);
  letter-spacing: -.2px;
  transition: color .2s;
}
.cr2-card:not(.cr2-card-soon):hover .cr2-card-title { color: rgba(255,255,255,.96); }

.cr2-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,.28);
  line-height: 1.5;
  flex: 1;
  transition: color .2s;
}
.cr2-card:not(.cr2-card-soon):hover .cr2-card-desc { color: rgba(255,255,255,.42); }

.cr2-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.cr2-powered {
  font-size: 10.5px;
  color: rgba(255,255,255,.18);
  font-weight: 500;
  transition: color .2s;
}
.cr2-powered .cr2-brand-ref {
  color: color-mix(in srgb, var(--green) 38%, transparent);
  font-weight: 600;
  transition: color .2s;
}
.cr2-card:not(.cr2-card-soon):hover .cr2-powered { color: rgba(255,255,255,.26); }
.cr2-card:not(.cr2-card-soon):hover .cr2-powered .cr2-brand-ref { color: color-mix(in srgb, var(--green) 68%, transparent); }

.cr2-credits {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,.22);
  opacity: 0;
  transition: opacity .18s;
  white-space: nowrap;
}
.cr2-card:not(.cr2-card-soon):hover .cr2-credits { opacity: 1; }

/* ── Coming Soon section ───────────────────────────────────────── */
.cr2-coming { padding-top: 4px; }

.cr2-coming-hd { margin-bottom: 16px; }

.cr2-coming-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.32);
  letter-spacing: -.15px;
  margin: 0 0 4px;
}

.cr2-coming-sub {
  font-size: 12px;
  color: rgba(255,255,255,.18);
  margin: 0;
  line-height: 1.5;
}

.cr2-card-soon {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.cr2-soon-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 3px 10px;
}
.cr2-exp-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,184,0,.75);
  background: rgba(255,184,0,.08);
  border: 1px solid rgba(255,184,0,.18);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 6px;
  position: relative;
  top: -1px;
}

/* ── Beta badge (Motion Graphics) — orange ─────────────────────── */
.cr2-beta-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,120,30,.85);
  background: rgba(255,120,30,.09);
  border: 1px solid rgba(255,120,30,.22);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 6px;
  position: relative;
  top: -1px;
}

/* ── Section heading row (heading + page-level badge) ──────────── */
.cr2-section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cr2-section-row .cr2-section-h {
  margin-bottom: 0;
}
.cr2-page-exp-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 3px 9px;
}


/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .cr2-grid { grid-template-columns: repeat(2, 1fr); }
  .cr2-brand-bar { flex-direction: column; gap: 14px; }
  .cr2-brand-meta { align-items: flex-start; flex-direction: row; gap: 8px; align-items: center; }
  .cr2-brand-name { font-size: 22px; }
}
@media (max-width: 480px) {
  .cr2-wrap { padding: 20px 16px 60px; }
  .cr2-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cr2-card { padding: 14px; gap: 7px; }
  .cr2-card-ico { width: 36px; height: 36px; }
  .cr2-brand-name { font-size: 20px; }
  .cr2-brand-bar { padding: 18px; }
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE OVERHAUL
   Supplements the existing mobile blocks — no duplication intended.
   ══════════════════════════════════════════════════════════════════ */

/* ── Global: prevent horizontal overflow on all viewports ──────── */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }

/* ── #mobileBar and .mb-wordmark CSS is defined in the main hamburger block ── */

/* ══ TABLET LANDSCAPE (≤1024px) ════════════════════════════════════ */
@media (max-width: 1024px) {
  .dash-outer { padding: 20px 24px 14px; }
}

/* ══ MOBILE (≤768px) — additions to existing 768px block ══════════ */
@media (max-width: 768px) {

  /* ── Overflow prevention ── */
  .app, .mc, .page { overflow-x: hidden; }

  /* ── Create page: top clearance for mobile bar ── */
  .cr2-wrap { padding-top: 64px; }

  /* ── Paywall modal: full viewport height safety ── */
  .pw-modal {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
  }
  .pw-header { padding: 24px 20px 18px; }
  .pw-grid   { padding: 16px 16px 12px; }

  /* ── Auth overlay: scrollable on small screens ── */
  #authOverlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
  }

  /* ── All modals: bottom-sheet on mobile ── */
  .mbk {
    align-items: flex-end;
  }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
  }

  /* ── Touch targets: 44px minimum for all interactive controls ── */
  .btn, .btn-primary, .btn-outline, .btn-ghost,
  .pw-btn, .au-btn { min-height: 44px; }
  .ob-tt-next, .ob-tt-back { min-height: 40px; }

  /* ── Brand assistant: use full width ── */
  .chat-outer { padding: 0 8px; }

  /* ── Onboarding tooltip: crisp on mobile (bottom-sheet via JS) ── */
  #ob-tooltip { border-radius: 20px; }

  /* ── Landing page: hero actions stack vertically on mobile ── */
  .lp-s-actions { flex-direction: column; gap: 10px; }
  .lp-s-actions .lp-cta-btn,
  .lp-s-actions .lp-ghost-btn { width: 100%; justify-content: center; }

  /* ── Landing page: hamburger touch target 44px ── */
  .lp-hamburger { padding: 11px; }

  /* ── Dashboard: stack hero band on mobile ── */
  .dash-hero-band { grid-template-columns: 1fr; }
  .dash-lower     { grid-template-columns: 1fr; }

  /* ── Settings: ensure nav items have touch targets ── */
  .snav-item { min-height: 36px; display: flex; align-items: center; }

}

/* ══ SMALL MOBILE (≤480px) ═════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Create page: tight on small phones ── */
  .cr2-wrap { padding: 64px 12px 60px; }

  /* ── Dashboard: single-column stats on small phones ── */
  .dash-stats-row { grid-template-columns: 1fr; }

  /* ── Paywall: compact header ── */
  .pw-title  { font-size: 20px; }
  .pw-sub    { font-size: 12px; }
  .pw-card   { padding: 18px 14px; }

  /* ── Plan popular tag: already tiny at 480px via existing CSS ── */

  /* ── Onboarding tooltip: tighter on small phones ── */
  #ob-tooltip { padding: 16px 16px 14px; }
  .ob-tt-title { font-size: 15px; }
  .ob-tt-desc  { font-size: 13px; }
  .ob-tt-dot   { width: 5px; height: 5px; }

  /* ── Dashboard hero band ── */
  .dash-hero-band { padding: 16px; }

  /* ── Settings nav: wrap more aggressively ── */
  .snav-item { font-size: 11px; padding: 4px 8px; }

  /* ── Modal: tighter padding ── */
  .modal { padding: 20px 16px 24px; }

  /* ── Auth form: full bleed on tiny screens ── */
  .au-inner { padding: 24px 16px; }

}

/* ══ VERY SMALL (≤375px) ═══════════════════════════════════════════ */
@media (max-width: 375px) {

  /* ── Onboarding dots: scale down ── */
  .ob-tt-dots { gap: 4px; }
  .ob-tt-dot  { width: 4px; height: 4px; }
  .ob-tt-next { font-size: 13px; padding: 8px 12px; }
  .ob-tt-back { font-size: 13px; }

  /* ── Plan card compact ── */
  .pw-card { padding: 16px 12px; }
  .pw-plan-name { font-size: 15px; }

}

/* ══ SAFE-AREA SUPPORT (supplements existing @supports blocks) ═════ */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    /* Auth overlay pushed below notch */
    #authOverlay { padding-top: calc(env(safe-area-inset-top) + 24px) !important; }
    /* Mobile bar and sidebar safe-area handled in the main safe-area block above */
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .modal       { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
    .mc          { padding-bottom: env(safe-area-inset-bottom); }
    #ob-tooltip  { bottom: calc(env(safe-area-inset-bottom) + 80px) !important; }
  }
}

/* ══ COMPETITOR INTELLIGENCE v2 ════════════════════════════════════ */

.ci-outer{display:flex;flex-direction:column;min-height:100%}

/* ── Idle ── */
#ciIdle{display:flex;flex-direction:column;align-items:center;gap:28px;padding:48px 24px 40px}
.ci-idle-hd{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.ci-idle-ico{width:64px;height:64px;border-radius:18px;background:color-mix(in srgb, var(--green) 6%, transparent);border:1px solid color-mix(in srgb, var(--green) 18%, transparent);display:flex;align-items:center;justify-content:center;color:var(--gm);box-shadow:0 0 40px color-mix(in srgb, var(--green) 8%, transparent)}
.ci-idle-ttl{font-size:18px;font-weight:700;color:var(--charcoal);letter-spacing:-.3px}
.ci-idle-sub{font-size:13px;color:var(--muted);line-height:1.6;max-width:280px}
.ci-input-wrap{display:flex;flex-direction:column;gap:10px;width:100%;max-width:360px}
.ci-url-field{display:flex;align-items:center;gap:10px;height:48px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:0 14px;transition:border-color .18s,box-shadow .18s}
.ci-url-field:focus-within{border-color:color-mix(in srgb, var(--green) 40%, transparent);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 7%, transparent)}
.ci-url-ico{color:var(--muted);flex-shrink:0}
#ciUrl{flex:1;background:none;border:none;outline:none;font-size:13px;color:var(--charcoal)}
#ciUrl::placeholder{color:var(--muted);opacity:.6}
.ci-run-btn{height:48px;border-radius:12px;font-size:14px;font-weight:600;letter-spacing:-.1px}

/* ── Results frame ── */
.ci-results{display:flex;flex-direction:column}
.ci-results-top{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--border)}
.ci-results-brand{font-size:14px;font-weight:700;color:var(--charcoal);letter-spacing:-.15px}
.ci-results-url{font-size:11px;color:var(--muted);margin-top:1px;opacity:.7}
.ci-rerun-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid var(--border);font-size:12px;color:var(--muted);cursor:pointer;transition:all .18s}
.ci-rerun-btn:hover{background:rgba(255,255,255,.09);color:var(--charcoal)}

/* ── Section wrapper ── */
#ciResultsBody{padding:4px 0 40px}
.ci-s{padding:20px 20px 0;margin-bottom:24px}
.ci-s-lbl{font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}

/* ── Section 1: Snapshot ── */
.ci-snap{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:20px}
.ci-snap-name{font-size:22px;font-weight:800;color:var(--charcoal);letter-spacing:-.5px;margin-bottom:6px}
.ci-snap-industry{display:inline-block;padding:3px 10px;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);font-size:11px;color:var(--muted);margin-bottom:16px}
.ci-snap-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ci-snap-item{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:10px 12px}
.ci-snap-il{font-size:10px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.ci-snap-iv{font-size:14px;font-weight:600;color:var(--charcoal);letter-spacing:-.1px}

/* ── Section 2: Visual Identity ── */
.ci-vs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ci-vs-col{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px}
.ci-vs-side{font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.ci-vs-comp{color:var(--muted)}
.ci-vs-user{color:color-mix(in srgb, var(--green) 70%, transparent)}
.ci-swatches{display:flex;flex-wrap:wrap;gap:5px}
.ci-swatch{width:20px;height:20px;border-radius:50%;border:1.5px solid rgba(255,255,255,.2);flex-shrink:0}
.ci-vis-typo{font-size:14px;font-weight:600;color:var(--charcoal);letter-spacing:-.1px}
.ci-vis-badges{display:flex;flex-wrap:wrap;gap:5px}
.ci-vis-empty{font-size:12px;color:var(--muted);opacity:.5}

/* ── Badges (shared) ── */
.ci-badge{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:6px;font-size:11px;font-weight:500}
.ci-badge-comp{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--muted)}
.ci-badge-user{background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);color:color-mix(in srgb, var(--green) 90%, transparent)}
.ci-badge-overlap{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:var(--muted)}

/* ── Section 3: Positioning ── */
.ci-pos-vs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.ci-pos-card{border-radius:12px;padding:16px;border:1px solid}
.ci-pos-comp{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08)}
.ci-pos-user{background:color-mix(in srgb, var(--green) 4%, transparent);border-color:color-mix(in srgb, var(--green) 15%, transparent)}
.ci-pos-lbl{font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.ci-pos-user .ci-pos-lbl{color:color-mix(in srgb, var(--green) 60%, transparent)}
.ci-pos-val{font-size:16px;font-weight:700;color:var(--charcoal);letter-spacing:-.2px;line-height:1.3}
.ci-overlap{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:2px}
.ci-overlap-lbl{font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);margin-right:2px}

/* ── Section 4: Tone of Voice ── */
.ci-tone-vs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ci-tone-col{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px}
.ci-tone-side{font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;margin-bottom:10px}
.ci-tone-comp{color:var(--muted)}
.ci-tone-user{color:color-mix(in srgb, var(--green) 70%, transparent)}
.ci-tone-badges{display:flex;flex-wrap:wrap;gap:6px}
.ci-badge-tone-comp{display:inline-block;padding:5px 11px;border-radius:7px;font-size:12px;font-weight:500;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--charcoal)}
.ci-badge-tone-user{display:inline-block;padding:5px 11px;border-radius:7px;font-size:12px;font-weight:500;background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 22%, transparent);color:color-mix(in srgb, var(--green) 95%, transparent)}

/* ── Section 5: Differentiation ── */
.ci-diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ci-diff-card{border-radius:12px;padding:16px;border:1px solid;display:flex;flex-direction:column;gap:6px}
.ci-diff-lbl{font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.ci-diff-val{font-size:15px;font-weight:700;letter-spacing:-.2px;line-height:1.3}
.ci-diff-they{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08)}
.ci-diff-they .ci-diff-lbl{color:var(--muted)}
.ci-diff-they .ci-diff-val{color:var(--charcoal)}
.ci-diff-you{background:color-mix(in srgb, var(--green) 5%, transparent);border-color:color-mix(in srgb, var(--green) 18%, transparent)}
.ci-diff-you .ci-diff-lbl{color:color-mix(in srgb, var(--green) 65%, transparent)}
.ci-diff-you .ci-diff-val{color:color-mix(in srgb, var(--green) 95%, transparent)}
.ci-diff-opp{background:color-mix(in srgb, var(--green) 8%, transparent);border-color:color-mix(in srgb, var(--green) 30%, transparent);box-shadow:0 0 20px color-mix(in srgb, var(--green) 6%, transparent)}
.ci-diff-opp .ci-diff-lbl{color:color-mix(in srgb, var(--green) 70%, transparent)}
.ci-diff-opp .ci-diff-val{color:var(--charcoal)}
.ci-diff-risk{background:rgba(255,160,50,.05);border-color:rgba(255,160,50,.2)}
.ci-diff-risk .ci-diff-lbl{color:rgba(255,160,50,.7)}
.ci-diff-risk .ci-diff-val{color:var(--charcoal)}

/* ── Section 6: Strategic Insight ── */
.ci-insight{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb, var(--green) 4%, transparent);border:1px solid color-mix(in srgb, var(--green) 12%, transparent);border-left:3px solid color-mix(in srgb, var(--green) 50%, transparent);border-radius:12px;padding:16px}
.ci-insight-ico{width:28px;height:28px;border-radius:8px;background:color-mix(in srgb, var(--green) 10%, transparent);display:flex;align-items:center;justify-content:center;color:var(--gm);flex-shrink:0;margin-top:1px}
.ci-insight-text{font-size:13px;color:var(--charcoal);line-height:1.75;flex:1}

/* ── Section 7: Verdict ── */
.ci-verdict{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ci-verdict-item{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px}
.ci-verdict-ico{font-size:15px;color:var(--gm);margin-bottom:2px}
.ci-verdict-lbl{font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
.ci-verdict-val{font-size:14px;font-weight:700;color:var(--charcoal);letter-spacing:-.1px;line-height:1.3}


/* =================================================================
   ORIVEN 2.0 - SIDEBAR RESTRUCTURE
   Section labels, sub-items, soon badges, dividers
   ================================================================= */

.sb-section{
  font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted2,rgba(255,255,255,.25));
  padding:14px 10px 4px;
  pointer-events:none;user-select:none;
}
.sb-sub{padding-left:13px;font-size:12.5px}
.sb-soon-item{opacity:.45;cursor:default !important;pointer-events:none}
.sb-soon-chip{
  margin-left:auto;font-size:8.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:2px 7px;border-radius:20px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  color:var(--muted2,rgba(255,255,255,.3));flex-shrink:0;
}
.sb-divider{height:1px;background:var(--border);margin:10px 10px;opacity:.6}

/* =================================================================
   ORIVEN 2.0 - BRAND BRAIN HOME
   ================================================================= */

#page-brain{display:none;padding:0}
#page-brain.active{display:block}

.bb-outer{max-width:960px;margin:0 auto;padding:40px 32px 64px;display:flex;flex-direction:column;gap:40px}

/* Greeting */
.bb-greeting{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}
.bb-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.bb-eyebrow-dot{width:6px;height:6px;border-radius:50%;background:var(--border);transition:background .3s;flex-shrink:0}
.bb-eyebrow-dot.active{background:var(--gm);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);animation:dashDotPulse 2.5s ease-in-out infinite}
.bb-headline{font-family:'Instrument Serif',serif;font-size:clamp(32px,4vw,52px);font-weight:400;color:var(--charcoal);letter-spacing:-1.5px;line-height:1.05;margin-bottom:10px}
.bb-sub{font-size:14px;color:var(--muted);line-height:1.65;max-width:480px}
.bb-brand-tag{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--charcoal);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:6px 14px;flex-shrink:0;margin-top:4px}
.bb-brand-tag-dot{width:7px;height:7px;border-radius:50%;background:var(--gm);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);flex-shrink:0}
.bb-brand-tag-sep{color:var(--muted);opacity:.5}

/* Health card + metrics */
.bb-top-row{display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:start}
.bb-health-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:28px 20px;text-align:center}
.bb-health-score-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px}
.bb-health-ring{width:80px;height:80px}
.bb-ring-bg{fill:none;stroke:rgba(255,255,255,.06);stroke-width:4}
.bb-ring-fill{fill:none;stroke:var(--gm);stroke-width:4;stroke-linecap:round;transition:stroke-dashoffset .8s cubic-bezier(.36,.07,.19,.97);transform:rotate(-90deg);transform-origin:50% 50%}
.bb-health-num{position:absolute;font-size:17px;font-weight:700;color:var(--charcoal);letter-spacing:-.5px}
.bb-health-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.bb-health-sub{font-size:11px;color:var(--muted);line-height:1.5}
.bb-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bb-metric{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;align-items:center;gap:12px;transition:border-color .2s}
.bb-metric:hover{border-color:rgba(255,255,255,.14)}
.bb-metric-ico{width:34px;height:34px;border-radius:10px;background:var(--bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bb-metric-ico svg{width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:1.4;stroke-linecap:round}
.bb-metric-val{font-size:14px;font-weight:700;color:var(--charcoal);letter-spacing:-.3px;margin-bottom:1px}
.bb-metric-lbl{font-size:10.5px;color:var(--muted)}

/* Sections */
.bb-section{display:flex;flex-direction:column;gap:14px}
.bb-section-hd{display:flex;align-items:center}
.bb-section-label{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted2,rgba(255,255,255,.3))}

/* Snapshot */
.bb-snapshot{display:flex;flex-wrap:wrap;gap:8px}
.bb-snapshot-empty{font-size:13px;color:var(--muted);padding:20px 24px;background:var(--surface);border:1px solid var(--border);border-radius:14px;width:100%}
.bb-snapshot-cta{color:var(--gm);cursor:pointer;font-weight:500}
.bb-snapshot-cta:hover{text-decoration:underline}
.bb-know-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:11px;background:var(--surface);border:1px solid var(--border);font-size:12px;color:var(--charcoal)}
.bb-know-chip-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.bb-know-chip-dot.filled{background:var(--gm)}
.bb-know-chip-dot.empty{background:rgba(255,255,255,.15)}
.bb-know-chip-lbl{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.bb-know-chip-val{font-weight:500;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-know-swatches{display:flex;gap:4px;align-items:center}
.bb-know-swatch{width:15px;height:15px;border-radius:50%;border:1px solid rgba(255,255,255,.12)}

/* Actions */
.bb-actions{display:flex;flex-direction:column;gap:8px}
.bb-action-item{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 16px;cursor:pointer;transition:border-color .2s,transform .18s}
.bb-action-item:hover{border-color:var(--gm);transform:translateX(3px)}
.bb-action-ico{width:32px;height:32px;border-radius:9px;background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bb-action-ico svg{width:13px;height:13px;stroke:var(--gm);fill:none;stroke-width:1.5;stroke-linecap:round}
.bb-action-body{flex:1;min-width:0}
.bb-action-title{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:2px}
.bb-action-desc{font-size:11px;color:var(--muted);line-height:1.4}
.bb-action-arrow{color:var(--muted);font-size:15px;opacity:.35;flex-shrink:0}

/* Coming soon grid */
.bb-coming-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bb-coming-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;opacity:.6}
.bb-coming-hd{display:flex;align-items:center;gap:9px;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--charcoal)}
.bb-coming-hd svg{stroke:var(--muted);flex-shrink:0}
.bb-coming-badge{margin-left:auto;font-size:8.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--muted2,rgba(255,255,255,.35));flex-shrink:0}
.bb-coming-card p{font-size:11.5px;color:var(--muted);line-height:1.6;margin:0}

/* Mobile */
@media(max-width:768px){
  .bb-outer{padding:calc(56px + env(safe-area-inset-top,0px) + 28px) 16px 48px;gap:28px}
  .bb-top-row{grid-template-columns:1fr}
  .bb-health-card{display:flex;align-items:center;gap:20px;text-align:left}
  .bb-health-score-wrap{flex-shrink:0}
  .bb-coming-grid{grid-template-columns:1fr}
  .sb-section{padding-top:10px}
}


/* =================================================================
   ORIVEN 2.0 — BRAND SUB-PAGES (.bsp-*)
   Shared layout for Positioning / Audience / Tov / Identity
   ================================================================= */

#page-positioning,#page-audience,#page-tov,#page-identity{display:none;overflow-y:auto}
#page-positioning.active,#page-audience.active,#page-tov.active,#page-identity.active{display:block}

.bsp-outer{max-width:800px;margin:0 auto;padding:40px 32px 64px}

/* Breadcrumb + top-right edit button */
.bsp-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.bsp-breadcrumb{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}
.bsp-bc-link{cursor:pointer;color:var(--muted);transition:color .15s}
.bsp-bc-link:hover{color:var(--charcoal)}
.bsp-bc-sep{opacity:.4}
.bsp-edit-btn{
  font-size:11px;font-weight:600;color:var(--muted);
  background:var(--surface);border:1px solid var(--border);
  border-radius:8px;padding:6px 12px;cursor:pointer;
  transition:border-color .15s,color .15s;
}
.bsp-edit-btn:hover{border-color:rgba(255,255,255,.18);color:var(--charcoal)}

.bsp-title{
  font-family:'Instrument Serif',serif;font-size:clamp(28px,3.5vw,44px);
  font-weight:400;color:var(--charcoal);letter-spacing:-1.2px;margin-bottom:10px;
}
.bsp-desc{font-size:13.5px;color:var(--muted);line-height:1.65;margin-bottom:32px;max-width:520px}

/* Body content area */
.bsp-body{display:flex;flex-direction:column;gap:16px}

/* Generic field card */
.bsp-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:24px 26px;
  transition:border-color .2s;
}
.bsp-card:hover{border-color:rgba(255,255,255,.14)}
.bsp-card-lbl{
  font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted2,rgba(255,255,255,.3));margin-bottom:10px;
}
.bsp-card-val{font-size:15px;color:var(--charcoal);line-height:1.65;font-weight:400}
.bsp-card-val.large{font-size:18px;font-weight:500;letter-spacing:-.3px;line-height:1.5}

/* Two-column card grid */
.bsp-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.bsp-grid .bsp-card{margin:0}

/* Tag list (tone traits, personality) */
.bsp-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.bsp-tag{
  display:inline-flex;align-items:center;
  font-size:12.5px;font-weight:500;color:var(--charcoal);
  background:var(--bg);border:1px solid var(--border);
  border-radius:20px;padding:6px 14px;
}
.bsp-tag.accent{background:color-mix(in srgb, var(--green) 8%, transparent);border-color:color-mix(in srgb, var(--green) 25%, transparent);color:var(--gm)}

/* Color palette row */
.bsp-colors{display:flex;flex-direction:column;gap:10px}
.bsp-color-row{
  display:flex;align-items:center;gap:14px;
  background:var(--bg);border-radius:12px;padding:12px 14px;
}
.bsp-color-swatch{
  width:40px;height:40px;border-radius:10px;flex-shrink:0;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.bsp-color-info{flex:1;min-width:0}
.bsp-color-name{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:1px}
.bsp-color-hex{font-size:11px;color:var(--muted);font-family:monospace;letter-spacing:.04em}
.bsp-color-role{
  font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted2,rgba(255,255,255,.3));padding:3px 8px;
  background:rgba(255,255,255,.06);border-radius:20px;flex-shrink:0;
}

/* Typography rows */
.bsp-fonts{display:flex;flex-direction:column;gap:10px}
.bsp-font-row{
  background:var(--bg);border-radius:12px;padding:16px 18px;
  display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;
}
.bsp-font-sample{font-size:22px;color:var(--charcoal);letter-spacing:-.4px;flex:1;min-width:120px}
.bsp-font-meta{display:flex;flex-direction:column;gap:2px;flex-shrink:0}
.bsp-font-name{font-size:12px;font-weight:600;color:var(--charcoal)}
.bsp-font-role{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}

/* Logo display */
.bsp-logos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.bsp-logo-box{
  background:var(--bg);border:1px solid var(--border);
  border-radius:14px;padding:20px;
  display:flex;flex-direction:column;align-items:center;gap:10px;min-height:100px;
}
.bsp-logo-img{max-width:100%;max-height:60px;object-fit:contain}
.bsp-logo-lbl{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* Do / Don't tone rules */
.bsp-rules{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bsp-rule-col{display:flex;flex-direction:column;gap:8px}
.bsp-rule-hd{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:4px}
.bsp-rule-hd.do{color:var(--gm)}
.bsp-rule-hd.dont{color:#f87171}
.bsp-rule-item{
  font-size:12.5px;color:var(--charcoal);line-height:1.5;
  padding:10px 12px;border-radius:10px;
  background:var(--bg);border-left:3px solid transparent;
}
.bsp-rule-item.do{border-color:var(--gm)}
.bsp-rule-item.dont{border-color:#f87171}

/* Empty state */
.bsp-empty{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:64px 32px;gap:14px;
}
.bsp-empty-icon{
  width:56px;height:56px;border-radius:16px;
  background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;margin-bottom:4px;
}
.bsp-empty-icon svg{width:26px;height:26px;stroke:var(--muted)}
.bsp-empty-title{font-size:16px;font-weight:600;color:var(--charcoal)}
.bsp-empty-sub{font-size:13px;color:var(--muted);max-width:360px;line-height:1.6}
.bsp-empty-btn{
  margin-top:6px;font-size:13px;font-weight:600;
  background:var(--gm);color:#111;
  border:none;border-radius:10px;padding:10px 22px;cursor:pointer;
  transition:opacity .15s;
}
.bsp-empty-btn:hover{opacity:.88}

/* Mobile */
@media(max-width:768px){
  .bsp-outer{padding:calc(56px + env(safe-area-inset-top,0px) + 24px) 16px 48px}
  .bsp-grid{grid-template-columns:1fr}
  .bsp-rules{grid-template-columns:1fr}
  .bsp-logos{grid-template-columns:1fr 1fr}
  .bsp-title{font-size:clamp(26px,7vw,38px)}
}


/* =================================================================
   ORIVEN 2.0 — INTELLIGENCE PAGES (.intel-*)
   Market Research + Opportunities
   ================================================================= */

#page-market,#page-opportunities{display:none;overflow-y:auto}
#page-market.active,#page-opportunities.active{display:block}

.intel-outer{max-width:860px;margin:0 auto;padding:40px 32px 64px}

/* Generate button (top-right of header) */
.intel-gen-btn{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12px;font-weight:600;
  background:var(--gm);color:#111;
  border:none;border-radius:10px;padding:8px 16px;cursor:pointer;
  transition:opacity .15s,transform .12s;
}
.intel-gen-btn:hover{opacity:.88;transform:translateY(-1px)}
.intel-gen-btn svg{width:12px;height:12px;stroke:#111}
.intel-gen-btn:disabled{opacity:.4;cursor:default;transform:none}

/* ── Prompt / empty state ─────────────────────────────────────── */
.intel-prompt{padding:48px 0;display:flex;justify-content:center}
.intel-prompt-inner{
  max-width:420px;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:14px;
}
.intel-prompt-icon{
  width:64px;height:64px;border-radius:18px;
  background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;margin-bottom:4px;
}
.intel-prompt-icon svg{width:32px;height:32px;stroke:var(--muted)}
.intel-prompt-title{font-size:17px;font-weight:600;color:var(--charcoal)}
.intel-prompt-sub{font-size:13px;color:var(--muted);line-height:1.65}
.intel-prompt-btn{
  margin-top:6px;font-size:13px;font-weight:600;
  background:var(--gm);color:#111;
  border:none;border-radius:10px;padding:10px 22px;cursor:pointer;
  transition:opacity .15s;
}
.intel-prompt-btn:hover{opacity:.88}

/* ── Loading state ────────────────────────────────────────────── */
.intel-loading{
  display:flex;flex-direction:column;align-items:center;
  gap:16px;padding:80px 0;
}
.intel-loading-ring{
  width:32px;height:32px;border-radius:50%;
  border:2.5px solid rgba(255,255,255,.08);
  border-top-color:var(--gm);
  animation:spin .8s linear infinite;
}
.intel-loading-text{font-size:14px;color:var(--muted)}
.intel-loading-dots::after{
  content:"";animation:loadDots 1.4s steps(4,end) infinite;
}
@keyframes loadDots{
  0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}100%{content:""}
}

/* ── Results shell ────────────────────────────────────────────── */
.intel-results{display:flex;flex-direction:column;gap:28px}
.intel-meta-row{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:-8px;
}
.intel-meta-ts{font-size:11.5px;color:var(--muted)}
.intel-regen-btn{
  font-size:11px;font-weight:600;color:var(--muted);
  background:none;border:1px solid var(--border);
  border-radius:8px;padding:5px 11px;cursor:pointer;
  transition:border-color .15s,color .15s;
}
.intel-regen-btn:hover{border-color:rgba(255,255,255,.2);color:var(--charcoal)}

/* Section label */
.intel-section{display:flex;flex-direction:column;gap:12px}
.intel-section-label{
  font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted2,rgba(255,255,255,.3));
}

/* ── Market overview band ─────────────────────────────────────── */
.intel-market-band{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
}
.intel-mkt-tile{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:18px 16px;
}
.intel-mkt-tile-lbl{font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.intel-mkt-tile-val{font-size:14px;font-weight:600;color:var(--charcoal);line-height:1.3}
.intel-mkt-tile-val.pill{
  display:inline-block;font-size:11px;padding:3px 10px;border-radius:20px;
  background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 25%, transparent);color:var(--gm);
}

/* ── Trend grid (2-col) ───────────────────────────────────────── */
.intel-trend-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.intel-trend-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:18px 20px;
}
.intel-trend-hd{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:10px;
}
.intel-trend-title{font-size:13px;font-weight:600;color:var(--charcoal)}
.intel-impact{
  font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:2px 7px;border-radius:20px;flex-shrink:0;
}
.intel-impact.high{background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 25%, transparent);color:var(--gm)}
.intel-impact.medium{background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:#fbbf24}
.intel-impact.low{background:rgba(255,255,255,.05);border:1px solid var(--border);color:var(--muted)}
.intel-trend-desc{font-size:12px;color:var(--muted);line-height:1.6}

/* ── Segment list ─────────────────────────────────────────────── */
.intel-seg-list{display:flex;flex-direction:column;gap:10px}
.intel-seg-row{
  display:flex;align-items:flex-start;gap:14px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:16px 18px;
}
.intel-seg-fit{
  flex-shrink:0;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:4px 10px;border-radius:20px;margin-top:1px;
}
.intel-seg-fit.strong{background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 25%, transparent);color:var(--gm)}
.intel-seg-fit.medium{background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:#fbbf24}
.intel-seg-fit.weak{background:rgba(255,255,255,.05);border:1px solid var(--border);color:var(--muted)}
.intel-seg-body{flex:1;min-width:0}
.intel-seg-name{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:4px}
.intel-seg-desc{font-size:12px;color:var(--muted);line-height:1.55}

/* ── Competitive card ─────────────────────────────────────────── */
.intel-comp-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:22px 24px;
  display:flex;flex-direction:column;gap:14px;
}
.intel-comp-row{display:flex;align-items:center;gap:12px}
.intel-comp-intensity{
  font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:3px 9px;border-radius:20px;
}
.intel-comp-intensity.high{background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.25);color:#ef4444}
.intel-comp-intensity.medium{background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:#fbbf24}
.intel-comp-intensity.low{background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 25%, transparent);color:var(--gm)}
.intel-comp-lbl{font-size:11px;font-weight:600;color:var(--muted)}
.intel-comp-dynamics{font-size:13px;color:var(--charcoal);line-height:1.65}
.intel-comp-whitespace{
  background:color-mix(in srgb, var(--green) 6%, transparent);border:1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius:10px;padding:12px 14px;
  font-size:12.5px;color:var(--charcoal);line-height:1.55;
}
.intel-comp-ws-lbl{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gm);margin-bottom:5px}

/* ── Summary card ─────────────────────────────────────────────── */
.intel-summary-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:20px 24px;
  font-size:14px;color:var(--charcoal);line-height:1.7;
}

/* ── Opportunity list ─────────────────────────────────────────── */
.intel-opp-list{display:flex;flex-direction:column;gap:12px}
.intel-opp-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:20px 22px;
  transition:border-color .2s;
}
.intel-opp-card:hover{border-color:rgba(255,255,255,.14)}
.intel-opp-hd{
  display:flex;align-items:flex-start;gap:12px;margin-bottom:12px;
}
.intel-opp-num{
  width:24px;height:24px;border-radius:50%;flex-shrink:0;
  background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 25%, transparent);
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:var(--gm);
}
.intel-opp-title{font-size:14px;font-weight:600;color:var(--charcoal);flex:1}
.intel-opp-cat{
  flex-shrink:0;font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  padding:3px 9px;border-radius:20px;
  background:rgba(255,255,255,.06);border:1px solid var(--border);color:var(--muted);
}
.intel-opp-desc{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:10px}
.intel-opp-why{
  font-size:12px;color:var(--charcoal);line-height:1.55;
  border-left:2px solid var(--gm);padding-left:12px;margin-bottom:14px;
}
.intel-opp-meta{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.intel-opp-badge{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10px;font-weight:600;color:var(--muted);
}
.intel-opp-badge-dot{width:6px;height:6px;border-radius:50%;}
.intel-opp-badge-dot.high{background:var(--gm)}
.intel-opp-badge-dot.medium{background:#fbbf24}
.intel-opp-badge-dot.low{background:rgba(255,255,255,.25)}
.intel-opp-divider{flex:1}
.intel-opp-action{
  background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius:10px;padding:10px 14px;
  font-size:12px;color:var(--charcoal);line-height:1.5;
}
.intel-opp-action-lbl{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gm);margin-bottom:4px}

/* Mobile */
@media(max-width:768px){
  .intel-outer{padding:calc(56px + env(safe-area-inset-top,0px) + 24px) 16px 48px}
  .intel-market-band{grid-template-columns:1fr 1fr}
  .intel-trend-grid{grid-template-columns:1fr}
}


/* =================================================================
   ORIVEN 2.0 — MONITOR PAGES + DAILY BRIEF
   ================================================================= */

#page-website,#page-health,#page-alerts{display:none;overflow-y:auto}
#page-website.active,#page-health.active,#page-alerts.active{display:block}

/* ── URL input row ───────────────────────────────────────────── */
.mon-url-row{display:flex;gap:10px;margin-bottom:28px;align-items:center}
.mon-url-input{
  flex:1;height:42px;background:var(--surface);border:1px solid var(--border);
  border-radius:11px;padding:0 14px;font-size:14px;color:var(--charcoal);
  outline:none;transition:border-color .2s;
}
.mon-url-input:focus{border-color:rgba(255,255,255,.25)}
.mon-url-input::placeholder{color:var(--muted)}

/* ── Score band ──────────────────────────────────────────────── */
.mon-score-band{
  display:flex;align-items:center;gap:24px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:18px;padding:24px 28px;margin-bottom:4px;
}
.mon-score-ring{position:relative;width:80px;height:80px;flex-shrink:0}
.mon-score-ring-svg{width:80px;height:80px}
.mon-score-ring-bg{fill:none;stroke:rgba(255,255,255,.06);stroke-width:4}
.mon-score-ring-fill{
  fill:none;stroke-width:4;stroke-linecap:round;
  transition:stroke-dashoffset .8s cubic-bezier(.36,.07,.19,.97);
  transform:rotate(-90deg);transform-origin:50% 50%;
}
.mon-score-ring-num{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:700;color:var(--charcoal);
}
.mon-score-body{flex:1;min-width:0}
.mon-score-grade{
  font-size:36px;font-weight:700;color:var(--charcoal);letter-spacing:-1px;margin-bottom:4px;
}
.mon-score-label{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:2px}
.mon-score-url{font-size:12px;color:var(--muted);font-family:monospace;opacity:.7}

/* ── Generic list (strengths / recs) ─────────────────────────── */
.mon-list{display:flex;flex-direction:column;gap:8px}
.mon-list-item{
  display:flex;align-items:flex-start;gap:10px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:13px 15px;
  font-size:13px;color:var(--charcoal);line-height:1.55;
}
.mon-list-item::before{
  content:"✓";color:var(--gm);font-weight:700;font-size:11px;
  flex-shrink:0;margin-top:1px;
}
.mon-list-action .mon-list-item::before{content:"→";color:var(--muted)}

/* ── Issues list ─────────────────────────────────────────────── */
.mon-issues{display:flex;flex-direction:column;gap:10px}
.mon-issue{
  background:var(--surface);border:1px solid var(--border);
  border-radius:13px;padding:14px 16px;
  display:flex;gap:14px;align-items:flex-start;
}
.mon-issue-sev{
  flex-shrink:0;font-size:9px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;padding:3px 8px;border-radius:20px;margin-top:1px;
}
.mon-issue-sev.high{background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.25);color:#ef4444}
.mon-issue-sev.medium{background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:#fbbf24}
.mon-issue-sev.low{background:rgba(255,255,255,.06);border:1px solid var(--border);color:var(--muted)}
.mon-issue-body{flex:1;min-width:0}
.mon-issue-area{font-size:12px;font-weight:700;color:var(--charcoal);margin-bottom:3px}
.mon-issue-desc{font-size:12px;color:var(--muted);line-height:1.55}

/* ── Brand Health pillars ─────────────────────────────────────── */
.health-overview{
  display:grid;grid-template-columns:160px 1fr;gap:20px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:18px;padding:24px 26px;margin-bottom:24px;
  align-items:center;
}
.health-ring-wrap{display:flex;flex-direction:column;align-items:center;gap:8px}
.health-ring-svg{width:88px;height:88px}
.health-ring-bg{fill:none;stroke:rgba(255,255,255,.06);stroke-width:4}
.health-ring-fill{
  fill:none;stroke-width:4;stroke-linecap:round;
  transition:stroke-dashoffset .8s ease;
  transform:rotate(-90deg);transform-origin:50% 50%;
}
.health-ring-num{font-size:20px;font-weight:700;color:var(--charcoal)}
.health-ring-lbl{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.health-score-title{font-size:17px;font-weight:600;color:var(--charcoal);margin-bottom:4px}
.health-score-sub{font-size:13px;color:var(--muted);line-height:1.55;margin-bottom:14px}
.health-score-btn{
  font-size:12px;font-weight:600;color:var(--gm);
  background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius:9px;padding:7px 14px;cursor:pointer;transition:opacity .15s;
}
.health-score-btn:hover{opacity:.8}

.health-pillars{display:flex;flex-direction:column;gap:10px}
.health-pillar{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:16px 18px;
}
.health-pillar-hd{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;
}
.health-pillar-name{font-size:13px;font-weight:600;color:var(--charcoal)}
.health-pillar-pct{font-size:13px;font-weight:700;color:var(--charcoal)}
.health-pillar-bar-bg{
  height:5px;border-radius:20px;background:rgba(255,255,255,.07);overflow:hidden;
}
.health-pillar-bar{
  height:100%;border-radius:20px;
  transition:width .7s cubic-bezier(.36,.07,.19,.97);
}
.health-pillar-status{
  font-size:11px;color:var(--muted);margin-top:6px;
}

/* ── Alerts page ─────────────────────────────────────────────── */
.alerts-empty{
  display:flex;flex-direction:column;align-items:center;
  gap:12px;padding:64px 0;text-align:center;
}
.alerts-empty-icon{
  width:52px;height:52px;border-radius:14px;
  background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
}
.alerts-empty-icon svg{stroke:var(--gm)}
.alerts-empty-title{font-size:16px;font-weight:600;color:var(--charcoal)}
.alerts-empty-sub{font-size:13px;color:var(--muted);max-width:300px;line-height:1.6}
.alerts-list{display:flex;flex-direction:column;gap:10px}
.alert-item{
  display:flex;align-items:flex-start;gap:14px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:16px 18px;
  transition:border-color .2s;
}
.alert-item.high{border-left:3px solid #ef4444}
.alert-item.medium{border-left:3px solid #fbbf24}
.alert-item.low{border-left:3px solid rgba(255,255,255,.15)}
.alert-icon{
  width:32px;height:32px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.alert-icon.high{background:rgba(239,68,68,.1)}
.alert-icon.medium{background:rgba(251,191,36,.08)}
.alert-icon.low{background:rgba(255,255,255,.05)}
.alert-icon svg{width:14px;height:14px}
.alert-icon.high svg{stroke:#ef4444}
.alert-icon.medium svg{stroke:#fbbf24}
.alert-icon.low svg{stroke:var(--muted)}
.alert-body{flex:1;min-width:0}
.alert-title{font-size:13px;font-weight:600;color:var(--charcoal);margin-bottom:3px}
.alert-desc{font-size:12px;color:var(--muted);line-height:1.5}
.alert-action{
  font-size:11.5px;font-weight:600;color:var(--gm);cursor:pointer;
  background:none;border:none;padding:0;margin-top:8px;display:block;
}
.alert-action:hover{text-decoration:underline}
.alert-ts{font-size:10px;color:var(--muted);opacity:.6;flex-shrink:0;margin-top:2px}

/* ── Brand Brain: Daily Brief ────────────────────────────────── */
.bb-brief-gen-btn{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10.5px;font-weight:600;color:var(--muted);
  background:var(--surface);border:1px solid var(--border);
  border-radius:8px;padding:5px 10px;cursor:pointer;
  transition:border-color .15s,color .15s;
}
.bb-brief-gen-btn:hover{border-color:rgba(255,255,255,.2);color:var(--charcoal)}
.bb-brief-gen-btn:disabled{opacity:.4;cursor:default}
.bb-brief-gen-btn svg{flex-shrink:0}
.bb-brief-prompt{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:16px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-size:13px;color:var(--muted);
}
.bb-brief-prompt button{
  font-size:12px;font-weight:600;color:var(--gm);
  background:none;border:none;cursor:pointer;white-space:nowrap;
}
.bb-brief-prompt button:hover{text-decoration:underline}
.bb-brief-loading{
  display:flex;align-items:center;gap:10px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:16px 20px;
  font-size:13px;color:var(--muted);
}
.bb-brief-loading-ring{
  width:16px;height:16px;border-radius:50%;
  border:2px solid rgba(255,255,255,.1);border-top-color:var(--gm);
  animation:spin .7s linear infinite;flex-shrink:0;
}
.bb-brief-result{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:20px 22px;
  display:flex;flex-direction:column;gap:14px;
}
.bb-brief-date{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.bb-brief-headline{
  font-size:15px;font-weight:600;color:var(--charcoal);line-height:1.45;
}
.bb-brief-items{display:flex;flex-direction:column;gap:8px}
.bb-brief-item{
  display:flex;align-items:flex-start;gap:10px;
  padding:10px 12px;border-radius:10px;background:var(--bg);
}
.bb-brief-item-type{
  flex-shrink:0;font-size:8.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  padding:2px 7px;border-radius:20px;margin-top:1px;
}
.bb-brief-item-type.insight{background:rgba(96,165,250,.1);border:1px solid rgba(96,165,250,.25);color:#60a5fa}
.bb-brief-item-type.action{background:color-mix(in srgb, var(--green) 10%, transparent);border:1px solid color-mix(in srgb, var(--green) 25%, transparent);color:var(--gm)}
.bb-brief-item-type.alert{background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:#fbbf24}
.bb-brief-item-body{flex:1;min-width:0}
.bb-brief-item-title{font-size:12.5px;font-weight:600;color:var(--charcoal);margin-bottom:2px}
.bb-brief-item-body-text{font-size:12px;color:var(--muted);line-height:1.5}
.bb-brief-focus{
  border-top:1px solid var(--border);padding-top:14px;
  font-size:13px;font-weight:500;color:var(--charcoal);line-height:1.5;
  display:flex;gap:10px;align-items:flex-start;
}
.bb-brief-focus::before{
  content:"Today:";font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gm);white-space:nowrap;margin-top:2px;
}

/* ── Brand Brain: Explore grid ────────────────────────────────── */
.bb-explore-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bb-explore-card{
  display:flex;align-items:center;gap:12px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:13px;padding:14px 16px;cursor:pointer;
  transition:border-color .2s,transform .15s;
}
.bb-explore-card:hover{border-color:rgba(255,255,255,.15);transform:translateX(2px)}
.bb-explore-ico{
  width:32px;height:32px;border-radius:9px;
  background:var(--bg);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.bb-explore-ico svg{stroke:var(--muted)}
.bb-explore-body{flex:1;min-width:0}
.bb-explore-name{font-size:12.5px;font-weight:600;color:var(--charcoal);margin-bottom:1px}
.bb-explore-desc{font-size:11px;color:var(--muted);line-height:1.4}
.bb-explore-arrow{color:var(--muted);font-size:16px;opacity:.35;flex-shrink:0}

/* ── Alert dot in nav ─────────────────────────────────────────── */
.sb-alert-dot{
  width:6px;height:6px;border-radius:50%;
  background:#ef4444;margin-left:auto;flex-shrink:0;
  animation:dashDotPulse 2s ease-in-out infinite;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media(max-width:768px){
  .mon-url-row{flex-direction:column;align-items:stretch}
  .health-overview{grid-template-columns:1fr}
  .health-ring-wrap{flex-direction:row;gap:16px}
  .bb-explore-grid{grid-template-columns:1fr}
  .bb-brief-prompt{flex-direction:column;align-items:flex-start;gap:8px}
}


/* =================================================================
   ORIVEN 2.0 — COMPETITOR INTELLIGENCE (standalone page)
   ================================================================= */

#page-competitor{display:none;overflow-y:auto}
#page-competitor.active{display:block}

.ci-page-outer{
  max-width:900px;margin:0 auto;
  padding:40px 32px 64px;
}

@media(max-width:768px){
  .ci-page-outer{padding:calc(56px + env(safe-area-inset-top,0px) + 24px) 16px 48px}
}


/* ═══════════════════════════════════════════════════════════
   HERO: BRAND BRAIN VISUALIZATION
   ═══════════════════════════════════════════════════════════ */

.lp-s-hero-right{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

/* ── Brand Brain visualization container ──────────────── */
.bb-viz{
  position:relative;
  width:520px;
  height:580px;
  flex-shrink:0;
}

/* SVG canvas (lines + particles) */
.bb-viz-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

/* Connection lines */
.bb-viz-line{
  stroke:color-mix(in srgb, var(--green) 9%, transparent);
  stroke-width:.8;
  stroke-dasharray:3 9;
  animation:bbLineDash 10s linear infinite;
}

@keyframes bbLineDash{
  to{ stroke-dashoffset:-44; }
}

/* Inbound particles */
.bb-viz-ptc{
  fill:color-mix(in srgb, var(--green) 85%, transparent);
  filter:drop-shadow(0 0 3px color-mix(in srgb, var(--green) 60%, transparent));
}

/* ── Hub (center) ─────────────────────────────────────── */
.bb-viz-hub{
  position:absolute;
  left:50%;
  top:220px;
  width:128px;
  height:128px;
  transform:translate(-50%,-50%);
  z-index:4;
}

.bb-viz-hub-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:1px solid color-mix(in srgb, var(--green) 16%, transparent);
  animation:bbSpin 22s linear infinite;
}
.bb-viz-hub-ring::before{
  content:'';
  position:absolute;
  top:-2.5px;left:50%;
  width:5px;height:5px;
  border-radius:50%;
  background:color-mix(in srgb, var(--green) 70%, transparent);
  transform:translateX(-50%);
  box-shadow:0 0 5px color-mix(in srgb, var(--green) 60%, transparent), 0 0 10px color-mix(in srgb, var(--green) 30%, transparent);
}
.bb-viz-hub-ring-2{
  inset:9px;
  border-color:color-mix(in srgb, var(--green) 8%, transparent);
  animation:bbCounterSpin 34s linear infinite;
}
.bb-viz-hub-ring-2::before{
  width:3px;height:3px;
  background:color-mix(in srgb, var(--green) 45%, transparent);
  box-shadow:0 0 3px color-mix(in srgb, var(--green) 40%, transparent);
}

.bb-viz-hub-pulse{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:1px solid color-mix(in srgb, var(--green) 40%, transparent);
  animation:bbPulse 7s ease-out infinite;
  pointer-events:none;
}
.bb-viz-hub-pulse-2{ animation-delay:3.5s; }

.bb-viz-hub-core{
  position:absolute;
  inset:16px;
  border-radius:50%;
  background:rgba(8,8,8,.96);
  border:1px solid color-mix(in srgb, var(--green) 28%, transparent);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  box-shadow:
    0 0 30px color-mix(in srgb, var(--green) 14%, transparent) inset,
    0 0 0 10px color-mix(in srgb, var(--green) 4%, transparent),
    0 0 60px color-mix(in srgb, var(--green) 6%, transparent);
}

.bb-viz-hub-icon{
  color:color-mix(in srgb, var(--green) 85%, transparent);
  line-height:1;
  margin-bottom:1px;
}

.bb-viz-hub-name{
  font-size:8px;
  font-weight:600;
  letter-spacing:.07em;
  color:rgba(255,255,255,.45);
  text-transform:uppercase;
}

.bb-viz-hub-score{
  font-size:22px;
  font-weight:700;
  color:var(--green);
  letter-spacing:-.02em;
  line-height:1;
  text-shadow:0 0 24px color-mix(in srgb, var(--green) 55%, transparent);
}

.bb-viz-hub-live{
  display:flex;
  align-items:center;
  gap:4px;
  font-size:8px;
  color:rgba(255,255,255,.35);
  margin-top:2px;
}
.bb-viz-hub-live-dot{
  width:5px;height:5px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 4px var(--green);
  animation:bbLivePulse 2s ease-in-out infinite;
}

/* ── Satellite nodes ──────────────────────────────────── */
.bb-viz-node{
  position:absolute;
  width:114px;
  background:rgba(10,10,10,.90);
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  padding:9px 11px;
  backdrop-filter:blur(12px);
  transition:border-color .4s, box-shadow .4s;
  z-index:3;
}
.bb-viz-node.bb-node-active{
  border-color:color-mix(in srgb, var(--green) 30%, transparent);
  box-shadow:0 0 20px color-mix(in srgb, var(--green) 9%, transparent), 0 0 0 1px color-mix(in srgb, var(--green) 8%, transparent);
}

/* 6-node hexagonal positions (hub at left:260px, top:220px) */
.bb-viz-n0{ left:203px; top:35px; }
.bb-viz-n1{ left:341px; top:113px; }
.bb-viz-n2{ left:341px; top:269px; }
.bb-viz-n3{ left:203px; top:347px; }
.bb-viz-n4{ left:65px;  top:269px; }
.bb-viz-n5{ left:65px;  top:113px; }

.bb-viz-node-hd{
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:5px;
  position:relative;
}

.bb-viz-node-ico{
  width:20px;height:20px;
  border-radius:5px;
  background:color-mix(in srgb, var(--green) 8%, transparent);
  display:flex;align-items:center;justify-content:center;
  color:color-mix(in srgb, var(--green) 70%, transparent);
  flex-shrink:0;
}
.bb-node-active .bb-viz-node-ico{
  background:color-mix(in srgb, var(--green) 15%, transparent);
  color:var(--green);
}

.bb-viz-node-name{
  font-size:9px;
  font-weight:600;
  color:rgba(255,255,255,.6);
  line-height:1.2;
  flex:1;
}
.bb-node-active .bb-viz-node-name{
  color:rgba(255,255,255,.88);
}

.bb-viz-node-status{
  font-size:8px;
  color:color-mix(in srgb, var(--green) 55%, transparent);
  line-height:1.3;
  min-height:11px;
  transition:opacity .3s;
}
.bb-viz-node-status.bb-status-changing{
  opacity:0;
}

.bb-viz-node-ping{
  width:6px;height:6px;
  border-radius:50%;
  background:transparent;
  position:absolute;
  top:0;right:0;
  transition:background .3s;
}
.bb-node-active .bb-viz-node-ping{
  background:var(--green);
  box-shadow:0 0 6px var(--green);
  animation:bbNodePing 1.5s ease-out;
}

/* ── Live evolution panel ─────────────────────────────── */
.bb-evo-panel{
  position:absolute;
  left:60px;
  top:428px;
  width:400px;
  background:rgba(10,10,10,.88);
  border:1px solid color-mix(in srgb, var(--green) 14%, transparent);
  border-radius:12px;
  padding:12px 16px 14px;
  backdrop-filter:blur(14px);
  box-shadow:0 0 40px color-mix(in srgb, var(--green) 6%, transparent);
  z-index:4;
}

.bb-evo-hd{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.bb-evo-scan{
  flex:1;
  height:3px;
  background:color-mix(in srgb, var(--green) 8%, transparent);
  border-radius:2px;
  overflow:hidden;
}
.bb-evo-scan-bar{
  height:100%;
  width:40%;
  background:color-mix(in srgb, var(--green) 55%, transparent);
  border-radius:2px;
  animation:bbEvoScan 2.8s ease-in-out infinite;
}
@keyframes bbEvoScan{
  0%   { width:0%;   opacity:.6; }
  60%  { width:100%; opacity:1;  }
  100% { width:100%; opacity:0;  }
}

.bb-evo-label{
  font-size:10px;
  color:rgba(255,255,255,.5);
  font-weight:500;
  white-space:nowrap;
  transition:opacity .3s;
}
.bb-evo-label.bb-evo-changing{ opacity:0; }

.bb-evo-live{
  display:flex;
  align-items:center;
  gap:4px;
  font-size:9px;
  font-weight:600;
  color:color-mix(in srgb, var(--green) 70%, transparent);
  flex-shrink:0;
}
.bb-evo-live-dot{
  width:5px;height:5px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 4px var(--green);
  animation:bbLivePulse 2s ease-in-out infinite;
}

.bb-evo-body{
  transition:opacity .3s;
}
.bb-evo-body.bb-evo-changing{ opacity:0; }

.bb-evo-change{
  display:flex;
  align-items:center;
  gap:8px;
}
.bb-evo-from{
  font-size:10.5px;
  color:rgba(255,255,255,.28);
  text-decoration:line-through;
  flex:1;
}
.bb-evo-arrow{
  font-size:10px;
  color:color-mix(in srgb, var(--green) 50%, transparent);
  flex-shrink:0;
}
.bb-evo-to{
  font-size:10.5px;
  color:color-mix(in srgb, var(--green) 90%, transparent);
  font-weight:600;
  flex:1;
  text-align:right;
}

.bb-evo-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.bb-evo-tag{
  font-size:9.5px;
  padding:3px 8px;
  border-radius:20px;
  font-weight:500;
}
.bb-evo-tag.removing{
  background:rgba(255,80,80,.08);
  color:rgba(255,100,100,.55);
  text-decoration:line-through;
}
.bb-evo-tag.keeping{
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.55);
}
.bb-evo-tag.adding{
  background:color-mix(in srgb, var(--green) 10%, transparent);
  color:color-mix(in srgb, var(--green) 85%, transparent);
}

.bb-evo-scores{
  display:flex;
  gap:12px;
}
.bb-evo-score-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}
.bb-evo-score-lbl{
  font-size:9px;
  color:rgba(255,255,255,.35);
}
.bb-evo-score-bar{
  height:4px;
  background:rgba(255,255,255,.06);
  border-radius:2px;
  position:relative;
  overflow:hidden;
}
.bb-evo-score-fill{
  height:100%;
  border-radius:2px;
  background:color-mix(in srgb, var(--green) 70%, transparent);
  transition:width 1.2s ease;
}
.bb-evo-score-val{
  font-size:9px;
  color:color-mix(in srgb, var(--green) 80%, transparent);
  font-weight:600;
}

/* ── Tagline ──────────────────────────────────────────── */
.bb-viz-tagline{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  font-size:11px;
  color:rgba(255,255,255,.22);
  letter-spacing:.01em;
}

/* ── Keyframe animations ──────────────────────────────── */
@keyframes bbSpin{
  to{ transform:rotate(360deg); }
}
@keyframes bbCounterSpin{
  to{ transform:rotate(-360deg); }
}
@keyframes bbPulse{
  0%  { transform:scale(1);   opacity:.5; }
  80% { transform:scale(1.65);opacity:0;  }
  100%{ transform:scale(1.65);opacity:0;  }
}
@keyframes bbLivePulse{
  0%,100%{ opacity:1; }
  50%    { opacity:.25; }
}
@keyframes bbNodePing{
  0%  { box-shadow:0 0 0 0    color-mix(in srgb, var(--green) 70%, transparent); }
  70% { box-shadow:0 0 0 10px color-mix(in srgb, var(--green) 0%, transparent);  }
  100%{ box-shadow:0 0 0 0    color-mix(in srgb, var(--green) 0%, transparent);  }
}

/* Fix hero right grid alignment for visualization */
.lp-s-hero-right{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:20px;
}

/* ── Responsive ───────────────────────────────────────── */
@media(max-width:1200px){
  .bb-viz{ transform:scale(.88); transform-origin:center top; }
}
@media(max-width:960px){
  .bb-viz{ transform:scale(.72); transform-origin:center top; }
}
@media(max-width:860px){
  .lp-s-hero-right{ display:none; }
}

/* ══════════════════════════════════════════════════════
   AMBIENT INTELLIGENCE LAYER — site-wide ambient activity
   Nodes and lines injected randomly per page load by JS.
   ══════════════════════════════════════════════════════ */
.amb-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
}

/* Pulsing ambient node ─────────────────────────────── */
.amb-nd{
  position:absolute;
  border-radius:50%;
  background:color-mix(in srgb, var(--green) 30%, transparent);
  transform:translate(-50%,-50%);
  animation:ambNdPulse 5s ease-in-out infinite both;
}
@keyframes ambNdPulse{
  0%,100%{
    opacity:.25;
    transform:translate(-50%,-50%) scale(1);
    box-shadow:none;
  }
  50%{
    opacity:.65;
    transform:translate(-50%,-50%) scale(1.7);
    box-shadow:0 0 7px color-mix(in srgb, var(--green) 22%, transparent);
  }
}

/* Fading ambient connection line ───────────────────── */
.amb-ln{
  position:absolute;
  height:1px;
  transform-origin:left center;
  background:linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--green) 11%, transparent) 20%,
    color-mix(in srgb, var(--green) 18%, transparent) 50%,
    color-mix(in srgb, var(--green) 11%, transparent) 80%,
    transparent 100%
  );
  animation:ambLnFade 9s ease-in-out infinite both;
}
@keyframes ambLnFade{
  0%,100%{ opacity:0; }
  25%,75%{ opacity:1; }
}

/* ── AI Systems scene: animated arrow dots ────────── */
/* The arrow is 1×24px. A glowing dot travels along it. */
.lp-s-ai-arrow{
  position:relative;
}
.lp-s-ai-arrow::after{
  content:'';
  position:absolute;
  left:50%;
  top:0%;
  width:4px; height:4px;
  border-radius:50%;
  background:color-mix(in srgb, var(--green) 85%, transparent);
  box-shadow:0 0 5px color-mix(in srgb, var(--green) 55%, transparent);
  transform:translate(-50%,-50%);
  animation:aiArrowDot 2.8s ease-in-out infinite;
}
.lp-s-ai-arrow.flip::after{
  animation-direction:reverse;
}
@keyframes aiArrowDot{
  0%  { top:0%;   opacity:0; }
  15% { opacity:.9; }
  85% { opacity:.9; }
  100%{ top:100%; opacity:0; }
}

/* ── AI Systems: output dot pulse (staggered) ──────── */
.lp-s-ai-out-dot{
  animation:aiOutDotPulse 3.5s ease-in-out infinite;
}
.lp-s-ai-output:nth-child(2) .lp-s-ai-out-dot{ animation-delay:.55s; }
.lp-s-ai-output:nth-child(3) .lp-s-ai-out-dot{ animation-delay:1.1s; }
.lp-s-ai-output:nth-child(4) .lp-s-ai-out-dot{ animation-delay:1.65s; }
.lp-s-ai-output:nth-child(5) .lp-s-ai-out-dot{ animation-delay:2.2s; }
.lp-s-ai-output:nth-child(6) .lp-s-ai-out-dot{ animation-delay:2.75s; }
@keyframes aiOutDotPulse{
  0%,100%{ opacity:.35; transform:scale(1); }
  50%    { opacity:.9;  transform:scale(1.35); box-shadow:0 0 6px color-mix(in srgb, var(--green) 45%, transparent); }
}

/* ── About: pillar dot ambient pulse ───────────────── */
.lp-about-pillar-dot{
  animation:pillarDotPulse 4.5s ease-in-out infinite;
}
.lp-about-pillar:nth-child(2) .lp-about-pillar-dot{ animation-delay:1.1s; }
.lp-about-pillar:nth-child(3) .lp-about-pillar-dot{ animation-delay:2.2s; }
.lp-about-pillar:nth-child(4) .lp-about-pillar-dot{ animation-delay:3.3s; }
@keyframes pillarDotPulse{
  0%,100%{ opacity:.55; transform:scale(1); }
  50%    { opacity:1;   transform:scale(1.4); box-shadow:0 0 5px color-mix(in srgb, var(--green) 50%, transparent); }
}

/* ── Process: step number ambient glow ─────────────── */
.lp-s-proc-num{
  animation:procNumGlow 6s ease-in-out infinite;
}
.lp-s-proc-step:nth-child(2) .lp-s-proc-num{ animation-delay:1.5s; }
.lp-s-proc-step:nth-child(3) .lp-s-proc-num{ animation-delay:3.0s; }
.lp-s-proc-step:nth-child(4) .lp-s-proc-num{ animation-delay:4.5s; }
@keyframes procNumGlow{
  0%,100%{ text-shadow:none; opacity:.6; }
  50%    { text-shadow:0 0 16px color-mix(in srgb, var(--green) 35%, transparent); opacity:1; }
}

/* ══════════════════════════════════════════════════════
   SCENE 1 — HOW THE BRAND BRAIN WORKS
   ══════════════════════════════════════════════════════ */
.lp-s-bb{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:40px;
  padding:48px 40px 40px;
  max-width:960px;
  margin:0 auto;
  width:100%;
  height:100%;
  box-sizing:border-box;
}
.lp-s-bb-hdr{ text-align:center; }
.lp-s-bb-eyebrow{
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--lp-green);
  margin-bottom:14px;
}
.lp-s-bb-title{
  font-size:clamp(26px,3.8vw,44px);
  font-weight:700;
  line-height:1.14;
  letter-spacing:-.03em;
  color:var(--lp-white);
}
.lp-s-bb-title em{
  font-style:italic;
  font-family:'Instrument Serif',serif;
  color:var(--lp-green);
}
.lp-s-bb-diagram{
  display:flex;
  align-items:center;
  gap:24px;
  width:100%;
}
.lp-s-bb-col{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
  min-width:0;
}
.lp-s-bb-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  background:rgba(255,255,255,.03);
  border:1px solid color-mix(in srgb, var(--green) 10%, transparent);
  border-radius:12px;
}
.lp-s-bb-card-ico{
  width:30px;
  height:30px;
  border-radius:7px;
  background:color-mix(in srgb, var(--green) 7%, transparent);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:var(--lp-green);
}
.lp-s-bb-card-ico svg{ width:15px; height:15px; }
.lp-s-bb-card-body{ flex:1; min-width:0; }
.lp-s-bb-card-name{
  font-size:12.5px;
  font-weight:600;
  color:var(--lp-white);
  letter-spacing:-.01em;
  margin-bottom:5px;
  white-space:nowrap;
}
.lp-s-bb-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:3px;
}
.lp-s-bb-card-tags span{
  font-size:9.5px;
  color:rgba(255,255,255,.4);
  background:rgba(255,255,255,.05);
  padding:2px 5px;
  border-radius:4px;
}
.lp-s-bb-card-conn{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--lp-green);
  flex-shrink:0;
  animation:bbConnPulse 2.8s ease-in-out infinite;
}
.lp-s-bb-conn-r{
  order:-1;
}
@keyframes bbConnPulse{
  0%,100%{ opacity:.35; transform:scale(1); }
  50%    { opacity:.9;  transform:scale(1.5); box-shadow:0 0 5px color-mix(in srgb, var(--green) 50%, transparent); }
}
/* Right column: mirror layout */
.lp-s-bb-col-out .lp-s-bb-card{
  flex-direction:row-reverse;
}
.lp-s-bb-col-out .lp-s-bb-card-tags{ justify-content:flex-end; }

/* Hub */
.lp-s-bb-hub{
  position:relative;
  width:96px;
  height:96px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lp-s-bb-hub-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:1px solid color-mix(in srgb, var(--green) 18%, transparent);
  animation:bbHubSpin 20s linear infinite;
}
.lp-s-bb-hub-r2{
  inset:-14px;
  border-color:color-mix(in srgb, var(--green) 9%, transparent);
  animation:bbHubCounterSpin 32s linear infinite;
}
@keyframes bbHubSpin     { to{ transform:rotate(360deg); } }
@keyframes bbHubCounterSpin{ to{ transform:rotate(-360deg); } }
.lp-s-bb-hub-core{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:68px;
  height:68px;
  border-radius:50%;
  background:rgba(8,8,8,.95);
  border:1px solid color-mix(in srgb, var(--green) 22%, transparent);
  box-shadow:0 0 28px color-mix(in srgb, var(--green) 10%, transparent);
}
.lp-s-bb-hub-core img{ width:24px; height:24px; object-fit:contain; }
.lp-s-bb-hub-lbl{
  font-size:7.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--lp-green);
}
.lp-s-bb-tagline{
  font-size:14px;
  line-height:1.65;
  color:rgba(255,255,255,.42);
  text-align:center;
  max-width:520px;
}

@media(max-width:760px){
  .lp-s-bb-diagram{ flex-direction:column; gap:16px; }
  .lp-s-bb-col-out .lp-s-bb-card{ flex-direction:row; }
  .lp-s-bb-col-out .lp-s-bb-card-tags{ justify-content:flex-start; }
  .lp-s-bb-conn-r{ order:0; }
}

/* ══════════════════════════════════════════════════════
   SCENE 2 — WHAT ORIVEN CAN DO (FEATURES)
   ══════════════════════════════════════════════════════ */
.lp-s-feat{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:36px;
  padding:52px 40px;
  max-width:960px;
  margin:0 auto;
  width:100%;
  height:100%;
  box-sizing:border-box;
}
.lp-s-feat-hdr{ text-align:center; }
.lp-s-feat-eyebrow{
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--lp-green);
  margin-bottom:12px;
}
.lp-s-feat-title{
  font-size:clamp(26px,3.5vw,42px);
  font-weight:700;
  line-height:1.18;
  letter-spacing:-.03em;
  color:var(--lp-white);
}
.lp-s-feat-title em{
  font-style:italic;
  font-family:'Instrument Serif',serif;
  color:var(--lp-green);
}
.lp-s-feat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.lp-s-feat-card{
  padding:18px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:border-color .22s, background .22s;
}
.lp-s-feat-card:hover{
  border-color:color-mix(in srgb, var(--green) 18%, transparent);
  background:color-mix(in srgb, var(--green) 3%, transparent);
}
.lp-s-feat-card-top{
  display:flex;
  align-items:center;
  gap:11px;
}
.lp-s-feat-card-icon{
  width:34px;
  height:34px;
  border-radius:8px;
  background:color-mix(in srgb, var(--green) 7%, transparent);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:var(--lp-green);
}
.lp-s-feat-card-icon svg{ width:17px; height:17px; }
.lp-s-feat-card-name{
  font-size:13.5px;
  font-weight:600;
  color:var(--lp-white);
  letter-spacing:-.01em;
}
.lp-s-feat-card-verb{
  font-size:10px;
  font-weight:600;
  color:var(--lp-green);
  letter-spacing:.07em;
  text-transform:uppercase;
  margin-top:1px;
}
.lp-s-feat-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.lp-s-feat-card-tags span{
  font-size:10.5px;
  color:rgba(255,255,255,.48);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.07);
  padding:3px 7px;
  border-radius:5px;
}
.lp-s-feat-card-accent{
  border-color:color-mix(in srgb, var(--green) 14%, transparent);
  background:color-mix(in srgb, var(--green) 3%, transparent);
}
.lp-s-feat-card-accent .lp-s-feat-card-tags span{
  border-color:color-mix(in srgb, var(--green) 16%, transparent);
  color:color-mix(in srgb, var(--green) 75%, transparent);
  background:color-mix(in srgb, var(--green) 5%, transparent);
}

@media(max-width:720px){
  .lp-s-feat-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:460px){
  .lp-s-feat-grid{ grid-template-columns:1fr; }
  .lp-s-feat{ padding:36px 20px; }
}

/* ══════════════════════════════════════════════════════
   SCENE 3 — DAILY BRAND BRIEF
   ══════════════════════════════════════════════════════ */
.lp-s-brief{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:60px;
  padding:52px 60px;
  max-width:980px;
  margin:0 auto;
  width:100%;
  height:100%;
  box-sizing:border-box;
}
.lp-s-brief-left{
  flex:1;
  min-width:0;
}
.lp-s-brief-eyebrow{
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--lp-green);
  margin-bottom:16px;
}
.lp-s-brief-title{
  font-size:clamp(26px,3.5vw,42px);
  font-weight:700;
  line-height:1.16;
  letter-spacing:-.03em;
  color:var(--lp-white);
  margin-bottom:16px;
}
.lp-s-brief-title em{
  font-style:italic;
  font-family:'Instrument Serif',serif;
  color:var(--lp-green);
}
.lp-s-brief-sub{
  font-size:14.5px;
  line-height:1.72;
  color:rgba(255,255,255,.52);
  margin-bottom:26px;
}
.lp-s-brief-pillars{
  display:flex;
  flex-direction:column;
  gap:11px;
}
.lp-s-brief-pillar{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:13.5px;
  color:rgba(255,255,255,.68);
}
.lp-s-brief-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--lp-green);
  flex-shrink:0;
  animation:briefDotPulse 3.2s ease-in-out infinite;
}
.lp-s-brief-pillar:nth-child(2) .lp-s-brief-dot{ animation-delay:.9s; }
.lp-s-brief-pillar:nth-child(3) .lp-s-brief-dot{ animation-delay:1.8s; }
@keyframes briefDotPulse{
  0%,100%{ opacity:.45; transform:scale(1); }
  50%    { opacity:1;   transform:scale(1.5); box-shadow:0 0 6px color-mix(in srgb, var(--green) 50%, transparent); }
}

/* Brief card mockup */
.lp-s-brief-right{
  flex:0 0 310px;
}
.lp-brief-card{
  background:rgba(10,10,10,.96);
  border:1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius:18px;
  padding:22px;
  box-shadow:0 0 60px color-mix(in srgb, var(--green) 7%, transparent), 0 24px 64px rgba(0,0,0,.55);
}
.lp-brief-card-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.lp-brief-card-date{
  font-size:10.5px;
  color:rgba(255,255,255,.32);
  letter-spacing:.04em;
}
.lp-brief-live{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:10.5px;
  font-weight:600;
  color:var(--lp-green);
  letter-spacing:.05em;
}
.lp-brief-live-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--lp-green);
  animation:briefLivePulse 1.4s ease-in-out infinite;
}
@keyframes briefLivePulse{
  0%,100%{ opacity:1; }
  50%    { opacity:.25; }
}
.lp-brief-greeting{
  font-size:20px;
  font-weight:700;
  color:var(--lp-white);
  letter-spacing:-.02em;
  margin-bottom:3px;
}
.lp-brief-since{
  font-size:11.5px;
  color:rgba(255,255,255,.38);
  margin-bottom:12px;
}
.lp-brief-updates{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:16px;
}
.lp-brief-upd{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 11px;
  border-radius:8px;
  font-size:12.5px;
  font-weight:500;
}
.lp-brief-upd-icon{
  width:22px;
  height:22px;
  border-radius:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.lp-brief-upd-icon svg{ width:12px; height:12px; }

.lp-brief-upd-comp{ background:rgba(251,191,36,.07); color:rgba(251,191,36,.88); }
.lp-brief-upd-comp .lp-brief-upd-icon{ background:rgba(251,191,36,.13); color:rgb(251,191,36); }

.lp-brief-upd-opp{ background:color-mix(in srgb, var(--green) 6%, transparent); color:color-mix(in srgb, var(--green) 88%, transparent); }
.lp-brief-upd-opp .lp-brief-upd-icon{ background:color-mix(in srgb, var(--green) 10%, transparent); color:var(--lp-green); }

.lp-brief-upd-warn{ background:rgba(249,115,22,.07); color:rgba(249,115,22,.88); }
.lp-brief-upd-warn .lp-brief-upd-icon{ background:rgba(249,115,22,.13); color:rgb(249,115,22); }

.lp-brief-upd-info{ background:rgba(99,179,237,.07); color:rgba(99,179,237,.88); }
.lp-brief-upd-info .lp-brief-upd-icon{ background:rgba(99,179,237,.13); color:rgb(99,179,237); }

.lp-brief-divider{ height:1px; background:rgba(255,255,255,.07); margin-bottom:12px; }
.lp-brief-rec-hd{
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.38);
  margin-bottom:9px;
}
.lp-brief-recs{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.lp-brief-rec{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12.5px;
  color:rgba(255,255,255,.68);
}
.lp-brief-rec-check{
  width:15px;
  height:15px;
  border-radius:50%;
  border:1.5px solid color-mix(in srgb, var(--green) 32%, transparent);
  flex-shrink:0;
}

@media(max-width:800px){
  .lp-s-brief{ flex-direction:column; gap:36px; padding:40px 24px; }
  .lp-s-brief-right{ flex:none; width:100%; max-width:340px; align-self:center; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCENE 1 — HOW IT WORKS (3-step layout)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.lp-s-how{display:flex;flex-direction:column;justify-content:center;padding:52px 40px;width:100%;max-width:1060px;box-sizing:border-box;height:100%;}
.lp-s-how-hdr{text-align:center;margin-bottom:44px;}
.lp-s-how-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lp-green);margin-bottom:12px;}
.lp-s-how-title{font-size:clamp(26px,3.5vw,42px);font-weight:700;line-height:1.18;letter-spacing:-.03em;color:var(--lp-white);}
.lp-s-how-title em{font-style:italic;font-family:'Instrument Serif',serif;color:var(--lp-green);}
.lp-s-how-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.lp-s-how-step{background:var(--lp-bg3);border:1px solid var(--lp-border);border-radius:18px;padding:24px 20px;display:flex;flex-direction:column;gap:0;}
.lp-s-how-step-num{font-family:'Instrument Serif',serif;font-size:48px;color:var(--lp-green);opacity:.28;line-height:1;margin-bottom:12px;}
.lp-s-how-step h3{font-size:16px;font-weight:700;color:var(--lp-white);letter-spacing:-.02em;margin-bottom:7px;}
.lp-s-how-step p{font-size:12.5px;color:var(--lp-muted);line-height:1.6;margin-bottom:16px;}
.lp-s-how-step-mock{border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.015);border-radius:10px;padding:12px 14px;flex:1;}
.lp-how-form-field{padding:7px 0;border-bottom:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;gap:3px;}
.lp-how-form-field:last-child{border-bottom:none;padding-bottom:0;}
.lp-how-form-lbl{font-size:9.5px;color:rgba(255,255,255,.28);letter-spacing:.08em;text-transform:uppercase;}
.lp-how-form-val{font-size:12px;color:var(--lp-white);}
.lp-how-mods{display:flex;flex-wrap:wrap;gap:6px;}
.lp-how-mod{font-size:11px;padding:4px 9px;border-radius:6px;border:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.3);}
.lp-how-mod-sel{border-color:color-mix(in srgb, var(--green) 30%, transparent);background:color-mix(in srgb, var(--green) 7%, transparent);color:var(--lp-green);}
.lp-how-out-row{display:flex;align-items:center;gap:9px;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px;}
.lp-how-out-row:last-child{border-bottom:none;padding-bottom:0;}
.lp-how-out-done{color:rgba(255,255,255,.82);}
.lp-how-out-done .lp-how-out-ico{color:var(--lp-green);font-size:10px;width:14px;text-align:center;flex-shrink:0;}
.lp-how-out-loading{color:rgba(255,255,255,.35);}
.lp-how-out-loader{width:11px;height:11px;border:1.5px solid color-mix(in srgb, var(--green) 20%, transparent);border-top-color:var(--lp-green);border-radius:50%;animation:howSpin .9s linear infinite;flex-shrink:0;}
@keyframes howSpin{to{transform:rotate(360deg);}}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCENE 2 — CAMPAIGN MODULES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.lp-s-mod{display:flex;flex-direction:column;justify-content:center;padding:44px 40px;width:100%;max-width:1100px;box-sizing:border-box;height:100%;}
.lp-s-mod-hdr{text-align:center;margin-bottom:36px;}
.lp-s-mod-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lp-green);margin-bottom:12px;}
.lp-s-mod-title{font-size:clamp(26px,3.5vw,42px);font-weight:700;line-height:1.18;letter-spacing:-.03em;color:var(--lp-white);}
.lp-s-mod-title em{font-style:italic;font-family:'Instrument Serif',serif;color:var(--lp-green);}
.lp-s-mod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.lp-s-mod-card{background:var(--lp-bg3);border:1px solid var(--lp-border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;transition:border-color .18s;}
.lp-s-mod-card:hover{border-color:color-mix(in srgb, var(--green) 25%, transparent);}
.lp-s-mod-card-top{display:flex;align-items:center;gap:10px;}
.lp-s-mod-card-ico{width:32px;height:32px;border-radius:8px;background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 14%, transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.lp-s-mod-card-ico svg{width:15px;height:15px;stroke:var(--lp-green);fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5;}
.lp-s-mod-card-name{font-size:13px;font-weight:700;color:var(--lp-white);letter-spacing:-.01em;}
.lp-s-mod-card-type{font-size:10px;color:var(--lp-muted);padding:2px 6px;border-radius:4px;border:1px solid var(--lp-border);display:inline-block;width:fit-content;}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCENE 3 — BRAND PROFILE (split + flow diagram)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.lp-s-bp{display:grid;grid-template-columns:1fr 1fr;gap:72px;padding:0 64px;width:100%;max-width:1100px;align-items:center;box-sizing:border-box;}
.lp-s-bp-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lp-green);margin-bottom:14px;}
.lp-s-bp-title{font-size:clamp(26px,3.2vw,40px);font-weight:700;color:var(--lp-white);line-height:1.18;letter-spacing:-.03em;margin-bottom:14px;}
.lp-s-bp-title em{font-style:italic;font-family:'Instrument Serif',serif;color:var(--lp-green);}
.lp-s-bp-sub{font-size:14px;color:var(--lp-muted);line-height:1.65;margin-bottom:24px;}
.lp-s-bp-pillars{display:flex;flex-direction:column;gap:11px;}
.lp-s-bp-pillar{display:flex;align-items:center;gap:10px;font-size:13px;color:rgba(255,255,255,.65);}
.lp-s-bp-dot{width:5px;height:5px;border-radius:50%;background:var(--lp-green);flex-shrink:0;}
.lp-bp-flow{display:flex;flex-direction:column;align-items:center;gap:0;width:100%;}
.lp-bp-flow-item{width:100%;background:var(--lp-bg3);border:1px solid var(--lp-border);border-radius:11px;padding:11px 16px;display:flex;align-items:center;gap:12px;}
.lp-bp-flow-ico{width:26px;height:26px;border-radius:7px;background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 14%, transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.lp-bp-flow-ico svg{width:13px;height:13px;stroke:var(--lp-green);fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5;}
.lp-bp-flow-name{font-size:13px;font-weight:600;color:var(--lp-white);}
.lp-bp-flow-sub{font-size:11px;color:var(--lp-muted);margin-left:auto;white-space:nowrap;}
.lp-bp-flow-top{border-color:color-mix(in srgb, var(--green) 40%, transparent);box-shadow:0 0 0 1px color-mix(in srgb, var(--green) 10%, transparent);}
.lp-bp-flow-top .lp-bp-flow-ico{background:color-mix(in srgb, var(--green) 15%, transparent);}
.lp-bp-flow-arrow{width:1px;height:16px;margin:3px auto;background:linear-gradient(to bottom,color-mix(in srgb, var(--green) 50%, transparent),color-mix(in srgb, var(--green) 12%, transparent));}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCENE 4 — CAMPAIGN TEMPLATES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.lp-s-tmpl{display:flex;flex-direction:column;justify-content:center;padding:44px 40px;width:100%;max-width:1060px;box-sizing:border-box;height:100%;}
.lp-s-tmpl-hdr{text-align:center;margin-bottom:36px;}
.lp-s-tmpl-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lp-green);margin-bottom:12px;}
.lp-s-tmpl-title{font-size:clamp(26px,3.5vw,42px);font-weight:700;line-height:1.18;letter-spacing:-.03em;color:var(--lp-white);}
.lp-s-tmpl-title em{font-style:italic;font-family:'Instrument Serif',serif;color:var(--lp-green);}
.lp-s-tmpl-sub{font-size:13.5px;color:var(--lp-muted);margin-top:10px;}
.lp-tmpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.lp-tmpl-card{background:var(--lp-bg3);border:1px solid var(--lp-border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:border-color .18s,transform .16s;}
.lp-tmpl-card:hover{border-color:color-mix(in srgb, var(--green) 30%, transparent);transform:translateY(-2px);}
.lp-tmpl-card-ico{width:34px;height:34px;border-radius:9px;background:color-mix(in srgb, var(--green) 8%, transparent);border:1px solid color-mix(in srgb, var(--green) 14%, transparent);display:flex;align-items:center;justify-content:center;}
.lp-tmpl-card-ico svg{width:17px;height:17px;stroke:var(--lp-green);fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.4;}
.lp-tmpl-card-name{font-size:14px;font-weight:700;color:var(--lp-white);letter-spacing:-.01em;}
.lp-tmpl-card-tags{display:flex;gap:5px;flex-wrap:wrap;}
.lp-tmpl-card-tag{font-size:10px;padding:2px 7px;border-radius:4px;border:1px solid var(--lp-border);color:var(--lp-muted);}

@media(max-width:900px){
  .lp-s-how-steps{grid-template-columns:1fr;}
  .lp-s-mod-grid{grid-template-columns:repeat(2,1fr);}
  .lp-s-bp{grid-template-columns:1fr;gap:36px;padding:0 28px;}
  .lp-tmpl-grid{grid-template-columns:repeat(2,1fr);}
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAMPAIGN HUB
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.camp-hub {
  padding: 36px 40px;
  max-width: 1120px;
  width: 100%;
  box-sizing: border-box;
}

.camp-hub-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.camp-hub-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal, #18181A);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0 0 5px;
}

.dark-mode .camp-hub-title { color: #f0f0f0; }

.camp-hub-sub {
  font-size: 13px;
  color: var(--muted, #888);
  margin: 0;
}

/* New Campaign Button — base color/padding/radius now set once, below,
   by the CAMPAIGNS section's .camp-new-btn rule (it applies !important
   and unconditionally wins over any rule here, so a second, different-
   looking definition at this spot was dead CSS masking the real one). */
.camp-new-btn svg { width: 11px; height: 11px; }

.camp-new-btn-lg {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 11px;
}

/* Section headers */
.camp-hub-sect-hd {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #888);
  margin-bottom: 14px;
}

/* Recent cards row */
.camp-hub-recent-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.camp-recent-card {
  background: var(--bg2, #F6F3EE);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .16s, transform .14s;
}
.camp-recent-card:hover { border-color: var(--gm, #1A4229); transform: translateY(-2px); }
.dark-mode .camp-recent-card { background: #1c1c1e; border-color: rgba(255,255,255,.08); }
.dark-mode .camp-recent-card:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }

.camp-recent-name { font-size: 14px; font-weight: 700; color: var(--charcoal, #18181A); margin-bottom: 4px; }
.dark-mode .camp-recent-name { color: #f0f0f0; }
.camp-recent-goal { font-size: 12px; color: var(--muted,#888); margin-bottom: 10px; }
.camp-recent-prog { font-size: 11px; color: var(--gm,#1A4229); font-weight: 600; }
.dark-mode .camp-recent-prog { color: var(--green); }

/* Campaign card grid */
.camp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.camp-card {
  /* Every .camp-card border declaration in this file (this rule, the
     winning !important light rule ~19810, the winning !important dark rule
     ~34334) is 1px — confirmed via computed-style diagnostic before writing
     this, not assumed. Named once here so the thumb bleed below is
     literally tied to the real value instead of a coincidentally-matching
     magic number (the exact failure mode of the previous fix). */
  --cc3-bw: 1px;
  background: var(--bg2, #F6F3EE);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 16px;
  padding: 20px 22px 18px;
  cursor: pointer;
  transition: border-color .16s, transform .14s, box-shadow .14s;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.camp-card:hover { border-color: var(--gm, #1A4229); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.dark-mode .camp-card { background: #1c1c1e; border-color: rgba(255,255,255,.08); }
.dark-mode .camp-card:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
/* Real generated creative thumbnail — only present when the campaign
   package actually has one (see _renderCampCard).

   Two separate bugs fixed here:

   1. padding:0 on thumb cards only actually WON in light mode. In dark
      mode, body.dark-mode .camp-card { padding:18px !important } (specificity
      0-2-1, the "body" element adds a point) beat
      .camp-card.camp-card-thumb { padding:0 !important } (specificity 0-2-0)
      — confirmed via computed-style diagnostic showing a real 19px inset
      (18px padding + 1px border) in dark mode specifically, even though
      light mode measured a clean 0px. Fixed by adding a dark-mode-scoped
      override with matching specificity below.

   2. Even at padding:0, the image still sat 1px inside the card's own
      border (image reaches the padding edge, which is the border's INNER
      edge, not the card's true outer edge) — confirmably intentional
      geometry, not a stray gap, but the brief now explicitly wants the
      image to bleed flush to the card's true outer edge and paint over the
      border on the top/left/right sides where they overlap ("de card zelf
      mag een border behouden" — the border stays declared, just visually
      covered by the image where they coincide). Standard technique: the
      image wrapper gets a negative margin + matching width increase equal
      to the border width (--cc3-bw above), pushing it out to the border's
      OUTER edge; .camp-card's own overflow:hidden clips it there (children
      painting over a parent's own border, then getting clipped at the
      border-box edge, is standard CSS painting/clipping order — the
      well-established "full-bleed card image despite a border" pattern).
      Bottom edge is untouched (0 bleed) — that boundary is internal to the
      card, not bordered, so there's nothing to bleed past. */
.camp-card.camp-card-thumb { padding: 0 !important; }
body.dark-mode .camp-card.camp-card-thumb { padding: 0 !important; }
.cc3-thumb {
  display: block;
  width: calc(100% + 2 * var(--cc3-bw, 1px));
  margin: calc(-1 * var(--cc3-bw, 1px)) calc(-1 * var(--cc3-bw, 1px)) 0;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.04);
  overflow: hidden;
}
.dark-mode .cc3-thumb { background: rgba(255,255,255,.04); }
.cc3-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc3-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 14px 20px 20px; }

/* V3 campaign card sub-elements */
.cc3-top { margin-bottom: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Campaign Goal badge — same pill treatment as the status badges it sits
   next to, one muted accent colour per goal. */
.cc3-goal-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.cc3-goal-sales     { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-text); }
.cc3-goal-leads     { background: rgba(167,139,250,.12); color: #7c5cd6; }
.cc3-goal-traffic   { background: rgba(99,179,237,.12);  color: #2b7eb8; }
.cc3-goal-awareness { background: rgba(251,146,60,.12);  color: #c2661a; }
.cc3-name { font-size: 16px; font-weight: 700; color: var(--charcoal, #18181A); letter-spacing: -.02em; line-height: 1.3; margin-bottom: 10px; }
.dark-mode .cc3-name { color: #f0f0f0; }
.cc3-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cc3-plat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted,#888); }
.cc3-plat-chip span { font-size: 12px; }
.cc3-meta-dot { color: var(--muted,#aaa); font-size: 11px; }
.cc3-date { font-size: 12px; color: var(--muted,#888); white-space: nowrap; }
.cc3-creative { font-size: 11px; font-weight: 600; color: var(--muted,#aaa); letter-spacing: .1px; }
.dark-mode .cc3-plat-chip,.dark-mode .cc3-date { color: rgba(255,255,255,.4); }
.dark-mode .cc3-meta-dot,.dark-mode .cc3-creative { color: rgba(255,255,255,.25); }

.cc3-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border,rgba(0,0,0,.07)); flex-wrap: wrap; }
.dark-mode .cc3-actions { border-top-color: rgba(255,255,255,.06); }

.cc3-edit-btn { flex: 1; min-width: 100px; text-align: center; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border,rgba(0,0,0,.1)); background: transparent; color: var(--charcoal,#18181A); cursor: pointer; transition: background .12s, border-color .12s; white-space: nowrap; }
.cc3-edit-btn:hover { background: var(--border,rgba(0,0,0,.06)); border-color: rgba(0,0,0,.18); }
.dark-mode .cc3-edit-btn { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
.dark-mode .cc3-edit-btn:hover { background: rgba(255,255,255,.06); color: #fff; }

.cc3-adm-btn { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); color: var(--green-text); cursor: pointer; transition: background .12s; white-space: nowrap; }
.cc3-adm-btn:hover { background: color-mix(in srgb, var(--green) 15%, transparent); }
.dark-mode .cc3-adm-btn { color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.cc3-adm-btn-in { border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); color: #166534; }
.cc3-adm-btn-in:hover { background: rgba(74,222,128,.15); }
.dark-mode .cc3-adm-btn-in { color: #4ade80; border-color: rgba(74,222,128,.25); }

.cc3-del-btn { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border,rgba(0,0,0,.08)); background: transparent; color: var(--muted,#aaa); cursor: pointer; transition: color .12s, border-color .12s, background .12s; display: flex; align-items: center; justify-content: center; }
.cc3-del-btn:hover { color: #dc2626; border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.06); }
.dark-mode .cc3-del-btn { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.25); }
.dark-mode .cc3-del-btn:hover { color: #f87171; border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }

/* legacy aliases — keep for backward compat */
.camp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.camp-card-name { font-size: 15px; font-weight: 700; color: var(--charcoal, #18181A); letter-spacing: -.01em; }
.dark-mode .camp-card-name { color: #f0f0f0; }
.camp-card-date { font-size: 11px; color: var(--muted,#888); white-space: nowrap; padding-top: 2px; }
.camp-card-goal { font-size: 12.5px; color: var(--muted,#888); line-height: 1.5; }

.camp-card-mods { display: flex; flex-wrap: wrap; gap: 5px; }
.camp-card-mod {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg,#fff);
  border: 1px solid var(--border,rgba(0,0,0,.08));
  color: var(--muted,#888);
}
.dark-mode .camp-card-mod { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.camp-card-mod-done {
  background: rgba(26,66,41,.08);
  border-color: rgba(26,66,41,.2);
  color: var(--gm, #1A4229);
  font-weight: 600;
}
.dark-mode .camp-card-mod-done { background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }

.camp-card-prog-wrap { margin-top: 4px; }
.camp-card-prog-hd { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted,#888); margin-bottom: 5px; }
.camp-card-prog-track { height: 3px; background: var(--border,rgba(0,0,0,.08)); border-radius: 2px; overflow: hidden; }
.camp-card-prog-fill { height: 100%; background: var(--gm,#1A4229); border-radius: 2px; transition: width .6s ease; }
.dark-mode .camp-card-prog-fill { background: var(--green); }

/* Empty state */
.camp-hub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
  max-width: 520px;
  margin: 0 auto;
}

.camp-hub-empty-ico {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg2, #F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--muted,#888);
}
.dark-mode .camp-hub-empty-ico { background: #1c1c1e; border-color: rgba(255,255,255,.08); }
.camp-hub-empty-ico svg { width: 36px; height: 36px; }

.camp-hub-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal,#18181A);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.dark-mode .camp-hub-empty-title { color: #f0f0f0; }

.camp-hub-empty-sub {
  font-size: 14px;
  color: var(--muted,#888);
  line-height: 1.65;
  margin: 0 0 28px;
}

.camp-hub-tpl-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.camp-hub-tpl-label { font-size: 12px; color: var(--muted,#888); }

.camp-tpl-pill {
  background: none;
  border: 1px solid var(--border,rgba(0,0,0,.12));
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  color: var(--charcoal,#18181A);
  cursor: pointer;
  transition: border-color .14s, background .14s;
  font-family: inherit;
}
.camp-tpl-pill:hover { border-color: var(--gm,#1A4229); background: rgba(26,66,41,.04); }
.dark-mode .camp-tpl-pill { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
.dark-mode .camp-tpl-pill:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 4%, transparent); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NEW CAMPAIGN MODAL
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ncc-modal {
  width: 580px;
  max-width: 96vw;
  padding: 32px 36px 28px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  /* Always dark — matches the campaign type overlay */
  background: #141416 !important;
  color: #F0F0F0;
  border: 1px solid rgba(255,255,255,.08);
  /* Override CSS variables for all children so form fields, labels,
     borders, etc. render correctly regardless of body theme */
  --bg: #0A0A0A;
  --bg2: #1E1E21;
  --bg3: #252528;
  --surface: #1F1F21;
  --charcoal: rgba(255,255,255,.92);
  --c2: rgba(255,255,255,.75);
  --muted: rgba(255,255,255,.45);
  --m2: rgba(255,255,255,.3);
  --border: rgba(255,255,255,.08);
  --b2: rgba(255,255,255,.12);
  --gm: var(--green);
}

.ncc-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted,#888);
  transition: background .14s;
}
.ncc-close:hover { background: var(--border,rgba(0,0,0,.08)); }
.dark-mode .ncc-close { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }

/* Step bar */
.ncc-stepbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.ncc-stepdot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg2,#F6F3EE);
  border: 1.5px solid var(--border,rgba(0,0,0,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted,#888);
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.ncc-stepdot-on {
  background: var(--gm,#1A4229);
  border-color: var(--gm,#1A4229);
  color: #fff;
}
.ncc-stepdot-done {
  background: rgba(26,66,41,.1);
  border-color: rgba(26,66,41,.3);
  color: var(--gm,#1A4229);
}
.dark-mode .ncc-stepdot-on { background: var(--green); border-color: var(--green); color: #000; }
.dark-mode .ncc-stepdot-done { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green); }

.ncc-stepline {
  flex: 1;
  height: 1.5px;
  background: var(--border,rgba(0,0,0,.08));
}

.ncc-hd {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal,#18181A);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.dark-mode .ncc-hd { color: #f0f0f0; }

.ncc-sub {
  font-size: 13px;
  color: var(--muted,#888);
  margin: -12px 0 18px;
}

/* Step 1 */
.ncc-start-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.ncc-start-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border,rgba(0,0,0,.08));
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.ncc-start-opt:hover { border-color: var(--gm,#1A4229); }
.ncc-start-sel { border-color: var(--gm,#1A4229); background: rgba(26,66,41,.04); }
.dark-mode .ncc-start-opt:hover { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.dark-mode .ncc-start-sel { border-color: color-mix(in srgb, var(--green) 50%, transparent); background: color-mix(in srgb, var(--green) 4%, transparent); }

.ncc-start-opt-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg2,#F6F3EE);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gm,#1A4229);
}
.dark-mode .ncc-start-opt-ico { background: rgba(255,255,255,.06); color: var(--green); }
.ncc-start-opt-ico svg { width: 16px; height: 16px; }

.ncc-start-opt-name { font-size: 14px; font-weight: 600; color: var(--charcoal,#18181A); margin-bottom: 3px; }
.dark-mode .ncc-start-opt-name { color: #f0f0f0; }
.ncc-start-opt-sub { font-size: 12px; color: var(--muted,#888); }

.ncc-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.ncc-tpl-card {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border,rgba(0,0,0,.08));
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--charcoal,#18181A);
  background: var(--bg2,#F6F3EE);
  text-align: center;
  transition: border-color .14s, background .14s;
}
.ncc-tpl-card:hover { border-color: var(--gm,#1A4229); }
.ncc-tpl-sel { border-color: var(--gm,#1A4229); background: rgba(26,66,41,.06); font-weight: 700; }
.dark-mode .ncc-tpl-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.dark-mode .ncc-tpl-card:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.dark-mode .ncc-tpl-sel { border-color: color-mix(in srgb, var(--green) 50%, transparent); }

/* Step 2 */
.ncc-desc { min-height: 110px; resize: vertical; }

/* Step 3 */
.ncc-mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ncc-mod-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 11px;
  border: 1.5px solid var(--border,rgba(0,0,0,.08));
  cursor: pointer;
  transition: border-color .14s, background .14s;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted,#888);
  position: relative;
}
.ncc-mod-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.ncc-mod-item:hover { border-color: var(--gm,#1A4229); color: var(--charcoal,#18181A); }
.ncc-mod-checked { border-color: var(--gm,#1A4229); background: rgba(26,66,41,.04); color: var(--gm,#1A4229); font-weight: 600; }
.dark-mode .ncc-mod-item { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.dark-mode .ncc-mod-item:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: rgba(255,255,255,.8); }
.dark-mode .ncc-mod-checked { border-color: color-mix(in srgb, var(--green) 50%, transparent); background: color-mix(in srgb, var(--green) 6%, transparent); color: var(--green); }

.ncc-mod-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg2,#F6F3EE);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ncc-mod-checked .ncc-mod-ico { background: rgba(26,66,41,.1); }
.dark-mode .ncc-mod-ico { background: rgba(255,255,255,.06); }
.dark-mode .ncc-mod-checked .ncc-mod-ico { background: color-mix(in srgb, var(--green) 10%, transparent); }
.ncc-mod-ico svg { width: 13px; height: 13px; stroke: var(--muted,#888); }
.ncc-mod-checked .ncc-mod-ico svg { stroke: var(--gm,#1A4229); }
.dark-mode .ncc-mod-checked .ncc-mod-ico svg { stroke: var(--green); }

/* Step 4 Review */
.ncc-review-card {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.08));
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.dark-mode .ncc-review-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.ncc-rv-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border,rgba(0,0,0,.06)); }
.ncc-rv-row:last-child { border-bottom: none; padding-bottom: 0; }
.ncc-rv-lbl { font-size: 11px; font-weight: 600; color: var(--muted,#888); text-transform: uppercase; letter-spacing: .06em; min-width: 72px; padding-top: 1px; }
.ncc-rv-val { font-size: 13px; color: var(--charcoal,#18181A); flex: 1; line-height: 1.5; }
.dark-mode .ncc-rv-val { color: #e0e0e0; }
.ncc-rv-desc { color: var(--muted,#888); font-size: 12px; }
.ncc-rv-mod {
  display: inline-block;
  background: rgba(26,66,41,.06);
  border: 1px solid rgba(26,66,41,.14);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gm,#1A4229);
  margin: 2px 3px 2px 0;
}
.dark-mode .ncc-rv-mod { background: color-mix(in srgb, var(--green) 7%, transparent); border-color: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }

.ncc-gen-btn {
  width: 100%;
  padding: 14px;
  background: var(--gm,#1A4229);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  transition: opacity .15s, transform .12s;
  letter-spacing: -.01em;
}
.ncc-gen-btn:hover { opacity: .88; transform: translateY(-1px); }
.dark-mode .ncc-gen-btn,
.ncc-modal .ncc-gen-btn { background: var(--green); color: #000; }
.ncc-gen-btn svg { width: 15px; height: 15px; }

.ncc-gen-note { font-size: 11.5px; color: var(--muted,#888); text-align: center; margin: 10px 0 0; }

/* Footer nav */
.ncc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border,rgba(0,0,0,.07));
}
.ncc-btn-back, .ncc-btn-next {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .14s, border-color .14s;
}
.ncc-btn-back {
  background: none;
  border: 1px solid var(--border,rgba(0,0,0,.1));
  color: var(--muted,#888);
}
.ncc-btn-back:hover { background: var(--bg2,#F6F3EE); }
.ncc-btn-next {
  background: var(--gm,#1A4229);
  border: 1px solid transparent;
  color: #fff;
}
.ncc-btn-next:hover { opacity: .88; }
.dark-mode .ncc-btn-next,
.ncc-modal .ncc-btn-next { background: var(--green); color: #000; }
.dark-mode .ncc-btn-back,
.ncc-modal .ncc-btn-back { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }
.dark-mode .ncc-btn-back:hover,
.ncc-modal .ncc-btn-back:hover { background: rgba(255,255,255,.05); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAMPAIGN GENERATION OVERLAY
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

#camp-gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.cgo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.cgo-orb {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
}
.cgo-orb-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--green) 30%, transparent);
  animation: cgoRing 2.4s linear infinite;
}
@keyframes cgoRing {
  0%  { transform: rotate(0deg) scale(1);   opacity: .6; }
  50% { transform: rotate(180deg) scale(1.06); opacity: 1; }
  100%{ transform: rotate(360deg) scale(1);   opacity: .6; }
}
.cgo-orb-img {
  position: absolute;
  inset: 10px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.cgo-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.cgo-camp-name {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 32px;
}

.cgo-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  max-height: 240px;
  overflow: hidden;
}

.cgo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.25);
  font-size: 13px;
  transition: color .3s;
}
.cgo-step:last-child { border-bottom: none; }

.cgo-step-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  flex-shrink: 0;
  transition: background .3s, border-color .3s;
}

.cgo-step-active {
  color: rgba(255,255,255,.9);
}
.cgo-step-active .cgo-step-ico {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  animation: cgoPulse .8s ease-in-out infinite alternate;
}
@keyframes cgoPulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 40%, transparent); }
  to   { box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 0%, transparent); }
}

.cgo-step-done {
  color: rgba(255,255,255,.45);
}
.cgo-step-done .cgo-step-ico {
  background: color-mix(in srgb, var(--green) 15%, transparent);
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
}
.cgo-step-done .cgo-step-ico::after {
  content: 'âœ“';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 9px;
  color: var(--green);
}

.cgo-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.cgo-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width .5s ease;
}

.cgo-note {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAMPAIGN WORKSPACE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

#page-campaign-workspace.active {
  display: flex;
  padding: 0;
  height: 100%;
}

.cws {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Left sidebar */
.cws-sb {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border,rgba(0,0,0,.08));
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.dark-mode .cws-sb { border-color: rgba(255,255,255,.07); }

.cws-sb-top {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border,rgba(0,0,0,.06));
}
.dark-mode .cws-sb-top { border-color: rgba(255,255,255,.06); }

.cws-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted,#888);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  margin-bottom: 14px;
  transition: color .14s;
}
.cws-back-btn:hover { color: var(--charcoal,#18181A); }
.dark-mode .cws-back-btn:hover { color: #fff; }
.cws-back-btn svg { width: 9px; height: 9px; }

.cws-camp-info {}
.cws-camp-name { font-size: 14px; font-weight: 700; color: var(--charcoal,#18181A); margin-bottom: 5px; line-height: 1.3; }
.dark-mode .cws-camp-name { color: #f0f0f0; }
.cws-camp-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted,#888); }
.cws-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* Nav items */
.cws-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

.cws-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted,#888);
  cursor: pointer;
  transition: background .12s, color .12s;
  margin-bottom: 1px;
}
.cws-nav-item svg { width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; }
.cws-nav-item:hover { background: var(--bg2,#F6F3EE); color: var(--charcoal,#18181A); }
.dark-mode .cws-nav-item:hover { background: rgba(255,255,255,.05); color: #f0f0f0; }
.cws-nav-active { background: var(--bg2,#F6F3EE); color: var(--charcoal,#18181A); font-weight: 600; }
.dark-mode .cws-nav-active { background: rgba(255,255,255,.07); color: #f0f0f0; }

.cws-nav-done {
  margin-left: auto;
  font-size: 10px;
  color: var(--gm,#1A4229);
  font-weight: 700;
}
.dark-mode .cws-nav-done { color: var(--green); }

/* Sidebar bottom */
.cws-sb-bot {
  padding: 14px 14px 18px;
  border-top: 1px solid var(--border,rgba(0,0,0,.06));
}
.dark-mode .cws-sb-bot { border-color: rgba(255,255,255,.06); }

.cws-progress-wrap { margin-bottom: 12px; }
.cws-progress-hd { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted,#888); margin-bottom: 5px; }
.cws-progress-track { height: 3px; background: var(--border,rgba(0,0,0,.08)); border-radius: 2px; overflow: hidden; }
.cws-progress-fill { height: 100%; background: var(--gm,#1A4229); border-radius: 2px; transition: width .5s ease; }
.dark-mode .cws-progress-fill { background: var(--green); }

.cws-add-mod-btn {
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: 1px dashed var(--border,rgba(0,0,0,.1));
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted,#888);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .14s, color .14s;
}
.cws-add-mod-btn:hover { border-color: var(--gm,#1A4229); color: var(--gm,#1A4229); }
.dark-mode .cws-add-mod-btn:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }

/* Main workspace area */
.cws-main {
  flex: 1;
  overflow-y: auto;
  height: 100%;
}
.cws-main-inner {
  padding: 32px 36px;
  max-width: 820px;
}

/* Module header */
.cws-mod-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border,rgba(0,0,0,.07));
}
.dark-mode .cws-mod-hdr { border-color: rgba(255,255,255,.07); }
.cws-mod-title { font-size: 20px; font-weight: 700; color: var(--charcoal,#18181A); letter-spacing: -.02em; }
.dark-mode .cws-mod-title { color: #f0f0f0; }
.cws-mod-actions { display: flex; gap: 8px; }
.cws-act-btn {
  padding: 7px 13px;
  border-radius: 7px;
  border: 1px solid var(--border,rgba(0,0,0,.1));
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted,#888);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .14s, color .14s, background .14s;
}
.cws-act-btn:hover { border-color: var(--charcoal,#18181A); color: var(--charcoal,#18181A); }
.dark-mode .cws-act-btn:hover { border-color: rgba(255,255,255,.3); color: #fff; }

/* Strategy sections */
.cws-strat-block {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.07));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.dark-mode .cws-strat-block { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cws-strat-ttl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted,#888); margin-bottom: 8px; }
.cws-strat-body { font-size: 14px; color: var(--charcoal,#18181A); line-height: 1.65; }
.dark-mode .cws-strat-body { color: #d0d0d0; }

/* Ad variants */
.cws-ad-card {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.07));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.dark-mode .cws-ad-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cws-ad-variant-lbl { font-size: 11px; font-weight: 700; color: var(--gm,#1A4229); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.dark-mode .cws-ad-variant-lbl { color: var(--green); }
.cws-ad-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border,rgba(0,0,0,.05)); }
.cws-ad-row:last-child { border-bottom: none; padding-bottom: 0; }
.cws-ad-lbl { font-size: 11px; font-weight: 600; color: var(--muted,#888); text-transform: uppercase; letter-spacing: .06em; min-width: 60px; padding-top: 1px; }
.cws-ad-val { font-size: 13.5px; color: var(--charcoal,#18181A); flex: 1; line-height: 1.5; }
.dark-mode .cws-ad-val { color: #d0d0d0; }
.cws-ad-cta { font-weight: 700; color: var(--gm,#1A4229); }
.dark-mode .cws-ad-cta { color: var(--green); }

.cws-script-line { font-size: 13px; color: var(--charcoal,#18181A); padding: 6px 0; border-bottom: 1px solid var(--border,rgba(0,0,0,.05)); line-height: 1.55; }
.cws-script-line:last-child { border-bottom: none; }
.dark-mode .cws-script-line { color: #d0d0d0; }

/* Landing page */
.cws-lp-block {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.07));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.dark-mode .cws-lp-block { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cws-lp-block-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted,#888); margin-bottom: 12px; }
.cws-lp-hl { font-size: 18px; font-weight: 700; color: var(--charcoal,#18181A); margin-bottom: 8px; letter-spacing: -.02em; }
.dark-mode .cws-lp-hl { color: #f0f0f0; }
.cws-lp-sub { font-size: 13.5px; color: var(--muted,#888); margin-bottom: 12px; line-height: 1.5; }
.cws-lp-cta-chip { display: inline-block; background: var(--gm,#1A4229); color: #fff; padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.dark-mode .cws-lp-cta-chip { background: var(--green); color: #000; }
.cws-lp-feat { font-size: 13.5px; color: var(--charcoal,#18181A); padding: 6px 0; border-bottom: 1px solid var(--border,rgba(0,0,0,.05)); }
.cws-lp-feat:last-child { border-bottom: none; }
.dark-mode .cws-lp-feat { color: #d0d0d0; }
.cws-lp-review { font-size: 13px; color: var(--charcoal,#18181A); padding: 7px 0; border-bottom: 1px solid var(--border,rgba(0,0,0,.05)); }
.cws-lp-review:last-child { border-bottom: none; }
.dark-mode .cws-lp-review { color: #d0d0d0; }
.cws-lp-cta-block { border-color: rgba(26,66,41,.15); }
.dark-mode .cws-lp-cta-block { border-color: color-mix(in srgb, var(--green) 15%, transparent); }

/* Emails */
.cws-email-card {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.07));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.dark-mode .cws-email-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cws-email-num { font-size: 10px; font-weight: 700; color: var(--gm,#1A4229); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.dark-mode .cws-email-num { color: var(--green); }
.cws-email-subject { font-size: 14px; color: var(--charcoal,#18181A); font-weight: 600; margin-bottom: 6px; }
.dark-mode .cws-email-subject { color: #f0f0f0; }
.cws-email-preview { font-size: 12.5px; color: var(--muted,#888); margin-bottom: 10px; font-style: italic; }
.cws-email-body { font-size: 13px; color: var(--muted,#888); line-height: 1.6; }

/* Social posts */
.cws-post-card {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.07));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.dark-mode .cws-post-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cws-post-platform { font-size: 10px; font-weight: 700; color: var(--gm,#1A4229); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.dark-mode .cws-post-platform { color: var(--green); }
.cws-post-caption { font-size: 14px; color: var(--charcoal,#18181A); line-height: 1.6; margin-bottom: 10px; }
.dark-mode .cws-post-caption { color: #d0d0d0; }
.cws-post-tags { font-size: 12px; color: var(--muted,#888); }

/* Asset cards (banners, product images, voice overs, brand copy) */
.cws-asset-card {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.07));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.dark-mode .cws-asset-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cws-asset-lbl { font-size: 10px; font-weight: 700; color: var(--muted,#888); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.cws-asset-preview { }
.cws-asset-hl { font-size: 15px; font-weight: 600; color: var(--charcoal,#18181A); margin-bottom: 5px; line-height: 1.4; }
.dark-mode .cws-asset-hl { color: #f0f0f0; }
.cws-asset-sub { font-size: 13px; color: var(--muted,#888); margin-bottom: 8px; }
.cws-asset-cta { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gm,#1A4229); }
.dark-mode .cws-asset-cta { color: var(--green); }

/* Overview */
.cws-overview { }
.cws-ov-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cws-ov-name { font-size: 24px; font-weight: 700; color: var(--charcoal,#18181A); letter-spacing: -.02em; }
.dark-mode .cws-ov-name { color: #f0f0f0; }
.cws-ov-date { font-size: 12px; color: var(--muted,#888); padding-top: 6px; }
.cws-ov-goal { font-size: 14px; color: var(--muted,#888); margin-bottom: 24px; line-height: 1.5; }
.cws-ov-prog { margin-bottom: 28px; }
.cws-ov-prog-hd { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted,#888); margin-bottom: 7px; }
.cws-ov-prog-pct { font-weight: 700; color: var(--charcoal,#18181A); }
.dark-mode .cws-ov-prog-pct { color: #f0f0f0; }
.cws-ov-prog-track { height: 5px; background: var(--border,rgba(0,0,0,.08)); border-radius: 3px; overflow: hidden; }
.cws-ov-prog-fill { height: 100%; background: var(--gm,#1A4229); border-radius: 3px; transition: width .6s ease; }
.dark-mode .cws-ov-prog-fill { background: var(--green); }

.cws-ov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.cws-ov-card {
  background: var(--bg2,#F6F3EE);
  border: 1px solid var(--border,rgba(0,0,0,.08));
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .14s, transform .12s;
}
.cws-ov-card:hover { border-color: var(--gm,#1A4229); transform: translateY(-1px); }
.dark-mode .cws-ov-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.dark-mode .cws-ov-card:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.cws-ov-done { border-color: rgba(26,66,41,.2); }
.dark-mode .cws-ov-done { border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.cws-ov-card-ico { color: var(--muted,#888); }
.cws-ov-card-ico svg { width: 15px; height: 15px; stroke: currentColor; }
.cws-ov-card-name { font-size: 13px; font-weight: 600; color: var(--charcoal,#18181A); }
.dark-mode .cws-ov-card-name { color: #e0e0e0; }
.cws-ov-card-status { font-size: 11px; color: var(--muted,#888); }
.cws-ov-done .cws-ov-card-status { color: var(--gm,#1A4229); font-weight: 600; }
.dark-mode .cws-ov-done .cws-ov-card-status { color: var(--green); }

.cws-ov-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cws-act-sec {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border,rgba(0,0,0,.1));
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted,#888);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .14s, color .14s;
}
.cws-act-sec:hover { border-color: var(--charcoal,#18181A); color: var(--charcoal,#18181A); }
.dark-mode .cws-act-sec { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
.dark-mode .cws-act-sec:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); }

.cws-mod-empty { padding: 60px 0; text-align: center; }
.cws-mod-empty h3 { font-size: 16px; font-weight: 600; color: var(--muted,#888); margin: 0 0 16px; }
.cws-regen-btn {
  padding: 9px 20px;
  border-radius: 9px;
  background: var(--gm,#1A4229);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.dark-mode .cws-regen-btn { background: var(--green); color: #000; }

.cws-pre { font-size: 11px; overflow-x: auto; color: var(--muted,#888); white-space: pre-wrap; }
.cws-mod-body { }

/* Responsive */
@media(max-width:900px){
  .camp-hub { padding: 24px 20px; }
  .camp-hub-recent-row,
  .camp-card-grid { grid-template-columns: 1fr 1fr; }
  .cws-ov-grid { grid-template-columns: repeat(2,1fr); }
  .ncc-mod-grid { grid-template-columns: repeat(2,1fr); }
  .cws-sb { width: 200px; }
  .cws-main-inner { padding: 24px 20px; }
}
@media(max-width:640px){
  .camp-hub-recent-row,
  .camp-card-grid { grid-template-columns: 1fr; }
  .cws { flex-direction: column; }
  .cws-sb { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border,rgba(0,0,0,.08)); }
  .ncc-tpl-grid { grid-template-columns: repeat(2,1fr); }
  .cws-ov-grid { grid-template-columns: 1fr; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ORIVEN 3.0 — DESIGN SYSTEM, ANIMATIONS & MOBILE
   Part 3/4
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Ambient canvas â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#appAmbient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* â”€â”€ Page transitions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page.active {
  animation: pageIn .22s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Global micro-interactions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Button press */
button:active:not(:disabled) {
  transform: scale(.97);
  transition: transform .08s ease;
}

/* Input focus glow */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  /* Premium Motion System — was a hardcoded dark-green unrelated to the
     actual accent (and to dark mode's own color-mix(in srgb, var(--green) NaN%, transparent) below);
     both now derive from var(--green) so focus rings follow whichever
     Accent Color is active and match between themes. */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
  border-color: color-mix(in srgb, var(--green) 45%, transparent) !important;
  transition: box-shadow var(--orv-t, .16s), border-color var(--orv-t, .16s);
}
.dark-mode input[type="text"]:focus,
.dark-mode input[type="email"]:focus,
.dark-mode input[type="password"]:focus,
.dark-mode input[type="number"]:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
  border-color: color-mix(in srgb, var(--green) 40%, transparent) !important;
}

/* Card hover lift — applied universally to common card classes */
.camp-card,
.camp-recent-card,
.ncc-start-opt,
.cws-ov-card,
.lp-tmpl-card,
.lp-s-mod-card {
  transition: border-color .16s, transform .14s, box-shadow .14s;
  will-change: transform;
}

/* Loading button state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpinO .7s linear infinite;
}
@keyframes btnSpinO { to { transform: rotate(360deg); } }

/* â”€â”€ REDESIGNED CAMPAIGN GENERATION OVERLAY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#camp-gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8,8,10,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  transition: opacity .3s;
}
#camp-gen-overlay.cgo-entering {
  opacity: 0;
}

.cgo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  gap: 0;
}

/* Orb */
.cgo-orb {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}
.cgo-orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--green) 25%, transparent);
  animation: cgoRing 2.8s linear infinite;
}
.cgo-orb-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  animation: cgoRing 4s linear infinite reverse;
}
@keyframes cgoRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cgo-orb-img {
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  padding: 7px;
  object-fit: contain;
}

/* Header */
.cgo-header {
  text-align: center;
  margin-bottom: 20px;
}
.cgo-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.cgo-camp-name {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* Progress bar */
.cgo-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}
.cgo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 60%, transparent), var(--green));
  border-radius: 2px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
/* Honest indeterminate state: generation time genuinely varies by
   campaign type and provider latency, so this sweeps continuously
   instead of a fake percentage climbing toward a guessed duration —
   it never claims to know how much work remains. */
.cgo-bar-fill.cgo-bar-indeterminate {
  width: 40% !important;
  transition: none;
  animation: cgoBarSweep 1.4s ease-in-out infinite;
}
@keyframes cgoBarSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .cgo-bar-fill.cgo-bar-indeterminate { animation: none; width: 60% !important; }
}

/* Module list */
.cgo-modules {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.cgo-mod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, opacity .25s;
  opacity: .35;
}

.cgo-mod-status-ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  transition: border-color .3s, background .3s;
}

.cgo-mod-name {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  flex: 1;
}

.cgo-mod-badge {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-weight: 500;
  white-space: nowrap;
}

/* Queued state */
.cgo-mod-queued {
  opacity: .3;
}

/* Generating state */
.cgo-mod-gen {
  opacity: 1;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border-color: color-mix(in srgb, var(--green) 12%, transparent);
}
.cgo-mod-gen .cgo-mod-status-ico {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  animation: cgoModPulse 1s ease-in-out infinite alternate;
}
@keyframes cgoModPulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent); }
  to   { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 0%, transparent); }
}
.cgo-mod-gen .cgo-mod-name { color: rgba(255,255,255,.95); }
.cgo-mod-gen .cgo-mod-badge { color: var(--green); font-weight: 600; }

/* Done state */
.cgo-mod-done {
  opacity: .65;
}
.cgo-mod-done .cgo-mod-status-ico {
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cgo-mod-done .cgo-mod-status-ico::after {
  content: '';
  display: block;
  width: 6px;
  height: 4px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}
.cgo-mod-done .cgo-mod-badge {
  color: color-mix(in srgb, var(--green) 60%, transparent);
  font-weight: 600;
}

/* AI label */
.cgo-ai-label {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-align: center;
  min-height: 18px;
  transition: opacity .3s;
}

/* ── Generation error state ── */
.cgo-error-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  padding: 32px;
  text-align: center;
}
.cgo-error-ico {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}
.cgo-error-title {
  font-size: 17px;
  font-weight: 600;
  color: #F0F0F0;
}
.cgo-error-sub {
  font-size: 13px;
  color: rgba(240,240,240,.5);
  max-width: 280px;
  line-height: 1.45;
}
.cgo-error-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.cgo-retry-btn {
  padding: 9px 20px;
  background: var(--green);
  color: #0D0D0F;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.cgo-retry-btn:hover { opacity: .85; }
.cgo-dismiss-btn {
  padding: 9px 20px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.cgo-dismiss-btn:hover { background: rgba(255,255,255,.13); }

/* â”€â”€ MOBILE BOTTOM NAVIGATION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#mobileBottomNav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: var(--surface, #fff);
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -1px 20px rgba(0,0,0,.06);
}
.dark-mode #mobileBottomNav {
  background: #111113;
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 -1px 20px rgba(0,0,0,.3);
}

.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background .14s;
  color: var(--muted, #888);
  font-family: inherit;
  min-width: 56px;
}
.mbn-item:active { transform: scale(.93); }
.mbn-item svg {
  width: 22px;
  height: 22px;
  transition: stroke .14s;
}
.mbn-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .14s;
}
.mbn-item.mbn-active { color: var(--gm, #1A4229); }
.dark-mode .mbn-item.mbn-active { color: var(--green); }

/* Create button — center floating */
.mbn-create-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: var(--gm, #1A4229);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 14px rgba(26,66,41,.35);
  margin-bottom: 2px;
}
.dark-mode .mbn-create-btn { background: var(--green); color: #000; box-shadow: 0 4px 14px color-mix(in srgb, var(--green) 25%, transparent); }
.mbn-create-btn svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  #mobileBottomNav { display: flex; }

  /* (Bottom-nav clearance on .mc removed: the nav is retired. The
     chat-button clearance lives in orivenWorkspace.css.) */

  /* Hide hamburger button — bottom nav replaces sidebar access */
  #sbToggle { display: none !important; }

  /* Workspace on mobile — stack vertically */
  .cws { flex-direction: column; }
  .cws-sb {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border, rgba(0,0,0,.07));
    flex-shrink: 0;
  }
  .cws-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 10px;
    gap: 4px;
    scrollbar-width: none;
  }
  .cws-nav::-webkit-scrollbar { display: none; }
  .cws-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .cws-sb-bot { display: none; }
  .cws-main-inner { padding: 20px 16px; }

  /* Campaign hub on mobile */
  .camp-hub { padding: 16px 16px 24px; }
  .camp-hub-recent-row { grid-template-columns: 1fr; }
  .camp-card-grid { grid-template-columns: 1fr; }
  .camp-hub-hdr { flex-direction: column; align-items: flex-start; }

  /* New campaign modal on mobile */
  .ncc-modal { padding: 24px 20px 20px; }
  .ncc-tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .ncc-mod-grid { grid-template-columns: repeat(2, 1fr); }

  /* Generation overlay on mobile */
  .cgo-inner { max-width: 100%; }
  .cgo-modules { max-height: 220px; overflow-y: auto; }

  /* Overview grid on mobile */
  .cws-ov-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cws-ov-grid { grid-template-columns: 1fr; }
  .cgo-modules { max-height: 180px; }
}

/* â”€â”€ Typography polish â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Ensure consistent heading hierarchy across app pages */
.camp-hub-title,
.cws-mod-title,
.cws-ov-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  letter-spacing: -.025em;
}

/* Body text comfort */
.cws-strat-body,
.cws-email-body,
.cws-post-caption,
.camp-card-goal {
  line-height: 1.65;
}

/* Muted labels consistent weight */
.camp-card-date,
.cws-nav-done,
.cgo-ai-label,
.cgo-camp-name {
  font-weight: 400;
}

/* â”€â”€ Progress bar animated fill (global) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.camp-card-prog-fill,
.cws-progress-fill,
.cws-ov-prog-fill {
  transition: width .7s cubic-bezier(.4,0,.2,1);
}

/* â”€â”€ Reduced motion overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .page.active { animation: none; }
  .cgo-orb-ring, .cgo-mod-gen .cgo-mod-status-ico,
  .camp-card, .camp-recent-card, .ncc-start-opt,
  .cws-ov-card { animation: none !important; transition: none !important; }
  .camp-card-prog-fill,
  .cws-progress-fill,
  .cws-ov-prog-fill { transition: none; }
}

/* â”€â”€ Scrollbar polish â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cws-main::-webkit-scrollbar,
.cws-nav::-webkit-scrollbar,
.ncc-modal::-webkit-scrollbar {
  width: 4px;
}
.cws-main::-webkit-scrollbar-track,
.ncc-modal::-webkit-scrollbar-track { background: transparent; }
.cws-main::-webkit-scrollbar-thumb,
.ncc-modal::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.12);
  border-radius: 4px;
}
.dark-mode .cws-main::-webkit-scrollbar-thumb,
.dark-mode .ncc-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
}

/* â”€â”€ Focus visible (accessibility) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gm, #1A4229);
  outline-offset: 2px;
  border-radius: 4px;
}
.dark-mode button:focus-visible,
.dark-mode a:focus-visible,
.dark-mode [tabindex]:focus-visible {
  outline-color: var(--green);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ORIVEN 3.0 — PART 4/4 ADDITIONS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Module header title + version meta */
.cws-mod-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cws-mod-meta {
  font-size: 11px;
  color: var(--muted, #888);
  font-weight: 400;
}

/* Danger action button */
.cws-act-danger {
  color: #c0392b;
  border-color: rgba(192, 57, 43, .2);
}
.cws-act-danger:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: rgba(192,57,43,.04);
}
.dark-mode .cws-act-danger {
  color: #ff6b6b;
  border-color: rgba(255,107,107,.2);
}
.dark-mode .cws-act-danger:hover {
  border-color: rgba(255,107,107,.5);
  background: rgba(255,107,107,.04);
}

/* Opportunities nav item hidden from sidebar */
.ni[data-page="opportunities"] { display: none !important; }

/* Target audience field spacing */
#nccAudience {
  margin-bottom: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ORIVEN 3.0 — LAYOUT & UX REFINEMENT
   Landing page: remove snap, convert to normal scroll, center all sections
   App: minimal nav
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Public page body — unlock scroll â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.public-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  display: block !important;
  min-height: 100vh;
}

/* â”€â”€ LP Stage — normal document flow â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#lp-stage {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  background: var(--lp-bg);
}

/* â”€â”€ LP Canvas — fixed behind all sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#lpNetCanvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0;
}

/* â”€â”€ LP Scenes — natural height, full-width sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-scene {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  will-change: auto !important;
  overflow: visible !important;
  padding: 100px 40px !important;
  box-sizing: border-box !important;
}

/* Footer scene — shorter */
.lp-scene-footer {
  min-height: auto !important;
  padding: 80px 40px !important;
}

/* All scenes are always "current" in scroll mode */
.lp-scene.is-current {
  opacity: 1 !important;
}

/* â”€â”€ Progress dots — hidden â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#lp-progress { display: none !important; }

/* â”€â”€ LP Nav — fix position for scroll page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#lpNav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
}

/* â”€â”€ HERO — centered single column â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative;
}

.lp-s-hero-left {
  max-width: 680px !important;
  margin: 0 auto !important;
}

.lp-s-eyebrow {
  display: inline-flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.lp-s-sub {
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.lp-s-actions {
  justify-content: center !important;
}

/* Hero viz moves below text */
.lp-s-hero-right {
  display: block !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 48px auto 0 !important;
  flex: none !important;
}

/* â”€â”€ BRAND PROFILE SECTION — centered column â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-s-bp {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  grid-template-columns: unset !important;
  gap: 40px !important;
  max-width: 720px !important;
  width: 100% !important;
  padding: 0 !important;
}

.lp-s-bp-left {
  max-width: 540px;
}

.lp-s-bp-pillars {
  align-items: center !important;
}

.lp-s-bp-pillar {
  justify-content: center !important;
}

.lp-bp-flow {
  width: 100% !important;
  max-width: 500px !important;
}

/* â”€â”€ HOW IT WORKS — ensure centering â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-s-how {
  max-width: 1000px !important;
  width: 100% !important;
}

/* â”€â”€ MODULES section — ensure centering â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-s-mod {
  max-width: 1060px !important;
  width: 100% !important;
}

/* â”€â”€ REVIEWS — full width â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-s-testi {
  width: 100% !important;
  max-width: 1100px !important;
}

/* â”€â”€ PRICING — full width â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-s-price {
  width: 100% !important;
  max-width: 1100px !important;
}

/* â”€â”€ FAQ — full width â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-s-faq {
  width: 100% !important;
  max-width: 760px !important;
}

/* â”€â”€ Scroll-reveal: elements start invisible unless already animated */
[data-in]:not([data-animated]) {
  opacity: 0;
}

/* â”€â”€ Section separator — subtle breathing room â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-scene + .lp-scene {
  border-top: 1px solid rgba(255,255,255,.04);
}
.lp-scene-footer {
  border-top: 1px solid rgba(255,255,255,.06) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   APP SIDEBAR — 4-item minimal navigation
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Hide all old multi-section sub-items */
.ni[data-page="brain"],
.ni[data-page="competitor"],
.ni[data-page="market"],
.ni[data-page="opportunities"],
.ni[data-page="website"],
.ni[data-page="health"],
.ni[data-page="alerts"],
.ni[data-page="create"] {
  display: none !important;
}

/* Hide all section labels in sidebar */
.sb-section {
  display: none !important;
}

/* Hide dividers between old sections */
.sb-divider {
  display: none !important;
}

/* Brand Profile nav item — single item pointing to studio */
/* It already exists as data-page="studio" and data-page="brain" */
/* We show studio as the Brand Profile single item */
.ni[data-page="studio"] {
  display: flex !important;
}

/* Rename visual label of studio item via CSS content — can't rename text via CSS,
   so we use a targeted approach: the JS will rename it */

/* Show only: campaigns, studio (brand), assistant, settings */
/* campaigns: already always visible — OK */
/* assistant: always visible — OK */
/* settings: always visible in sb-bottom — OK */

/* Give remaining items more breathing room */
.sb-nav .ni {
  margin-bottom: 2px;
}

/* â”€â”€ Mobile: update bottom nav to match new 4-item structure â”€â”€â”€â”€â”€ */
/* Bottom nav already has Campaigns/Brand/Assistant/Settings — already correct */

/* â”€â”€ LP mobile overrides for scroll page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .lp-scene {
    padding: 80px 24px !important;
    min-height: auto !important;
  }
  .lp-scene-footer {
    padding: 60px 24px !important;
  }
  .lp-s-hero-right {
    max-width: 100% !important;
    margin-top: 36px !important;
  }
  .lp-s-bp {
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  .lp-scene {
    padding: 64px 20px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ORIVEN 3.0 — LP REFINEMENT II
   Minimal hero, clean sections, reviews grid, simple footer
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero: headline + buttons only ─────────────────────────────── */
.lp-s-hero-right { display: none !important; }
.lp-s-eyebrow    { display: none !important; }
.lp-s-sub        { display: none !important; }
.lp-s-note       { display: none !important; }

.lp-hero {
  min-height: 82vh !important;
  justify-content: center !important;
  padding: 0 !important;
  width: 100% !important;
}

.lp-s-hero-left {
  max-width: 820px !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.lp-s-h1 {
  font-size: clamp(38px, 6vw, 78px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 44px !important;
  font-weight: 600 !important;
}

.lp-s-actions {
  justify-content: center !important;
  gap: 16px !important;
  margin-bottom: 0 !important;
}

/* ── How It Works: no mock UI, clean step cards ─────────────────── */
.lp-s-how-step {
  padding: 40px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.lp-s-how-step-num {
  font-size: 48px !important;
  line-height: 1 !important;
  margin-bottom: 20px !important;
}

.lp-s-how-step h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 10px !important;
}

.lp-s-how-step p {
  font-size: 14px !important;
  line-height: 1.55 !important;
  opacity: 0.55 !important;
  margin: 0 !important;
  max-width: 220px !important;
}

/* ── Brand Profile: centered, compact ───────────────────────────── */
.lp-s-bp-pillars { display: none !important; }

.lp-s-bp-title {
  font-size: clamp(28px, 4vw, 50px) !important;
  line-height: 1.12 !important;
  margin-bottom: 16px !important;
}

.lp-s-bp-sub {
  max-width: 440px !important;
  margin: 0 auto 40px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  opacity: 0.6 !important;
  text-align: center !important;
}

/* ── Reviews: static 3-column grid ─────────────────────────────── */
.lp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

.lp-reviews-grid .lp-s-tcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lp-reviews-grid .lp-s-tcard-quote {
  flex: 1;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

@media (max-width: 900px) {
  .lp-reviews-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* ── Footer: minimal two-column ─────────────────────────────────── */
.lp-footer-grid {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  gap: 48px !important;
  align-items: start !important;
}

@media (max-width: 640px) {
  .lp-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .lp-s-h1 {
    font-size: clamp(32px, 9vw, 52px) !important;
  }
  .lp-reviews-grid {
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ORIVEN 3.0 — LP ANIMATION & FLOW REFINEMENT
   Connected experience, premium reveals, micro-interactions
   ═══════════════════════════════════════════════════════════════════ */

/* ── Remove hard section breaks — continuous flow ──────────────── */
.lp-scene + .lp-scene           { border-top: none !important; }
.lp-scene-footer                { border-top: 1px solid rgba(255,255,255,.04) !important; }

/* ── Navbar sliding indicator ──────────────────────────────────── */
.lp-nav-links {
  position: relative;
}

#lpNavIndicator {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gm, var(--green));
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition:
    left  0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.28s ease;
}

/* Dim non-active nav links subtly */
.lp-nav-link {
  transition: opacity 0.18s ease, color 0.18s ease !important;
}
.lp-nav-link:hover { opacity: 1 !important; }

/* ── Button micro-animations ───────────────────────────────────── */
.lp-cta-btn {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              background-color 0.15s ease,
              opacity 0.15s ease !important;
}
.lp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--green) 22%, transparent) !important;
}
.lp-cta-btn:active { transform: translateY(0) !important; }

.lp-ghost-btn {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.18s ease,
              color 0.18s ease !important;
}
.lp-ghost-btn:hover { transform: translateY(-2px); }
.lp-ghost-btn:active { transform: translateY(0) !important; }

/* ── Module card hover elevation ───────────────────────────────── */
.lp-s-mod-card {
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.18s ease,
              box-shadow 0.22s ease !important;
  cursor: default;
}
.lp-s-mod-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.22) !important;
}

/* ── Review card hover ─────────────────────────────────────────── */
.lp-s-tcard {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease !important;
}
.lp-s-tcard:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.18) !important;
}

/* ── Pricing card hover ────────────────────────────────────────── */
.lp-plan {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease !important;
}
.lp-plan:hover { transform: translateY(-4px) !important; }

/* Pricing pending: cards hidden until JS animates them in */
.lp-pricing-pending .lp-plan { opacity: 0; transform: translateY(24px); }

/* ── FAQ smooth accordion ──────────────────────────────────────── */
.lp-faq-a {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.28s ease 0.04s,
    padding-top 0.32s ease !important;
}
.lp-faq-item.open .lp-faq-a {
  max-height: 600px !important;
  opacity: 1 !important;
  padding-top: 14px !important;
}
.lp-faq-q {
  transition: color 0.15s ease !important;
  cursor: pointer;
}

/* ── How It Works step cards ───────────────────────────────────── */
.lp-s-how-step {
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.lp-s-how-step:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.15) !important;
}

/* ── Alternate section tints for continuity ────────────────────── */
.lp-scene[data-index="1"] { background: rgba(255,255,255,.008); }
.lp-scene[data-index="3"] { background: rgba(255,255,255,.008); }
.lp-scene[data-index="7"] { background: rgba(255,255,255,.008); }

/* ── Mobile tweaks ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #lpNavIndicator { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   LP POLISH & VISUAL REFINEMENT — Prompt 3
   ══════════════════════════════════════════════════════════════════ */

/* ── Navbar: 3-column grid ───────────────────────────────────────── */
.lp-nav-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  width: 100% !important;
  height: 60px !important;
  box-sizing: border-box !important;
}
.lp-logo {
  grid-column: 1 !important;
  justify-self: start !important;
  margin-right: 0 !important;
}
.lp-nav-links {
  grid-column: 2 !important;
  position: relative !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}
.lp-nav-right {
  grid-column: 3 !important;
  justify-self: end !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
/* Disable old pseudo-element underline; #lpNavIndicator handles it */
.lp-nav-link::after { display: none !important; }
/* Suppress tooltip popups that cause layout shift */
.lp-nav-tip { display: none !important; }
/* Tighter nav link padding so all 7 items fit comfortably */
.lp-nav-link {
  padding: 7px 10px !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}
/* Hamburger: visible only on mobile */
.lp-hamburger { display: none !important; }
@media (max-width: 880px) {
  .lp-nav-inner {
    grid-template-columns: 1fr auto !important;
  }
  .lp-nav-links { display: none !important; }
  .lp-nav-right { display: none !important; }
  .lp-hamburger { display: flex !important; grid-column: 2 !important; align-self: center !important; }
}

/* ── Remove canvas / ambient layer graphics ──────────────────────── */
#lpNetCanvas            { display: none !important; }
.amb-layer              { display: none !important; }
.amb-nd, .amb-ln        { display: none !important; }

/* ── Stage: subtle gradient depth instead of network ────────────── */
#lp-stage {
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%,  rgba(26,66,41,.26)   0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 85% 8%,  color-mix(in srgb, var(--green) 5%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 90% 50% at 50% 95%, rgba(10,15,25,.9)    0%, transparent 75%),
    #08080A !important;
}

/* ── Hero preview showcase ───────────────────────────────────────── */
.lp-hero-previews {
  width: 100%;
  overflow: hidden;
  margin-top: 52px;
  mask-image:
    linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
}
.lp-preview-rail {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 14px 100px 40px;
  will-change: transform;
}
.lp-pv-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(14,14,18,.95);
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  flex-shrink: 0;
  color: rgba(255,255,255,.75);
  font-family: inherit;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.lp-pv-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent) !important;
}

/* Meta Ad card */
.lp-pv-meta-ad { width: 255px; }
.lp-pv-ma-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px;
}
.lp-pv-ma-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
  flex-shrink: 0;
}
.lp-pv-ma-brand { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); }
.lp-pv-ma-tag   { font-size: 10px; color: rgba(255,255,255,.32); margin-top: 1px; }
.lp-pv-ma-img {
  width: 100%; height: 126px;
  background: linear-gradient(140deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lp-pv-ma-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(14,14,18,.85));
}
.lp-pv-ma-img-text {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.95);
  text-align: center; line-height: 1.4; letter-spacing: -.3px;
  z-index: 1; padding: 0 16px;
}
.lp-pv-ma-copy { padding: 11px 14px 7px; }
.lp-pv-ma-headline {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9);
  line-height: 1.4; margin-bottom: 4px;
}
.lp-pv-ma-desc { font-size: 10px; color: rgba(255,255,255,.4); line-height: 1.5; }
.lp-pv-ma-cta {
  margin: 10px 14px 14px;
  background: #1877F2; color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 8px 0; border-radius: 8px; text-align: center;
}

/* Landing Page card */
.lp-pv-landing { width: 305px; }
.lp-pv-lp-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-pv-lp-dots { display: flex; gap: 5px; }
.lp-pv-lp-dots span { width: 8px; height: 8px; border-radius: 50%; }
.lp-pv-lp-dots span:nth-child(1) { background: #ff5f56; }
.lp-pv-lp-dots span:nth-child(2) { background: #ffbd2e; }
.lp-pv-lp-dots span:nth-child(3) { background: #27c93f; }
.lp-pv-lp-url {
  flex: 1; background: rgba(255,255,255,.06); border-radius: 5px;
  padding: 3px 8px; font-size: 9px; color: rgba(255,255,255,.3); text-align: center;
}
.lp-pv-lp-content { padding: 16px 18px 20px; }
.lp-pv-lp-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.lp-pv-lp-logo {
  width: 56px; height: 5px;
  background: rgba(255,255,255,.18); border-radius: 3px;
}
.lp-pv-lp-navlinks { display: flex; gap: 6px; margin-left: auto; }
.lp-pv-lp-navlinks span {
  width: 22px; height: 4px;
  background: rgba(255,255,255,.08); border-radius: 2px;
}
.lp-pv-lp-hero { text-align: center; padding: 12px 0 16px; }
.lp-pv-lp-h1 {
  font-size: 16px; font-weight: 700; color: rgba(255,255,255,.9);
  line-height: 1.35; letter-spacing: -.4px; margin-bottom: 14px;
}
.lp-pv-lp-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--gm));
  color: #000; font-size: 11px; font-weight: 700;
  padding: 7px 20px; border-radius: 8px;
}

/* Email card */
.lp-pv-email { width: 250px; }
.lp-pv-em-header {
  padding: 11px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.lp-pv-em-from    { font-size: 10px; color: rgba(255,255,255,.3); margin-bottom: 3px; }
.lp-pv-em-subject { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.4; }
.lp-pv-em-body    { padding: 11px 14px 14px; }
.lp-pv-em-greeting { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 7px; }
.lp-pv-em-text     { font-size: 10px; color: rgba(255,255,255,.42); line-height: 1.6; margin-bottom: 11px; }
.lp-pv-em-cta {
  display: inline-block;
  background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  font-size: 10px; font-weight: 600;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 11px;
}
.lp-pv-em-divider  { height: 1px; background: rgba(255,255,255,.06); margin-bottom: 9px; }
.lp-pv-em-feat-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(255,255,255,.5); padding: 2px 0; }
.lp-pv-em-chk      { color: var(--green); }

/* UGC / Video card */
.lp-pv-ugc { width: 185px; }
.lp-pv-ugc-bg {
  height: 305px;
  background: linear-gradient(160deg, #1a0533 0%, #2d1b69 50%, #11998e 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lp-pv-ugc-play { font-size: 26px; opacity: .55; color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.lp-pv-ugc-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  z-index: 2;
}
.lp-pv-ugc-user    { font-size: 11px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.lp-pv-ugc-caption { font-size: 10px; color: rgba(255,255,255,.72); margin-bottom: 7px; }
.lp-pv-ugc-actions { display: flex; gap: 10px; }
.lp-pv-ugc-action  { font-size: 10px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 3px; }

/* Strategy / Plan card */
.lp-pv-strategy { width: 270px; padding: 16px; }
.lp-pv-st-header { margin-bottom: 14px; }
.lp-pv-st-badge {
  display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; margin-bottom: 6px;
}
.lp-pv-st-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: -.2px; line-height: 1.35; }
.lp-pv-st-body  { display: flex; flex-direction: column; gap: 7px; }
.lp-pv-st-item  { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; color: rgba(255,255,255,.52); line-height: 1.5; }
.lp-pv-st-dot   { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--green) 45%, transparent); margin-top: 4px; flex-shrink: 0; }
.lp-pv-st-bar   { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.lp-pv-st-bar-label { font-size: 9px; color: rgba(255,255,255,.3); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.lp-pv-st-bar-track { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.lp-pv-st-bar-fill  { height: 100%; background: linear-gradient(90deg, var(--green-text), var(--green)); border-radius: 2px; }
.lp-pv-st-bar-pct   { font-size: 10px; color: var(--green); font-weight: 600; margin-top: 5px; text-align: right; }

/* ── Pricing: tighter layout, identical card spacing ────────────── */
.lp-pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}
.lp-plan { border-radius: 14px !important; }

/* ── Reviews: breathing room ─────────────────────────────────────── */
.lp-reviews-grid { gap: 16px !important; }
.lp-s-tcard      { padding: 24px 22px !important; border-radius: 14px !important; }

/* ── Mobile responsive for preview rail + pricing ────────────────── */
@media (max-width: 768px) {
  .lp-hero-previews { margin-top: 36px; }
  .lp-preview-rail  { padding: 8px 32px 24px; gap: 12px; }
  .lp-pv-card       { transform: scale(0.82); transform-origin: top left; }
  .lp-pricing-grid  { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .lp-reviews-grid  { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .lp-pricing-grid { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════════════
   LP WORLD-CLASS REFINEMENT — Prompt 4
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero layout: always column ──────────────────────────────────── */
.lp-hero {
  flex-direction: column !important;
  align-items: center !important;
}

/* ── Hero typing prompt demo ──────────────────────────────────────── */
.lp-hero-prompt {
  width: 100%;
  max-width: 600px;
  margin: 44px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}
.lp-hero-prompt-inner {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lp-hero-prompt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 24px;
}
.lp-hero-prompt-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  letter-spacing: .12em;
  flex-shrink: 0;
}
.lp-hero-prompt-body {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.lp-hero-prompt-text {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}
.lp-hero-prompt-cursor {
  display: inline-block;
  width: 1.5px;
  height: 17px;
  background: var(--green);
  border-radius: 1px;
  animation: lpCursorBlink 0.85s step-end infinite;
  margin-left: 1px;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes lpCursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.lp-hero-prompt-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.lp-pv-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: .01em;
}
.lp-pv-tag::before {
  content: '✓';
  font-size: 9px;
}

/* ── Preview depth layer (behind the front rail) ─────────────────── */
.lp-hero-previews { position: relative !important; }
.lp-preview-back {
  position: absolute;
  top: 44px;
  left: 0;
  display: flex;
  gap: 20px;
  padding: 0 100px;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease 0.15s;
}
.lp-preview-back.lp-back-visible { opacity: 1; }
.lp-preview-rail { position: relative; z-index: 1; }
.lp-pv-ghost {
  width: 210px;
  height: 225px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--green) 1.8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 5.5%, transparent);
  flex-shrink: 0;
  backdrop-filter: blur(2px);
}
.lp-pv-ghost--tall { height: 295px; }
.lp-pv-ghost--wide { width: 270px; }

/* Preserve enough height in the previews container for back layer */
.lp-hero-previews { min-height: 380px; }

/* ── Campaign Builder large mockup ─────────────────────────────── */
.lp-cb {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,10,14,.97);
  box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
.lp-cb-chrome {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
  gap: 10px;
}
.lp-cb-chrome-dots { display: flex; gap: 5px; flex-shrink: 0; }
.lp-cb-chrome-dots span { width: 9px; height: 9px; border-radius: 50%; }
.lp-cb-chrome-dots span:nth-child(1) { background: #ff5f56; }
.lp-cb-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.lp-cb-chrome-dots span:nth-child(3) { background: #27c93f; }
.lp-cb-chrome-title {
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.42);
  flex: 1; text-align: center;
}
.lp-cb-chrome-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: rgba(255,255,255,.3); flex-shrink: 0;
}
.lp-cb-status-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: lpPulseDot 1.8s ease-in-out infinite;
}
@keyframes lpPulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.lp-cb-body { display: flex; min-height: 310px; }

.lp-cb-sidebar {
  width: 180px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
}
.lp-cb-sb-head {
  padding: 16px 14px 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.lp-cb-sb-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.22); margin-bottom: 4px;
}
.lp-cb-sb-name {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.78); line-height: 1.3;
}
.lp-cb-sb-items { padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.lp-cb-it {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; border-radius: 7px;
  font-size: 11px; color: rgba(255,255,255,.35);
}
.lp-cb-it--done { color: rgba(255,255,255,.65); }
.lp-cb-it--active { background: color-mix(in srgb, var(--green) 7%, transparent); color: rgba(255,255,255,.9); }
.lp-cb-it-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.14); flex-shrink: 0;
}
.lp-cb-it--done   .lp-cb-it-dot { background: color-mix(in srgb, var(--green) 75%, transparent); }
.lp-cb-it--active .lp-cb-it-dot { background: var(--green); animation: lpPulseDot 1.5s ease-in-out infinite; }
.lp-cb-it-lbl { flex: 1; font-size: 11px; }
.lp-cb-it-st { font-size: 9px; color: rgba(255,255,255,.22); }
.lp-cb-it--done   .lp-cb-it-st { color: color-mix(in srgb, var(--green) 45%, transparent); }
.lp-cb-it--active .lp-cb-it-st { color: var(--green); }

.lp-cb-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lp-cb-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.06); padding: 0 18px;
}
.lp-cb-tab {
  padding: 11px 14px; font-size: 11.5px; color: rgba(255,255,255,.35);
  cursor: default; position: relative; white-space: nowrap;
}
.lp-cb-tab--active { color: rgba(255,255,255,.88); }
.lp-cb-tab--active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1.5px; background: var(--green); border-radius: 1px;
}
.lp-cb-content {
  flex: 1; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 16px;
}
.lp-cb-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-cb-ad {
  border-radius: 10px; border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.022); overflow: hidden;
}
.lp-cb-ad-img {
  height: 72px;
  background: linear-gradient(140deg, #0f2027 0%, #203a43 55%, #2c5364 100%);
}
.lp-cb-ad-img--b {
  background: linear-gradient(140deg, #1a0533 0%, #2d1b69 55%, #11998e 100%);
}
.lp-cb-ad-body { padding: 10px 12px; }
.lp-cb-ad-head {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.82);
  line-height: 1.4; margin-bottom: 3px;
}
.lp-cb-ad-copy {
  font-size: 9.5px; color: rgba(255,255,255,.36); line-height: 1.5; margin-bottom: 8px;
}
.lp-cb-ad-cta {
  display: inline-block; background: #1877F2; color: #fff;
  font-size: 9.5px; font-weight: 600; padding: 4px 10px; border-radius: 5px;
}
.lp-cb-metrics {
  display: flex; gap: 28px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06);
}
.lp-cb-metric-v {
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: rgba(255,255,255,.88); margin-bottom: 2px;
}
.lp-cb-metric-l {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.28);
}

/* ── How It Works: visual chips per step ─────────────────────────── */
.lp-step-visual { margin-top: 24px; display: flex; justify-content: center; }
.lp-step-bp-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 10px 14px;
  width: 100%; max-width: 216px;
}
.lp-step-bp-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
  flex-shrink: 0;
}
.lp-step-bp-nm  { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.lp-step-bp-bars { display: flex; gap: 3px; }
.lp-step-bp-bars span { height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.lp-step-bp-b1 { width: 32px; }
.lp-step-bp-b2 { width: 22px; }
.lp-step-bp-b3 { width: 14px; }
.lp-step-bp-ck { color: var(--green); font-size: 14px; margin-left: auto; flex-shrink: 0; }

.lp-step-mods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 240px; }
.lp-step-mod {
  font-size: 10px; padding: 4px 10px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.28);
}
.lp-step-mod--on {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-color: color-mix(in srgb, var(--green) 22%, transparent);
  color: var(--green);
}

.lp-step-ready {
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--green) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 12px; padding: 12px 16px;
}
.lp-step-ready-ico { font-size: 18px; color: var(--green); }
.lp-step-ready-t { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.lp-step-ready-s { font-size: 10px; color: rgba(255,255,255,.38); }

/* ── Mobile responsive additions ─────────────────────────────────── */
@media (max-width: 768px) {
  .lp-hero-prompt { margin-top: 32px; padding: 0 16px; }
  .lp-hero-prompt-text { font-size: 13px; }
  .lp-cb { border-radius: 12px; }
  .lp-cb-sidebar { display: none; }
  .lp-cb-ads { grid-template-columns: 1fr; gap: 10px; }
  .lp-cb-metrics { gap: 16px; }
  .lp-pv-tag { font-size: 9px; padding: 2px 8px; }
  .lp-hero-previews { min-height: auto; }
  .lp-preview-back { display: none; }
  .lp-step-bp-chip, .lp-step-mods, .lp-step-ready { max-width: 200px; }
}
@media (max-width: 480px) {
  .lp-hero-prompt-outputs { gap: 5px; }
  .lp-cb-chrome-status { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   LP CINEMATIC EXPERIENCE — Prompt 5
   The product screen is the visual centerpiece.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero: strip to headline + 2 buttons only ───────────────────── */
.lp-s-eyebrow    { display: none !important; }
.lp-s-sub        { display: none !important; }
.lp-s-note       { display: none !important; }
.lp-s-hero-right { display: none !important; }
.lp-hero-prompt  { display: none !important; }
.lp-hero-previews { display: none !important; }
.lp-step-visual  { display: none !important; }

/* Hero scene: full viewport, deeply centred */
.lp-scene[data-index="0"] { min-height: 100vh; }
.lp-hero {
  min-height: 100vh !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 24px !important;
}
/* Mobile Polish pass — this rule's own min-height:100vh (border-box)
   means adding padding-top here does NOT grow the section or push
   anything below it down (confirmed: total hero height stays exactly
   100vh at any device height, short or tall) -- it only shifts the
   vertically-centered content group down by roughly half this value,
   giving the headline real breathing room below the fixed 64px nav
   instead of the ~29px gap centering alone produced. A deliberate,
   modest addition, not a device-height-dependent spacer.
   Deliberately re-scoped to @media(max-width:480px) here even though
   the block above it is unscoped: this file has multiple layered,
   sometimes-unscoped `.lp-hero{...!important}` rules from earlier
   redesign passes (confirmed via computed-style inspection, not just
   reading source), and an unscoped addition here would have also
   silently reached desktop. Scoping explicitly removes that risk
   regardless of how the rest of that legacy cascade resolves. */
@media (max-width: 480px) {
  .lp-hero { padding-top: 48px !important; }
}
.lp-s-hero-left {
  max-width: 780px !important;
  text-align: center !important;
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
}
.lp-s-h1 {
  font-size: clamp(44px, 6.6vw, 88px) !important;
  line-height: 1.04 !important;
  text-align: center !important;
  margin-bottom: 56px !important;
}
.lp-s-actions { justify-content: center !important; gap: 14px !important; }

/* ── Cinematic scroll section ────────────────────────────────────── */
.cs-scene {
  position: relative;
  height: 280vh;
}
.cs-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cs-intro {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  will-change: opacity, transform;
  z-index: 3;
  text-align: center;
  pointer-events: none;
}
.cs-intro-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.28);
  margin-bottom: 9px;
}
.cs-intro-title {
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 600;
  color: rgba(255,255,255,.82);
  letter-spacing: -.03em;
  line-height: 1.16;
}

/* ── Base product screen ─────────────────────────────────────────── */
.cs-screen {
  background: #0C0C10;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  box-shadow:
    0 80px 160px rgba(0,0,0,.80),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 100px color-mix(in srgb, var(--green) 4%, transparent);
  will-change: transform, opacity;
  transform-origin: center center;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── Campaign Dashboard ──────────────────────────────────────────── */
.cs-dash { width: 920px; }
.cs-dash-top {
  display: flex; align-items: center;
  padding: 11px 18px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cs-dash-logo {
  font-size: 13px; font-weight: 800; letter-spacing: .09em;
  color: rgba(255,255,255,.88);
}
.cs-dash-topright { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cs-dash-newbtn {
  font-size: 10.5px; font-weight: 600; color: #000;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
  padding: 6px 13px; border-radius: 7px;
}
.cs-dash-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: #7C3AED; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cs-dash-layout { display: flex; min-height: 370px; }
.cs-dash-nav {
  width: 152px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 14px 8px;
  display: flex; flex-direction: column; gap: 1px;
}
.cs-dash-nav-item {
  padding: 7px 10px; font-size: 11.5px;
  color: rgba(255,255,255,.35); border-radius: 7px;
}
.cs-dash-nav-item--active { background: color-mix(in srgb, var(--green) 7%, transparent); color: rgba(255,255,255,.85); }
.cs-dash-main { flex: 1; padding: 18px 20px; min-width: 0; }
.cs-dash-main-head {
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
  color: rgba(255,255,255,.88); margin-bottom: 14px;
}
.cs-dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.cs-kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px; padding: 13px 14px;
}
.cs-kpi--green { background: color-mix(in srgb, var(--green) 5%, transparent); border-color: color-mix(in srgb, var(--green) 14%, transparent); }
.cs-kpi-val {
  font-size: 25px; font-weight: 700; letter-spacing: -.03em;
  color: rgba(255,255,255,.88); margin-bottom: 3px;
}
.cs-kpi--green .cs-kpi-val { color: var(--green); }
.cs-kpi-lbl { font-size: 9.5px; color: rgba(255,255,255,.30); text-transform: uppercase; letter-spacing: .07em; }
.cs-dash-table {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px; overflow: hidden;
}
.cs-dash-thead {
  display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 0.85fr;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 9px; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.24);
}
.cs-dash-row {
  display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 0.85fr;
  padding: 11px 14px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cs-dash-row:last-child { border-bottom: none; }
.cs-dash-row-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.78);
}
.cs-dash-row-mods { font-size: 10px; color: rgba(255,255,255,.34); }
.cs-dash-row-perf { font-size: 11.5px; color: rgba(255,255,255,.60); font-weight: 500; }
.cs-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cs-dot--live  { background: var(--green); box-shadow: 0 0 5px color-mix(in srgb, var(--green) 55%, transparent); }
.cs-dot--blue  { background: #60A5FA; }
.cs-dot--dim   { background: rgba(255,255,255,.20); }
.cs-badge {
  display: inline-flex; align-items: center;
  font-size: 9.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
}
.cs-badge--live { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 18%, transparent); }
.cs-badge--blue { background: rgba(96,165,250,.10); color: #60A5FA; border: 1px solid rgba(96,165,250,.18); }
.cs-badge--dim  { background: rgba(255,255,255,.05); color: rgba(255,255,255,.36); border: 1px solid rgba(255,255,255,.09); }

/* ── Meta Ad Generator ───────────────────────────────────────────── */
.cs-gen { width: 920px; }
.cs-gen-top {
  display: flex; align-items: center;
  padding: 11px 18px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cs-gen-bc { font-size: 11px; color: rgba(255,255,255,.28); }
.cs-gen-bc span { color: rgba(255,255,255,.48); }
.cs-gen-bc span + span { color: rgba(255,255,255,.72); }
.cs-gen-export {
  margin-left: auto; font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 5px 11px; border-radius: 7px;
}
.cs-gen-body { display: grid; grid-template-columns: 256px 1fr; }
.cs-gen-left { border-right: 1px solid rgba(255,255,255,.06); padding: 18px 16px; }
.cs-gen-sec {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.26); margin-bottom: 11px;
}
.cs-gen-field { margin-bottom: 10px; }
.cs-gen-lbl { font-size: 10px; color: rgba(255,255,255,.30); margin-bottom: 4px; }
.cs-gen-val {
  font-size: 11.5px; color: rgba(255,255,255,.70); line-height: 1.5;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 7px 9px;
}
.cs-gen-brand {
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--green) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 14%, transparent);
  border-radius: 9px; padding: 9px 10px;
}
.cs-gen-brand-av {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
}
.cs-gen-brand-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.80); }
.cs-gen-brand-tag  { font-size: 9px; color: color-mix(in srgb, var(--green) 62%, transparent); margin-top: 1px; }
.cs-gen-brand-ck   { color: var(--green); font-size: 13px; margin-left: auto; }
.cs-gen-right { padding: 18px 18px; display: flex; flex-direction: column; }
.cs-gen-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 14px;
}
.cs-gen-tab {
  padding: 7px 13px; font-size: 11px; color: rgba(255,255,255,.30); position: relative;
}
.cs-gen-tab--active { color: rgba(255,255,255,.85); }
.cs-gen-tab--active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1.5px; background: var(--green);
}
.cs-gen-output { display: flex; gap: 14px; flex: 1; }
.cs-gen-ad {
  width: 192px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px; overflow: hidden;
  background: rgba(255,255,255,.02);
}
.cs-gen-ad-hd { display: flex; align-items: center; gap: 7px; padding: 9px 10px; }
.cs-gen-ad-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
}
.cs-gen-ad-brand  { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.76); }
.cs-gen-ad-sp     { font-size: 9px; color: rgba(255,255,255,.28); }
.cs-gen-ad-img {
  width: 100%; height: 96px;
  background: linear-gradient(145deg, #0d1f2d 0%, #19384a 55%, #0c2233 100%);
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
}
.cs-gen-ad-img-txt {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.92);
  text-align: center; line-height: 1.45;
}
.cs-gen-ad-copy { padding: 9px 10px; }
.cs-gen-ad-hl   { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.80); line-height: 1.4; margin-bottom: 4px; }
.cs-gen-ad-body { font-size: 9.5px; color: rgba(255,255,255,.38); line-height: 1.5; margin-bottom: 8px; }
.cs-gen-ad-cta {
  display: block; margin: 0 10px 10px;
  background: #1877F2; color: #fff;
  font-size: 10.5px; font-weight: 600;
  padding: 7px 0; border-radius: 7px; text-align: center;
}
.cs-gen-metrics {
  flex: 1; border-left: 1px solid rgba(255,255,255,.06);
  padding-left: 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.cs-gen-metric-v {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  color: rgba(255,255,255,.88); margin-bottom: 2px;
}
.cs-gen-metric-l {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.28);
}

/* ── Brand Profile Editor ────────────────────────────────────────── */
.cs-brand { width: 920px; }
.cs-brand-top {
  display: flex; align-items: center;
  padding: 11px 18px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cs-brand-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.76); }
.cs-brand-save {
  margin-left: auto; font-size: 10.5px; font-weight: 600; color: #000;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
  padding: 6px 12px; border-radius: 7px;
}
.cs-brand-body { display: flex; min-height: 360px; }
.cs-brand-nav {
  width: 158px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 14px 8px;
  display: flex; flex-direction: column; gap: 1px;
}
.cs-brand-nav-item {
  padding: 7px 10px; font-size: 11.5px;
  color: rgba(255,255,255,.33); border-radius: 7px;
}
.cs-brand-nav-item--active { background: color-mix(in srgb, var(--green) 7%, transparent); color: rgba(255,255,255,.82); }
.cs-brand-content { flex: 1; padding: 18px 22px; min-width: 0; }
.cs-brand-sec {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.25); margin-bottom: 12px;
}
.cs-brand-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-brand-field--full { grid-column: 1 / -1; }
.cs-brand-lbl { font-size: 10px; color: rgba(255,255,255,.30); margin-bottom: 4px; }
.cs-brand-inp {
  font-size: 12.5px; color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 8px 11px;
}
.cs-brand-textarea {
  font-size: 11px; color: rgba(255,255,255,.58); line-height: 1.6;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 9px 11px;
}
.cs-brand-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cs-brand-tag {
  font-size: 10.5px; padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.28);
}
.cs-brand-tag--on {
  background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green);
}
.cs-brand-ai-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cs-brand-ai-chip {
  font-size: 10.5px; padding: 5px 11px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.52);
}

/* ── Mobile: disable scroll animation, show screens statically ───── */
@media (max-width: 860px) {
  .cs-scene  { height: auto; }
  .cs-pin    { position: relative; height: auto; padding: 48px 16px 56px; flex-direction: column; gap: 28px; }
  .cs-intro  { position: relative; padding-top: 0; }
  .cs-screen { transform: none !important; opacity: 1 !important; width: 100% !important; overflow-x: auto; }
  .cs-dash, .cs-gen, .cs-brand { width: 700px; }
  .cs-dash-nav, .cs-brand-nav { display: none; }
  .cs-gen-left { display: none; }
}
@media (max-width: 520px) {
  .cs-dash, .cs-gen, .cs-brand { width: 540px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CAMPAIGN JOURNEY — One continuous live demo experience
   Prompt 6: Product builds itself as visitor scrolls
   ═══════════════════════════════════════════════════════════════════ */

/* Hide previous CS scenes and intermediate sections */
#cs-dashboard, #cs-generator, #cs-brand { display: none !important; }
.lp-scene[data-index="1"],
.lp-scene[data-index="2"],
.lp-scene[data-index="3"] { display: none !important; }
.lp-nav-link[data-scene="1"],
.lp-nav-link[data-scene="2"],
.lp-nav-link[data-scene="3"] { display: none !important; }

/* ── Journey scroll container ────────────────────────────────────── */
.cj-wrap {
  position: relative;
  height: 1200vh;
}
.cj-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── App window ──────────────────────────────────────────────────── */
.cj-window {
  width: 920px;
  height: 560px;
  background: #0C0C10;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 80px 160px rgba(0,0,0,.78),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 80px color-mix(in srgb, var(--green) 3%, transparent);
  will-change: transform, opacity;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.38);
}

/* ── Chrome bar ──────────────────────────────────────────────────── */
.cj-chrome {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  gap: 14px;
}
.cj-chrome-dots { display: flex; gap: 6px; }
.cj-chrome-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.cj-chrome-dot--r { background: #FF5F57; }
.cj-chrome-dot--y { background: #FFBD2E; }
.cj-chrome-dot--g { background: #28CA40; }
.cj-chrome-title {
  flex: 1; text-align: center;
  font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,.45);
  transition: color 0.35s ease;
}
.cj-chrome-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
  min-width: 62px; text-align: center;
  transition: all 0.35s ease;
  opacity: 0;
}
.cj-chrome-badge--building {
  opacity: 1;
  background: rgba(251,191,36,.10);
  color: #FBBF24;
  border: 1px solid rgba(251,191,36,.20);
}
.cj-chrome-badge--ready {
  opacity: 1;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
}

/* ── Body: sidebar + panels ──────────────────────────────────────── */
.cj-body { display: flex; flex: 1; overflow: hidden; }

.cj-sidebar {
  width: 158px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 1px;
}
.cj-sidebar-section {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.20); padding: 8px 10px 5px;
}
.cj-nav-item {
  padding: 7px 10px; font-size: 11.5px;
  color: rgba(255,255,255,.30); border-radius: 7px;
  transition: background 0.25s ease, color 0.25s ease;
}
.cj-nav-item--active {
  background: color-mix(in srgb, var(--green) 7%, transparent);
  color: rgba(255,255,255,.85);
}
.cj-nav-item--done { color: rgba(255,255,255,.46); }
.cj-nav-item--done::after { content: ' \2713'; font-size: 9px; color: var(--green); }

/* ── Panel system ────────────────────────────────────────────────── */
.cj-main { flex: 1; position: relative; overflow: hidden; }
.cj-panel {
  position: absolute; inset: 0;
  padding: 22px 24px;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
  overflow-y: auto;
}
.cj-panel--active {
  opacity: 1; transform: translateX(0); pointer-events: auto;
}
.cj-panel--out {
  opacity: 0; transform: translateX(-14px);
}
.cj-p-head {
  font-size: 14px; font-weight: 700; letter-spacing: -.02em;
  color: rgba(255,255,255,.88); margin-bottom: 18px;
}

/* ── Setup / Prompt Panel ────────────────────────────────────────── */
.cj-prompt { max-width: 460px; }
.cj-prompt-lbl {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.26); margin-bottom: 10px;
}
.cj-prompt-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px; padding: 14px 16px;
  font-size: 14px; color: rgba(255,255,255,.80); line-height: 1.55;
  min-height: 60px; margin-bottom: 12px;
}
.cj-prompt-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cj-prompt-tag {
  font-size: 10px; padding: 4px 11px; border-radius: 20px;
  background: color-mix(in srgb, var(--green) 7%, transparent); border: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
  color: color-mix(in srgb, var(--green) 75%, transparent);
}
.cj-prompt-cta {
  display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 600; color: #000;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
  padding: 10px 22px; border-radius: 9px;
}

/* ── Thinking / Processing Panel ─────────────────────────────────── */
.cj-thinking { max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.cj-think-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.50);
}
.cj-think-step--done { color: rgba(255,255,255,.78); }
.cj-think-step--active { color: rgba(255,255,255,.92); }
.cj-think-ico {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.25);
}
.cj-think-step--done .cj-think-ico {
  background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 24%, transparent);
}
.cj-think-step--active .cj-think-ico {
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.18);
}
.cj-think-spin {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(251,191,36,.28);
  border-top-color: #FBBF24;
  animation: cjSpin 0.85s linear infinite;
}
@keyframes cjSpin { to { transform: rotate(360deg); } }

/* ── Strategy Panel ──────────────────────────────────────────────── */
.cj-strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cj-s-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 13px 14px;
}
.cj-s-card--wide { grid-column: 1 / -1; }
.cj-s-card-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.26); margin-bottom: 7px;
}
.cj-s-card-val { font-size: 12px; color: rgba(255,255,255,.70); line-height: 1.55; }

/* ── Meta Ads Panel ──────────────────────────────────────────────── */
.cj-meta-layout { display: grid; grid-template-columns: 196px 1fr; gap: 16px; }
.cj-meta-ad-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
  overflow: hidden; background: rgba(255,255,255,.02);
}
.cj-meta-ad-hd { display: flex; align-items: center; gap: 7px; padding: 9px 10px; }
.cj-meta-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
}
.cj-meta-brand { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.78); }
.cj-meta-sp    { font-size: 9px; color: rgba(255,255,255,.28); }
.cj-meta-img {
  width: 100%; height: 98px;
  background: linear-gradient(150deg, #0a1628 0%, #172440 55%, #0d1c34 100%);
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
}
.cj-meta-img-txt { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.92); text-align: center; line-height: 1.4; }
.cj-meta-copy { padding: 9px 10px; }
.cj-meta-hl   { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.80); line-height: 1.4; margin-bottom: 4px; }
.cj-meta-body { font-size: 9.5px; color: rgba(255,255,255,.36); line-height: 1.5; margin-bottom: 8px; }
.cj-meta-btn  {
  display: block; margin: 0 10px 10px;
  background: #1877F2; color: #fff;
  font-size: 10.5px; font-weight: 600;
  padding: 7px 0; border-radius: 7px; text-align: center;
}
/* Meta sidebar */
.cj-meta-sidebar { padding-top: 2px; }
.cj-meta-sb-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.24); margin-bottom: 10px;
}
.cj-meta-var {
  padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 7px; background: rgba(255,255,255,.02);
}
.cj-meta-var--on {
  background: color-mix(in srgb, var(--green) 5%, transparent); border-color: color-mix(in srgb, var(--green) 14%, transparent);
}
.cj-meta-var-name  { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 2px; }
.cj-meta-var-angle { font-size: 10px; color: rgba(255,255,255,.34); }
.cj-meta-kpis { display: flex; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.cj-meta-kpi-v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: rgba(255,255,255,.88); margin-bottom: 2px; }
.cj-meta-kpi-l { font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.28); }

/* ── Landing Page Panel ──────────────────────────────────────────── */
.cj-lp-preview {
  border: 1px solid rgba(255,255,255,.07); border-radius: 11px;
  overflow: hidden; background: rgba(255,255,255,.015);
}
.cj-lp-topbar {
  display: flex; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.cj-lp-brand   { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.cj-lp-topbtn  {
  margin-left: auto; font-size: 10.5px; font-weight: 600;
  color: #000; background: var(--green); padding: 5px 12px; border-radius: 6px;
}
.cj-lp-hero    { padding: 26px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.cj-lp-h1 {
  font-size: 20px; font-weight: 700; letter-spacing: -.03em;
  color: rgba(255,255,255,.90); line-height: 1.2; margin-bottom: 10px;
}
.cj-lp-sub  { font-size: 12px; color: rgba(255,255,255,.46); line-height: 1.55; margin-bottom: 16px; }
.cj-lp-cta  {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #000; background: var(--green); padding: 9px 20px; border-radius: 8px;
}
.cj-lp-feats { display: flex; }
.cj-lp-feat  {
  flex: 1; padding: 12px 10px;
  font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.50);
  border-right: 1px solid rgba(255,255,255,.05); text-align: center;
}
.cj-lp-feat:last-child { border-right: none; }

/* ── Campaign Ready Panel ────────────────────────────────────────── */
.cj-dc-modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px;
}
.cj-dc-mod {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 11px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.cj-dc-mod--done {
  background: color-mix(in srgb, var(--green) 4%, transparent); border-color: color-mix(in srgb, var(--green) 12%, transparent);
}
.cj-dc-ico {
  font-size: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.cj-dc-mod--done .cj-dc-ico {
  background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
}
.cj-dc-name   { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.76); }
.cj-dc-detail { font-size: 10px; color: rgba(255,255,255,.30); }
.cj-dc-publish {
  display: flex; align-items: center; padding: 14px 16px;
  background: color-mix(in srgb, var(--green) 5%, transparent); border: 1px solid color-mix(in srgb, var(--green) 14%, transparent); border-radius: 11px;
}
.cj-dc-publish-label { font-size: 13px; font-weight: 600; color: var(--green); }
.cj-dc-publish-btn {
  margin-left: auto; font-size: 12px; font-weight: 600; color: #000;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-text) 100%);
  padding: 9px 20px; border-radius: 8px;
}

/* ── Brand Profile Panel ─────────────────────────────────────────── */
.cj-bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cj-bp-field--wide { grid-column: 1 / -1; }
.cj-bp-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.24); margin-bottom: 6px;
}
.cj-bp-row { display: flex; align-items: center; gap: 8px; }
.cj-bp-inp {
  flex: 1; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 7px 11px; font-size: 11.5px;
  color: rgba(255,255,255,.16); line-height: 1.45;
  transition: color 0.42s ease, border-color 0.42s ease, background 0.42s ease;
}
.cj-bp-field--filled .cj-bp-inp {
  color: rgba(255,255,255,.78); border-color: color-mix(in srgb, var(--green) 14%, transparent);
  background: color-mix(in srgb, var(--green) 2%, transparent);
}
.cj-bp-ck {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: transparent; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.42s ease, border-color 0.42s ease, color 0.42s ease;
}
.cj-bp-field--filled .cj-bp-ck {
  background: color-mix(in srgb, var(--green) 12%, transparent); border-color: color-mix(in srgb, var(--green) 25%, transparent); color: var(--green);
}
.cj-bp-tags {
  flex: 1; display: flex; gap: 5px; align-items: center; flex-wrap: wrap;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 5px 11px; min-height: 34px;
  transition: border-color 0.42s ease;
}
.cj-bp-field--filled .cj-bp-tags { border-color: color-mix(in srgb, var(--green) 14%, transparent); }
.cj-bp-tag {
  font-size: 10px; padding: 3px 9px; border-radius: 20px;
  background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--green) 18%, transparent); color: var(--green);
  opacity: 0; transform: scale(0.80);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cj-bp-field--filled .cj-bp-tag { opacity: 1; transform: scale(1); }
.cj-bp-colors {
  flex: 1; display: flex; gap: 7px; align-items: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 6px 11px; min-height: 34px;
  transition: border-color 0.42s ease;
}
.cj-bp-field--filled .cj-bp-colors { border-color: color-mix(in srgb, var(--green) 14%, transparent); }
.cj-bp-color {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18);
  opacity: 0; transform: scale(0.60);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cj-bp-field--filled .cj-bp-color { opacity: 1; transform: scale(1); }
.cj-bp-complete {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: 10px; background: color-mix(in srgb, var(--green) 6%, transparent); border: 1px solid color-mix(in srgb, var(--green) 14%, transparent);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.70);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cj-bp-complete--visible { opacity: 1; transform: translateY(0); }
.cj-bp-complete-ico { color: var(--green); font-size: 15px; }

/* ── Product Images Panel ─────────────────────────────────────────── */
.cj-images-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.cj-img-card {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
}
.cj-img-preview { height: 88px; width: 100%; }
.cj-img-preview--1 { background: linear-gradient(135deg,#0e1a30 0%,#1e2e50 55%,#0a1220 100%); }
.cj-img-preview--2 { background: linear-gradient(145deg,#0a1a20 0%,#1a3040 60%,#081418 100%); }
.cj-img-preview--3 { background: linear-gradient(135deg,#141e14 0%,#243a24 50%,#0e180e 100%); }
.cj-img-preview--4 { background: linear-gradient(135deg,#1e1408 0%,#3a2810 50%,#140e06 100%); }
.cj-img-preview--5 { background: linear-gradient(135deg,#0c0c1e 0%,#181830 50%,#080810 100%); }
.cj-img-preview--6 { background: linear-gradient(135deg,#1a0a18 0%,#2e1230 50%,#100810 100%); }
.cj-img-label { padding: 7px 10px; font-size: 10.5px; color: rgba(255,255,255,.44); }

/* ── Social Content Panel ─────────────────────────────────────────── */
.cj-social-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.cj-social-card {
  border-radius: 10px; border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02); padding: 12px;
}
.cj-social-card--ig { border-color: rgba(225,48,108,.14); }
.cj-social-card--li { border-color: rgba(10,102,194,.14); }
.cj-social-card--tt { border-color: rgba(255,0,80,.10); }
.cj-social-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cj-social-platform { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.50); }
.cj-social-card--ig .cj-social-platform { color: #E1306C; }
.cj-social-card--li .cj-social-platform { color: #0A66C2; }
.cj-social-card--tt .cj-social-platform { color: #FF0050; }
.cj-social-status {
  font-size: 9px; padding: 2px 8px; border-radius: 20px;
  background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--green) 16%, transparent); color: var(--green);
}
.cj-social-img {
  height: 66px; border-radius: 7px; margin-bottom: 9px;
  background: linear-gradient(135deg,#0d1824 0%,#1e2e40 100%);
}
.cj-social-caption { font-size: 10.5px; color: rgba(255,255,255,.55); line-height: 1.55; margin-bottom: 7px; }
.cj-social-tags    { font-size: 10px; color: rgba(255,255,255,.28); }
.cj-social-title   { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.78); margin-bottom: 8px; line-height: 1.4; }
.cj-social-body    { font-size: 10.5px; color: rgba(255,255,255,.50); line-height: 1.55; }
.cj-social-script  { display: flex; flex-direction: column; gap: 8px; }
.cj-social-line    { font-size: 10.5px; color: rgba(255,255,255,.52); line-height: 1.5; }
.cj-social-ts      { color: color-mix(in srgb, var(--green) 68%, transparent); font-size: 9px; font-weight: 600; margin-right: 6px; }

/* ── Scroll-reveal system ────────────────────────────────────────── */
.cj-reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.cj-reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Brand Profile: Logo field special ───────────────────────────── */
.cj-bp-logo-val { display: flex; align-items: center; gap: 8px; }
.cj-bp-logo-sq  {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg,#4169E1 0%,#1e2a4a 100%);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cj-bp-logo-nm  { font-size: 11px; color: rgba(255,255,255,.20); transition: color 0.4s ease; }
.cj-bp-field--filled .cj-bp-logo-sq { opacity: 1; transform: scale(1); }
.cj-bp-field--filled .cj-bp-logo-nm { color: rgba(255,255,255,.68); }

/* ── Thinking Panel ──────────────────────────────────────────────── */
.cj-think-wrap { display: flex; flex-direction: column; gap: 0; }
.cj-think-step {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cj-think-step.is-revealed { opacity: 1; transform: translateY(0); }
.cj-think-ico {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.cj-think-step--done .cj-think-ico  { background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.cj-think-step--spin .cj-think-ico  { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.20); }
.cj-think-step--done .cj-think-txt  { color: rgba(255,255,255,.75); }
.cj-think-step--spin .cj-think-txt  { color: rgba(255,255,255,.50); }
.cj-think-txt { font-size: 12.5px; }
.cj-think-spin {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(251,191,36,.28); border-top-color: #FBBF24;
  animation: cjSpin 0.85s linear infinite;
}
@keyframes cjSpin { to { transform: rotate(360deg); } }

/* ── Strategy Panel: chart bars ──────────────────────────────────── */
.cj-s-card {
  padding: 13px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
}
.cj-s-card-hd   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cj-s-card-lbl  { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.32); }
.cj-s-tag       { font-size: 9px; padding: 2px 7px; border-radius: 20px; background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.cj-s-card-val  { font-size: 11.5px; color: rgba(255,255,255,.68); line-height: 1.5; margin-bottom: 10px; }
.cj-s-bar-wrap  { display: flex; align-items: center; gap: 8px; }
.cj-s-bar-track { flex: 1; height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.cj-s-bar-fill  { height: 100%; background: linear-gradient(90deg,color-mix(in srgb, var(--green) 50%, transparent) 0%,var(--green) 100%); border-radius: 2px; }
.cj-s-bar-pct   { font-size: 9px; color: rgba(255,255,255,.30); flex-shrink: 0; width: 28px; text-align: right; }
.cj-s-card--wide { grid-column: 1 / -1; }

/* ── Meta Ads Panel ──────────────────────────────────────────────── */
.cj-meta-perf {
  display: flex; gap: 8px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.05);
}
.cj-meta-perf-card {
  flex: 1; padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
}
.cj-meta-perf-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.28); margin-bottom: 4px; }
.cj-meta-perf-val { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.82); }
.cj-meta-perf-sub { font-size: 9px; color: color-mix(in srgb, var(--green) 65%, transparent); margin-top: 2px; }

/* ── LP Builder Panel ────────────────────────────────────────────── */
.cj-lpb-wrap { display: flex; flex-direction: column; gap: 6px; }
.cj-lpb-block {
  border-radius: 8px; border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02); overflow: hidden;
}
.cj-lpb-tag  {
  display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 0 0 6px 0;
  background: color-mix(in srgb, var(--green) 8%, transparent); border-right: 1px solid color-mix(in srgb, var(--green) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--green) 14%, transparent);
  color: color-mix(in srgb, var(--green) 70%, transparent); margin-bottom: 6px;
}
.cj-lpb-nav  { display: flex; gap: 16px; padding: 8px 14px; align-items: center; }
.cj-lpb-logo { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.80); }
.cj-lpb-link { font-size: 10px; color: rgba(255,255,255,.35); }
.cj-lpb-navbtn { margin-left: auto; font-size: 10px; padding: 4px 12px; border-radius: 20px; background: color-mix(in srgb, var(--green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.cj-lpb-hero { padding: 14px; }
.cj-lpb-h1   { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 5px; line-height: 1.3; }
.cj-lpb-sub  { font-size: 10.5px; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.cj-lpb-cta  { display: inline-block; font-size: 10px; padding: 5px 14px; border-radius: 20px; background: color-mix(in srgb, var(--green) 15%, transparent); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); color: var(--green); }
.cj-lpb-feats { display: flex; gap: 6px; padding: 10px 14px; }
.cj-lpb-feat  { font-size: 10px; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.52); }
.cj-lpb-price { padding: 10px 14px; display: flex; gap: 8px; }
.cj-lpb-plan  { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); }
.cj-lpb-plan-n { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.70); margin-bottom: 4px; }
.cj-lpb-plan-p { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); }
.cj-lpb-plan--hl { border-color: color-mix(in srgb, var(--green) 20%, transparent); background: color-mix(in srgb, var(--green) 4%, transparent); }
.cj-lpb-footer { padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
.cj-lpb-footer-l { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.55); }
.cj-lpb-footer-links { display: flex; gap: 12px; }
.cj-lpb-footer-link  { font-size: 9.5px; color: rgba(255,255,255,.25); }

/* ── Email Campaign Panel ─────────────────────────────────────────── */
.cj-email-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cj-email-seq-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.28); }
.cj-email-total   { font-size: 9px; padding: 2px 8px; border-radius: 20px; background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.cj-email-list { display: flex; flex-direction: column; gap: 7px; }
.cj-email-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  transition: border-color 0.3s ease;
}
.cj-email-row:hover { border-color: rgba(255,255,255,.12); }
.cj-email-day {
  min-width: 42px; text-align: center; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.32);
  padding: 4px 0;
}
.cj-email-row--d1 .cj-email-day { color: var(--green); }
.cj-email-divider { width: 1px; height: 32px; background: rgba(255,255,255,.08); flex-shrink: 0; }
.cj-email-content { flex: 1; min-width: 0; }
.cj-email-subject  { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.78); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cj-email-preview  { font-size: 10.5px; color: rgba(255,255,255,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cj-email-stat { flex-shrink: 0; text-align: right; }
.cj-email-stat-v { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.78); line-height: 1; }
.cj-email-stat-l { font-size: 9px; color: rgba(255,255,255,.28); margin-top: 2px; }
.cj-email-badge {
  flex-shrink: 0; font-size: 9px; padding: 3px 9px; border-radius: 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.40); white-space: nowrap;
}
.cj-email-badge--hl { background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }

/* ── Dashboard: enhanced publish button ──────────────────────────── */
.cj-dc-publish {
  margin-top: 16px; padding: 16px 20px; border-radius: 12px;
  background: color-mix(in srgb, var(--green) 7%, transparent); border: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cj-dc-publish.is-revealed { opacity: 1; transform: translateY(0); }

/* ── Mobile: static, stacked ─────────────────────────────────────── */
@media (max-width: 860px) {
  .cj-wrap { height: auto; }
  .cj-pin  { position: relative; height: auto; padding: 40px 12px 48px; }
  .cj-window {
    width: 100%; height: auto; border-radius: 12px;
    transform: none !important; opacity: 1 !important;
  }
  .cj-sidebar { display: none; }
  .cj-main { min-height: 400px; }
  .cj-panel { position: relative; opacity: 1 !important; transform: none !important; pointer-events: auto; }
  .cj-panel:not(.cj-panel--active) { display: none; }
  .cj-strategy-grid { grid-template-columns: 1fr; }
  .cj-meta-layout   { grid-template-columns: 1fr; }
  .cj-dc-modules    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cj-dc-modules { grid-template-columns: 1fr 1fr; }
  .cj-lp-feats   { flex-wrap: wrap; }
  .cj-lp-feat    { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.05); }
}
/* ═══════════════════════════════════════════════════════════════════
   ORIVEN — CINEMATIC ZOOM EXPERIENCE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Stage & pin ──────────────────────────────────────────────────── */
#zz-stage {
  position: relative;
  height: 900vh;
  background: #07070A;
}
#zz-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #07070A;
}

/* ── Hero text ────────────────────────────────────────────────────── */
#zz-hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 13vh;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}
.zz-h1 {
  font-size: clamp(32px, 4.4vw, 68px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 24px;
}

/* ── Scroll indicator ─────────────────────────────────────────────── */
.zz-scroll-ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: zz-float 2.4s ease-in-out infinite;
}
.zz-scroll-txt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.zz-scroll-arrow {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  position: relative;
}
.zz-scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,.55);
  border-radius: 2px;
  animation: zz-scroll-dot 2.4s ease-in-out infinite;
}
@keyframes zz-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}
@keyframes zz-scroll-dot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  70%       { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ── MacBook wrap (zoom host) ─────────────────────────────────────── */
#zz-mb-wrap {
  position: absolute;
  top: 64px; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transform: scale(0.46);
  transform-origin: center center;
  will-change: transform;
}

/* ── MacBook chassis ──────────────────────────────────────────────── */
#zz-mb {
  width: 860px;
  flex-shrink: 0;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.75)) drop-shadow(0 8px 24px rgba(0,0,0,.55));
}

/* Lid (display housing) */
#zz-lid {
  background: linear-gradient(160deg,
    #323234 0%,
    #252527 15%,
    #1e1e20 45%,
    #1c1c1e 70%,
    #222224 90%,
    #2a2a2c 100%
  );
  border-radius: 16px 16px 6px 6px;
  padding: 14px 14px 18px;
  position: relative;
  transform-origin: center bottom;
  will-change: transform;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.6);
}
/* Machined edge highlight on lid top */
#zz-lid::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.28) 20%, rgba(255,255,255,.35) 50%, rgba(255,255,255,.28) 80%, transparent 100%);
  border-radius: 1px;
}
/* Camera housing / notch */
#zz-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 11px;
  background: #0e0e10;
  border-radius: 0 0 10px 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.8);
}
#zz-cam {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a1a1c;
  border: 1px solid rgba(255,255,255,.07);
  position: relative;
}
#zz-cam::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
/* Screen bezel + display */
#zz-screen {
  background: #050508;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.9),
    inset 0 1px 2px rgba(0,0,0,.6);
}
/* Subtle screen glare — no z-index so #mb-app paints on top */
#zz-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,.012) 0%, transparent 100%);
  pointer-events: none;
}

/* Hinge strip */
#zz-hinge {
  height: 5px;
  background: linear-gradient(180deg, #0a0a0c 0%, #161618 50%, #1e1e20 100%);
  margin: 0 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* Keyboard deck */
#zz-body {
  background: linear-gradient(175deg,
    #3a3a3c 0%,
    #323234 20%,
    #2c2c2e 60%,
    #282828 100%
  );
  border-radius: 0 0 13px 13px;
  padding: 12px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 0 rgba(0,0,0,.7);
}
/* Keyboard */
#zz-kb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.zz-kbr {
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: center;
}
.zzmk {
  height: 9px;
  width: 46px;
  background: linear-gradient(175deg, #3c3c3e 0%, #2c2c2e 100%);
  border-radius: 2.5px;
  border: 1px solid rgba(0,0,0,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 1px 0 rgba(0,0,0,.4);
  flex-shrink: 0;
}
.zzmk-w   { width: 60px; }   /* Tab, \ */
.zzmk-xl  { width: 86px; }   /* Caps Lock, Return */
.zzmk-sh  { width: 110px; }  /* Shift (both) */
.zzmk-del { width: 72px; }   /* Delete */
.zzmk-cmd { width: 74px; }   /* Command */
.zzmk-sm  { width: 36px; }   /* fn, Ctrl, arrows */
.zzmk-sp  { width: 270px; }  /* Spacebar */
/* Trackpad */
#zz-tp {
  width: 220px;
  height: 90px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(0,0,0,.2);
}

/* ── MacBook app (inside screen) ──────────────────────────────────── */
#mb-app {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #0A0A0D;
  overflow: hidden;
  font-family: 'Geist', system-ui, sans-serif;
}

/* Cinematic layout */
#mba-layout { display: none; }
#mba-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mba-pg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mba-pg.mba-pg-on {
  opacity: 1;
  pointer-events: all;
}

/* ── Cinematic Scenes ──────────────────────────────────────────────── */

/* Continue button — always at bottom center of scene */
.sc-next {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px 5px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  cursor: pointer;
  z-index: 20;
  white-space: nowrap;
  user-select: none;
  transition: background .2s, border-color .2s, color .2s;
}
.sc-next:hover {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--green);
}

/* Shared scene utilities */
.sc-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px 22px;
  box-sizing: border-box;
  text-align: center;
}
.sc-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  opacity: .9;
  margin-bottom: 12px;
}
.sc-h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 10px;
}
.sc-h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.sc-sub {
  font-size: 9px;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  margin: 0;
}
.sc-sub-sm { font-size: 8.5px; margin-top: 10px; }
.sc-green-line {
  width: 40px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 14px;
}
.sc-scene-top {
  padding: 14px 18px 8px;
  flex-shrink: 0;
}

/* S1: Title */
#sc-title {
  background: radial-gradient(ellipse at 60% 30%, rgba(65,105,225,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, color-mix(in srgb, var(--green) 8%, transparent) 0%, transparent 50%);
}
#sc-title .sc-ew {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 80%, transparent);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s ease, transform .5s ease;
}
#sc-title .sc-h1 {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
#sc-title .sc-sub {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease .2s, transform .5s ease .2s;
}
#sc-title .sc-green-line {
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .4s ease .35s, transform .4s ease .35s;
}
#sc-title.sc-revealed .sc-ew,
#sc-title.sc-revealed .sc-h1,
#sc-title.sc-revealed .sc-sub { opacity: 1; transform: translateY(0); }
#sc-title.sc-revealed .sc-green-line { opacity: 1; transform: scaleX(1); }

/* S2: Problem */
#sc-problem {
  position: relative;
}
.sc-problem-top {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  text-align: center;
}
.sc-problem-top .sc-label { display: block; margin-bottom: 4px; }
.sc-problem-top .sc-h2 { font-size: 11px; }
.sc-tool {
  position: absolute;
  padding: 5px 9px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
}
#sc-problem.sc-revealed .sc-tool { opacity: 1; }

/* S3: Solution */
#sc-solution { background: radial-gradient(ellipse at 50% 50%, rgba(65,105,225,.12) 0%, transparent 70%); }
.sc-oriven-card {
  position: relative;
  width: 140px;
  height: 80px;
  background: rgba(255,255,255,.05);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  overflow: hidden;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .5s ease, transform .5s ease;
}
.sc-oc-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--green) 15%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.sc-oc-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .15em;
  color: var(--green);
  margin-bottom: 4px;
}
.sc-oc-tag {
  font-size: 7.5px;
  color: rgba(255,255,255,.42);
  letter-spacing: .04em;
}
#sc-solution.sc-revealed .sc-oriven-card { opacity: 1; transform: scale(1); }

/* S4: Flow */
#sc-flow { background: rgba(0,0,0,0); }
.sc-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 170px;
}
.sc-fi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s ease, transform .35s ease;
}
.sc-fi-last { border-color: color-mix(in srgb, var(--green) 25%, transparent); background: color-mix(in srgb, var(--green) 5%, transparent); }
.sc-fn { font-size: 7px; font-weight: 800; color: color-mix(in srgb, var(--green) 70%, transparent); margin-bottom: 2px; }
.sc-ft { font-size: 9.5px; font-weight: 700; color: #fff; }
.sc-fd { font-size: 8px; color: rgba(255,255,255,.38); margin-top: 1px; }
.sc-fa { font-size: 9px; color: rgba(255,255,255,.2); text-align: center; padding: 2px 0; }
#sc-flow.sc-revealed .sc-fi { opacity: 1; transform: translateX(0); }
#sc-flow.sc-revealed .sc-fi:nth-child(1) { transition-delay: 0s; }
#sc-flow.sc-revealed .sc-fi:nth-child(3) { transition-delay: .07s; }
#sc-flow.sc-revealed .sc-fi:nth-child(5) { transition-delay: .14s; }
#sc-flow.sc-revealed .sc-fi:nth-child(7) { transition-delay: .21s; }
#sc-flow.sc-revealed .sc-fi:nth-child(9) { transition-delay: .28s; }

/* S5: Strategy */
.sc-strat-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 14px 14px;
  flex: 1;
  overflow: hidden;
}
.sc-strat-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.sc-si { font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.sc-strat-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sc-st { font-size: 8.5px; font-weight: 700; color: #fff; }
.sc-sb { font-size: 7.5px; color: rgba(255,255,255,.42); line-height: 1.4; }
.sc-strat-bar { display: flex; align-items: center; gap: 5px; margin-top: 4px; flex-shrink: 0; }
.sc-strat-fill {
  height: 2px;
  width: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  position: relative;
}
.sc-strat-fill::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fw, 80%);
  background: var(--green);
  border-radius: 2px;
}
.sc-strat-bar span { font-size: 7px; font-weight: 700; color: color-mix(in srgb, var(--green) 80%, transparent); }
#sc-strategy.sc-revealed .sc-strat-card { opacity: 1; transform: translateY(0); }
#sc-strategy.sc-revealed .sc-strat-card:nth-child(1) { transition-delay: 0s; }
#sc-strategy.sc-revealed .sc-strat-card:nth-child(2) { transition-delay: .07s; }
#sc-strategy.sc-revealed .sc-strat-card:nth-child(3) { transition-delay: .14s; }
#sc-strategy.sc-revealed .sc-strat-card:nth-child(4) { transition-delay: .21s; }
#sc-strategy.sc-revealed .sc-strat-card:nth-child(5) { transition-delay: .28s; }

/* S6: Creation */
.sc-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 14px 14px;
  flex: 1;
}
.sc-create-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 10px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .35s ease, transform .35s ease;
}
.sc-cc-status {
  font-size: 10px;
  color: var(--cc, #4169E1);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.sc-cc-t { font-size: 9.5px; font-weight: 700; color: #fff; }
.sc-cc-s { font-size: 7.5px; color: rgba(255,255,255,.38); margin-top: 1px; }
#sc-create.sc-revealed .sc-create-card { opacity: 1; transform: translateY(0) scale(1); }
#sc-create.sc-revealed .sc-create-card:nth-child(1) { transition-delay: 0s; }
#sc-create.sc-revealed .sc-create-card:nth-child(2) { transition-delay: .06s; }
#sc-create.sc-revealed .sc-create-card:nth-child(3) { transition-delay: .12s; }
#sc-create.sc-revealed .sc-create-card:nth-child(4) { transition-delay: .18s; }
#sc-create.sc-revealed .sc-create-card:nth-child(5) { transition-delay: .24s; }
#sc-create.sc-revealed .sc-create-card:nth-child(6) { transition-delay: .30s; }

/* S7: Consistency */
.sc-cw {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 8px;
}
.sc-cl, .sc-cr {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sc-cb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  color: rgba(255,255,255,.65);
}
.sc-cbd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-carr { font-size: 18px; color: rgba(255,255,255,.2); }
.sc-co {
  font-size: 8.5px;
  font-weight: 600;
  color: #fff;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 4px;
}
.sc-ctag {
  font-size: 8px;
  color: color-mix(in srgb, var(--green) 70%, transparent);
  letter-spacing: .06em;
  margin-top: 6px;
}

/* S8: Results */
.sc-rg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}
.sc-result {
  padding: 12px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.sc-rn {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 3px;
}
.sc-rl { font-size: 8.5px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.sc-rs { font-size: 7.5px; color: rgba(255,255,255,.32); }
#sc-results.sc-revealed .sc-result { opacity: 1; transform: translateY(0); }
#sc-results.sc-revealed .sc-result:nth-child(1) { transition-delay: 0s; }
#sc-results.sc-revealed .sc-result:nth-child(2) { transition-delay: .08s; }
#sc-results.sc-revealed .sc-result:nth-child(3) { transition-delay: .16s; }
#sc-results.sc-revealed .sc-result:nth-child(4) { transition-delay: .24s; }

/* S9: Testimonials */
.sc-ql {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}
.sc-quote {
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  text-align: left;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .4s ease, transform .4s ease;
}
.sc-qs { font-size: 8px; color: #FFB800; margin-bottom: 5px; letter-spacing: .1em; }
.sc-qt { font-size: 8.5px; color: rgba(255,255,255,.68); line-height: 1.5; margin-bottom: 5px; }
.sc-qn { font-size: 7.5px; color: rgba(255,255,255,.35); }
#sc-reviews.sc-revealed .sc-quote { opacity: 1; transform: translateX(0); }
#sc-reviews.sc-revealed .sc-quote:nth-child(1) { transition-delay: 0s; }
#sc-reviews.sc-revealed .sc-quote:nth-child(2) { transition-delay: .1s; }
#sc-reviews.sc-revealed .sc-quote:nth-child(3) { transition-delay: .2s; }

/* S10: Pricing */
.sc-pg {
  display: flex;
  gap: 6px;
  padding: 0 14px 14px;
  flex: 1;
  align-items: stretch;
}
.sc-price-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.sc-pc-hl {
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
  transform: translateY(8px) scale(1.02);
}
.sc-pc-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--green);
  color: #0a0a0a;
  border-radius: 20px;
  letter-spacing: .05em;
}
.sc-pc-n { font-size: 8.5px; font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 5px; }
.sc-pc-p { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.04em; line-height: 1; margin-bottom: 4px; }
.sc-pc-p span { font-size: 9px; font-weight: 500; color: rgba(255,255,255,.35); }
.sc-pc-d { font-size: 7.5px; color: rgba(255,255,255,.32); }
#sc-pricing.sc-revealed .sc-price-card { opacity: 1; transform: translateY(0) !important; }
#sc-pricing.sc-revealed .sc-price-card:nth-child(1) { transition-delay: 0s; }
#sc-pricing.sc-revealed .sc-price-card:nth-child(2) { transition-delay: .1s; }
#sc-pricing.sc-revealed .sc-price-card:nth-child(3) { transition-delay: .2s; }

/* S11: FAQ */
.sc-faq-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}

/* S12: Final */
#sc-final {
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--green) 12%, transparent) 0%, transparent 65%);
  position: relative;
}
.sc-final-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--green) 7%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.sc-final-logo {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  color: color-mix(in srgb, var(--green) 70%, transparent);
  margin-bottom: 14px;
  opacity: 0;
  transition: opacity .5s ease;
}
.sc-fh2 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.sc-fbtns {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease .25s, transform .4s ease .25s;
}
.sc-fcta {
  padding: 8px 16px;
  background: var(--green);
  color: #0a0a0a;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
}
.sc-fghost {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.6);
  font-size: 9.5px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
}
#sc-final.sc-revealed .sc-final-logo { opacity: 1; }
#sc-final.sc-revealed .sc-fh2 { opacity: 1; transform: translateY(0); }
#sc-final.sc-revealed .sc-fbtns { opacity: 1; transform: translateY(0); }

/* Additional scene utility classes */
.sc-stat {
  margin-top: 10px;
  font-size: 7.5px;
  font-weight: 600;
  color: rgba(255,255,255,.28);
  letter-spacing: .08em;
}
.sc-problem-sub {
  font-size: 8.5px;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
}
.sc-label-gold { color: #FFB800; }
.sc-final-sub {
  font-size: 8px;
  color: rgba(255,255,255,.35);
  margin: 0 0 14px;
  letter-spacing: .04em;
}
.sc-pc-feats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  width: 100%;
}
.sc-pc-f {
  font-size: 7.5px;
  color: rgba(255,255,255,.45);
  text-align: left;
}

/* ── Ambient floating elements around laptop ──────────────────────── */
#zz-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

/* Crystal shards */
.zz-shard {
  position: absolute;
  width: 14px;
  height: 22px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--green) 35%, transparent) 0%, rgba(65,105,225,.25) 100%);
  clip-path: polygon(50% 0%, 92% 38%, 70% 100%, 30% 100%, 8% 38%);
  animation: zz-shard-float var(--ss,6s) ease-in-out infinite;
  animation-delay: var(--sd, 0s);
  opacity: 0.55;
  filter: blur(0.3px);
}
@keyframes zz-shard-float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

/* Holographic side panels */
.zz-holo-panel {
  position: absolute;
  width: 80px;
  height: 52px;
  background: linear-gradient(135deg, rgba(65,105,225,.07) 0%, color-mix(in srgb, var(--green) 5%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--green) 10%, transparent);
  border-radius: 5px;
  animation: zz-holo-float var(--hs,8s) ease-in-out infinite;
  animation-delay: var(--hd, 0s);
  overflow: hidden;
}
.zz-holo-panel::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  animation: zz-scan 3.5s linear infinite;
}
.zz-holo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 4px, color-mix(in srgb, var(--green) 4%, transparent) 4px, color-mix(in srgb, var(--green) 4%, transparent) 5px);
}
@keyframes zz-holo-float {
  0%,100% { transform: translateY(0) rotate(-0.5deg); opacity: 0.6; }
  50%      { transform: translateY(-10px) rotate(0.5deg); opacity: 0.85; }
}
@keyframes zz-scan {
  0%   { top: -1px; }
  100% { top: 100%; }
}

/* Particle dots */
.zz-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 75%, transparent);
  box-shadow: 0 0 5px color-mix(in srgb, var(--green) 50%, transparent), 0 0 10px color-mix(in srgb, var(--green) 20%, transparent);
  animation: zz-dot-pulse 4s ease-in-out infinite;
  animation-delay: var(--dd, 0s);
}
@keyframes zz-dot-pulse {
  0%,100% { transform: scale(1);   opacity: 0.55; }
  50%      { transform: scale(1.8); opacity: 1; }
}

/* Glow orbs */
.zz-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65,105,225,.1) 0%, transparent 70%);
  animation: zz-orb-breathe var(--os,10s) ease-in-out infinite;
  animation-delay: var(--od, 0s);
}
@keyframes zz-orb-breathe {
  0%,100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.25); opacity: 1; }
}

/* ── FAQ ───────────────────────────────────────────────────────────── */
.mba-faq-list { display: flex; flex-direction: column; }
.mba-faq-item { border-bottom: 1px solid rgba(255,255,255,.055); }
.mba-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  gap: 8px;
  user-select: none;
}
.mba-faq-q:hover { color: #fff; }
.mba-faq-ico {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.mba-faq-ico svg {
  width: 8px;
  height: 8px;
  stroke: rgba(255,255,255,.45);
  stroke-width: 1.5;
  fill: none;
  transition: transform .3s;
}
.mba-faq-open .mba-faq-ico svg { transform: rotate(45deg); stroke: var(--green); }
.mba-faq-a {
  font-size: 9.5px;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 2px;
}
.mba-faq-open .mba-faq-a { max-height: 120px; padding: 0 2px 9px; }

/* ── Contact ───────────────────────────────────────────────────────── */
.mba-cta-blk { margin-bottom: 20px; }
.mba-cta-h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 0 0 8px; }
.mba-cta-sub { font-size: 10px; color: rgba(255,255,255,.45); line-height: 1.55; margin-bottom: 12px; }
.mba-cta-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.mba-cta-p, .mba-cta-g {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.mba-cta-p { background: var(--green); color: #0a0a0a; }
.mba-cta-g { border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); }
.mba-ftr { border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px; }
.mba-ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.mba-ftr-logo { font-size: 9px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.42); margin-bottom: 4px; }
.mba-ftr-tag { font-size: 9px; color: rgba(255,255,255,.28); line-height: 1.5; }
.mba-ftr-hd { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 5px; }
.mba-ftr-lnk { display: block; font-size: 9px; color: rgba(255,255,255,.38); text-decoration: none; margin-bottom: 4px; }
.mba-ftr-bar { font-size: 8.5px; color: rgba(255,255,255,.2); border-top: 1px solid rgba(255,255,255,.05); padding-top: 10px; }

/* ── MacBook pointer-events: enabled after zoom ──────────────────── */
#zz-mb-wrap.zz-ready { pointer-events: auto; }
#zz-mb-wrap { pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #zz-stage { height: auto; min-height: 100vh; }
  #zz-pin { position: relative; height: auto; }
  #zz-hero { position: relative; padding: 16vh 20px 20px; height: auto; z-index: 10; }
  #zz-mb-wrap { display: none; }
  /* Show app inline on mobile */
  #mb-app {
    position: relative;
    height: auto;
    min-height: 80vh;
  }
  .mba-pg { position: relative; opacity: 1 !important; pointer-events: all !important; display: none; min-height: 400px; }
  .mba-pg.mba-pg-on { display: flex; }
  .mba-strat-grid { grid-template-columns: 1fr; }
  .mba-sc-w2 { grid-column: span 1; }
  .mba-meta-body { flex-direction: column; }
  .mba-ad-card { width: 100%; }
  .mba-rev-grid { grid-template-columns: 1fr; }
  .mba-dash-grid { grid-template-columns: 1fr; }
  .mba-ftr-grid { grid-template-columns: 1fr; }
}

/* ── Virtual cursor ────────────────────────────────────────────────── */
#zz-cursor {
  position: absolute;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  left: 50%;
  top: 50%;
  transform: translate(-1px, -1px);
  transition: opacity .5s ease,
              left .72s cubic-bezier(.22,.68,0,1.1),
              top  .72s cubic-bezier(.22,.68,0,1.1);
  line-height: 0;
}
#zz-cursor.zz-cursor-vis { opacity: 1; }
#zz-cursor svg { width: 13px; height: 19px; display: block; }
.zz-cr {
  position: absolute;
  top: -5px; left: -5px;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
}
.zz-cr.zz-cr-anim { animation: zz-click-ring .55s cubic-bezier(.22,.68,0,1) forwards; }
@keyframes zz-click-ring {
  0%   { transform: scale(0);   opacity: .85; }
  60%  { transform: scale(1.8); opacity: .4; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ── MacBook ambient scene ─────────────────────────────────────────── */
#zz-mb-wrap::before {
  content: '';
  position: absolute;
  inset: 5% 5%;
  background: radial-gradient(ellipse at 50% 40%, rgba(90,90,200,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/* Desk/surface reflection below the laptop */
#zz-mb-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 8%; right: 8%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(255,255,255,.055) 0%, transparent 80%);
  filter: blur(6px);
  pointer-events: none;
}

/* ── Final Hero (post-close CTA) ──────────────────────────────────── */
#zz-final-hero {
  position: absolute;
  bottom: 10%;
  left: 0; right: 0;
  text-align: center;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
#zz-final-hero.zz-fh-vis {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.zz-fh-inner { padding: 0 24px; }
.zz-fh-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
  font-family: 'Geist', system-ui, sans-serif;
}
.zz-fh-h2 {
  font-size: clamp(22px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 14px;
  font-family: 'Geist', system-ui, sans-serif;
}
.zz-fh-sub {
  font-size: clamp(11px, 1.1vw, 15px);
  color: rgba(255,255,255,.46);
  margin: 0 0 28px;
  font-family: 'Geist', system-ui, sans-serif;
}
.zz-fh-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--green);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: -.01em;
  font-family: 'Geist', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.zz-fh-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--green) 38%, transparent);
}

/* ════════════════════════════════════════════════════════════════════
   ORIVEN — CAMPAIGN JOURNEY LANDING PAGE
   ════════════════════════════════════════════════════════════════════ */

/* ── Campaign Generator ─────────────────────────────────────────────── */
#ov-generator {
  height: 65vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07070A;
  padding: 0 24px;
  position: relative;
}
.ov-gen-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  width: 100%;
}
.ov-gen-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.ov-gen-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 32px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  min-height: 88px;
  margin-bottom: 20px;
  box-shadow: 0 0 80px color-mix(in srgb, var(--green) 4%, transparent), inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .3s, box-shadow .3s;
}
.ov-gen-field:has(.ov-gen-text:not(:empty)) {
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
  box-shadow: 0 0 80px color-mix(in srgb, var(--green) 8%, transparent), inset 0 1px 0 rgba(255,255,255,.05);
}
.ov-gen-spark {
  color: var(--green);
  font-size: .75em;
  flex-shrink: 0;
  opacity: .8;
}
.ov-gen-text { flex: 1; text-align: left; }
.ov-gen-cursor {
  width: 2px;
  height: 1.05em;
  background: var(--green);
  flex-shrink: 0;
  border-radius: 1px;
  animation: ov-blink 1s step-end infinite;
}
@keyframes ov-blink {
  0%,100%{ opacity:1; }
  50%{ opacity:0; }
}
.ov-gen-hint {
  font-size: 13px;
  color: rgba(255,255,255,.22);
  letter-spacing: .04em;
}

/* ── Ch 7: Full Campaign ────────────────────────────────────────────── */
.ov-full-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 820px;
}
.ov-full-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  width: 100%;
}
.ov-fa {
  padding: 22px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease, border-color .4s;
}
.ov-fa.ov-vis {
  opacity: 1;
  transform: translateY(0);
  border-color: color-mix(in srgb, var(--green) 14%, transparent);
}
.ov-fa-icon { font-size:22px; color:color-mix(in srgb, var(--green) 55%, transparent); margin-bottom:10px; line-height:1; }
.ov-fa-name { font-size:14px; font-weight:700; color:#fff; margin-bottom:5px; letter-spacing:-.01em; }
.ov-fa-detail { font-size:11px; color:rgba(255,255,255,.32); line-height:1.5; }
.ov-full-caption {
  font-size: 16px;
  color: rgba(255,255,255,.4);
  opacity: 0;
  transition: opacity .6s ease;
  text-align: center;
  letter-spacing: -.01em;
}
.ov-full-caption.ov-vis { opacity: 1; }

/* ── Hero ──────────────────────────────────────────────────────────── */
#ov-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #07070A;
}
#ov-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#ov-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 880px;
}
.ov-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}
.ov-h1 {
  font-size: clamp(38px, 5.8vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 24px;
}
.ov-hero-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: rgba(255,255,255,.48);
  line-height: 1.65;
  margin: 0 0 44px;
}
.ov-hero-desc {
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,.46);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}
.ov-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ov-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  background: var(--green);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.ov-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--green) 30%, transparent); }
.ov-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.ov-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.ov-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.28);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ov-scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: ov-sb-pulse 2.2s ease-in-out infinite;
}
@keyframes ov-sb-pulse {
  0%,100%{ transform:scaleY(1); opacity:.4; }
  50%{ transform:scaleY(1.2); opacity:1; }
}

/* ── Chapter scaffold ──────────────────────────────────────────────── */
#lp-stage { background: #07070A; }
.ov-ch {
  position: relative;
  height: 200vh;
}
#ch-2, #ch-3, #ch-7 { height: 220vh; }
.ov-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 72px 24px 24px;
  background: #07070A;
}
.ov-ch-label {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  white-space: nowrap;
}
.ov-ch-n { color: var(--green); opacity: .7; }

/* ── Ch 1: The Idea ────────────────────────────────────────────────── */
.ov-idea-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}
.ov-idea-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--green) 8%, transparent);
  animation: ov-ring-pulse 4s ease-in-out infinite;
}
.ov-ir-1 { width: 320px; height: 320px; }
.ov-ir-2 { width: 500px; height: 500px; animation-delay: -2s; border-color: color-mix(in srgb, var(--green) 4%, transparent); }
@keyframes ov-ring-pulse {
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.04); opacity:.5; }
}
.ov-idea-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 56px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .7s ease, transform .7s ease;
}
.ov-idea-card.ov-vis { opacity: 1; transform: translateY(0) scale(1); }
.ov-idea-spark { font-size: 28px; color: var(--green); line-height: 1; }
.ov-idea-title {
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.2;
}
.ov-idea-sub { font-size: 13px; color: rgba(255,255,255,.4); letter-spacing: .04em; text-transform: uppercase; }
.ov-idea-caption {
  padding-bottom: 20px;
  font-size: 15px;
  color: rgba(255,255,255,.35);
  opacity: 0;
  transition: opacity .6s ease .4s;
}
.ov-idea-caption.ov-vis { opacity: 1; }

/* ── Ch 2: Strategy ────────────────────────────────────────────────── */
.ov-strat-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 820px;
}
.ov-strat-nucleus {
  padding: 14px 28px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-strat-nucleus.ov-vis { opacity: 1; transform: scale(1); }
.ov-strat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 660px;
}
.ov-sc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.ov-sc.ov-vis { opacity: 1; transform: translateY(0); }
.ov-sc-icon { font-size: 20px; color: color-mix(in srgb, var(--green) 60%, transparent); line-height: 1; }
.ov-sc span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); letter-spacing: .02em; }

/* ── Ch 3: Blueprint ────────────────────────────────────────────────── */
.ov-bp-scene {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 360px;
}
.ov-bp-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .4s ease, transform .4s ease;
}
.ov-bp-step.ov-vis { opacity: 1; transform: translateX(0); }
.ov-bp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  margin-left: 3px;
}
.ov-bp-dot-live { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px color-mix(in srgb, var(--green) 50%, transparent); }
.ov-bp-txt { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.55); padding: 12px 0; }
.ov-bp-step.ov-vis .ov-bp-txt { color: rgba(255,255,255,.88); }
.ov-bp-line {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), color-mix(in srgb, var(--green) 20%, transparent));
  margin-left: 8px;
  transition: height .3s ease;
}
.ov-bp-line.ov-vis { height: 24px; }

/* ── Ch 4: Ads ──────────────────────────────────────────────────────── */
.ov-ads-scene {
  display: grid;
  grid-template-columns: 1fr 1fr 130px 130px;
  gap: 12px;
  width: 100%;
  max-width: 800px;
  align-items: start;
}
.ov-ad {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}
.ov-ad.ov-vis { opacity: 1; transform: translateY(0); }
.ov-ad-platform {
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-ad-visual {
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.ov-av-ig { background: linear-gradient(145deg,#2D1B4E,#1A0E2E); }
.ov-av-ig::after,.ov-av-fb::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.5),transparent 60%); }
.ov-av-fb { background: linear-gradient(145deg,#0D2137,#091825); }
.ov-av-disp { background: linear-gradient(145deg,#0A1A0A,#051005); height:100px; }
.ov-av-vid { background: #0A0A0D; height:100px; flex-direction:column; justify-content:center; align-items:center; gap:8px; padding:0; }
.ov-av-caption { position:relative; z-index:1; font-size:15px; font-weight:800; color:#fff; line-height:1.2; letter-spacing:-.02em; }
.ov-av-disp .ov-av-caption { position:static; font-size:12px; padding:10px; }
.ov-ad-footer { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; }
.ov-ad-brand { font-size:11px; font-weight:700; color:rgba(255,255,255,.5); }
.ov-ad-cta-pill { font-size:9px; font-weight:700; padding:4px 10px; background:var(--green); color:#0a0a0a; border-radius:20px; }
.ov-vid-play { font-size:20px; color:rgba(255,255,255,.6); }
.ov-vid-bar { width:80%; height:2px; background:rgba(255,255,255,.1); border-radius:1px; }
.ov-vid-fill { width:35%; height:100%; background:var(--green); border-radius:1px; }

/* ── Ch 5: Landing Page Preview ─────────────────────────────────────── */
.ov-lp-scene { width:100%; max-width:600px; }
.ov-lp-browser {
  background: #111114;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-lp-browser.ov-vis { opacity:1; transform:translateY(0); }
.ov-lp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0D0D10;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ov-lp-dots { display:flex; gap:5px; }
.ov-lp-dots i { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.15); font-style:normal; }
.ov-lp-url { font-size:11px; color:rgba(255,255,255,.3); flex:1; text-align:center; padding:3px 12px; background:rgba(255,255,255,.04); border-radius:6px; }
.ov-lp-sec { padding:24px; border-bottom:1px solid rgba(255,255,255,.06); opacity:0; transition:opacity .4s ease; }
.ov-lp-sec.ov-vis { opacity:1; }
.ov-lps-hero { background:linear-gradient(135deg,#0D1A2E,#070710); }
.ov-lps-h1 { font-size:20px; font-weight:800; color:#fff; letter-spacing:-.03em; margin-bottom:6px; }
.ov-lps-sub { font-size:12px; color:rgba(255,255,255,.45); margin-bottom:14px; }
.ov-lps-btn { display:inline-block; padding:8px 18px; background:var(--green); color:#0a0a0a; font-size:11px; font-weight:700; border-radius:20px; }
.ov-lps-benefits { display:flex; gap:12px; flex-wrap:wrap; }
.ov-lps-bitem { font-size:11px; color:rgba(255,255,255,.55); }
.ov-lps-social { text-align:center; }
.ov-lps-stars { color:var(--green); font-size:14px; letter-spacing:2px; margin-bottom:4px; }
.ov-lps-rev { font-size:11px; color:rgba(255,255,255,.4); }

/* ── Ch 6: Content System ───────────────────────────────────────────── */
.ov-content-scene {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  width: 100%;
  max-width: 780px;
}
.ov-ct {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
  min-height: 100px;
}
.ov-ct.ov-vis { opacity:1; transform:translateY(0); }
.ov-ct-tag { display:inline-block; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--green); background:color-mix(in srgb, var(--green) 10%, transparent); border-radius:4px; padding:2px 7px; margin-bottom:8px; }
.ov-ct-title { font-size:12px; font-weight:600; color:rgba(255,255,255,.7); line-height:1.4; margin-bottom:10px; }
.ov-ct-lines span { display:block; height:2px; background:rgba(255,255,255,.08); border-radius:1px; margin-bottom:5px; }
.ov-ct-lines span:nth-child(1){ width:90%; }
.ov-ct-lines span:nth-child(2){ width:75%; }
.ov-ct-lines span:nth-child(3){ width:55%; }
.ov-ct-img { height:54px; background:linear-gradient(135deg,#1A0E2E,#0D1A2E); border-radius:8px; margin-bottom:8px; }
.ov-ct-caption,.ov-ct-dur { font-size:11px; color:rgba(255,255,255,.4); margin-top:4px; }
.ov-ct-tweet { font-size:11px; color:rgba(255,255,255,.55); line-height:1.5; font-style:italic; margin-top:6px; }

/* ── Ch 7: Brand System ─────────────────────────────────────────────── */
.ov-brand-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 600px;
}
.ov-bs-top {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-bs-top.ov-vis { opacity:1; transform:translateY(0); }
.ov-bs-palette { display:flex; gap:8px; }
.ov-bs-swatch { width:40px; height:40px; border-radius:10px; }
.ov-bsv-label { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:8px; }
.ov-bsv-tags { display:flex; gap:6px; flex-wrap:wrap; }
.ov-bsv-tags span { padding:4px 10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:20px; font-size:11px; color:rgba(255,255,255,.6); }
.ov-bs-assets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.ov-bs-assets.ov-vis { opacity:1; transform:translateY(0); }
.ov-bsa {
  padding: 10px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  position: relative;
}
.ov-bsa::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,color-mix(in srgb, var(--green) 30%, transparent),transparent); }
.ov-bs-caption { font-size:14px; color:rgba(255,255,255,.35); text-align:center; opacity:0; transition:opacity .5s ease .3s; }
.ov-bs-caption.ov-vis { opacity:1; }

/* ── Ch 8: Launch ───────────────────────────────────────────────────── */
.ov-launch-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 400px;
}
.ov-lr {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .6s ease, transform .8s ease;
}
.ov-lr-1 { width:160px; height:160px; }
.ov-lr-2 { width:280px; height:280px; transition-delay:.1s; }
.ov-lr-3 { width:400px; height:400px; transition-delay:.2s; }
.ov-lr.ov-vis { opacity:1; transform:scale(1); }
.ov-launch-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .5s ease .3s, transform .5s ease .3s;
}
.ov-launch-core.ov-vis { opacity:1; transform:scale(1); }
.ov-lc-arrow { font-size:32px; color:var(--green); line-height:1; animation:ov-lc-float 2.5s ease-in-out infinite; }
@keyframes ov-lc-float { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
.ov-lc-txt { font-size:13px; font-weight:700; color:rgba(255,255,255,.6); letter-spacing:.08em; text-transform:uppercase; }

/* ── Ch 9: Results ──────────────────────────────────────────────────── */
.ov-results-scene {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
  width: 100%;
  max-width: 800px;
  text-align: center;
}
.ov-result { opacity:0; transform:translateY(20px); transition:opacity .5s ease, transform .5s ease; }
.ov-result.ov-vis { opacity:1; transform:translateY(0); }
.ov-res-num { font-size:clamp(48px,6vw,80px); font-weight:800; color:var(--green); letter-spacing:-.04em; line-height:1; margin-bottom:12px; font-variant-numeric:tabular-nums; }
.ov-res-label { font-size:13px; color:rgba(255,255,255,.4); letter-spacing:.02em; line-height:1.4; }

/* ── Ch 10: Testimonials ────────────────────────────────────────────── */
.ov-reviews-scene {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
}
.ov-rev {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.ov-rev.ov-vis { opacity:1; transform:translateY(0); }
.ov-rev-stars { color:var(--green); letter-spacing:2px; font-size:12px; margin-bottom:16px; }
.ov-rev-q { margin:0 0 20px; font-size:14px; line-height:1.65; color:rgba(255,255,255,.7); font-style:normal; letter-spacing:-.01em; }
.ov-rev-author { font-size:11px; color:rgba(255,255,255,.3); font-weight:600; letter-spacing:.04em; }

/* ── Ch 11: Pricing ─────────────────────────────────────────────────── */
.ov-pricing-scene {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  width: 100%;
  max-width: 860px;
  align-items: start;
}
.ov-pc {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease, border-color .2s, box-shadow .2s;
}
.ov-pc.ov-vis { opacity:1; transform:translateY(0); }
.ov-pc.ov-vis:hover { border-color: rgba(255,255,255,.18); box-shadow: 0 8px 40px rgba(0,0,0,.3); }
.ov-pc-pro { background:color-mix(in srgb, var(--green) 4%, transparent); border-color:color-mix(in srgb, var(--green) 20%, transparent); }
.ov-pc-pro.ov-vis:hover { border-color: color-mix(in srgb, var(--green) 38%, transparent); box-shadow: 0 0 60px color-mix(in srgb, var(--green) 7%, transparent), 0 8px 40px rgba(0,0,0,.3); }
/* Fixed-height header: badge (optional) + tier name — keeps price at same Y */
.ov-pc-head { height: 60px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 16px; }
.ov-pc-badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); border-radius: 20px; margin-bottom: 8px; width: fit-content; }
.ov-pc-tier { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .06em; text-transform: uppercase; }
.ov-pc-pro .ov-pc-tier { color: color-mix(in srgb, var(--green) 70%, transparent); }
/* Fixed-height price block: price + credits line — keeps desc + list + btn at same Y */
.ov-pc-price-block { height: 80px; display: flex; flex-direction: column; justify-content: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ov-pc-price { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
.ov-pc-price span { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.35); margin-left: 2px; }
/* Count-up wrapper around the number itself — restore the big-number look
   the plain ".ov-pc-price span" rule above would otherwise shrink it to. */
.ov-pc-price .ov-pc-price-num { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }
.ov-pc-price-cs { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.ov-pc-credits { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); }
.ov-pc-desc { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6; margin-bottom: 18px; }
.ov-pc-list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.ov-pc-list li { font-size: 12px; color: rgba(255,255,255,.55); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); display: flex; align-items: center; gap: 8px; }
.ov-pc-list li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 11px; flex-shrink: 0; }
/* Marketing/Pricing Redesign — "not included" lines: muted, ✕ instead of
   ✓, so a Starter/Creator card honestly shows what it doesn't have
   without looking broken or like an error state. */
.ov-pc-list li.ov-pc-feat-excluded { color: rgba(255,255,255,.28); }
.ov-pc-list li.ov-pc-feat-excluded::before { content: '✕'; color: rgba(255,255,255,.22); }
/* Final Pricing Cleanup pass — each feature row now stacks its label above
   a small subdued cost line where the row is a costed action (Image/Video
   Ads, ORIVEN Chat, Research, Autopilot); the ✓/✕ before the row stays the
   primary, at-a-glance availability signal, the cost is secondary. Empty
   string for uncosted rows (Launch/Campaigns/Business/etc) — no visual
   change there, .ov-pc-feat-cost is simply absent. flex-wrap so a long
   label + cost pair still breaks cleanly at mobile widths instead of
   forcing horizontal scroll or overlap. */
.ov-pc-list li { flex-wrap: wrap; }
.ov-pc-feat-cost { flex-basis: 100%; font-size: 10.5px; color: rgba(255,255,255,.32); margin-left: 19px; }
.ov-pc-list li.ov-pc-feat-excluded .ov-pc-feat-cost { color: rgba(255,255,255,.2); }
.ov-pc-btn { display: block; width: 100%; padding: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; box-sizing: border-box; }
.ov-pc-btn:hover { background: rgba(255,255,255,.12); }
.ov-pc-btn-pro { background: var(--green); border-color: var(--green); color: #0a0a0a; }
.ov-pc-btn-pro:hover { background: var(--gm); }
.ov-pc-btn-agency { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.15); }
.ov-pc-btn-agency:hover { background: rgba(255,255,255,.1); }

/* ── Ch 12: FAQ ─────────────────────────────────────────────────────── */
.ov-faq-scene { width:100%; max-width:640px; display:flex; flex-direction:column; }
.ov-faq { border-bottom:1px solid rgba(255,255,255,.07); opacity:0; transition:opacity .35s ease; }
.ov-faq.ov-vis { opacity:1; }
.ov-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  font-family: 'Geist', system-ui, sans-serif;
  transition: color .15s;
}
.ov-faq-q:hover { color:#fff; }
.ov-faq-ic { font-size:20px; font-weight:300; color:rgba(255,255,255,.3); flex-shrink:0; transition:transform .25s ease, color .15s; line-height:1; }
.ov-faq.ov-faq-open .ov-faq-ic { transform:rotate(45deg); color:var(--green); }
.ov-faq-a { font-size:13px; color:rgba(255,255,255,.45); line-height:1.7; max-height:0; overflow:hidden; transition:max-height .35s ease, padding .35s ease; }
.ov-faq.ov-faq-open .ov-faq-a { max-height:200px; padding-bottom:20px; }

/* ── Final CTA ──────────────────────────────────────────────────────── */
#ov-final {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
  background: #07070A;
}
#ov-final::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 7%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.ov-final-inner { position:relative; z-index:1; max-width:1100px; margin: 0 auto; text-align: center; } /* Redesign: was 960px */
.ov-final-kicker { font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:20px; }
.ov-final-h2 { font-size:clamp(32px,5vw,68px); font-weight:800; letter-spacing:-.04em; color:#fff; line-height:1.05; margin:0 0 16px; }
.ov-final-sub { font-size:15px; color:rgba(255,255,255,.38); margin:0 0 40px; }
.ov-final-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:32px; }
.ov-final-contact { font-size:12px; color:rgba(255,255,255,.2); margin:0; }
.ov-final-email { color:rgba(255,255,255,.35); text-decoration:none; transition:color .15s; }
.ov-final-email:hover { color:color-mix(in srgb, var(--green) 70%, transparent); }

/* ── Mid-page inline CTAs ───────────────────────────────────────────── */
.ov-inline-cta {
  height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  background: #07070A;
  gap: 28px;
  position: relative;
}
.ov-inline-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 500px; height: 280px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 4%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.ov-icta-txt {
  position: relative;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: -.02em;
  max-width: 560px;
  line-height: 1.45;
}
.ov-inline-cta .ov-btn-primary { position: relative; }

/* ── Ch 4: Ad Creative (v2) ─────────────────────────────────────────── */
.ov-ads2-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 780px;
  align-items: stretch;
}
.ov-ad2 {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-ad2.ov-vis { opacity:1; transform:translateY(0); }
.ov-ad2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-ad2-platform {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.ov-ad2-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E1306C;
  flex-shrink: 0;
}
.ov-ad2-dot-fb { background: #1877F2; }
.ov-ad2-brand { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: -.01em; }
.ov-ad2-visual {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 22px 22px;
  position: relative;
}
.ov-av2-ig {
  background: linear-gradient(155deg, #1a0a2e 0%, #0d1a2e 40%, #0a0a0a 100%);
}
.ov-av2-fb {
  background: linear-gradient(155deg, #0d1a2e 0%, #0a1520 40%, #060a0a 100%);
}
.ov-av2-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 3px 9px;
}
.ov-av2-h {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.ov-av2-sub {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.ov-ad2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ov-ad2-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .02em;
}
.ov-ad2-meta {
  font-size: 10px;
  color: rgba(255,255,255,.22);
  letter-spacing: .01em;
}

/* ── Ch 5: Landing Page Preview (clean, no browser chrome) ──────────── */
.ov-pg-scene {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 680px;
}
.ov-pg-hero {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 40px 40px 36px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-pg-hero.ov-vis { opacity:1; transform:translateY(0); }
.ov-pg-logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 60%, transparent);
  margin-bottom: 24px;
}
.ov-pg-h {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.ov-pg-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  margin: 0 0 28px;
}
.ov-pg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ov-pg-btn {
  padding: 11px 24px;
  background: var(--green);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  border-radius: 40px;
  cursor: default;
  letter-spacing: -.01em;
}
.ov-pg-ghost {
  padding: 11px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 500;
  border-radius: 40px;
  cursor: default;
}
.ov-pg-benefits {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.ov-pg-benefits.ov-vis { opacity:1; transform:translateY(0); }
.ov-pg-benefit {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.ov-pg-b-icon { color: var(--green); font-size: 14px; }
.ov-pg-b-txt { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: -.01em; }
.ov-pg-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease .2s, transform .5s ease .2s;
}
.ov-pg-proof.ov-vis { opacity:1; transform:translateY(0); }
.ov-pg-stars { color: var(--green); font-size: 13px; letter-spacing: 2px; }
.ov-pg-rc { font-size: 12px; color: rgba(255,255,255,.38); }

/* ── Ch 6: Content (4 cards, 2×2) ──────────────────────────────────── */
.ov-content2-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 700px;
}
.ov-ct2 {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.ov-ct2.ov-vis { opacity:1; transform:translateY(0); }
.ov-ct2-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 60%, transparent);
}
.ov-ct2-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0;
}
.ov-ct2-body { display:flex; flex-direction:column; gap:6px; }
.ov-ct2-line { height:2px; border-radius:2px; background:rgba(255,255,255,.08); }
.ov-ct2-line-sm { width:60%; }
.ov-ct2-line-md { width:80%; }
.ov-ct2-outcome {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  letter-spacing: .02em;
  margin-top: auto;
}
.ov-ct2-img-placeholder {
  height: 72px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 6%, transparent) 0%, rgba(100,120,255,.06) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
}
.ov-ct2-caption {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.ov-ct2-vid-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ov-ct2-play {
  width: 32px; height: 32px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--green);
  flex-shrink: 0;
}
.ov-ct2-dur { font-size: 11px; color: rgba(255,255,255,.35); }
.ov-ct2-creative {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ov-ct2-cr-badge {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 15%, transparent), rgba(100,120,255,.1));
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}
.ov-ct2-cr-size { font-size: 10px; color: rgba(255,255,255,.28); margin-top: 2px; }

/* ── Ch 9: Results (large bare numbers) ─────────────────────────────── */
.ov-stats-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 900px;
}
.ov-stat {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.ov-stat.ov-vis { opacity:1; transform:translateY(0); }
.ov-stat-num {
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.ov-stat-lbl {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.ov-stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,.22);
  letter-spacing: .02em;
}
.ov-stat-div {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
  align-self: center;
}

/* ── Scrollbar ──────────────────────────────────────────────────────── */
#view-landing {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--green) 25%, transparent) rgba(255,255,255,.04);
}
#view-landing::-webkit-scrollbar { width: 5px; }
#view-landing::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
#view-landing::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--green) 22%, transparent); border-radius: 3px; }
#view-landing::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--green) 40%, transparent); }

/* ── Section headers (shared) ────────────────────────────────────────── */
.ov-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 50%, transparent);
  margin-bottom: 14px;
}
.ov-section-h {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin: 0 0 52px;
}

/* ── Section 03 Campaign Showcase ────────────────────────────────────── */
#ov-showcase {
  background: #07070A;
  padding: 100px 48px 120px;
}
.ov-showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.ov-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  height: auto;
}
.ov-so {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  min-height: 280px;
  opacity: 0;
  transition: opacity .52s ease, transform .52s ease, border-color .22s, box-shadow .22s;
}
/* Converge from corners — campaign being assembled */
.ov-showcase-grid .ov-so:nth-child(1) { transform: translate(-22px, 22px); }
.ov-showcase-grid .ov-so:nth-child(2) { transform: translate(22px, 22px); }
.ov-showcase-grid .ov-so:nth-child(3) { transform: translate(-22px, -22px); }
.ov-showcase-grid .ov-so:nth-child(4) { transform: translate(22px, -22px); }
.ov-showcase-grid.ov-vis .ov-so { opacity: 1; transform: none; }
.ov-showcase-grid.ov-vis .ov-so:hover { border-color: color-mix(in srgb, var(--green) 15%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--green) 4%, transparent), 0 12px 32px rgba(0,0,0,.22); }
.ov-showcase-grid.ov-vis .ov-so:nth-child(1) { transition-delay: 0s; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(2) { transition-delay: .1s; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) { transition-delay: .2s; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(4) { transition-delay: .3s; }
.ov-so-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 60%, transparent);
  flex-shrink: 0;
}
/* Ad card */
.ov-so-ad-bg {
  flex: 1;
  background: linear-gradient(155deg, #1a0a2e 0%, #0d1a2e 50%, #060a0a 100%);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 0;
}
.ov-so-ad-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 8px;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: .04em;
}
.ov-so-ad-h {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.ov-so-ad-sub { font-size: 10px; color: rgba(255,255,255,.4); }
.ov-so-footer { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.ov-so-cta-pill { font-size: 11px; font-weight: 700; color: var(--green); }
.ov-so-meta { font-size: 9px; color: rgba(255,255,255,.2); }
/* Landing page card */
.ov-so-lp {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 0;
}
.ov-so-lp-logo {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 50%, transparent);
}
.ov-so-lp-h {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.ov-so-lp-sub { font-size: 10px; color: rgba(255,255,255,.4); line-height: 1.5; }
.ov-so-lp-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  border-radius: 30px;
  align-self: flex-start;
  cursor: default;
  margin-top: 2px;
}
/* Email card */
.ov-so-email {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.ov-so-em-subject {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: -.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.ov-so-em-line { height: 2px; border-radius: 2px; background: rgba(255,255,255,.07); }
.ov-em-sm { width: 65%; }
.ov-em-md { width: 82%; }
.ov-so-em-btn { margin-top: auto; font-size: 11px; font-weight: 700; color: var(--green); }
/* Social card */
.ov-so-social { flex:1; display:flex; flex-direction:column; gap:10px; min-height:0; }
.ov-so-social-img {
  flex: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 8%, transparent) 0%, rgba(100,120,255,.06) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  min-height: 0;
}
.ov-so-social-cap { font-size: 10px; color: rgba(255,255,255,.45); line-height: 1.5; flex-shrink:0; }
.ov-so-ht { color: color-mix(in srgb, var(--green) 40%, transparent); }

/* ── Results section ────────────────────────────────────────────────── */
#ov-results {
  background: #07070A;
  padding: 100px 48px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.ov-results-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.ov-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}
.ov-quotes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 52px;
}
.ov-quote {
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-quote.ov-vis { opacity:1; transform:translateY(0); }
.ov-quote p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.ov-quote cite { font-size: 11px; color: rgba(255,255,255,.25); font-style: normal; font-weight: 600; letter-spacing: .04em; }

/* ── Pricing section ────────────────────────────────────────────────── */
.ov-pricing-section {
  background: linear-gradient(180deg, #07070A 0%, #030d02 30%, #040e02 70%, #07070A 100%);
  padding: 100px 48px;
}
.ov-pricing-inner { max-width: 1400px; margin: 0 auto; text-align: center; } /* Redesign: was 1260px */
.ov-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}
/* ── Homepage + Pricing Polish Pass — compact "How credits work" strip.
   Replaces the old large .ov-pricing-credits-explainer + the separate
   .ov-pricing-compare table (removed: the cards themselves are now the
   comparison, per spec "De cards ZIJN de comparison"). Sits directly
   under the pricing cards with a much smaller top margin than before. ── */
.ov-pricing-sub-h { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; margin: 0 0 8px; }
/* Final Marketing Website Polish pass — pricing container widened. The
   default .ov-sp-section-inner (900px, shared by every other sub-page)
   was leaving large unused margins beside the 3 cards; .ov-pricing-fold
   -wide overrides it specifically for this page's fold section so the
   cards can use significantly more of the viewport. */
.ov-pricing-fold .ov-pricing-fold-wide.ov-sp-section-inner { max-width: 1360px; }
.ov-pricing-credits-mini { max-width: 900px; margin: 64px auto 0; text-align: center; scroll-margin-top: 100px; }
.ov-pricing-credits-note { margin-top: 36px; }
.ov-pricing-credits-lead { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.6; margin: 0 0 24px; }
.ov-pricing-credits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px;
  text-align: left;
}
.ov-pricing-credit-row {
  display: flex; align-items: baseline; gap: 8px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 12px 14px;
}
.ov-pricing-credit-num { font-size: 17px; font-weight: 800; color: var(--green); flex-shrink: 0; }
.ov-pricing-credit-eq { font-size: 12px; color: rgba(255,255,255,.25); flex-shrink: 0; }
.ov-pricing-credit-label { font-size: 12.5px; color: rgba(255,255,255,.6); }

@media (max-width: 768px) {
  .ov-pricing-credits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ov-pricing-credits-grid { grid-template-columns: 1fr; }
}

/* /pricing page — small additive rules for the dedicated page's own note
   + FAQ list (reuses .ov-faq/.ov-faq-q/.ov-faq-a from the homepage FAQ
   system unchanged). */
.ov-pricing-compare-note { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.35); margin: 20px 0 0; }
.ov-pricing-faq-list { max-width: 760px; margin: 32px auto 0; grid-template-columns: 1fr !important; }

/* ══════════════════════════════════════════════════════════════════
   Final Homepage Polish pass — "Experience Oriven" is a single, clearly
   contained visual BLOCK (spec: "large soft-gray block with a strong
   visual center and a simple CTA... not another generic section
   separated by horizontal lines"). .ov-experience-panel is the ONE
   deliberate exception to the page's continuous dark grid — a real
   light-gray panel, not transparent (spec explicitly allows this: "may
   have its own light-gray contained background because it is
   intentionally a separate visual panel"); everything around it keeps
   the shared grid via .ov-experience-section staying transparent as
   normal. Content is now just: colorful arrow motif, heading, one CTA —
   the supporting sentence was removed entirely, not replaced.
   ══════════════════════════════════════════════════════════════════ */
.ov-experience-section { padding: 100px 48px; text-align: center; }
.ov-experience-panel {
  max-width: 1240px; margin: 0 auto;
  background: var(--oriven-accent-dark, #26331A);
  border-radius: 32px;
  padding: 88px 48px;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.ov-experience-panel.ov-vis { opacity: 1; transform: translateY(0); }

.ov-exp-motif { display: flex; align-items: center; gap: 2px; margin-bottom: 36px; }
/* One accent (Electric Lime) throughout — forward motion reads through
   size + opacity progression, not a rainbow of hues (spec: "the six
   functional pieces... differentiated primarily through typography,
   position, motion... NOT by assigning unrelated colors" — the same
   one-system principle extends to this decorative motif). */
.ov-exp-arrow {
  opacity: 0; transform: translateX(-8px) scale(.85);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-experience-panel.ov-vis .ov-exp-arrow { opacity: .55; transform: translateX(0) scale(1); }
.ov-exp-arrow-1 { transition-delay: 0s; }
.ov-exp-arrow-2 { transition-delay: .08s; }
.ov-exp-arrow-3 { transition-delay: .16s; }
.ov-exp-arrow-4 { transition-delay: .24s; }
.ov-experience-panel.ov-vis .ov-exp-arrow-5 { opacity: 1; }
.ov-exp-arrow-5 { transition-delay: .32s; filter: drop-shadow(0 0 8px rgba(182,255,59,.45)); }

/* Final Marketing Website Refinement pass — panel is now Deep Moss, a
   dark accent surface (spec section 20), not Snow — .ov-section-h
   already defaults to Pure White for the dark page background
   everywhere else, so no override is needed here anymore. */
.ov-exp-panel-h { margin-bottom: 32px; }

@media (prefers-reduced-motion: reduce) {
  .ov-experience-panel, .ov-exp-arrow { transition: none; }
}
@media (max-width: 640px) {
  .ov-experience-section { padding: 64px 20px; }
  .ov-experience-panel { padding: 56px 28px; border-radius: 24px; }
  .ov-exp-arrow-5 { width: 44px; height: 44px; }
  .ov-exp-arrow-4 { width: 38px; height: 38px; }
  .ov-exp-arrow-3 { width: 32px; height: 32px; }
}

/* ── FAQ section ────────────────────────────────────────────────────── */
.ov-faq-section {
  background: #07070A;
  padding: 100px 48px;
}
.ov-faq-inner { max-width: 1300px; margin: 0 auto; } /* Redesign: was 780px */
.ov-faq-section > .ov-faq-inner > .ov-section-h,
.ov-faq-section > .ov-faq-inner > .ov-section-sub { text-align: center; }
.ov-faq-list { display: grid; grid-template-columns: 1fr; column-gap: 56px; }
@media (min-width: 900px) {
  /* Redesign: 2-column FAQ grid to use the full widened width instead of a
     single narrow centered list. Items fill row-by-row alternating
     columns (Q1/Q2 same row, Q3/Q4 next row, ...). */
  .ov-faq-list { grid-template-columns: 1fr 1fr; }
}

/* ── Section 01 Brand Identity ─────────────────────────────────────── */
#ov-brand-identity {
  background: #07070A;
  padding: 100px 48px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.ov-bi-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.ov-bi-card { text-align: left; }
.ov-bi-heading, .ov-cs-heading {
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin: 0 0 32px;
}
.ov-bi-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.ov-bi-card .ov-bi-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
/* Staggered reveal when card gets ov-vis */
.ov-bi-card.ov-vis .ov-bi-row { opacity: 1; transform: translateY(0); }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(1) { transition-delay: 0s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(2) { transition-delay: .07s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(3) { transition-delay: .14s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(4) { transition-delay: .21s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(5) { transition-delay: .28s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(6) { transition-delay: .35s; }
.ov-bi-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-bi-row:last-child { border-bottom: none; }
.ov-bi-key {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.28);
  letter-spacing: .06em;
  text-transform: uppercase;
  width: 150px;
  flex-shrink: 0;
}
.ov-bi-val {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: -.01em;
}
.ov-bi-colors { display: flex; gap: 8px; align-items: center; }
.ov-bi-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Section 02 Campaign Setup ─────────────────────────────────────── */
/* ── Section 02 Campaign Setup ─────────────────────────────────────── */
#ov-campaign-setup {
  background: #07070A;
  padding: 100px 48px;
  min-height: 75vh;
  display: flex;
  align-items: center;
}
.ov-cs-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.ov-cs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ov-cs-type {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: -.01em;
  opacity: 0;
  transition: opacity .38s ease, transform .38s ease;
}
/* Directional — chips enter from alternating sides */
.ov-cs-grid .ov-cs-type:nth-child(odd)  { transform: translateX(-28px); }
.ov-cs-grid .ov-cs-type:nth-child(even) { transform: translateX(28px); }
.ov-cs-grid .ov-cs-type:last-child      { transform: translateY(16px); }
.ov-cs-grid.ov-vis .ov-cs-type { opacity: 1; transform: none; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(1) { transition-delay: 0s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(2) { transition-delay: .06s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(3) { transition-delay: .12s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(4) { transition-delay: .18s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(5) { transition-delay: .24s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(6) { transition-delay: .30s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(7) { transition-delay: .36s; }
.ov-cs-active {
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  color: #fff;
}
.ov-cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.ov-cs-active .ov-cs-dot { background: var(--green); }

/* ── Section 04 Results ────────────────────────────────────────────── */
#ov-results .ov-section-label { margin-bottom: 10px; }
#ov-results .ov-section-h { margin-bottom: 60px; text-align: center; }

/* ── Section 05 Reviews — 3-card paginated ─────────────────────── */
.ov-reviews-section {
  background: #07070A;
  padding: 100px 48px 80px;
}
.ov-reviews-inner {
  max-width: 1400px; /* Redesign: was 1200px */
  margin: 0 auto;
  text-align: center;
}
/* Stage: clips animation overflow */
.ov-rev-stage {
  overflow: hidden;
  margin-bottom: 36px;
}
/* Row: 3-column grid, transitions for page animation */
.ov-rev-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: transform .38s cubic-bezier(.4,0,.2,1), opacity .32s ease;
}
.ov-rev-row.ov-row-exit-left  { transform: translateX(-32px); opacity: 0; }
.ov-rev-row.ov-row-exit-right { transform: translateX(32px);  opacity: 0; }
.ov-rev-row.ov-row-enter-right { transform: translateX(32px);  opacity: 0; transition: none; }
.ov-rev-row.ov-row-enter-left  { transform: translateX(-32px); opacity: 0; transition: none; }
/* Cards: always visible, equal height via flex */
.ov-rev-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.ov-rev-card:hover { border-color: rgba(255,255,255,.16); box-shadow: 0 4px 28px rgba(0,0,0,.3); }
.ov-rev-stars { color: var(--green); letter-spacing: 2px; font-size: 13px; margin-bottom: 18px; flex-shrink: 0; }
.ov-rev-q { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.7; font-style: italic; margin: 0; flex: 1; letter-spacing: -.01em; padding-bottom: 20px; }
.ov-rev-author { font-size: 11px; color: rgba(255,255,255,.28); font-weight: 600; letter-spacing: .05em; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
/* Navigation */
.ov-rev-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.ov-rev-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}
.ov-rev-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.ov-rev-nav-btn:disabled { opacity: .25; cursor: default; }

/* ══════════════════════════════════════════════════════════════════
   Final Marketing Website Structure pass — Proof section rebuild.
   Globe is now the centered visual centerpiece (no stats around it);
   below it, one editorial grid: a large non-clickable case-study block
   on the left, two large review blocks stacked on the right.
   ══════════════════════════════════════════════════════════════════ */
.ov-globe-center { max-width: 340px; margin: 8px auto 56px; }
@media (max-width: 640px) { .ov-globe-center { max-width: 240px; margin: 4px auto 40px; } }

.ov-proof-editorial { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; text-align: left; align-items: stretch; }

/* Large case-study block — deliberately NOT a link/card-with-hover; it's
   plain visible proof, not a clickable element (spec: "But do NOT make
   the case study a clickable card... No fake click interaction."). The
   one "See more examples" link at the bottom is the only actual link. */
.ov-proof-cs-large {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 36px 40px;
}
.ov-proof-cs-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(182,255,59,.85); background: rgba(182,255,59,.08); border-radius: 100px; padding: 4px 10px; margin-bottom: 16px;
}
.ov-proof-cs-large-title { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0 0 8px; }
.ov-proof-cs-large-sub { font-size: 14px; color: rgba(255,255,255,.5); margin: 0 0 28px; }
.ov-proof-cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.ov-proof-cs-col-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; color: rgba(255,255,255,.35); }
.ov-proof-cs-col-with .ov-proof-cs-col-h { color: rgba(182,255,59,.8); }
.ov-proof-cs-list { list-style: none; margin: 0; padding: 0; }
.ov-proof-cs-list li { font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.45); padding-left: 16px; position: relative; }
.ov-proof-cs-list li::before { content: '\2212'; position: absolute; left: 0; color: rgba(255,255,255,.25); }
.ov-proof-cs-col-with .ov-proof-cs-list li { color: rgba(255,255,255,.75); }
.ov-proof-cs-col-with .ov-proof-cs-list li::before { content: '\2713'; color: var(--green); }
.ov-proof-cs-note { font-size: 11.5px; color: rgba(255,255,255,.3); line-height: 1.6; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }
.ov-proof-cs-note a { color: rgba(182,255,59,.8); text-decoration: none; font-weight: 600; }
.ov-proof-cs-note a:hover { color: var(--green); }

/* Right column — 2 larger review blocks stacked (was 3-per-page). */
.ov-proof-rev-col { display: flex; flex-direction: column; }
.ov-proof-rev-col .ov-rev-stage { flex: 1; margin-bottom: 20px; }
.ov-proof-rev-col .ov-rev-row { display: flex; flex-direction: column; gap: 16px; }
.ov-proof-rev-col .ov-rev-card { padding: 26px 26px 22px; }
.ov-proof-rev-col .ov-rev-stars { font-size: 14px; margin-bottom: 14px; }
.ov-proof-rev-col .ov-rev-q { font-size: 14.5px; }
.ov-proof-rev-col .ov-rev-author { padding-top: 14px; }

@media (max-width: 900px) {
  .ov-proof-editorial { grid-template-columns: 1fr; }
  .ov-proof-cs-large { padding: 28px 26px; }
  .ov-proof-cs-cols { grid-template-columns: 1fr; gap: 20px; }
}
/* Dot indicators */
.ov-rev-nav-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ov-rev-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .2s, transform .2s;
  display: inline-block;
}
.ov-rev-dot.ov-dot-active {
  background: var(--green);
  transform: scale(1.4);
}

/* ── Section 06 Pricing (Pricing/Credit Consistency pass — Free, Starter,
   Creator, Professional; Free was previously excluded from the public
   landing page and this grid ran 3-across — restored to genuinely 4
   columns now that plans.js renderLPPricingCards includes Free's own
   card). ── */
.ov-pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 24px;
}

/* ── Final CTA updates ─────────────────────────────────────────────── */
#ov-final .ov-section-label { margin-bottom: 14px; }

/* ── Section 01 extended stagger (8 rows) ──────────────────────────── */
.ov-bi-card.ov-vis .ov-bi-row:nth-child(7) { transition-delay: .42s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(8) { transition-delay: .49s; }

/* ── Section 02 extended stagger (10 chips) ────────────────────────── */
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(8)  { transition-delay: .42s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(9)  { transition-delay: .48s; }
.ov-cs-grid.ov-vis .ov-cs-type:nth-child(10) { transition-delay: .54s; }

/* ── Section 03 Showcase — 8-card animation (alternating left/right) ─ */
.ov-showcase-grid .ov-so:nth-child(odd)  { transform: translateX(-22px); }
.ov-showcase-grid .ov-so:nth-child(even) { transform: translateX(22px); }
/* Override the corner-converge rules set earlier */
.ov-showcase-grid .ov-so:nth-child(1) { transform: translateX(-22px); }
.ov-showcase-grid .ov-so:nth-child(2) { transform: translateX(22px); }
.ov-showcase-grid .ov-so:nth-child(3) { transform: translateX(-22px); }
.ov-showcase-grid .ov-so:nth-child(4) { transform: translateX(22px); }
.ov-showcase-grid.ov-vis .ov-so:nth-child(5) { transition-delay: .28s; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(6) { transition-delay: .35s; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(7) { transition-delay: .42s; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(8) { transition-delay: .49s; }

/* ── Facebook Ad card ───────────────────────────────────────────────── */
.ov-so-fb { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ov-so-fb-badge { font-size: 8px; letter-spacing: .06em; color: rgba(255,255,255,.25); margin-bottom: 2px; }
.ov-so-fb-img {
  flex: 1;
  min-height: 80px;
  background: linear-gradient(135deg, #0d1a2e 0%, #1a2e1a 50%, #0d0d0d 100%);
  border-radius: 10px;
}
.ov-so-fb-body { padding: 4px 0 0; }
.ov-so-fb-h { font-size: clamp(13px, 1.3vw, 17px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 3px; }
.ov-so-fb-url { font-size: 9px; color: rgba(255,255,255,.22); }

/* ── Landing page trust line ────────────────────────────────────────── */
.ov-so-lp-trust { font-size: 9px; color: color-mix(in srgb, var(--green) 40%, transparent); margin-top: 4px; }

/* ── Email from line ────────────────────────────────────────────────── */
.ov-so-em-from { font-size: 9px; color: rgba(255,255,255,.2); margin-bottom: 6px; }

/* ── Video Concept card ─────────────────────────────────────────────── */
.ov-so-video { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.ov-so-scene { padding: 8px 0; }
.ov-so-scene-n {
  font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 50%, transparent); margin-bottom: 4px;
}
.ov-so-scene-d { font-size: 11px; color: rgba(255,255,255,.35); margin-bottom: 3px; }
.ov-so-scene-l { font-size: 12px; font-style: italic; color: rgba(255,255,255,.65); font-weight: 500; }
.ov-so-scene-div { height: 1px; background: rgba(255,255,255,.06); }

/* ── Creative Brief card ────────────────────────────────────────────── */
.ov-so-brief { flex: 1; display: flex; flex-direction: column; }
.ov-so-brief-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-so-brief-row:last-child { border-bottom: none; }
.ov-so-brief-k { font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.22); }
.ov-so-brief-v { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: -.01em; }

/* ── Marketing Strategy card ────────────────────────────────────────── */
.ov-so-strategy { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ov-so-strat-phase { }
.ov-so-strat-n {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 55%, transparent); margin-bottom: 6px;
}
.ov-so-strat-item { font-size: 11px; color: rgba(255,255,255,.45); padding: 2px 0; }

/* ── Audience Analysis card ─────────────────────────────────────────── */
.ov-so-audience { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
.ov-so-seg { }
.ov-so-seg-label { font-size: 8px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.2); margin-bottom: 4px; }
.ov-so-seg-name { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.02em; margin-bottom: 6px; }
.ov-so-seg-data { font-size: 10px; color: rgba(255,255,255,.38); padding: 1px 0; }
.ov-so-seg-div { height: 1px; background: rgba(255,255,255,.06); }

/* ── Reviews Carousel ───────────────────────────────────────────────── */
.ov-car-wrap { position: relative; }
.ov-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
}
.ov-carousel::-webkit-scrollbar { display: none; }
.ov-carousel.is-dragging { cursor: grabbing; scroll-behavior: auto; }

/* Carousel cards: always visible (not IO'd individually) */
.ov-carousel .ov-rev-card {
  flex: 0 0 320px;
  opacity: 1;
  transform: none;
  cursor: default;
}
.ov-carousel .ov-rev-card:hover { border-color: rgba(255,255,255,.16); box-shadow: 0 4px 24px rgba(0,0,0,.25); }
/* Carousel fade-in via parent data-observe */
.ov-car-wrap { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.ov-car-wrap.ov-vis { opacity: 1; transform: none; }

.ov-car-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.ov-car-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.ov-car-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
/* Keep all 4 plans in one row down to a genuinely tight tablet width --
   the section's own gutter system (.ov-pricing-inner, up to 1800px) gives
   this grid plenty of room well past typical laptop widths (1440/1280),
   so a tighter gap (not an early drop to a stacked layout) is the right
   first move per the "reduce width/gap intelligently before stacking"
   brief. Below that, 4 cards (unlike the previous 3) split evenly into a
   2×2 grid with no orphaned card, which reads more clearly than 4
   increasingly narrow columns at tablet widths -- switches there instead
   of just shrinking the gap further, down to the 700px breakpoint below,
   where it drops straight to a single column. */
@media (max-width: 1180px) and (min-width: 861px) {
  .ov-pricing-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 860px) {
  .ov-pricing-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 900px) {
  .ov-stats-row { flex-direction: column; gap: 40px; }
  .ov-stat-div { width: 80px; height: 1px; }
  .ov-stat { padding: 0 20px; }
  .ov-reviews-grid { grid-template-columns: 1fr 1fr; }
  #ov-brand-identity, #ov-campaign-setup { min-height: 0; }
}
@media (max-width: 700px) {
  .ov-showcase-grid { grid-template-columns: 1fr; }
  #ov-brand-identity, #ov-campaign-setup, #ov-showcase { padding: 70px 20px 80px; }
  .ov-pricing-section, .ov-faq-section { padding: 70px 20px; }
  .ov-reviews-section { padding: 60px 20px 50px; }
  .ov-rev-row { grid-template-columns: 1fr; }
  #ov-results { padding: 70px 20px; min-height: 0; }
  .ov-pricing-grid-4 { grid-template-columns: 1fr; }
  .ov-reviews-grid { grid-template-columns: 1fr; }
  .ov-bi-key { width: 110px; font-size: 10px; }
}

/* ===== AI MODELS MARQUEE STRIP ===== */
.ov-ai-strip {
  background: #07070A;
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.ov-ai-strip::before,
.ov-ai-strip::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.ov-ai-strip::before { left: 0; background: linear-gradient(to right, #07070A 60%, transparent); }
.ov-ai-strip::after  { right: 0; background: linear-gradient(to left,  #07070A 60%, transparent); }
.ov-ai-overflow {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ov-ai-track {
  display: flex;
  align-items: center;
  animation: ovAiScroll 38s linear infinite;
  will-change: transform;
  width: max-content;
}
.ov-ai-track:hover { animation-play-state: paused; }
.ov-ai-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 26px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.2);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s;
}
.ov-ai-item:hover { color: rgba(255,255,255,.5); }
.ov-ai-pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 30%, transparent);
  flex-shrink: 0;
}
.ov-ai-sep {
  color: rgba(255,255,255,.07);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
@keyframes ovAiScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* ===== INSTAGRAM AD ENHANCEMENTS ===== */
.ov-so-ig-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ov-so-ig-pic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #00d4aa 100%);
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.15);
}
.ov-so-ig-meta { display: flex; flex-direction: column; }
.ov-so-ig-name { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); line-height: 1.2; }
.ov-so-ig-sp   { font-size: 9px; color: rgba(255,255,255,.28); }
/* ===== LANDING PAGE CARD ENHANCEMENTS ===== */
.ov-so-lp { flex: 1; display: flex; flex-direction: column; gap: 0; min-height: 0; }
.ov-so-lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}
.ov-so-lp-logo { font-size: 9px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.ov-so-lp-nav-links { display: flex; gap: 10px; }
.ov-so-lp-nav-links span { font-size: 7px; color: rgba(255,255,255,.22); letter-spacing: .04em; }
.ov-so-lp-hero {
  flex: 1;
  background: linear-gradient(155deg, #1a0a2e 0%, #0d1a1a 55%, #050a0a 100%);
  border-radius: 10px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-height: 90px;
  margin-bottom: 8px;
}
/* ===== EMAIL CARD ENHANCEMENTS ===== */
.ov-so-em-hero {
  height: 44px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 7%, transparent) 0%, rgba(0,200,180,.05) 100%);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--green) 7%, transparent);
}

/* ===== SECTION SUBHEADING ===== */
.ov-section-sub {
  font-size: clamp(13px, 1.3vw, 16px);
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  margin: -16px 0 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== SHOWCASE CARD MICRO-ANIMATIONS ===== */

/* Email card: lines draw from left on reveal */
.ov-so-em-line {
  transform-origin: left center;
  transform: scaleX(0);
}
.ov-showcase-grid.ov-vis .ov-so-em-line {
  transform: scaleX(1);
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
/* nth-child relative to .ov-so-email container */
.ov-showcase-grid.ov-vis .ov-so-em-line:nth-child(4) { transition-delay: .75s; }
.ov-showcase-grid.ov-vis .ov-so-em-line:nth-child(5) { transition-delay: .90s; }
.ov-showcase-grid.ov-vis .ov-so-em-line:nth-child(6) { transition-delay: 1.05s; }
.ov-showcase-grid.ov-vis .ov-so-em-line:nth-child(7) { transition-delay: 1.20s; }

/* Instagram Ad card: profile pic + name build in after card appears */
.ov-so-ig-pic { opacity: 0; transform: scale(0.5); }
.ov-so-ig-name { opacity: 0; }
.ov-so-ig-sp { opacity: 0; }
.ov-so-ad-h { opacity: 0; transform: translateY(6px); }
.ov-showcase-grid.ov-vis .ov-so:nth-child(1) .ov-so-ig-pic {
  animation: ovPicIn .35s cubic-bezier(.34,1.56,.64,1) .54s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(1) .ov-so-ig-name {
  animation: ovFadeInQ .3s ease .68s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(1) .ov-so-ig-sp {
  animation: ovFadeInQ .3s ease .74s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(1) .ov-so-ad-h {
  animation: ovSlideUpIn .4s ease .78s both;
}

/* Landing Page card: nav → headline → sub → btn sequential reveal */
.ov-so-lp-logo { opacity: 0; }
.ov-so-lp-nav-links { opacity: 0; }
.ov-so-lp-h { opacity: 0; transform: translateY(8px); }
.ov-so-lp-sub { opacity: 0; }
.ov-so-lp-btn { opacity: 0; }
.ov-so-lp-trust { opacity: 0; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) .ov-so-lp-logo {
  animation: ovFadeInQ .3s ease .72s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) .ov-so-lp-nav-links {
  animation: ovFadeInQ .3s ease .80s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) .ov-so-lp-h {
  animation: ovSlideUpIn .4s ease .90s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) .ov-so-lp-sub {
  animation: ovFadeInQ .35s ease 1.06s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) .ov-so-lp-btn {
  animation: ovFadeInQ .35s ease 1.20s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(3) .ov-so-lp-trust {
  animation: ovFadeInQ .3s ease 1.34s both;
}

/* Email card header fades in before lines draw */
.ov-so-em-from { opacity: 0; }
.ov-so-em-subject { opacity: 0; }
.ov-so-em-hero { opacity: 0; transform: scaleY(0); transform-origin: top; }
.ov-so-em-btn { opacity: 0; }
.ov-showcase-grid.ov-vis .ov-so:nth-child(4) .ov-so-em-from {
  animation: ovFadeInQ .3s ease .62s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(4) .ov-so-em-subject {
  animation: ovFadeInQ .3s ease .72s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(4) .ov-so-em-hero {
  animation: ovGrowDown .45s cubic-bezier(.4,0,.2,1) .80s both;
}
.ov-showcase-grid.ov-vis .ov-so:nth-child(4) .ov-so-em-btn {
  animation: ovFadeInQ .3s ease 1.35s both;
}

/* Shared keyframes */
@keyframes ovPicIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ovFadeInQ {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ovSlideUpIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ovGrowDown {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

/* ===== PRICING — remove old duplicate desc border rule ===== */
/* Price block now owns the divider, not ov-pc-desc */

/* ===== REVIEWS SCROLL HINT ===== */
.ov-rev-scroll-hint {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.18);
  margin-bottom: 20px;
  display: block;
}

/* ===== SECTION 01 — BRAND BLUEPRINT HEADER ===== */
.ov-bi-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: color-mix(in srgb, var(--green) 3%, transparent);
}
.ov-bi-doc-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ov-bi-doc-spark {
  color: var(--green);
  font-size: 14px;
  opacity: .7;
}
.ov-bi-doc-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.ov-bi-doc-sub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.28);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.ov-bi-doc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: color-mix(in srgb, var(--green) 60%, transparent);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ov-bi-doc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: ovDocPulse 2s ease-in-out infinite;
}
@keyframes ovDocPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ===== SECTION 02 — CHIP VISUAL PREVIEWS ===== */
.ov-cs-type {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-width: 148px;
}
.ov-cs-vis {
  width: 100%;
  height: 48px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ov-cs-vis::before,
.ov-cs-vis::after {
  content: '';
  position: absolute;
  border-radius: 2px;
}
.ov-cs-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 9px;
  font-size: 12px;
}
/* Meta Ads */
.ov-cs-meta .ov-cs-vis { background: linear-gradient(145deg, #1565c0 0%, #090924 100%); }
.ov-cs-meta .ov-cs-vis::before { top: 10px; left: 10px; right: 10px; height: 5px; background: rgba(255,255,255,.3); }
.ov-cs-meta .ov-cs-vis::after  { top: 22px; left: 10px; width: 45%; height: 3px; background: rgba(255,255,255,.15); }
/* Google Ads */
.ov-cs-google .ov-cs-vis { background: linear-gradient(145deg, #1a3a1a 0%, #060e06 100%); }
.ov-cs-google .ov-cs-vis::before { top: 9px; left: 10px; right: 10px; height: 18px; background: rgba(255,255,255,.06); border-radius: 3px; border: 1px solid rgba(255,255,255,.1); }
.ov-cs-google .ov-cs-vis::after  { top: 14px; left: 16px; width: 28px; height: 3px; background: color-mix(in srgb, var(--green) 55%, transparent); border-radius: 1px; }
/* Landing Pages */
.ov-cs-lp .ov-cs-vis { background: linear-gradient(145deg, #0d1a2e 0%, #060a10 100%); }
.ov-cs-lp .ov-cs-vis::before { top: 8px; left: 10px; right: 10px; height: 6px; background: rgba(255,255,255,.15); border-radius: 2px; }
.ov-cs-lp .ov-cs-vis::after  { top: 20px; left: 10px; right: 10px; height: 16px; background: rgba(255,255,255,.05); border-radius: 2px; border: 1px solid rgba(255,255,255,.06); }
/* Email Campaigns */
.ov-cs-email .ov-cs-vis { background: linear-gradient(145deg, #1a1a3a 0%, #060610 100%); }
.ov-cs-email .ov-cs-vis::before { top: 9px; left: 10px; right: 10px; height: 4px; background: rgba(255,255,255,.2); }
.ov-cs-email .ov-cs-vis::after  { top: 19px; left: 10px; width: 55%; height: 3px; background: rgba(255,255,255,.09); }
/* Video Concepts */
.ov-cs-video .ov-cs-vis { background: linear-gradient(145deg, #1a0a0a 0%, #080206 100%); }
.ov-cs-video .ov-cs-vis::before { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 0; height: 0; background: transparent; border-style: solid; border-width: 7px 0 7px 14px; border-color: transparent transparent transparent rgba(255,255,255,.5); border-radius: 0; }
/* Social Media Content */
.ov-cs-social .ov-cs-vis { background: linear-gradient(145deg, #2a0a3a 0%, #0a0410 100%); }
.ov-cs-social .ov-cs-vis::before { top: 8px; left: 10px; width: 14px; height: 14px; background: rgba(255,255,255,.25); border-radius: 3px; }
.ov-cs-social .ov-cs-vis::after  { top: 8px; left: 30px; width: 14px; height: 14px; background: color-mix(in srgb, var(--green) 20%, transparent); border-radius: 3px; }
/* Creative Assets */
.ov-cs-creative .ov-cs-vis { background: linear-gradient(145deg, #1a1a0a 0%, #080608 100%); }
.ov-cs-creative .ov-cs-vis::before { top: 12px; left: 10px; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--green) 50%, transparent); }
.ov-cs-creative .ov-cs-vis::after  { top: 12px; left: 26px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,100,100,.35); }
/* Marketing Strategy */
.ov-cs-strategy .ov-cs-vis { background: linear-gradient(145deg, #0a1a2a 0%, #040810 100%); }
.ov-cs-strategy .ov-cs-vis::before { top: 8px; left: 10px; right: 10px; height: 4px; background: color-mix(in srgb, var(--green) 40%, transparent); }
.ov-cs-strategy .ov-cs-vis::after  { top: 18px; left: 16px; right: 16px; height: 3px; background: color-mix(in srgb, var(--green) 20%, transparent); }
/* Funnels */
.ov-cs-funnel .ov-cs-vis { background: linear-gradient(145deg, #0a2a1a 0%, #040a08 100%); }
.ov-cs-funnel .ov-cs-vis::before { top: 8px; left: 10px; right: 10px; height: 3px; background: color-mix(in srgb, var(--green) 45%, transparent); }
.ov-cs-funnel .ov-cs-vis::after  { top: 16px; left: 18px; right: 18px; height: 3px; background: color-mix(in srgb, var(--green) 20%, transparent); }
/* Retargeting */
.ov-cs-retarget .ov-cs-vis { background: linear-gradient(145deg, #2a1a0a 0%, #0a0806 100%); }
.ov-cs-retarget .ov-cs-vis::before { top: 9px; left: 10px; right: 10px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; }
.ov-cs-retarget .ov-cs-vis::after  { top: 9px; right: 10px; width: 6px; height: 6px; background: rgba(255,255,255,.5); border-radius: 50%; }

/* ===== SECTION 03 — CAMPAIGN INPUT BAR ===== */
.ov-sc-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 0 auto 28px;
  max-width: 1060px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.ov-sc-input-bar.ov-vis { opacity: 1; transform: translateY(0); }
.ov-sc-ib-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ov-sc-ib-spark {
  color: var(--green);
  font-size: 16px;
  opacity: .7;
  flex-shrink: 0;
}
.ov-sc-ib-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.28);
  margin-bottom: 3px;
}
.ov-sc-ib-val {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: -.01em;
}
.ov-sc-ib-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.ov-sc-ib-count {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
.ov-sc-ib-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 65%, transparent);
}
.ov-sc-ib-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: ovDocPulse 2s ease-in-out infinite;
}

/* ===== SECTION 04 — CASE STUDY CARD ===== */
.ov-case-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px 32px;
  max-width: 860px;
  margin: 0 auto 56px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.ov-case-card.ov-vis { opacity: 1; transform: translateY(0); }
.ov-case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ov-case-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
}
.ov-case-brand {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  font-weight: 500;
}
.ov-case-metrics {
  display: flex;
  align-items: center;
}
.ov-case-m {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.ov-case-m-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
}
.ov-case-m-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.28);
  margin-bottom: 8px;
}
.ov-case-m-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ov-case-m-before {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  letter-spacing: -.02em;
}
.ov-case-m-arr {
  font-size: 13px;
  color: rgba(255,255,255,.18);
}
.ov-case-m-after {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.03em;
}

/* Mobile tweaks for new elements */
@media (max-width: 700px) {
  .ov-sc-input-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ov-sc-ib-right { align-items: flex-start; }
  .ov-case-card { padding: 20px 18px; }
  .ov-case-metrics { flex-direction: column; gap: 16px; }
  .ov-case-m-div { display: none; }
  .ov-case-m { padding: 0; }
  .ov-cs-type { min-width: 130px; }
}

/* Fix nth-child stagger after .ov-bi-doc-header was added as first child */
.ov-bi-card.ov-vis .ov-bi-row:nth-child(2)  { transition-delay: 0s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(3)  { transition-delay: .07s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(4)  { transition-delay: .14s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(5)  { transition-delay: .21s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(6)  { transition-delay: .28s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(7)  { transition-delay: .35s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(8)  { transition-delay: .42s; }
.ov-bi-card.ov-vis .ov-bi-row:nth-child(9)  { transition-delay: .49s; }

/* ===== FINAL POLISH PASS CSS ===== */

/* --- Section 02: chip hover states --- */
.ov-cs-type { cursor: pointer; }
.ov-cs-type:hover {
  transform: scale(1.04) translateY(-2px);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--green) 15%, transparent);
  color: #fff;
}
.ov-cs-type:hover .ov-cs-dot { background: var(--green); }
.ov-cs-type { transition: opacity .38s ease, transform .38s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }

/* --- Section 04: stats context label --- */
.ov-stats-context {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  text-align: center;
  margin-bottom: 28px;
  padding-top: 4px;
  position: relative;
}
.ov-stats-context::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 0 auto 14px;
}

/* --- FAQ: center heading --- */
.ov-faq-inner { text-align: center; }
.ov-faq-list { text-align: left; }

/* --- Final CTA: depth rings --- */
.ov-final-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ov-fr {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--green) 6%, transparent);
  animation: ovRingPulse 6s ease-in-out infinite;
}
.ov-fr-1 { width: 400px; height: 400px; animation-delay: 0s; }
.ov-fr-2 { width: 700px; height: 700px; animation-delay: 1.5s; border-color: color-mix(in srgb, var(--green) 4%, transparent); }
.ov-fr-3 { width: 1000px; height: 1000px; animation-delay: 3s; border-color: color-mix(in srgb, var(--green) 2.5%, transparent); }
@keyframes ovRingPulse {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%        { opacity: 1;  transform: translate(-50%, -50%) scale(1.03); }
}
#ov-final::before {
  background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 10%, transparent) 0%, color-mix(in srgb, var(--green) 3%, transparent) 40%, transparent 70%);
  width: 900px; height: 700px;
}
#ov-final::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

/* Final CTA eyebrow and trust line */
.ov-final-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 55%, transparent);
  margin-bottom: 16px;
}
.ov-final-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,.22);
  margin-top: 20px;
  font-weight: 500;
}
.ov-btn-primary-lg {
  font-size: 16px;
  padding: 16px 36px;
  letter-spacing: -.01em;
}

/* --- FOOTER --- */
.ov-footer {
  background: #07070A;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 56px 48px 32px;
}
.ov-footer-inner {
  max-width: 1400px; /* Redesign: was 1200px */
  margin: 0 auto;
}
.ov-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}
.ov-footer-brand { max-width: 260px; }
.ov-footer-logo { display: inline-block; margin-bottom: 12px; }
.ov-footer-logo-img { height: 22px; opacity: .85; filter: brightness(1.1); }
.ov-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.28);
  line-height: 1.5;
  margin: 0;
}
.ov-footer-nav {
  display: flex;
  gap: 40px; /* Redesign: was 56px — now 5 columns instead of 3 */
  flex-wrap: wrap;
}
.ov-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-footer-col-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 4px;
}
.ov-footer-link {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.ov-footer-link:hover { color: #fff; }
.ov-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ov-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.2);
}
.ov-footer-cta {
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, var(--green) 50%, transparent);
  text-decoration: none;
  transition: color .15s;
}
.ov-footer-cta:hover { color: var(--green); }

/* Footer mobile */
@media (max-width: 700px) {
  .ov-footer { padding: 40px 20px 24px; }
  .ov-footer-top { flex-direction: column; gap: 32px; }
  .ov-footer-nav { gap: 32px; flex-wrap: wrap; }
  .ov-footer-brand { max-width: 100%; }
  .ov-final-trust { gap: 12px; font-size: 10px; }
  .ov-btn-primary-lg { font-size: 14px; padding: 14px 28px; }
}

/* ===== AUTH PAGE — forgot password link + field adjustments ===== */
.au-forgot {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  text-align: right;
  transition: color .15s;
}
.au-forgot:hover { color: color-mix(in srgb, var(--green) 70%, transparent); }
.au-field { position: relative; }

/* ===== MOBILE MENU — FULL-SCREEN OVERLAY ===== */

/* Close button (top-right) */
.lp-mm-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  font-size: 18px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: color .15s;
  z-index: 1;
}
.lp-mm-close:hover { color: rgba(255,255,255,.8); }

/* Nav link group — Mobile Polish pass: was `align-items: center`, which
   made every child (.lp-mm-item / .lp-mm-link) shrink-wrap to its own
   content instead of filling the row. That's the actual root cause of
   two separate-looking bugs: (1) .lp-mm-dd-trig's own
   `justify-content: space-between` (styles.css, "Mobile menu dropdown
   items") had no real row width to distribute, so the chevron collapsed
   in right next to the label instead of sitting at the row's far edge;
   (2) .lp-mm-link ("Pricing") rendered at whatever size its own
   now-fixed rule gave it, visually disconnected from the accordion
   rows above it. `stretch` (now explicit; also CSS's own initial value,
   restated for clarity) plus a real max-width/padding here is the
   actual fix — .lp-mm-dd-trig/.lp-mm-link's existing `width: 100%` now
   has something real to be 100% of. */
.lp-mm-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 420px;
  padding: 0 28px;
  box-sizing: border-box;
}
/* "Pricing" now matches Product/Solutions/Resources' own typography
   exactly (was a leftover 36px/700-weight treatment from an earlier,
   simpler flat-list version of this menu, predating the accordion
   rows — spec: "Pricing is inexplicably much larger... make its
   typography consistent... not four unrelated typographic
   treatments"). Mirrors .lp-mm-dd-trig's row shape (flex, left-aligned
   label, same padding/border-bottom rhythm) so the four primary items
   read as one consistent list, differing only in that Pricing has no
   chevron/no expandable content. */
.lp-mm-link {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  color: rgba(255,255,255,.82);
  padding: 14px 0;
  text-align: left;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .18s ease, background .18s ease;
  text-decoration: none;
}
.lp-mm-link:hover { color: #fff; background: rgba(255,255,255,.04); }

/* Divider */
.lp-mm-divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 20px 0;
  flex-shrink: 0;
}

/* Actions — Login + Get Started */
.lp-mm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 260px;
  max-width: 84vw;
}
.lp-mm-login {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.38);
  padding: 8px 20px;
  text-align: center;
  text-decoration: none;
  transition: color .15s;
}
.lp-mm-login:hover { color: rgba(255,255,255,.7); }
.lp-mm-cta {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: var(--lp-green);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.lp-mm-cta:hover { opacity: .88; }

/* ===== MOBILE INPUT BAR — CENTER ALIGN ===== */
@media (max-width: 700px) {
  .ov-sc-input-bar { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .ov-sc-ib-left { flex-direction: column; align-items: center; gap: 8px; }
  .ov-sc-ib-right { align-items: center; }
}

/* ===== TABLET: showcase grid 2-col above 700px ===== */
@media (min-width: 701px) and (max-width: 1060px) {
  #ov-showcase { padding: 80px 28px 100px; }
  .ov-showcase-grid { max-width: 100%; gap: 14px; }
}

/* ===== GENERAL MOBILE OVERFLOW GUARD ===== */
@media (max-width: 880px) {
  #view-landing { overflow-x: hidden; }
  .ov-bi-card, .ov-cs-grid, .ov-showcase-grid { max-width: 100%; }
}

/* ===== MOBILE/TABLET: Generate Your Campaign — centered single column ===== */
@media (max-width: 880px) {
  /* Force single-column centered grid */
  .ov-showcase-grid {
    grid-template-columns: 1fr !important;
    max-width: 540px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 14px !important;
  }
  /* Section padding */
  #ov-showcase { padding: 70px 24px 80px; }
  /* Override all horizontal entry transforms — cards slide from below instead */
  .ov-showcase-grid .ov-so:nth-child(n) {
    transform: translateY(14px) !important;
  }
  /* Revealed state: no transform, card sits in its natural centered position */
  .ov-showcase-grid.ov-vis .ov-so:nth-child(n) {
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   ORIVEN APP — REDESIGN 2026
   Top navigation, layout shell, home, assets, assistant
   ════════════════════════════════════════════════════════════════ */

/* ── CSS vars ──────────────────────────────────────────────────
   --ap-bg/--ap-bg2 stay as originally defined (dark) — real usage
   confirmed superseded by later var(--bg) etc. rules for actual page
   backgrounds. --ap-text/--ap-muted/--ap-bg3/--ap-border are different:
   still live and visibly rendered (e.g. .camp-card, styles.css ~19760,
   reads --ap-bg3/--ap-border with !important) — the "superseded, safe to
   leave dark" assumption previously written here for --ap-bg3/--ap-border
   turned out to be wrong, confirmed by direct render: Draft cards showed
   invisible dark-on-dark text before this was fixed. All four now get real
   light-mode defaults (matching --charcoal/--muted/--bg2/--border);
   body.dark-mode overrides them back to the original values, so dark mode
   is unchanged. ── */
:root {
  --ap-bg:       var(--bg);
  --ap-bg2:      var(--bg2);
  /* --ap-bg3/--ap-border light-mode defaults (see body.dark-mode above for
     the matching dark-mode restore + why this was actually still needed:
     .camp-card et al. read these with !important and are genuinely
     visible, not superseded elsewhere as previously assumed here). */
  --ap-bg3:      #F6F3EE;
  --ap-border:   rgba(0,0,0,.08);
  --ap-muted:    #6B6B6B;
  --ap-text:     #18181A;
  /* Premium Motion System — was a hardcoded var(--green) that never followed
     Settings' Accent Color picker (which only overrides --green/--gm/etc.
     on <body>); aliased so buttons like .camp-new-btn/.asl-create-btn
     pick up the chosen accent like everything else. */
  --ap-green:    var(--green);
  --ap-green-d:  color-mix(in srgb, var(--green) 12%, transparent);
  --ap-nav-h:    56px;
  --ap-radius:   14px;
}

/* ── Reset: remove old sidebar ─────────────────────────────── */
.sb { display: none !important; }
#mobileBar { display: none !important; }
#mobileBottomNav { display: none; }

/* ── App shell ──────────────────────────────────────────────── */
html, body { overflow: hidden; height: 100%; margin: 0; }
body.dark-mode { background: var(--ap-bg); }

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--ap-bg);
}

.mc {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-left: 0 !important;
  padding-top: 0 !important;
  background: var(--ap-bg);
  position: relative;
}

.page { display: none; min-height: 100%; }
.page.active { display: block; }

/* ── TOP NAVIGATION ─────────────────────────────────────────── */
.ap-nav {
  position: relative;
  z-index: 200;
  width: 100%;
  height: var(--ap-nav-h);
  background: rgba(9,9,11,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ap-border);
  flex-shrink: 0;
}
.ap-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}
.ap-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.ap-logo-img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  padding: 3px;
}
.ap-logo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-text);
  letter-spacing: .06em;
}
.ap-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.ap-nl {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ap-muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.ap-nl:hover { color: var(--ap-text); background: rgba(255,255,255,.06); }
.ap-nl.active, .ap-nl.ap-nl-active {
  color: var(--ap-text);
  background: rgba(255,255,255,.08);
}
.ap-icon-btn {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.ap-credits-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--ap-green-d);
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-green);
  transition: background .15s, border-color .15s;
}
.ap-credits-btn:hover { background: color-mix(in srgb, var(--green) 18%, transparent); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.ap-credits-label { font-weight: 400; color: color-mix(in srgb, var(--green) 60%, transparent); font-size: 11px; }
.ap-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  color: var(--ap-green);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.ap-avatar:hover { background: color-mix(in srgb, var(--green) 22%, transparent); }
.ap-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.ap-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ap-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.ap-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ap-hamburger.open span:nth-child(2) { opacity: 0; }
.ap-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE FULL-SCREEN NAV ─────────────────────────────────── */
.ap-mob-nav {
  position: fixed; inset: 0;
  background: rgba(8,8,10,.97);
  backdrop-filter: blur(24px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(-4%);
  transition: opacity .28s ease, visibility .28s ease, transform .34s cubic-bezier(.16,1,.3,1);
}
.ap-mob-nav.ap-mob-open { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-mob-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none;
  color: var(--ap-muted); font-size: 18px; cursor: pointer;
  padding: 10px; transition: color .15s;
}
.ap-mob-close:hover { color: var(--ap-text); }
.ap-mob-links { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.ap-mob-link {
  display: block;
  font-size: 32px; font-weight: 700; letter-spacing: -.04em;
  color: rgba(255,255,255,.5);
  padding: 10px 32px; text-align: center;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: color .15s;
}
.ap-mob-link:hover, .ap-mob-link.ap-mob-link-active { color: #fff; }
.ap-mob-bottom { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ap-mob-bottom .ap-mob-link { font-size: 14px; font-weight: 500; color: var(--ap-muted); letter-spacing: 0; }
.ap-mob-credits { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ap-green); }

/* ── HOME PAGE ───────────────────────────────────────────────── */
.ap-home-outer {
  padding: 48px 40px 80px !important;
  max-width: 1100px;
  margin: 0 auto;
}
.bb-headline {
  font-size: clamp(26px, 3vw, 40px) !important;
  font-weight: 700 !important;
  letter-spacing: -.03em !important;
  color: var(--ap-text) !important;
  margin: 0 0 8px !important;
  line-height: 1.1 !important;
}
.bb-sub { font-size: 15px !important; color: var(--ap-muted) !important; margin: 0 !important; }
.bb-greeting { margin-bottom: 36px; }
.bb-top-row {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 14px !important;
  margin-bottom: 32px !important;
  align-items: start !important;
}
.bb-health-card {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important;
  padding: 20px !important;
  min-width: 160px;
}
.bb-metrics {
  display: grid !important;
  grid-template-columns: repeat(4,1fr) !important;
  gap: 10px !important;
}
.bb-metric {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important;
  padding: 14px 16px !important;
  display: flex !important; align-items: center !important; gap: 10px !important;
  transition: border-color .15s !important;
}
.bb-metric:hover { border-color: rgba(255,255,255,.14) !important; }
.bb-metric-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-muted); flex-shrink: 0;
}
.bb-metric-val { font-size: 18px !important; font-weight: 700 !important; color: var(--ap-text) !important; letter-spacing: -.02em; }
.bb-metric-lbl { font-size: 11px !important; color: var(--ap-muted) !important; }
.bb-section { margin-bottom: 28px; }
.bb-section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bb-section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-muted);
}
.bb-explore-grid {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 10px !important;
}
.bb-explore-card {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important;
  padding: 14px 16px !important;
  display: flex !important; align-items: center !important; gap: 12px !important;
  cursor: pointer !important;
  transition: border-color .15s, background .15s !important;
}
.bb-explore-card:hover { border-color: rgba(255,255,255,.14) !important; background: rgba(255,255,255,.02) !important; }
.bb-explore-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-muted); flex-shrink: 0;
}
.bb-explore-name { font-size: 13px !important; font-weight: 600 !important; color: var(--ap-text) !important; }
.bb-explore-desc { font-size: 11px !important; color: var(--ap-muted) !important; margin-top: 2px !important; line-height: 1.3 !important; }
.bb-explore-arrow { margin-left: auto; color: var(--ap-muted); font-size: 16px; }
.bb-brief-result {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important;
  padding: 20px 22px !important;
}
.bb-brief-gen-btn {
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: 8px !important; padding: 5px 12px !important;
  font-size: 12px !important; color: var(--ap-text) !important;
  cursor: pointer !important; display: inline-flex !important;
  align-items: center !important; gap: 5px !important;
  transition: border-color .15s !important;
}
.bb-brief-gen-btn:hover { border-color: rgba(255,255,255,.2) !important; }
.bb-snapshot { background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important; border-radius: var(--ap-radius) !important; padding: 18px 20px !important; }

/* ── CAMPAIGNS ───────────────────────────────────────────────── */
/* Was --orv-content-maxw (1040px) — 200px narrower than the shared
   Campaigns column (#orvHubTabsCampaigns/.prf-wrap/#page-ads-manager all
   use --camp-content-maxw, 1240px), which centered Drafts' content ~100px
   to the right of the header/tabs above it. Vertical padding matched to
   the same tightened values Overview/Live Campaigns already use, for the
   same shared top-spacing rhythm across all three pages. */
.camp-hub { max-width: var(--camp-content-maxw) !important; margin: 0 auto !important; padding: 20px var(--orv-content-pad-x) 20px !important; }
.camp-hub-hdr { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; margin-bottom: var(--orv-title-gap) !important; }
.camp-hub-title { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.03em !important; line-height: 1.2 !important; color: var(--ap-text) !important; margin: 0 0 5px !important; }
.camp-hub-sub { color: var(--ap-muted) !important; font-size: 14px !important; margin: 0 !important; }
.camp-new-btn {
  background: var(--ap-green) !important; color: #000 !important; border: none !important;
  border-radius: 10px !important; padding: 10px 18px !important;
  font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  flex-shrink: 0 !important; transition: opacity .15s !important;
}
.camp-new-btn:hover { opacity: .88 !important; }
.camp-hub-sect-hd { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--ap-muted) !important; margin-bottom: 12px !important; }
.camp-card {
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important; padding: 20px !important; cursor: pointer !important;
  transition: border-color .18s, transform .18s !important;
}
.camp-card:hover { border-color: rgba(255,255,255,.15) !important; transform: translateY(-1px) !important; }
.camp-card-name { font-size: 14px !important; font-weight: 600 !important; color: var(--ap-text) !important; letter-spacing: -.01em !important; }
.camp-card-goal { font-size: 12px !important; color: var(--ap-muted) !important; margin-top: 4px !important; }
.camp-card-prog-fill { background: var(--ap-green) !important; }
.camp-card-mod-done { color: var(--ap-green) !important; }
.camp-hub-empty { padding: 60px 24px !important; text-align: center !important; }
.camp-hub-empty-title { font-size: 22px !important; font-weight: 700 !important; color: var(--ap-text) !important; letter-spacing: -.02em !important; }
.camp-hub-empty-sub { color: var(--ap-muted) !important; font-size: 14px !important; margin: 8px 0 20px !important; }
.camp-new-btn-lg { font-size: 14px !important; padding: 12px 22px !important; border-radius: 12px !important; }
.camp-tpl-pill {
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: 8px !important; padding: 6px 12px !important;
  font-size: 12px !important; font-weight: 500 !important; color: var(--ap-text) !important;
  cursor: pointer !important; transition: border-color .15s !important;
}
.camp-tpl-pill:hover { border-color: rgba(255,255,255,.2) !important; }

/* ── CAMPAIGN WORKSPACE ─────────────────────────────────────── */
.cws { display: flex !important; height: calc(100vh - var(--ap-nav-h)) !important; overflow: hidden !important; }
.cws-sb {
  width: 230px !important; flex-shrink: 0 !important;
  background: var(--ap-bg2) !important;
  border-right: 1px solid var(--ap-border) !important;
  display: flex !important; flex-direction: column !important; overflow-y: auto !important;
  padding: 18px 14px !important;
}
.cws-main { flex: 1 !important; overflow-y: auto !important; background: var(--ap-bg) !important; }
.cws-back-btn {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  font-size: 12px !important; color: var(--ap-muted) !important;
  background: none !important; border: none !important; cursor: pointer !important;
  padding: 0 !important; margin-bottom: 14px !important; transition: color .15s !important;
}
.cws-back-btn:hover { color: var(--ap-text) !important; }
.cws-camp-name { font-size: 14px !important; font-weight: 600 !important; color: var(--ap-text) !important; letter-spacing: -.01em !important; }
.cws-status-dot { background: var(--ap-green) !important; }

/* ── ASSISTANT (aichat) ─────────────────────────────────────── */
.chat-shell {
  display: flex !important; flex-direction: column !important;
  height: calc(100vh - var(--ap-nav-h)) !important;
  max-width: 800px !important; margin: 0 auto !important;
  padding: 0 24px !important;
}
.chat-feed { flex: 1 !important; overflow-y: auto !important; padding: 28px 0 16px !important; }
.chat-input-area { border-top: 1px solid var(--ap-border) !important; padding: 14px 0 22px !important; }
.chat-input-box {
  display: flex !important; align-items: flex-end !important; gap: 10px !important;
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: 12px !important; padding: 12px 14px !important;
  transition: border-color .15s !important;
}
.chat-input-box:focus-within { border-color: color-mix(in srgb, var(--green) 25%, transparent) !important; }
#chatInput, #cwsInput {
  background: none !important; border: none !important; outline: none !important;
  font-family: inherit !important; font-size: 14px !important; color: var(--ap-text) !important;
  resize: none !important; line-height: 1.5 !important; width: 100% !important;
}
#chatInput::placeholder, #cwsInput::placeholder { color: var(--ap-muted) !important; }
.chat-send {
  width: 32px !important; height: 32px !important;
  border-radius: 8px !important; background: var(--ap-green) !important;
  border: none !important; cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-shrink: 0 !important; transition: opacity .15s !important;
}
.chat-send:hover { opacity: .85 !important; }
.chat-send svg { fill: #000 !important; width: 13px !important; height: 13px !important; }
.chat-controls {
  display: flex !important; gap: 6px !important; flex-wrap: wrap !important; margin-bottom: 10px !important;
}
.chat-ctrl-sel {
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: 7px !important; padding: 5px 10px !important;
  font-size: 12px !important; color: var(--ap-text) !important;
  font-family: inherit !important; cursor: pointer !important;
}

/* ── BRAND (studio) ─────────────────────────────────────────── */
.bcp-scroll { max-width: 960px !important; margin: 0 auto !important; padding: 40px 40px 80px !important; }
.bcp-header {
  display: flex !important; align-items: flex-start !important; justify-content: space-between !important;
  padding: 24px !important; background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important; border-radius: var(--ap-radius) !important;
  margin-bottom: 20px !important;
}
.bcp-brand-name { font-size: 26px !important; font-weight: 700 !important; letter-spacing: -.03em !important; color: var(--ap-text) !important; }
.bcp-section {
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important; padding: 20px 22px !important; margin-bottom: 10px !important;
}
.bcp-section-label { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--ap-muted) !important; margin-bottom: 12px !important; }
.bcp-btn-primary {
  background: var(--ap-green) !important; color: #000 !important; border: none !important;
  border-radius: 10px !important; padding: 11px 18px !important;
  font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important;
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  transition: opacity .15s !important;
}
.bcp-btn-primary:hover { opacity: .88 !important; }
.bcp-btn-ghost {
  background: none !important; color: var(--ap-text) !important;
  border: 1px solid var(--ap-border) !important; border-radius: 10px !important;
  padding: 10px 16px !important; font-size: 13px !important; font-weight: 500 !important;
  cursor: pointer !important; transition: border-color .15s !important;
}
.bcp-btn-ghost:hover { border-color: rgba(255,255,255,.2) !important; }
.bcp-score-bar-fill { background: var(--ap-green) !important; }
.bcp-empty {
  text-align: center !important; padding: 80px 24px !important;
}
.bcp-empty-title { font-size: 22px !important; font-weight: 700 !important; color: var(--ap-text) !important; letter-spacing: -.02em !important; }
.bcp-empty-sub { color: var(--ap-muted) !important; font-size: 14px !important; margin: 8px 0 24px !important; }

/* ── SETTINGS ───────────────────────────────────────────────── */
.se-outer, .settings-outer { max-width: 860px !important; margin: 0 auto !important; padding: 40px 40px 80px !important; }
.se-card { background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important; border-radius: var(--ap-radius) !important; padding: 20px 22px !important; margin-bottom: 10px !important; }

/* ── INTEL / MONITOR ─────────────────────────────────────────── */
.intel-outer, .bsp-outer { max-width: 880px !important; margin: 0 auto !important; padding: 40px 40px 80px !important; }
.bsp-title { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.02em !important; color: var(--ap-text) !important; }
.intel-gen-btn {
  background: var(--ap-green) !important; color: #000 !important; border: none !important;
  border-radius: 9px !important; padding: 9px 16px !important;
  font-size: 12px !important; font-weight: 700 !important; cursor: pointer !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  transition: opacity .15s !important;
}
.intel-gen-btn:hover { opacity: .88 !important; }

/* ── ASSETS PAGE ────────────────────────────────────────────── */
.asl-outer { max-width: var(--orv-content-maxw); margin: 0 auto; padding: var(--orv-content-pad-top) var(--orv-content-pad-x) var(--orv-content-pad-bottom); }
.asl-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--orv-title-gap); }
.asl-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--ap-text); margin: 0 0 5px; }
.asl-sub { font-size: 13px; color: var(--ap-muted); margin: 0; line-height: 1.5; }
.asl-create-btn {
  background: var(--ap-green); color: #000; border: none;
  border-radius: 10px; padding: 10px 18px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0; transition: opacity .15s;
}
.asl-create-btn:hover { opacity: .88; }
.asl-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.asl-filter {
  background: var(--ap-bg3); border: 1px solid var(--ap-border);
  border-radius: 8px; padding: 6px 14px;
  font-size: 12px; font-weight: 500; color: var(--ap-muted);
  cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.asl-filter:hover { color: var(--ap-text); border-color: rgba(255,255,255,.16); }
.asl-filter.asl-filter-active { color: var(--ap-text); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.asl-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 12px; }
.asl-card {
  background: var(--ap-bg3); border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius); padding: 20px; cursor: pointer;
  transition: border-color .18s, transform .18s;
  display: flex; flex-direction: column; gap: 8px; min-height: 96px;
}
.asl-card:hover { border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.asl-card-type {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-green); background: var(--ap-green-d);
  border-radius: 6px; padding: 3px 8px; width: fit-content;
}
.asl-card-camp { font-size: 14px; font-weight: 600; color: var(--ap-text); letter-spacing: -.01em; }
.asl-card-date { font-size: 11px; color: var(--ap-muted); margin-top: auto; }
.asl-empty { padding: 60px 24px; text-align: center; }
.asl-empty-ico { color: var(--ap-muted); margin-bottom: 16px; }
.asl-empty-title { font-size: 20px; font-weight: 700; color: var(--ap-text); letter-spacing: -.02em; margin-bottom: 8px; }
.asl-empty-sub { font-size: 14px; color: var(--ap-muted); margin-bottom: 20px; }
.asl-empty-btn {
  background: none; border: 1px solid var(--ap-border);
  border-radius: 10px; padding: 10px 20px;
  font-size: 13px; font-weight: 500; color: var(--ap-text);
  cursor: pointer; font-family: inherit; transition: border-color .15s;
}
.asl-empty-btn:hover { border-color: rgba(255,255,255,.2); }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed !important; bottom: 24px !important;
  left: 50% !important; transform: translateX(-50%) translateY(80px) !important;
  background: var(--ap-bg3) !important; border: 1px solid var(--ap-border) !important;
  border-radius: 10px !important; padding: 10px 18px !important;
  font-size: 13px !important; color: var(--ap-text) !important;
  /* Above the plan modal (#modal-paywall, 9400), the onboarding (#onx,
     10050) and the plan confirmation (.pcf, 10100) so messages show. */
  z-index: 10200 !important; transition: transform .25s, opacity .25s !important;
  max-width: calc(100vw - 32px) !important; white-space: normal !important; text-align: center !important;
}
/* app.js toast() only ever applies class "show" (never "toast-show") — this
   selector previously never matched, so the toast's resting transform
   (translateY(80px)) was never overridden back to visible position. */
.toast.show { transform: translateX(-50%) translateY(0) !important; }

/* ── MODALS on dark theme ────────────────────────────────────── */
.bcw-panel, .pw-modal { background: var(--ap-bg2) !important; border: 1px solid var(--ap-border) !important; }

/* ── RESPONSIVE: TABLET ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .bb-metrics { grid-template-columns: repeat(2,1fr) !important; }
  .bb-explore-grid { grid-template-columns: repeat(2,1fr) !important; }
  .ap-home-outer { padding: 32px 28px 60px !important; }
  .camp-hub { padding: 32px 28px 60px !important; }
  .bcp-scroll { padding: 32px 28px 60px !important; }
}

/* ── RESPONSIVE: MOBILE ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --ap-nav-h: 52px; }
  .ap-nav-links { display: none !important; }
  .ap-credits-btn { display: none !important; }
  .ap-icon-btn { display: none !important; }
  .ap-hamburger { display: flex !important; }
  #mobileBottomNav {
    display: flex !important; position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    background: rgba(9,9,11,.96) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--ap-border) !important;
    height: 58px !important;
    align-items: center !important; justify-content: space-around !important;
    z-index: 150 !important; padding: 0 4px !important;
  }
  .mbn-item {
    flex: 1 !important; display: flex !important;
    flex-direction: column !important; align-items: center !important; justify-content: center !important;
    gap: 3px !important; background: none !important; border: none !important;
    cursor: pointer !important; padding: 6px 4px !important;
    font-size: 10px !important; font-weight: 500 !important;
    color: var(--ap-muted) !important; font-family: inherit !important;
    transition: color .15s !important;
  }
  .mbn-item svg { opacity: .5; transition: opacity .15s !important; }
  .mbn-item.mbn-active { color: var(--ap-green) !important; }
  .mbn-item.mbn-active svg { opacity: 1 !important; }
  .mbn-create-btn {
    width: 40px !important; height: 40px !important; flex: 0 0 40px !important;
    border-radius: 50% !important; background: var(--ap-green) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #000 !important;
  }
  .mbn-create-btn svg { stroke: #000 !important; opacity: 1 !important; }
  /* (.mc padding for this bottom nav removed — the nav is retired, see
     #mobileBottomNav display:none !important in the workspace redesign.) */
  .ap-home-outer { padding: 22px 16px 20px !important; }
  .asl-outer { padding: 22px 16px 20px !important; }
  .camp-hub { padding: 22px 16px 20px !important; }
  .bcp-scroll { padding: 22px 16px 20px !important; }
  .intel-outer, .bsp-outer { padding: 22px 16px 20px !important; }
  .se-outer { padding: 22px 16px 20px !important; }
  .bb-top-row { grid-template-columns: 1fr !important; }
  .bb-metrics { grid-template-columns: repeat(2,1fr) !important; }
  .bb-explore-grid { grid-template-columns: 1fr !important; }
  .asl-hdr { flex-direction: column !important; gap: 14px !important; }
  .camp-hub-hdr { flex-direction: column !important; gap: 12px !important; }
  .cws { flex-direction: column !important; height: auto !important; }
  .cws-sb { width: 100% !important; min-height: auto !important; }
  .chat-shell { padding: 0 12px !important; }
  .camp-hub-hdr { flex-direction: column !important; gap: 10px !important; }
}

/* ════════════════════════════════════════════════════════════════
   ORIVEN REFINEMENT PASS — 2026-07-01
   Logo, Brand insights panel, Assistant welcome, Campaign Studio
   ════════════════════════════════════════════════════════════════ */

/* ── Logo: transparent, no white box ───────────────────────── */
.ap-logo-img {
  background: transparent !important;
  padding:     0 !important;
  border-radius: 6px !important;
  width: 30px !important;
  height: 30px !important;
}
.ap-logo-name { display: none !important; }
.ap-logo { margin-right: 24px !important; }

/* ── Brand page: side-by-side layout ────────────────────────── */
#page-studio {
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  grid-template-rows: calc(100vh - var(--ap-nav-h)) !important;
  overflow: hidden !important;
}

/* The scrollable stub panel (studioPanelView) sits in its own stacking context */
.sh-panel-view {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  z-index: 20 !important;
  height: calc(100vh - var(--ap-nav-h)) !important;
  overflow-y: auto !important;
}
.sh-panel-view.hidden { display: none !important; }

/* Left column: scrollable brand content */
#studioHubView {
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: calc(100vh - var(--ap-nav-h)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#studioHubView .bcp-empty {
  padding: 80px 40px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}
#studioHubView .bcp-profile {
  padding: 32px 40px 60px !important;
  max-width: none !important;
}

/* Right column: AI insights panel */
.bcp-insights-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  height: calc(100vh - var(--ap-nav-h)) !important;
  overflow-y: auto !important;
  border-left: 1px solid var(--ap-border) !important;
  background: var(--ap-bg2) !important;
  padding: 24px 18px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.bcp-ip-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.bcp-ip-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: var(--ap-muted) !important;
}
.bcp-ip-refresh {
  background: none !important;
  border: none !important;
  color: var(--ap-muted) !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  transition: color .15s, background .15s !important;
}
.bcp-ip-refresh:hover { color: var(--ap-text) !important; background: rgba(255,255,255,.06) !important; }

.bcp-ip-no-brand, .bcp-ip-run-check {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 12px !important;
  padding: 24px 0 !important;
}
.bcp-ip-empty-ico {
  width: 44px !important; height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--ap-border) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--ap-muted) !important;
}
.bcp-ip-empty-text {
  font-size: 12px !important;
  color: var(--ap-muted) !important;
  line-height: 1.5 !important;
}
.bcp-ip-gen-btn {
  background: var(--ap-green-d) !important;
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent) !important;
  border-radius: 8px !important;
  color: var(--ap-green) !important;
  font-size: 12px !important; font-weight: 600 !important;
  padding: 7px 14px !important; cursor: pointer !important;
  font-family: inherit !important;
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
  transition: background .15s !important;
}
.bcp-ip-gen-btn:hover { background: color-mix(in srgb, var(--green) 18%, transparent) !important; }

.bcp-ip-score-row {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  display: flex !important; align-items: center !important; gap: 10px !important;
}
.bcp-ip-score-num {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ap-green) !important;
  letter-spacing: -.03em !important;
}
.bcp-ip-score-lbl {
  font-size: 11px !important;
  color: var(--ap-muted) !important;
}
.bcp-ip-section { display: flex !important; flex-direction: column !important; gap: 6px !important; }
.bcp-ip-sect-label {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .07em !important; text-transform: uppercase !important;
  color: var(--ap-muted) !important;
}
.bcp-ip-strength { color: var(--ap-green) !important; }
.bcp-ip-opp { color: rgba(255,200,60,.7) !important; }
.bcp-ip-items { display: flex !important; flex-direction: column !important; gap: 5px !important; }
.bcp-ip-item {
  font-size: 12px !important;
  color: var(--ap-text) !important;
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 7px !important;
  padding: 7px 10px !important;
  line-height: 1.4 !important;
}
.bcp-ip-dim { color: var(--ap-muted) !important; background: none !important; border-color: transparent !important; }

.bcp-ip-actions {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--ap-border) !important;
}
.bcp-ip-acts-label {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .07em !important; text-transform: uppercase !important;
  color: var(--ap-muted) !important; margin-bottom: 2px !important;
}
.bcp-ip-act-btn {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 8px !important;
  color: var(--ap-text) !important;
  font-size: 12px !important; font-weight: 500 !important;
  padding: 8px 12px !important; cursor: pointer !important;
  font-family: inherit !important;
  display: flex !important; align-items: center !important; gap: 7px !important;
  transition: border-color .15s, background .15s !important;
  text-align: left !important;
}
.bcp-ip-act-btn:hover { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.03) !important; }

/* ── Mobile: hide insights panel, collapse to normal ──────── */
@media (max-width: 768px) {
  #page-studio {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #studioHubView { height: auto !important; overflow: visible !important; }
  .bcp-insights-panel {
    height: auto !important; border-left: none !important;
    border-top: 1px solid var(--ap-border) !important;
    grid-column: unset !important; grid-row: unset !important;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  #page-studio { grid-template-columns: 1fr 240px !important; }
}

/* ── Assistant: welcome + suggested prompts ─────────────────── */
.chat-shell {
  position: relative !important;
  justify-content: flex-end !important;
}
.chat-welcome {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 24px 20px !important;
  text-align: center !important;
  gap: 12px !important;
}
.chat-welcome-ico {
  width: 56px !important; height: 56px !important;
  border-radius: 18px !important;
  background: var(--ap-green-d) !important;
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--ap-green) !important;
  margin-bottom: 8px !important;
}
.chat-welcome-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -.03em !important;
  color: var(--ap-text) !important;
  margin: 0 !important;
}
.chat-welcome-sub {
  font-size: 14px !important;
  color: var(--ap-muted) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}
.chat-prompts-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 600px !important;
  margin-top: 8px !important;
}
.chat-prompt-chip {
  background: var(--ap-bg3) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ap-text) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-align: left !important;
  line-height: 1.4 !important;
  transition: border-color .15s, background .15s !important;
}
.chat-prompt-chip:hover {
  border-color: color-mix(in srgb, var(--green) 25%, transparent) !important;
  background: rgba(255,255,255,.03) !important;
}
.chat-feed { flex: 1 !important; }
.chat-input-hint {
  font-size: 11px !important;
  color: var(--ap-muted) !important;
  text-align: center !important;
  margin-top: 6px !important;
}

/* Mobile: single-col prompts */
@media (max-width: 600px) {
  .chat-prompts-grid { grid-template-columns: 1fr !important; }
  .chat-welcome-title { font-size: 18px !important; }
}

/* ════════════════════════════════════════════════════════════════
   CRITICAL NAVIGATION FIX — 2026-07-01
   ════════════════════════════════════════════════════════════════ */

/* Fix 1: #page-studio had display:grid !important with no .active guard,
   making it always-visible and bleeding through all other pages.
   These two rules (later in cascade) correct it: */
#page-studio { display: none !important; }
#page-studio.active { display: grid !important; }

/* Fix 2: .app + nav together exceeded 100vh; clip the bottom of
   every page. Account for nav height so app fills the remainder. */
.app {
  height: calc(100vh - var(--ap-nav-h)) !important;
}

/* ════════════════════════════════════════════════════════════════
   ROOT LAYOUT FIX — 2026-07-01
   
   CAUSE: body { display:flex } defaults to flex-direction:row.
   The top nav (flex-shrink:0; width:100%) claimed the full viewport
   width, leaving zero space for .app. .app was off-screen right;
   body background (#09090B) showed as a black screen.
   
   FIX: column direction so nav (56px) stacks above app.
   ════════════════════════════════════════════════════════════════ */
body {
  flex-direction: column !important;
}

/* Ensure app fills remaining height after nav, not a fixed 100vh */
.app {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* mc fills the full .app height */
.mc {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   UX REFINEMENT — Campaign Type Overlay + Assets Search
   ═══════════════════════════════════════════════════════════════════ */

/* ── Campaign type overlay ─────────────────────────────────────── */
.ct-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.ct-overlay.ct-open {
  opacity: 1;
  pointer-events: all;
}
.ct-panel {
  background: #141416;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  width: min(780px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.ct-panel-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.ct-title {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.ct-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.ct-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.ct-close:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }

.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-panel { padding: 20px 16px; }
}
@media (max-width: 400px) {
  .ct-grid { grid-template-columns: 1fr; }
}

.ct-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
  background: #1E1E21;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: #F0F0F0;
  -webkit-appearance: none;
  appearance: none;
  transition: background .15s, border-color .15s, transform .12s;
}
.ct-card:hover {
  background: #27272B;
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
  transform: translateY(-1px);
}
.ct-card-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border-color: color-mix(in srgb, var(--green) 20%, transparent);
  padding: 16px 20px;
}
.ct-card-full:hover {
  background: color-mix(in srgb, var(--green) 9%, transparent);
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
}
.ct-card-full .ct-card-desc { color: rgba(255,255,255,.5); }

.ct-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-ico-instagram { background: rgba(225, 48, 108,.15); color: #E1306C; }
.ct-ico-facebook  { background: rgba(59, 89, 152,.15); color: #4F76C8; }
.ct-ico-meta      { background: rgba(24, 119, 242,.15); color: #1877F2; }
.ct-ico-google    { background: rgba(234, 67, 53,.15); color: #EA4335; }
.ct-ico-tiktok    { background: rgba(255,255,255,.08); color: #FFFFFF; }
.ct-ico-email     { background: rgba(99, 179, 237,.15); color: #63B3ED; }
.ct-ico-landing   { background: rgba(154, 205, 50,.15); color: #9ACD32; }
.ct-ico-social    { background: rgba(167, 139, 250,.15); color: #A78BFA; }
.ct-ico-strategy  { background: rgba(251, 191, 36,.15); color: #FBBF24; }
.ct-ico-funnel    { background: rgba(52, 211, 153,.15); color: #34D399; }
.ct-ico-full      { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }

.ct-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #F0F0F0;
  line-height: 1.2;
}
.ct-card-desc {
  font-size: 11.5px;
  color: rgba(240,240,240,.42);
  line-height: 1.35;
  margin-top: -4px;
}
.ct-card-full .ct-card-name { font-size: 14px; }

/* ── Assets search bar ──────────────────────────────────────────── */
.asl-search-wrap {
  position: relative;
  margin-bottom: 14px;
}
.asl-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.3);
  pointer-events: none;
}
.asl-search-inp {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 14px 0 38px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.asl-search-inp::placeholder { color: rgba(255,255,255,.28); }
.asl-search-inp:focus {
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
  background: rgba(255,255,255,.06);
}


/* ═══════════════════════════════════════════════════════════════════
   CAMPAIGN TYPE REFINEMENT — flagship layout + divider
   ═══════════════════════════════════════════════════════════════════ */

/* Full Campaign card — now above the grid, full-width standalone */
.ct-card-full {
  width: 100%;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 20px 22px !important;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--green) 5%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 25%, transparent) !important;
}
.ct-card-full:hover {
  background: color-mix(in srgb, var(--green) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 60%, transparent) !important;
}
.ct-card-full-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.ct-card-full .ct-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px !important;
  color: rgba(255,255,255,.92) !important;
}
.ct-card-full .ct-card-desc {
  font-size: 12px !important;
  color: rgba(255,255,255,.45) !important;
  max-width: 540px;
  line-height: 1.5 !important;
}

.ct-flagship-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
}

/* Divider between flagship and channel grid */
.ct-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: rgba(255,255,255,.22);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ct-divider::before,
.ct-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* Channel grid — 5 cards, no longer needs to accommodate 10 */
.ct-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 580px) {
  .ct-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Meta icon color update */
.ct-ico-meta { background: rgba(24,119,242,.15) !important; color: #4F8EF7 !important; }

/* Remove old unused type icon rules */
.ct-ico-instagram { display: none; }
.ct-ico-facebook  { display: none; }
.ct-ico-strategy  { display: none; }
.ct-ico-funnel    { display: none; }


/* ═══════════════════════════════════════════════════════════════════
   CAMPAIGN TYPE EXPANSION — clean 2x3 grid, TikTok added
   ═══════════════════════════════════════════════════════════════════ */

/* Reset all previous flagship / divider overrides */
.ct-card-full,
.ct-card-full:hover {
  width: auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 18px 16px !important;
  background: rgba(255,255,255,.03) !important;
  border-color: rgba(255,255,255,.07) !important;
  margin-bottom: 0 !important;
}
.ct-card-full:hover {
  background: rgba(255,255,255,.07) !important;
  border-color: color-mix(in srgb, var(--green) 35%, transparent) !important;
}
.ct-card-full .ct-card-name {
  font-size: 13.5px !important;
  display: block !important;
  color: rgba(255,255,255,.88) !important;
}
.ct-card-full .ct-card-desc {
  font-size: 11.5px !important;
  color: rgba(255,255,255,.38) !important;
  max-width: none !important;
  line-height: 1.35 !important;
}
.ct-flagship-badge { display: none !important; }
.ct-divider { display: none !important; }

/* Strict 2 rows × 3 columns — all 6 cards equal height */
.ct-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 1fr !important;
  gap: 12px !important;
}
.ct-card {
  height: 100% !important;
  box-sizing: border-box !important;
  justify-content: flex-start !important;
}

/* Tablet: 2 columns */
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile: 1 column */
@media (max-width: 400px) {
  .ct-grid { grid-template-columns: 1fr !important; }
  .ct-card { flex-direction: row !important; align-items: center !important; }
}

/* TikTok icon */
.ct-ico-tiktok { background: rgba(255, 0, 80, .12); color: #FF3B5C; }

/* Panel width bump to fit 3 balanced columns comfortably */
.ct-panel { width: min(720px, 94vw) !important; }


/* ═══════════════════════════════════════════════════════════════════
   CAMPAIGN FLOW RESTRUCTURE — format grid, type pill, review
   ═══════════════════════════════════════════════════════════════════ */

/* Type pill shown at top of modal step 1 */
.ncc-type-row {
  margin-bottom: 18px;
}
.ncc-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 20px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Creative format grid */
.ncc-fmt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .ncc-fmt-grid { grid-template-columns: 1fr; }
}

.ncc-fmt-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  user-select: none;
}
.ncc-fmt-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
}
.ncc-fmt-item.ncc-fmt-sel {
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
}

.ncc-fmt-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.ncc-fmt-sel .ncc-fmt-check {
  background: var(--green);
  border-color: var(--green);
  color: #09090B;
}

.ncc-fmt-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
}
.ncc-fmt-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,.35);
  line-height: 1.35;
  margin-top: 2px;
}

/* Review — type pill in review card */
.ncc-rv-type-pill {
  display: inline-flex;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  border-radius: 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Ensure modal body scrolls on short screens when format grid is tall */
.ncc-modal { max-height: 90vh; overflow-y: auto; }


/* ── Image Ad Result (campaign workspace) ─────────────────────── */
.cws-img-ad {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.cws-img-ad-concept {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t3, #888);
}
.cws-img-ad-visual {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1/1;
}
.cws-img-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cws-img-ad-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--t1, #fff);
  line-height: 1.3;
}
.cws-img-ad-body {
  font-size: 14px;
  color: var(--t2, #ccc);
  line-height: 1.6;
}
.cws-img-ad-cta-row {
  display: flex;
  align-items: center;
}
.cws-img-ad-cta-chip {
  display: inline-block;
  padding: 8px 20px;
  background: var(--green);
  color: #000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.cws-img-ad-actions {
  display: flex;
  gap: 10px;
}

/* Single-ad text result (non-image formats) */
.cws-single-ad {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

/* ── HTML Preview (Email / Landing Page) ──────────────────────── */
.cws-html-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}
.cws-html-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cws-html-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3, #888);
  letter-spacing: .04em;
  flex: 1;
}
.cws-html-preview {
  width: 100%;
  height: 500px;
  border: none;
  background: #fff;
  display: block;
}
.cws-html-preview-tall { height: 720px; }

/* ── Google Ads structured output ─────────────────────────────── */
.cws-gads {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cws-gads-section { display: flex; flex-direction: column; gap: 8px; }
.cws-gads-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t3, #888);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cws-gads-count {
  font-size: 10px;
  background: rgba(255,255,255,.08);
  color: var(--t2, #ccc);
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.cws-gads-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}
.cws-gads-num {
  font-size: 11px;
  color: var(--t3, #888);
  min-width: 18px;
  padding-top: 1px;
}
.cws-gads-text {
  flex: 1;
  font-size: 14px;
  color: var(--t1, #fff);
  line-height: 1.4;
}
.cws-gads-chars {
  font-size: 11px;
  color: var(--t3, #888);
  white-space: nowrap;
  padding-top: 2px;
}
.cws-gads-kw-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.cws-gads-kw {
  display: inline-flex;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--green);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
}

/* ── TikTok / Social script output ───────────────────────────── */
.cws-tiktok { display: flex; flex-direction: column; gap: 20px; }
.cws-tiktok-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t3, #888);
  margin-bottom: 8px;
}
.cws-tiktok-hook {
  padding: 16px 20px;
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius: 10px;
}
.cws-tiktok-hook-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1, #fff);
  line-height: 1.3;
}
.cws-tiktok-script {
  display: flex;
  flex-direction: column;
}
.cws-tiktok-script-body {
  font-size: 14px;
  color: var(--t2, #ccc);
  line-height: 1.7;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  white-space: pre-wrap;
}
.cws-tiktok-caption-text {
  font-size: 14px;
  color: var(--t1, #fff);
  line-height: 1.6;
}
.cws-tiktok-meta { display: flex; flex-direction: column; gap: 12px; }
.cws-tiktok-cta-row { display: flex; }
.cws-tiktok-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ── Campaign Results (no sidebar) ─────────────────────────────── */
.cwr {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cwr-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.cwr-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t3, #888);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.cwr-back:hover { background: rgba(255,255,255,.06); color: var(--t1, #fff); }
.cwr-back svg { width: 10px; height: 10px; }
.cwr-meta { display: flex; align-items: center; gap: 8px; }
.cwr-name { font-size: 14px; font-weight: 600; color: var(--t1, #fff); }
.cwr-type-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t3, #888);
  background: rgba(255,255,255,.07); border-radius: 10px;
  padding: 2px 8px;
}
.cwr-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 36px 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cwr-asset-wrap { width: 100%; max-width: 800px; }
.cwr-asset-inner { display: flex; flex-direction: column; gap: 0; }

/* Asset action bar */
.cwr-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 24px;
}
.cwr-ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--t1, #fff);
}
.cwr-ab-btn:hover { background: rgba(255,255,255,.1); }
.cwr-ab-primary {
  background: var(--green) !important;
  color: #000 !important;
  border-color: transparent !important;
  font-weight: 700;
}
.cwr-ab-primary:hover { background: var(--gm) !important; }
.cwr-ab-danger {
  border-color: rgba(255,80,80,.3) !important;
  color: #ff6060 !important;
}
.cwr-ab-danger:hover { background: rgba(255,80,80,.12) !important; }

/* Video player */
.cws-vid-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}
.cws-vid-player {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: contain;
}

/* Video generating state */
.cws-vid-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}
.cws-vid-gen-spin {
  width: 32px; height: 32px;
  border: 3px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.cws-vid-gen-lbl { font-size: 14px; color: var(--t2, #ccc); line-height: 1.5; }
.cws-vid-failed {
  padding: 20px;
  background: rgba(255,80,80,.06);
  border: 1px solid rgba(255,80,80,.2);
  border-radius: 10px;
  color: #ff8080;
  font-size: 13px;
  text-align: center;
  margin-bottom: 20px;
}

/* Image upload in campaign creation */
.ncc-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--t3, #888);
  transition: border-color .15s, background .15s;
  background: rgba(255,255,255,.02);
}
.ncc-upload-label:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 4%, transparent); color: var(--t2,#ccc); }
.ncc-img-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ncc-img-thumb {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.ncc-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncc-img-remove {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  border: none; cursor: pointer;
  color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* Desktop/Mobile/Tablet preview toggle */
.cwr-preview-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cwr-ptog {
  padding: 5px 14px; font-size: 12px; font-weight: 500;
  border-radius: 6px; border: none; cursor: pointer;
  background: none; color: var(--t3, #888); transition: all .15s;
}
.cwr-ptog-on { background: rgba(255,255,255,.1); color: var(--t1, #fff); }
.cwr-ptog-fullscreen {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.1); cursor: pointer;
  background: none; color: var(--t3, #888); transition: all .15s;
}
.cwr-ptog-fullscreen:hover { background: rgba(255,255,255,.07); color: var(--t1, #fff); }

/* Fullscreen LP overlay */
.cws-lp-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.cws-lp-fullscreen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.cws-lp-fullscreen-title { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; }
.cws-lp-fullscreen-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  transition: all .15s;
}
.cws-lp-fullscreen-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.cws-lp-fullscreen-frame {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* Assets library page */
#page-assets.active { display: flex; flex-direction: column; padding: 0; height: 100%; }
.ast-wrap { flex: 1; overflow-y: auto; padding: 36px 40px 60px; }
.ast-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.ast-title { font-size: 22px; font-weight: 700; color: var(--t1, #fff); }
.ast-subtitle { font-size: 13px; color: var(--t3, #888); margin-top: 4px; }
.ast-tabs { display: flex; gap: 4px; margin-bottom: 28px; }
.ast-tab {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; background: none; color: var(--t3, #888);
  transition: all .15s;
}
.ast-tab.on { background: rgba(255,255,255,.08); color: var(--t1, #fff); }
.ast-empty {
  text-align: center; padding: 80px 20px;
  color: var(--t3, #888); font-size: 14px;
}
.ast-empty svg { opacity: .3; margin-bottom: 16px; }
.ast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.ast-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s;
}
.ast-card:hover { border-color: rgba(255,255,255,.16); }
.ast-card-thumb {
  width: 100%; aspect-ratio: 16/9; background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.ast-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ast-card-thumb-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.2);
}
.ast-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ast-card-type {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--t3, #888);
}
.ast-card-name { font-size: 14px; font-weight: 600; color: var(--t1, #fff); line-height: 1.3; }
.ast-card-date { font-size: 12px; color: var(--t3, #888); margin-top: 2px; }
.ast-card-actions {
  display: flex; gap: 6px; padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ast-card-btn {
  flex: 1; padding: 7px 10px; border-radius: 7px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1px solid rgba(255,255,255,.1);
  background: none; color: var(--t2, #ccc); transition: all .15s; text-align: center;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.ast-card-btn:hover { background: rgba(255,255,255,.07); color: var(--t1, #fff); }
.ast-card-btn-danger { border-color: rgba(255,80,80,.2) !important; color: #ff6060 !important; }
.ast-card-btn-danger:hover { background: rgba(255,80,80,.08) !important; }

/* ════════════════════════════════════════════════════════════════
   BRAND ONBOARDING OVERLAY
   ════════════════════════════════════════════════════════════════ */
.obd-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.obd-card {
  background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 48px 48px 40px;
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 0;
}
.obd-logo {
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 36px;
}
.obd-progress {
  display: flex; gap: 6px; margin-bottom: 32px;
}
.obd-dot {
  height: 3px; flex: 1; border-radius: 2px;
  background: rgba(255,255,255,.12); transition: background .2s;
}
.obd-dot-done   { background: color-mix(in srgb, var(--green) 50%, transparent); }
.obd-dot-active { background: var(--green); }
.obd-counter {
  font-size: 11px; color: rgba(255,255,255,.4); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.obd-question {
  font-size: 22px; font-weight: 700; color: #fff; line-height: 1.3;
  margin-bottom: 28px;
}
.obd-input {
  width: 100%;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 14px 16px;
  font-size: 15px; color: #fff; outline: none; transition: border-color .15s;
}
.obd-input::placeholder { color: rgba(255,255,255,.3); }
.obd-input:focus { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.obd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.obd-chip {
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7);
  cursor: pointer; transition: all .15s;
}
.obd-chip:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.obd-chip-sel { background: color-mix(in srgb, var(--green) 12%, transparent) !important; border-color: var(--green) !important; color: var(--green) !important; }
.obd-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 36px;
}
.obd-skip {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,.3); font-weight: 500;
  transition: color .15s; padding: 0;
}
.obd-skip:hover { color: rgba(255,255,255,.6); }
.obd-btns { display: flex; gap: 10px; }
.obd-back {
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); background: none; color: rgba(255,255,255,.6);
  cursor: pointer; transition: all .15s;
}
.obd-back:hover { background: rgba(255,255,255,.06); color: #fff; }
.obd-next {
  padding: 11px 26px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: none; background: var(--green); color: #000;
  cursor: pointer; transition: all .15s;
}
.obd-next:hover { background: var(--gm); }

/* ── Product tour overlay ────────────────────────────────────── */
#obTourOverlay { display: none; }

/* ── Reward screen ───────────────────────────────────────────── */
.obd-reward-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.obd-reward-card {
  background: #111; border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 24px; padding: 52px 48px 44px;
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0;
}
.obd-reward-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 28px;
}
.obd-reward-title {
  font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.obd-reward-sub {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 32px;
  max-width: 340px;
}
.obd-reward-credit {
  background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 14px; padding: 20px 28px; width: 100%; margin-bottom: 32px;
}
.obd-reward-credit-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 70%, transparent); margin-bottom: 8px;
}
.obd-reward-credit-value {
  font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 4px;
}
.obd-reward-credit-hint {
  font-size: 12px; color: rgba(255,255,255,.35);
}
.obd-reward-cta {
  width: 100%; padding: 15px 28px; border-radius: 12px;
  background: var(--green); color: #000; font-size: 15px; font-weight: 800;
  border: none; cursor: pointer; transition: background .15s;
}
.obd-reward-cta:hover { background: var(--gm); }
.obd-reward-fine {
  font-size: 11px; color: rgba(255,255,255,.25); margin-top: 14px;
}

/* ── Edit drawer ────────────────────────────────────────────────── */
.cwr-edit-drawer {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 420px;
  background: var(--bg2, #111);
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  z-index: 900;
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.cwr-edit-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.cwr-edit-title { font-size: 15px; font-weight: 600; color: var(--t1, #fff); }
.cwr-edit-close { background: none; border: none; cursor: pointer; color: var(--t3, #888); padding: 4px; border-radius: 4px; }
.cwr-edit-close:hover { color: var(--t1, #fff); }
.cwr-edit-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 20px; }
.cwr-edit-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.cwr-edit-apply {
  width: 100%; padding: 12px; border-radius: 8px;
  background: var(--green); color: #000; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.cwr-edit-apply:hover { background: var(--gm); }
.cwr-edit-section { display: flex; flex-direction: column; gap: 8px; }
.cwr-edit-lbl { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t3, #888); }
.cwr-edit-textarea {
  width: 100%; height: 260px; padding: 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--t1, #fff); font-size: 12px; font-family: monospace;
  resize: vertical; box-sizing: border-box;
}
.cwr-edit-link-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cwr-edit-link-text { font-size: 11px; color: var(--t3, #888); }
.cwr-edit-link-inp {
  padding: 8px 10px; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--t1, #fff); font-size: 12px; width: 100%; box-sizing: border-box;
}

/* ── Modal header fix (step dots + close, no overlap) ───────────── */
.ncc-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.ncc-modal-head .ncc-stepbar { flex: 1; margin: 0; padding: 0; }
.ncc-modal-head .ncc-close {
  position: static !important;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ════════════════════════════════════════════════════════════════
   LANDING PAGE REDESIGN — Marketing Intelligence Platform
   ════════════════════════════════════════════════════════════════ */

/* ── Hero: accent headline + integration pills ─────────────────── */
.ov-h1-accent { color: var(--green); }

.ov-hero-integrations {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; flex-wrap: wrap;
}
.ov-hero-int-label {
  font-size: 12px; color: rgba(255,255,255,.38); font-weight: 500;
  letter-spacing: .02em; white-space: nowrap;
}
.ov-hero-int-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-hero-int-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.65);
  letter-spacing: .01em;
  /* Redesign: now a <button>, visually selectable (ovHeroPlatformPick) —
     purely cosmetic, no functional targeting. */
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s ease, border-color .2s ease;
}
.ov-hero-int-pill:not(.ov-hero-int-pill-active) { opacity: .4; }
.ov-hero-int-pill:hover { opacity: .85; }
.ov-hero-int-pill-active:hover { opacity: 1; }
.ov-hero-int-pill:focus-visible { outline: 2px solid var(--green, #B7FF2A); outline-offset: 2px; }
.ov-int-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ov-int-dot-google { background: #4285F4; }
.ov-int-dot-tiktok { background: #EE1D52; }
.ov-int-dot-meta   { background: #0866FF; }
.ov-int-dot-pinterest { background: #E60023; }

/* ── Utility ───────────────────────────────────────────────────── */
.ov-green { color: var(--green) !important; }

/* ── Platform Unification (Section 01) ────────────────────────── */
#ov-platform {
  padding: 120px 24px;
  background: rgba(255,255,255,.01);
}
.ov-plat-inner { max-width: 1080px; margin: 0 auto; }

.ov-plat-diagram {
  display: flex; align-items: stretch;
  margin-top: 56px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02); overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.ov-plat-diagram.ov-vis { opacity: 1; transform: translateY(0); }

.ov-plat-sources {
  flex: 1; display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ov-plat-source {
  flex: 1; display: flex; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-plat-source:last-child { border-bottom: none; }

.ov-ps-bar { width: 3px; flex-shrink: 0; }
.ov-ps-bar-google { background: #4285F4; }
.ov-ps-bar-tiktok { background: #EE1D52; }
.ov-ps-bar-meta   { background: #0866FF; }

.ov-ps-body { padding: 22px 24px; flex: 1; }
.ov-ps-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8);
  margin-bottom: 14px;
}
.ov-ps-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ov-ps-dot-google { background: #4285F4; }
.ov-ps-dot-tiktok { background: #EE1D52; }
.ov-ps-dot-meta   { background: #0866FF; }

.ov-ps-metrics { display: flex; flex-direction: column; gap: 6px; }
.ov-ps-m {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.ov-ps-mk { color: rgba(255,255,255,.38); }
.ov-ps-mv { color: rgba(255,255,255,.7); font-weight: 500; }

.ov-plat-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; flex-shrink: 0;
}
.ov-plat-arrow-head {
  font-size: 22px; color: color-mix(in srgb, var(--green) 45%, transparent);
}

.ov-plat-brain {
  flex: 0 0 280px; padding: 30px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.ov-pb-glow {
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 7%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.ov-pb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.ov-pb-logo-text {
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--green);
}
.ov-pb-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: color-mix(in srgb, var(--green) 70%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  padding: 3px 9px; border-radius: 100px;
}
.ov-pb-divider {
  height: 1px; background: rgba(255,255,255,.07); margin: 14px 0;
}
.ov-pb-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; font-size: 13px;
}
.ov-pb-k { color: rgba(255,255,255,.38); }
.ov-pb-v { color: rgba(255,255,255,.8); font-weight: 500; }
.ov-pb-ai-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: color-mix(in srgb, var(--green) 75%, transparent); margin-top: 10px;
}
.ov-pb-ai-pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: ov-pip-pulse 1.8s ease-in-out infinite;
}

/* ── Comparison Section (Section 02) ──────────────────────────── */
#ov-compare {
  padding: 120px 24px;
  background: rgba(0,0,0,.2);
}
.ov-compare-inner { max-width: 920px; margin: 0 auto; }

.ov-compare-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  margin-top: 52px; gap: 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.ov-compare-grid.ov-vis { opacity: 1; transform: translateY(0); }

.ov-cmp-col {
  padding: 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
}
.ov-cmp-before { background: rgba(255,255,255,.02); }
.ov-cmp-after {
  background: color-mix(in srgb, var(--green) 2.5%, transparent);
  border-color: color-mix(in srgb, var(--green) 14%, transparent);
}
.ov-cmp-head {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 24px;
}
.ov-cmp-before .ov-cmp-head { color: rgba(255,255,255,.38); }
.ov-cmp-after  .ov-cmp-head { color: var(--green); }

.ov-cmp-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 15px;
}
.ov-cmp-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.58);
}
.ov-cmp-x {
  color: rgba(255,70,70,.6); font-size: 12px; font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
}
.ov-cmp-chk {
  color: var(--green); font-size: 12px; font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}
.ov-cmp-vs {
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; color: rgba(255,255,255,.18); flex-shrink: 0;
}

/* ── Features / Marketing Intelligence (Section 03) ───────────── */
#ov-brand-identity { padding: 120px 24px; }
.ov-feat-inner { max-width: 1080px; margin: 0 auto; }

.ov-feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 52px;
}
.ov-feat-card {
  padding: 28px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  background: rgba(255,255,255,.025);
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease, border-color .2s;
}
.ov-feat-card.ov-vis { opacity: 1; transform: translateY(0); }
.ov-feat-card:hover { border-color: rgba(255,255,255,.15); }

.ov-feat-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--green) 7%, transparent); border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
}
.ov-feat-name {
  font-size: 15px; font-weight: 700; color: rgba(255,255,255,.9);
  margin-bottom: 10px; line-height: 1.3;
}
.ov-feat-desc {
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.48);
}

/* ── Daily Brief Preview (Section 04) ─────────────────────────── */
#ov-brief-preview {
  padding: 120px 24px;
  background: rgba(255,255,255,.01);
}
.ov-bp-inner { max-width: 780px; margin: 0 auto; }

.ov-brief-card {
  margin-top: 52px;
  border: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
  border-radius: 20px;
  background: rgba(255,255,255,.03); overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.ov-brief-card.ov-vis { opacity: 1; transform: translateY(0); }

.ov-brief-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: color-mix(in srgb, var(--green) 3%, transparent);
}
.ov-brief-top-left { display: flex; flex-direction: column; gap: 3px; }
.ov-brief-label {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.ov-brief-date { font-size: 12px; color: rgba(255,255,255,.38); }
.ov-brief-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: rgba(255,255,255,.38);
}
.ov-brief-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: ov-pip-pulse 2s ease-in-out infinite;
}
.ov-brief-body { padding: 24px 28px 20px; }
.ov-brief-summary {
  font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.55);
}
.ov-brief-summary strong { color: rgba(255,255,255,.88); font-weight: 600; }

.ov-brief-actions {
  padding: 0 28px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.ov-brief-actions-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: 4px;
}
.ov-brief-action {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.ov-ba-num {
  font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 55%, transparent);
  flex-shrink: 0; min-width: 20px; margin-top: 1px;
}
.ov-ba-text {
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.58); flex: 1;
}
.ov-ba-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; flex-shrink: 0; white-space: nowrap;
  margin-top: 1px;
}
.ov-ba-scale { background: color-mix(in srgb, var(--green) 10%, transparent);  color: var(--green); }
.ov-ba-pause { background: rgba(255,165,0,.1);   color: rgba(255,185,0,.8); }
.ov-ba-review{ background: rgba(99,179,237,.1);  color: rgba(99,179,237,.85); }

/* ── Stats Section (Section 05) ───────────────────────────────── */
#ov-results {
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-results-inner { max-width: 900px; margin: 0 auto; }

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes ov-pip-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── Mobile responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ov-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .ov-plat-brain { flex: 0 0 240px; }
}

@media (max-width: 768px) {
  #ov-platform, #ov-compare, #ov-brand-identity, #ov-brief-preview { padding: 80px 20px; }

  .ov-plat-diagram { flex-direction: column; }
  .ov-plat-sources { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ov-plat-arrow { padding: 12px; }
  .ov-plat-arrow-head { transform: rotate(90deg); display: inline-block; }
  .ov-plat-brain { flex: unset; }

  .ov-compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .ov-cmp-vs { padding: 8px 0; }

  .ov-brief-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ov-brief-action { flex-wrap: wrap; }
  .ov-ba-tag { margin-top: 6px; }
}

@media (max-width: 540px) {
  .ov-feat-grid { grid-template-columns: 1fr; }
  .ov-hero-integrations { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ov-plat-brain { padding: 20px; }
  .ov-cmp-col { padding: 24px 20px; }
}

/* ── Hero integration pills: center + muted brand colors ─────── */
.ov-hero-integrations {
  justify-content: center;
}

/* Muted premium brand color pills */
.ov-pill-google {
  background: rgba(251,188,5,.05);
  border-color: rgba(251,188,5,.18);
  color: rgba(251,220,120,.75);
}
.ov-pill-google .ov-int-dot-google { background: #FBBC05; }

.ov-pill-tiktok {
  background: rgba(210,40,70,.05);
  border-color: rgba(210,40,70,.2);
  color: rgba(240,130,140,.75);
}
.ov-pill-tiktok .ov-int-dot-tiktok { background: #D0283F; }

.ov-pill-meta {
  background: rgba(8,102,255,.05);
  border-color: rgba(8,102,255,.2);
  color: rgba(100,160,255,.75);
}
.ov-pill-meta .ov-int-dot-meta { background: #0866FF; }

.ov-pill-pinterest {
  background: rgba(230,0,35,.05);
  border-color: rgba(230,0,35,.2);
  color: rgba(240,110,130,.75);
}
.ov-pill-pinterest .ov-int-dot-pinterest { background: #E60023; }

/* ── Comparison section: centered heading ─────────────────────── */
#ov-compare .ov-section-h,
#ov-compare .ov-section-sub {
  text-align: center;
}

/* ── Stats section: expand padding for globe visual ───────────── */
#ov-results {
  padding: 100px 24px;
}
#ov-results .ov-section-h,
#ov-results .ov-section-sub {
  text-align: center;
}

/* ── Globe visual ─────────────────────────────────────────────── */
.ov-global-visual {
  margin: 52px auto 56px;
  max-width: 600px;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.ov-global-visual.ov-vis { opacity: 1; transform: translateY(0); }

.ov-globe-container {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}

.ov-globe-svg {
  width: 280px; height: 280px;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--green) 7%, transparent));
}

/* Pulsing glow on dots */
.ov-gdot {
  opacity: .85;
  animation: ov-gdot-pulse 2.8s ease-in-out infinite;
}
.ov-gdot-1 { animation-delay: 0s; }
.ov-gdot-2 { animation-delay: .4s; }
.ov-gdot-3 { animation-delay: .8s; }
.ov-gdot-4 { animation-delay: 1.2s; }
.ov-gdot-5 { animation-delay: .6s; }
.ov-gdot-6 { animation-delay: 1.6s; }
.ov-gdot-7 { animation-delay: .2s; }

.ov-gdot-halo {
  animation: ov-gdot-halo-pulse 2.8s ease-in-out infinite;
}

@keyframes ov-gdot-pulse {
  0%, 100% { opacity: .85; r: 4; }
  50%       { opacity: 1;   }
}
@keyframes ov-gdot-halo-pulse {
  0%, 100% { opacity: .07; }
  50%       { opacity: .18; }
}

/* Country pills below globe */
.ov-globe-countries {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  max-width: 380px;
}
.ov-globe-country {
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.45);
  padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  transition: color .2s, border-color .2s;
}
.ov-globe-country:hover {
  color: rgba(255,255,255,.75);
  border-color: color-mix(in srgb, var(--green) 20%, transparent);
}

/* ── Language section ─────────────────────────────────────────── */
#ov-languages {
  padding: 100px 24px;
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.05);
}
.ov-languages-inner {
  max-width: 880px; margin: 0 auto; text-align: center;
}
#ov-languages .ov-section-h,
#ov-languages .ov-section-sub { text-align: center; }

.ov-lang-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px; margin-top: 52px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.ov-lang-grid.ov-vis { opacity: 1; transform: translateY(0); }

.ov-lang-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s, background .2s, transform .2s;
  cursor: default;
}
.ov-lang-card:hover {
  border-color: color-mix(in srgb, var(--green) 20%, transparent);
  background: color-mix(in srgb, var(--green) 2.5%, transparent);
  transform: translateY(-3px);
}
.ov-lang-flag { font-size: 28px; line-height: 1; }
.ov-lang-name {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* ── Blog coming soon ─────────────────────────────────────────── */
.ov-blog-coming-soon {
  text-align: center; padding: 60px 0;
}
.ov-blog-cs-icon {
  font-size: 32px; color: color-mix(in srgb, var(--green) 40%, transparent); margin-bottom: 20px;
}
.ov-blog-coming-soon h2 {
  font-size: 28px; font-weight: 700; margin-bottom: 16px;
  color: rgba(255,255,255,.85);
}
.ov-blog-coming-soon p {
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.45);
  max-width: 480px; margin: 0 auto 24px;
}

/* ── Mobile: language grid ────────────────────────────────────── */
@media (max-width: 900px) {
  .ov-lang-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .ov-lang-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ov-globe-svg { width: 220px; height: 220px; }
  .ov-lang-card { padding: 16px 8px; }
  .ov-lang-flag { font-size: 24px; }
}
@media (max-width: 400px) {
  .ov-lang-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   LANDING REFINEMENTS — Fragment Concept + Polish
   ════════════════════════════════════════════════════════════════ */

/* ── Google Ads: gold everywhere ──────────────────────────────── */
.ov-ps-bar-google  { background: #FBBC05; }
.ov-ps-dot-google  { background: #FBBC05; }
.ov-int-dot-google { background: #FBBC05; }

/* ── Section 03: centered heading ─────────────────────────────── */
#ov-brand-identity .ov-section-h,
#ov-brand-identity .ov-section-sub { text-align: center; }

/* ── Section 04: centered heading ─────────────────────────────── */
#ov-brief-preview .ov-section-h,
#ov-brief-preview .ov-section-sub  { text-align: center; }

/* ── Fragment visual layer ─────────────────────────────────────── */
.ov-frag-layer {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.ov-frag {
  position: absolute;
  width: 36px; height: 5px;
  background: color-mix(in srgb, var(--green) 5.5%, transparent);
  border-radius: 1px;
  animation: ov-frag-drift var(--dur,8s) ease-in-out var(--del,0s) infinite;
  transform: rotate(var(--rot,0deg));
}
.ov-frag-sm { width: 22px; height: 4px; background: color-mix(in srgb, var(--green) 4%, transparent); }
.ov-frag-lg { width: 54px; height: 5px; background: color-mix(in srgb, var(--green) 4%, transparent); }
.ov-frag-v  { width: 4px;  height: 26px; }

@keyframes ov-frag-drift {
  0%   { transform: rotate(var(--rot,0deg)) translate(0,0);            opacity: .4;  }
  25%  { transform: rotate(calc(var(--rot,0deg) + 14deg)) translate(8px,-16px);  opacity: .8;  }
  55%  { transform: rotate(calc(var(--rot,0deg) +  7deg)) translate(4px,-10px);  opacity: .5;  }
  80%  { transform: rotate(calc(var(--rot,0deg) -  9deg)) translate(-7px,-19px); opacity: .7;  }
  100% { transform: rotate(var(--rot,0deg)) translate(0,0);            opacity: .4;  }
}

/* Micro fragment accents at section tops */
#ov-platform,
#ov-compare,
#ov-brand-identity { position: relative; }

#ov-platform::before,
#ov-compare::before,
#ov-brand-identity::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 24px; height: 4px;
  background: color-mix(in srgb, var(--green) 7%, transparent);
  border-radius: 1px;
  pointer-events: none;
}

/* ── Interactive 3D globe canvas ───────────────────────────────── */
.ov-globe-wrap {
  position: relative;
  display: flex; justify-content: center;
}
#ov-globe-canvas {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* ── Language cards: staggered entrance via parent ov-vis ─────── */
.ov-lang-grid {
  opacity:    1 !important;
  transform:  none !important;
  transition: none !important;
}
.ov-lang-card {
  opacity:   0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1),
              transform .5s cubic-bezier(.22,1,.36,1),
              border-color .2s, background .2s;
}
.ov-lang-grid.ov-vis .ov-lang-card              { opacity: 1; transform: none; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(1) { transition-delay: .04s; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(2) { transition-delay: .10s; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(3) { transition-delay: .16s; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(4) { transition-delay: .22s; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(5) { transition-delay: .28s; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(6) { transition-delay: .34s; }
.ov-lang-grid.ov-vis .ov-lang-card:nth-child(7) { transition-delay: .40s; }

/* ── Feature cards: spring curve + hover lift ─────────────────── */
.ov-feat-card {
  transition: opacity .55s cubic-bezier(.22,1,.36,1),
              transform .55s cubic-bezier(.22,1,.36,1),
              border-color .2s, box-shadow .2s;
}
.ov-feat-card.ov-vis:hover {
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
  box-shadow:   0 0 0 1px color-mix(in srgb, var(--green) 6%, transparent), 0 12px 32px rgba(0,0,0,.24);
  transform:    translateY(-3px);
}

/* ── Brief card hover ──────────────────────────────────────────── */
.ov-brief-card {
  transition: opacity .7s ease, transform .7s ease, box-shadow .25s ease;
}
.ov-brief-card.ov-vis:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,.3), 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent);
}

/* ── Platform arrow: animated pulse ───────────────────────────── */
.ov-plat-arrow-head {
  display: inline-block;
  animation: ov-arrow-nudge 2.4s ease-in-out infinite;
}
@keyframes ov-arrow-nudge {
  0%,100% { opacity: .45; transform: translateX(0);   }
  50%     { opacity: .9;  transform: translateX(5px);  }
}

/* ── Comparison grid: entrance animation improvement ──────────── */
.ov-compare-grid {
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}

/* ── Globe countries margin ────────────────────────────────────── */
.ov-globe-countries { margin-top: 20px; }

/* ── Section label: consistent accent ─────────────────────────── */
.ov-section-label {
  letter-spacing: .12em;
  color: color-mix(in srgb, var(--green) 45%, transparent);
}

/* ════════════════════════════════════════════════════════════════
   SUB-PAGE SYSTEM — Product / Solutions / About / Blog
   ════════════════════════════════════════════════════════════════ */

/* Sub-page wrapper */
.ov-sub-page {
  min-height: 100vh;
  background: #07070A;
  color: #fff;
  font-family: 'Geist', sans-serif;
  overflow-y: auto;
}

/* ── Sub-page nav ─────────────────────────────────────────────── */
.ov-sub-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,10,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ov-sub-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; position: relative;
}
.ov-sub-nav .lp-logo { flex-shrink: 0; }
.ov-sub-nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.ov-sub-nav-link {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.52); text-decoration: none;
  transition: color .18s, background .18s;
}
.ov-sub-nav-link:hover { color: rgba(255,255,255,.88); background: rgba(255,255,255,.06); }
.ov-sub-nav-active { color: rgba(255,255,255,.9) !important; background: rgba(255,255,255,.07) !important; }
.ov-sub-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.ov-sp-hero {
  position: relative;
  padding: 120px 24px 96px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.ov-sp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--green) 5%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.ov-sp-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
/* Final Consistency Pass — platform pages now lead with the real brand
   mark itself as the visual focal point (spec: "make the PLATFORM LOGO
   the visual focal point") instead of a green "X Ads Intelligence"
   eyebrow label. Transparent background by design -- no white/colored
   card behind it -- so it reads as integrated into the page rather than
   a separate logo box; the SVGs are the exact same real brand paths
   already used in the nav dropdown and showcase tabs, just rendered
   larger, never a fabricated logo. */
.ov-plat-logo { display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.ov-plat-logo svg { display: block; }
/* Metric-matched fallback for Geist (measured: Geist is ~2.4% wider than Arial at 400 and ~4% at 700, so
   bold gets its own local() face). Used only by the public sub-page hero so the heading
   wraps the same before and after the web font swaps in (mobile CLS). */
@font-face { font-family: 'Geist Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); size-adjust: 102.4%; }
@font-face { font-family: 'Geist Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 104%; }
.ov-sp-h1, .ov-sp-hero-sub, .ov-sp-hero .ov-hero-btns { font-family: 'Geist', 'Geist Fallback', system-ui, sans-serif; }
h1.ov-sp-h1 { font-family: 'Geist', 'Geist Fallback', system-ui, sans-serif !important; } /* beats the global h1 !important stack */
/* Section heroes: the eyebrow is the H1 (it names the topic), the slogan below is a <p class="ov-sp-h1">. Same look as before. */
h1.ov-sp-topic { margin-top: 0; line-height: 1.5; text-wrap: balance; }
.ov-sp-h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.03em; color: rgba(255,255,255,.95);
  margin: 16px 0 22px;
}
.ov-sp-hero-sub {
  font-size: 17px; line-height: 1.72;
  color: rgba(255,255,255,.48);
  max-width: 560px; margin: 0 auto 40px;
}

/* ── Sections ─────────────────────────────────────────────────── */
.ov-sp-section { padding: 96px 24px; }
.ov-sp-alt {
  background: rgba(255,255,255,.012);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-sp-section-inner { max-width: 900px; margin: 0 auto; }

.ov-sp-tag {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: color-mix(in srgb, var(--green) 65%, transparent);
  background: color-mix(in srgb, var(--green) 7%, transparent); border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 18px;
}
.ov-sp-h2 {
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.12;
  color: rgba(255,255,255,.92); margin-bottom: 18px;
}
.ov-sp-sub {
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,.46);
  max-width: 640px; margin-bottom: 52px;
}

/* ── Feature list ─────────────────────────────────────────────── */
.ov-sp-feat-list { display: flex; flex-direction: column; gap: 14px; }
.ov-sp-feat {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s, transform .25s cubic-bezier(.22,1,.36,1);
}
.ov-sp-feat:hover { border-color: color-mix(in srgb, var(--green) 16%, transparent); transform: translateX(4px); }
.ov-sp-feat-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.ov-sp-feat-name { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: 6px; }
.ov-sp-feat-desc { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.44); }

/* ── Audience cards (Solutions) ───────────────────────────────── */
.ov-sp-audience-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.ov-sp-audience-card {
  padding: 32px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent);
  background: color-mix(in srgb, var(--green) 3%, transparent);
  transition: border-color .2s, background .2s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .2s;
}
.ov-sp-audience-card:hover {
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  background: color-mix(in srgb, var(--green) 5.5%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(0,0,0,.28), 0 0 0 0 color-mix(in srgb, var(--green) 4%, transparent);
}
.ov-sp-audience-icon { font-size: 30px; margin-bottom: 16px; }
.ov-sp-audience-title { font-size: 19px; font-weight: 700; color: rgba(255,255,255,.92); margin-bottom: 10px; }
.ov-sp-audience-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.44); margin-bottom: 18px; }
.ov-sp-audience-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ov-sp-audience-list li {
  font-size: 13.5px; color: rgba(255,255,255,.54);
  display: flex; gap: 9px; align-items: flex-start;
}
.ov-sp-audience-list li::before {
  content: '✓'; color: var(--green); flex-shrink: 0; font-weight: 700;
  font-size: 11px; margin-top: 2px;
}
/* Solutions pass — .ov-sp-audience-card is now a real <a> into its
   product's own page (was a plain, non-interactive <div>); this small
   trailing link row makes that destination explicit rather than relying
   on the whole-card hover alone to imply clickability. */
.ov-sp-audience-link {
  margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--green);
}

/* ── Brief demo (Product page) ────────────────────────────────── */
.ov-sp-brief-demo {
  border: 1px solid color-mix(in srgb, var(--green) 16%, transparent); border-radius: 16px;
  background: rgba(255,255,255,.025); overflow: hidden;
}
.ov-sp-brief-hdr {
  display: flex; align-items: center; gap: 14px; padding: 18px 26px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: color-mix(in srgb, var(--green) 2.5%, transparent);
}
.ov-sp-brief-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  padding: 3px 10px; border-radius: 100px;
}
.ov-sp-brief-date { font-size: 12px; color: rgba(255,255,255,.35); }
.ov-sp-brief-body { padding: 22px 26px; font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.52); }
.ov-sp-brief-body strong { color: rgba(255,255,255,.88); font-weight: 600; }
.ov-sp-brief-actions { padding: 0 26px 20px; display: flex; flex-direction: column; gap: 8px; }
.ov-sp-brief-action {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
  padding: 10px 14px; border-radius: 9px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
}

/* ── Dashboard pills ──────────────────────────────────────────── */
.ov-sp-dp-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ov-sp-dp {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 100px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
}
.ov-sp-dp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ov-sp-dp-g { background: #FBBC05; }
.ov-sp-dp-t { background: #EE1D52; }
.ov-sp-dp-m { background: #0866FF; }
.ov-sp-dp-ai {
  background: color-mix(in srgb, var(--green) 6%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); color: color-mix(in srgb, var(--green) 80%, transparent);
}

/* ── CTA section ──────────────────────────────────────────────── */
.ov-sp-cta {
  position: relative; padding: 100px 24px; text-align: center;
  overflow: hidden; border-top: 1px solid rgba(255,255,255,.06);
}
.ov-sp-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, color-mix(in srgb, var(--green) 4%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.ov-sp-cta-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }
.ov-sp-cta-h {
  font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; letter-spacing: -.025em;
  color: rgba(255,255,255,.93); margin-bottom: 18px; line-height: 1.12;
}
.ov-sp-cta-sub { font-size: 16px; color: rgba(255,255,255,.44); margin-bottom: 36px; line-height: 1.7; }

/* ── Sub-page footer ──────────────────────────────────────────── */
.ov-sub-footer { padding: 28px 24px; border-top: 1px solid rgba(255,255,255,.06); }
.ov-sub-footer-inner {
  max-width: 1100px; margin: 0 auto;
  font-size: 12px; color: rgba(255,255,255,.28); text-align: center;
}

/* ── About page ───────────────────────────────────────────────── */
.ov-about-problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px;
}
.ov-about-prob-card {
  padding: 28px; border-radius: 14px;
  border: 1px solid rgba(255,80,80,.1); background: rgba(255,50,50,.018);
  transition: border-color .2s;
}
.ov-about-prob-card:hover { border-color: rgba(255,80,80,.2); }
.ov-about-prob-icon { font-size: 26px; margin-bottom: 14px; }
.ov-about-prob-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.ov-about-prob-desc { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.42); }

.ov-about-values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 0; }
.ov-about-value-card {
  padding: 28px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025);
}
.ov-about-value-num {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 50%, transparent); margin-bottom: 12px;
}
.ov-about-value-title { font-size: 17px; font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 10px; }
.ov-about-value-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.44); }

/* ── Our Story two-column layout ───────────────────────────── */
.ov-about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
  margin-top: 16px;
}
.ov-about-story-img-wrap { position: relative; }
.ov-about-story-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 48px;
}
.ov-about-story-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  opacity: .92;
  filter: brightness(1.05);
}
.ov-about-story-text { padding-top: 8px; }
.ov-about-story-body p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,.52);
  margin: 0 0 18px;
}
.ov-about-story-body p:last-child { margin-bottom: 0; }

/* ── Centered about sections (Mission, Vision, Team) ────────── */
.ov-about-centered { text-align: center; }
.ov-about-centered .ov-sp-sub {
  margin-left: auto;
  margin-right: auto;
}
.ov-about-centered .ov-about-values-grid { text-align: left; }
.ov-about-centered .ov-sp-feat-list { text-align: left; }

/* ── Team section ───────────────────────────────────────────── */
.ov-about-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 0; }
.ov-about-team-card {
  text-align: center; padding: 36px 28px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
  transition: border-color .2s, transform .25s;
}
.ov-about-team-card:hover { border-color: color-mix(in srgb, var(--green) 14%, transparent); transform: translateY(-3px); }
.ov-about-founder-photo-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  border: 1px solid rgba(255,255,255,.14);
}
.ov-about-founder-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.ov-about-team-name { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: 5px; }
.ov-about-team-role { font-size: 13px; color: color-mix(in srgb, var(--green) 60%, transparent); margin-bottom: 14px; font-weight: 500; }
.ov-about-team-bio { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.38); }

@media (max-width: 768px) {
  .ov-about-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .ov-about-story-logo-display { padding: 40px 32px; }
}

/* ── Blog page ────────────────────────────────────────────────── */
.ov-blog-hero { padding: 96px 24px 72px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.ov-blog-search-wrap { margin: 32px auto 0; max-width: 440px; position: relative; }
.ov-blog-search-input {
  width: 100%; padding: 13px 20px 13px 44px; border-radius: 100px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); font-size: 14px; font-family: 'Geist',sans-serif;
  box-sizing: border-box; outline: none; transition: border-color .2s;
}
.ov-blog-search-input:focus { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.ov-blog-search-input::placeholder { color: rgba(255,255,255,.3); }
.ov-blog-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.3); font-size: 16px; pointer-events: none;
}

.ov-blog-cats {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 0;
  max-width: 880px; padding: 28px 24px 0;
}
.ov-blog-cat-btn {
  padding: 7px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.5);
  cursor: pointer; transition: all .2s; font-family: 'Geist',sans-serif;
}
.ov-blog-cat-btn:hover,
.ov-blog-cat-btn.ov-cat-active {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-color: color-mix(in srgb, var(--green) 25%, transparent);
  color: color-mix(in srgb, var(--green) 85%, transparent);
}

.ov-blog-featured { max-width: 1080px; margin: 0 auto; padding: 40px 24px 0; }
.ov-blog-featured-inner {
  border: 1px solid color-mix(in srgb, var(--green) 12%, transparent); border-radius: 20px;
  overflow: hidden; background: color-mix(in srgb, var(--green) 1.8%, transparent);
  display: grid; grid-template-columns: 1fr 1.2fr;
  transition: border-color .2s, box-shadow .2s; cursor: pointer;
}
.ov-blog-featured-inner:hover {
  border-color: color-mix(in srgb, var(--green) 25%, transparent);
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.ov-blog-feat-thumb {
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 6%, transparent) 0%, rgba(7,7,10,0) 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; min-height: 260px;
}
.ov-blog-feat-body { padding: 40px; }
.ov-blog-feat-label {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.ov-blog-feat-title {
  font-size: clamp(20px, 2.8vw, 30px); font-weight: 700;
  color: rgba(255,255,255,.92); line-height: 1.25; margin-bottom: 14px;
}
.ov-blog-feat-excerpt { font-size: 15px; line-height: 1.72; color: rgba(255,255,255,.44); margin-bottom: 26px; }
.ov-blog-read-more {
  font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .18s ease;
}
.ov-blog-read-more:hover { gap: 10px; }
.ov-blog-feat-meta { font-size: 12px; color: rgba(255,255,255,.28); margin-top: 16px; }

.ov-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1080px; margin: 40px auto 0; padding: 0 24px 80px;
}
.ov-blog-card {
  border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  background: rgba(255,255,255,.025); overflow: hidden;
  transition: border-color .2s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .2s;
  cursor: pointer; display: flex; flex-direction: column;
}
.ov-blog-card:hover {
  border-color: color-mix(in srgb, var(--green) 15%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0,0,0,.28);
}
.ov-blog-card-thumb {
  height: 148px;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, color-mix(in srgb, var(--green) 3%, transparent) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.ov-blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ov-blog-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 60%, transparent); margin-bottom: 10px;
}
.ov-blog-card-title { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.88); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.ov-blog-card-excerpt { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.ov-blog-card-meta { font-size: 11px; color: rgba(255,255,255,.28); display: flex; gap: 10px; }

/* ── Section alignment: 01 heading ───────────────────────────── */
#ov-platform .ov-section-h,
#ov-platform .ov-section-sub { text-align: center; }

/* Section 02 comparison heading center (reinforced) */
#ov-compare .ov-section-h { text-align: center; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ov-sp-audience-grid { grid-template-columns: 1fr; }
  .ov-about-problem-grid { grid-template-columns: 1fr; }
  .ov-about-team { grid-template-columns: repeat(2, 1fr); }
  .ov-about-values-grid { grid-template-columns: 1fr; }
  .ov-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .ov-blog-featured-inner { grid-template-columns: 1fr; }
  .ov-blog-feat-thumb { min-height: 160px; }
}
@media (max-width: 600px) {
  .ov-sub-nav-links { display: none; }
  .ov-sp-hero { padding: 80px 20px 60px; }
  .ov-sp-section { padding: 60px 20px; }
  .ov-blog-grid { grid-template-columns: 1fr; }
  .ov-about-team { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — new section styles
   ═══════════════════════════════════════════════════════ */

/* ── Colored fragment variants ── */
.ov-frag-google { background: rgba(251,188,5,.16) !important; border-color: rgba(251,188,5,.22) !important; }
.ov-frag-meta   { background: rgba(8,102,255,.16) !important; border-color: rgba(8,102,255,.22) !important; }
.ov-frag-tiktok { background: rgba(238,29,82,.16) !important; border-color: rgba(238,29,82,.22) !important; }

/* ── 02 THE PROBLEM ── */
#ov-problem { padding: 100px 24px; }
.ov-problem-inner { max-width: 1100px; margin: 0 auto; }
.ov-prob-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 60px;
}
.ov-prob-sources { display: flex; flex-direction: column; gap: 14px; }
.ov-prob-source {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .3s;
}
.ov-prob-source:hover { border-color: rgba(255,255,255,.13); }
.ov-prob-src-bar { height: 3px; }
.ov-prob-src-bar.ov-prob-src-google { background: #FBBC05; }
.ov-prob-src-bar.ov-prob-src-meta   { background: #0866FF; }
.ov-prob-src-bar.ov-prob-src-tiktok { background: #EE1D52; }
.ov-prob-src-body { padding: 14px 18px; }
.ov-prob-src-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}
.ov-prob-src-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.35); padding: 2px 0;
}
.ov-prob-src-row span:last-child { color: rgba(255,255,255,.6); font-weight: 500; }
.ov-prob-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ov-prob-arrow-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--green) 30%, transparent), transparent);
}
.ov-prob-arrow-label {
  font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 60%, transparent);
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  writing-mode: vertical-rl; text-orientation: mixed;
}
.ov-prob-unified {
  background: rgba(255,255,255,.03);
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius: 16px; overflow: hidden;
}

/* ── 03 DASHBOARD MOCKUP ── */
#ov-dashboard { padding: 100px 24px; background: rgba(255,255,255,.012); }
.ov-dash-inner { max-width: 1100px; margin: 0 auto; }
.ov-dash-mockup {
  margin-top: 52px;
  background: #0a0a0e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.ov-dash-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ov-dash-topbar-left { display: flex; align-items: center; gap: 14px; }
.ov-dash-win-dots { display: flex; gap: 6px; }
.ov-dash-win-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.1); }
.ov-dash-title-bar { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.45); letter-spacing: .04em; }
.ov-dash-topbar-right { display: flex; align-items: center; gap: 16px; }
.ov-dash-range { font-size: 12px; color: rgba(255,255,255,.3); }
.ov-dash-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--green) 75%, transparent); }
.ov-dash-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: ov-live-pulse 2s ease-in-out infinite;
}
@keyframes ov-live-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 40%, transparent); }
  50% { opacity: .7; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 0%, transparent); }
}
.ov-dash-kpi-row {
  display: grid; grid-template-columns: repeat(5,1fr);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-dash-kpi {
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,.05);
}
.ov-dash-kpi:last-child { border-right: none; }
.ov-dash-kpi-lbl { font-size: 11px; color: rgba(255,255,255,.28); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; }
.ov-dash-kpi-val { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.92); margin-bottom: 4px; letter-spacing: -.5px; }
.ov-dash-kpi-delta { font-size: 11px; font-weight: 500; }
.ov-delta-up   { color: color-mix(in srgb, var(--green) 80%, transparent); }
.ov-delta-down { color: rgba(255,90,90,.8); }
.ov-delta-neutral { color: rgba(255,255,255,.28); }
.ov-dash-body { display: grid; grid-template-columns: 1fr 260px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ov-dash-chart-area { padding: 20px; border-right: 1px solid rgba(255,255,255,.06); }
.ov-dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ov-dash-chart-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); }
.ov-dash-chart-legend { display: flex; gap: 16px; font-size: 11px; color: rgba(255,255,255,.38); }
.ov-dash-chart-legend span { display: flex; align-items: center; gap: 5px; }
.ov-dash-leg-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ov-dash-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.ov-dash-bar-grp { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.ov-dash-bar-stack {
  display: flex; flex-direction: column-reverse; justify-content: flex-start;
  width: 100%; height: 100px; border-radius: 4px 4px 0 0; overflow: hidden;
  gap: 1px;
}
.ov-dash-bar-seg { width: 100%; transition: filter .2s; }
.ov-seg-google { background: rgba(251,188,5,.65); }
.ov-seg-meta   { background: rgba(8,102,255,.6); }
.ov-seg-tiktok { background: rgba(238,29,82,.55); }
.ov-dash-bar-lbl { font-size: 10px; color: rgba(255,255,255,.2); }
.ov-dash-plat-breakdown { padding: 20px; }
.ov-dash-pb-head { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; }
.ov-dash-pb-row { margin-bottom: 16px; }
.ov-dash-pb-name { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.ov-dash-pb-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.ov-dash-pb-bar-wrap { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; margin-bottom: 5px; }
.ov-dash-pb-bar { height: 100%; border-radius: 2px; }
.ov-dash-pb-vals { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.32); }
.ov-dash-table { }
.ov-dash-table-hdr {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  padding: 10px 20px;
  background: rgba(255,255,255,.025);
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.28);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-dash-table-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  padding: 12px 20px;
  font-size: 13px; color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.04);
  align-items: center; transition: background .15s;
}
.ov-dash-table-row:last-child { border-bottom: none; }
.ov-dash-table-row:hover { background: rgba(255,255,255,.02); }
.ov-dash-camp-name { font-weight: 500; color: rgba(255,255,255,.82); }
.ov-dash-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: .04em;
}
.ov-tag-google { background: rgba(251,188,5,.15); color: #fbbc05; }
.ov-tag-meta   { background: rgba(8,102,255,.15); color: #6aa3ff; }
.ov-tag-tiktok { background: rgba(238,29,82,.15); color: #f0617b; }
.ov-dash-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.ov-status-on   { background: color-mix(in srgb, var(--green) 10%, transparent); color: color-mix(in srgb, var(--green) 85%, transparent); }
.ov-status-warn { background: rgba(255,180,0,.1); color: rgba(255,180,0,.85); }
.ov-red { color: rgba(255,100,100,.9) !important; }

/* ── 04 AI RECOMMENDATIONS ── */
#ov-ai-recs { padding: 100px 24px; }
.ov-ai-inner { max-width: 1100px; margin: 0 auto; }
.ov-ai-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.ov-ai-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 24px;
  transition: border-color .3s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.ov-ai-card:hover { border-color: color-mix(in srgb, var(--green) 15%, transparent); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ov-ai-card-highlight {
  border-color: color-mix(in srgb, var(--green) 22%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--green) 5%, transparent) 0%, transparent 55%);
}
.ov-ai-card-highlight:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.ov-ai-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.ov-ai-alert { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; }
.ov-ai-alert-warn { background: rgba(255,80,80,.1); color: rgba(255,110,110,.95); }
.ov-ai-alert-up   { background: color-mix(in srgb, var(--green) 10%, transparent); color: color-mix(in srgb, var(--green) 95%, transparent); }
.ov-ai-alert-info { background: rgba(100,160,255,.1); color: rgba(130,185,255,.95); }
.ov-ai-alert-icon { font-size: 9px; }
.ov-ai-platform-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; letter-spacing: .04em; flex-shrink: 0; }
.ov-ai-metrics { margin-bottom: 18px; }
.ov-ai-metric { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.ov-ai-metric:last-child { border-bottom: none; }
.ov-ai-metric span:first-child { color: rgba(255,255,255,.35); }
.ov-ai-metric span:last-child { color: rgba(255,255,255,.75); font-weight: 500; }
.ov-ai-rec { background: rgba(255,255,255,.04); border-radius: 10px; padding: 16px; }
.ov-ai-rec-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 75%, transparent); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 9px; }
.ov-ai-rec-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.ov-ai-rec-text { font-size: 13px; line-height: 1.62; color: rgba(255,255,255,.58); margin-bottom: 14px; }
.ov-ai-rec-action {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--green) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); border-radius: 6px;
  padding: 5px 12px; cursor: default;
  transition: background .2s, border-color .2s;
}
.ov-ai-rec-action::after { content: "→"; font-size: 13px; }
.ov-ai-card:hover .ov-ai-rec-action { background: color-mix(in srgb, var(--green) 6%, transparent); border-color: color-mix(in srgb, var(--green) 35%, transparent); }

/* ── 05 INTEGRATIONS ── */
#ov-integrations { padding: 100px 24px; background: rgba(255,255,255,.012); }
.ov-int-inner { max-width: 1100px; margin: 0 auto; }
.ov-int-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 52px; }
.ov-int-card-new {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 24px;
  transition: border-color .3s, transform .3s cubic-bezier(.22,1,.36,1);
}
.ov-int-live:hover { border-color: color-mix(in srgb, var(--green) 20%, transparent); transform: translateY(-3px); }
.ov-int-soon { opacity: .5; pointer-events: none; }
.ov-int-card-dot { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 16px; }
.ov-int-card-logo { width: 44px; height: 36px; margin-bottom: 16px; display: flex; align-items: center; }
.ov-int-card-new-name { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 5px; }
.ov-int-card-new-status { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.ov-int-status-live { color: color-mix(in srgb, var(--green) 80%, transparent); }
.ov-int-status-soon { color: rgba(255,255,255,.28); }
.ov-int-card-new-desc { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.36); }
.ov-int-note { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.25); text-align: center; }

/* ── 06 CAMPAIGN EXAMPLES ── */
#ov-campaigns { padding: 100px 24px; }
.ov-camp-inner { max-width: 1100px; margin: 0 auto; }
.ov-camp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.ov-camp-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden;
  transition: border-color .3s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.ov-camp-card:hover { border-color: rgba(255,255,255,.13); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ov-camp-card-head { padding: 20px 20px 14px; }
.ov-camp-plat-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; letter-spacing: .04em; margin-bottom: 8px;
}
.ov-camp-name { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.85); }
.ov-camp-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.ov-camp-metric { padding: 14px 14px; text-align: center; }
.ov-camp-metric:not(:last-child) { border-right: 1px solid rgba(255,255,255,.06); }
.ov-camp-metric-val { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 3px; }
.ov-camp-metric-lbl { font-size: 10px; color: rgba(255,255,255,.28); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.ov-camp-trend { padding: 14px 20px 8px; }
.ov-camp-trend-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.ov-camp-trend-bars > div { flex: 1; background: color-mix(in srgb, var(--green) 16%, transparent); border-radius: 2px 2px 0 0; transition: background .2s; }
.ov-camp-card:hover .ov-camp-trend-bars > div { background: color-mix(in srgb, var(--green) 28%, transparent); }
.ov-camp-insight { padding: 10px 20px 20px; }
.ov-camp-insight-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 65%, transparent); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 7px; }
.ov-camp-insight-text { font-size: 13px; line-height: 1.62; color: rgba(255,255,255,.5); }

/* ── 07 COMPARISON TABLE ── */
#ov-compare { padding: 100px 24px; background: rgba(255,255,255,.012); }
.ov-compare-inner { max-width: 1100px; margin: 0 auto; }
.ov-feat-table {
  max-width: 700px; margin: 52px auto 0;
  border: 1px solid rgba(255,255,255,.09); border-radius: 16px; overflow: hidden;
}
.ov-feat-table-head {
  display: grid; grid-template-columns: 1fr 150px 150px;
  padding: 14px 24px;
  background: rgba(255,255,255,.05);
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.32);
  text-transform: uppercase; letter-spacing: .09em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ov-feat-oriven-badge { font-size: 11px; font-weight: 800; color: color-mix(in srgb, var(--green) 95%, transparent); letter-spacing: .1em; }
.ov-feat-table-row {
  display: grid; grid-template-columns: 1fr 150px 150px;
  padding: 13px 24px;
  font-size: 14px; color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.05);
  align-items: center;
}
.ov-feat-table-row:last-child { border-bottom: none; }
.ov-feat-row-hi { background: color-mix(in srgb, var(--green) 2.5%, transparent); }
.ov-feat-table-row > div:first-child { font-weight: 500; color: rgba(255,255,255,.7); }
.ov-ft-cell { text-align: center; }
.ov-ft-chk { color: color-mix(in srgb, var(--green) 95%, transparent); font-size: 16px; font-weight: 700; }
.ov-ft-chk-gray { color: rgba(255,255,255,.3) !important; }
.ov-ft-x { color: rgba(255,80,80,.55); font-size: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .ov-prob-diagram { grid-template-columns: 1fr; gap: 20px; }
  .ov-prob-arrow { flex-direction: row; }
  .ov-prob-arrow-line { width: 40px; height: 1px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--green) 30%, transparent), transparent); }
  .ov-prob-arrow-label { writing-mode: horizontal-tb; }
  .ov-dash-kpi-row { grid-template-columns: repeat(3,1fr); }
  .ov-dash-kpi:nth-child(4), .ov-dash-kpi:nth-child(5) { border-top: 1px solid rgba(255,255,255,.05); }
  .ov-dash-body { grid-template-columns: 1fr; }
  .ov-dash-plat-breakdown { border-top: 1px solid rgba(255,255,255,.06); }
  .ov-dash-table-hdr,
  .ov-dash-table-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .ov-dash-table-hdr span:nth-child(5),
  .ov-dash-table-hdr span:nth-child(6),
  .ov-dash-table-row span:nth-child(5),
  .ov-dash-table-row span:nth-child(6) { display: none; }
  .ov-ai-grid { grid-template-columns: 1fr; }
  .ov-int-cards-grid { grid-template-columns: repeat(2,1fr); }
  .ov-camp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ov-dash-kpi-row { grid-template-columns: repeat(2,1fr); }
  .ov-dash-kpi:nth-child(5) { display: none; }
  .ov-int-cards-grid { grid-template-columns: 1fr; }
  .ov-feat-table-head,
  .ov-feat-table-row { grid-template-columns: 1fr 90px 90px; padding: 12px 16px; font-size: 13px; }
}


/* ═══════════════════════════════════════════════════════
   HOMEPAGE REFINEMENTS
   ═══════════════════════════════════════════════════════ */

/* ── GLOBAL: Center all section labels, titles, subtitles ── */
.ov-section-label,
.ov-section-h,
.ov-section-sub {
  text-align: center !important;
}

/* ── SECTION 02: Card padding fix ── */
.ov-prob-unified {
  padding: 0;
}
.ov-prob-unified .ov-pb-header {
  padding: 22px 24px 16px;
}
.ov-prob-unified .ov-pb-row {
  padding: 8px 24px;
}
.ov-prob-unified .ov-pb-row:last-of-type {
  padding-bottom: 4px;
}
.ov-prob-unified .ov-pb-divider {
  margin: 10px 24px;
}
.ov-prob-unified .ov-pb-ai-row {
  padding: 12px 24px 18px;
}
.ov-prob-unified .ov-pb-k { font-size: 13px; color: rgba(255,255,255,.4); }
.ov-prob-unified .ov-pb-v { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }

/* ── SECTION DIFFERENTIATION ── */

/* 02 — Problem: weighted, fragmented, red undertone */
#ov-problem {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,60,60,.04) 0%, transparent 60%),
    rgba(0,0,0,0);
  border-top: 1px solid rgba(255,255,255,.04);
}
#ov-problem .ov-section-label { color: rgba(255,100,100,.35); }

/* 03 — Dashboard: precise, technical, slightly blue */
#ov-dashboard {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80,120,255,.04) 0%, transparent 55%),
    rgba(255,255,255,.012);
  border-top: 1px solid rgba(80,120,255,.08);
}
#ov-dashboard .ov-section-label { color: rgba(100,160,255,.35); }

/* 04 — AI Intelligence: intelligent, green glow */
#ov-ai-recs {
  background:
    radial-gradient(ellipse at 50% -5%, color-mix(in srgb, var(--green) 5%, transparent) 0%, transparent 55%),
    rgba(0,0,0,0);
  border-top: 1px solid color-mix(in srgb, var(--green) 6%, transparent);
}
#ov-ai-recs .ov-section-label { color: color-mix(in srgb, var(--green) 40%, transparent); }

/* 05 — Integrations: neutral connector */
#ov-integrations {
  background: rgba(255,255,255,.012);
  border-top: 1px solid rgba(255,255,255,.04);
}

/* 06 — Creative Output: warm, vibrant, creative energy */
#ov-creative {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(251,188,5,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(238,29,82,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(8,102,255,.03) 0%, transparent 50%);
  border-top: 1px solid rgba(251,188,5,.07);
  padding: 100px 24px;
}
#ov-creative .ov-section-label { color: rgba(251,188,5,.4); }

/* 07 — Comparison */
#ov-compare {
  background: rgba(255,255,255,.012);
  border-top: 1px solid rgba(255,255,255,.04);
}

/* ── CREATIVE SECTION ── */
.ov-creative-inner { max-width: 1100px; margin: 0 auto; }

.ov-creative-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin: 40px 0 36px;
}
.ov-ctab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.09);
  background: transparent; color: rgba(255,255,255,.45);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  font-family: inherit;
}
.ov-ctab:hover { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); }
.ov-ctab-active {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
.ov-ctab-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.ov-creative-stage { }
.ov-cpanel { display: none; }
.ov-cpanel-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* -- Google Ad Mockup -- */
.ov-gad-mock {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; overflow: hidden;
}
.ov-gad-topbar {
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ov-gad-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 8px 16px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.ov-gad-search-x { margin-left: auto; color: rgba(255,255,255,.25); }
.ov-gad-results { padding: 16px; }
.ov-gad-result { margin-bottom: 20px; }
.ov-gad-result-featured {
  padding: 14px;
  background: color-mix(in srgb, var(--green) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 8%, transparent);
  border-radius: 10px;
  margin-bottom: 14px;
}
.ov-gad-url {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: color-mix(in srgb, var(--green) 55%, transparent); margin-bottom: 4px;
}
.ov-gad-ad-chip {
  font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  background: rgba(251,188,5,.15); color: #fbbc05;
  border: 1px solid rgba(251,188,5,.25); letter-spacing: .04em;
}
.ov-gad-domain { color: color-mix(in srgb, var(--green) 50%, transparent); }
.ov-gad-path { color: rgba(255,255,255,.2); }
.ov-gad-headline {
  font-size: 16px; font-weight: 500;
  color: rgba(110,160,255,.9); margin-bottom: 6px; line-height: 1.35;
}
.ov-gad-desc {
  font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.55; margin-bottom: 10px;
}
.ov-gad-ext-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ov-gad-ext {
  font-size: 11px; color: color-mix(in srgb, var(--green) 50%, transparent);
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  background: color-mix(in srgb, var(--green) 4%, transparent);
}
.ov-gad-dim { opacity: .35; }
.ov-gad-ai-tag {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--green) 8%, transparent);
  font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--green) 60%, transparent);
  letter-spacing: .06em; text-transform: uppercase;
}

/* -- Meta Ad Mockup -- */
.ov-mad-mock {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; overflow: hidden; max-width: 340px;
}
.ov-mad-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ov-mad-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(8,102,255,.7) 0%, color-mix(in srgb, var(--green) 40%, transparent) 100%);
}
.ov-mad-brand { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.ov-mad-sponsored { font-size: 11px; color: rgba(255,255,255,.3); }
.ov-mad-more { margin-left: auto; color: rgba(255,255,255,.28); font-size: 16px; letter-spacing: 1px; }
.ov-mad-body-copy { padding: 2px 14px 12px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; }
.ov-mad-creative {
  height: 170px;
  background: linear-gradient(135deg, #0a0a1e 0%, #101828 60%, #081a14 100%);
}
.ov-mad-creative-inner {
  height: 100%; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(135deg, rgba(8,102,255,.18) 0%, color-mix(in srgb, var(--green) 12%, transparent) 100%);
}
.ov-mad-creative-text { text-align: center; }
.ov-mad-big-line { font-size: 28px; font-weight: 800; color: rgba(255,255,255,.92); letter-spacing: -1px; }
.ov-mad-big-sub { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--green) 80%, transparent); margin-top: 2px; }
.ov-mad-ai-chip {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8,102,255,.7); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.ov-mad-cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07);
}
.ov-mad-cta-url { font-size: 11px; color: rgba(255,255,255,.28); }
.ov-mad-cta-line { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.ov-mad-btn {
  background: rgba(8,102,255,.8); color: white;
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 6px; flex-shrink: 0;
}
.ov-mad-engage {
  padding: 8px 14px; font-size: 11px; color: rgba(255,255,255,.25);
  border-top: 1px solid rgba(255,255,255,.05);
}

/* -- TikTok Ad Mockup -- */
.ov-tad-mock {
  background: #000;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; overflow: hidden; max-width: 280px;
}
.ov-tad-video {
  height: 200px; position: relative;
  background: linear-gradient(160deg, #1a0814 0%, #0a0a1e 45%, #001810 100%);
}
.ov-tad-video-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}
.ov-tad-hook-text {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
}
.ov-tad-hook { font-size: 18px; font-weight: 800; color: white; margin-bottom: 4px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ov-tad-hook-sub { font-size: 12px; color: rgba(255,255,255,.8); }
.ov-tad-ui-row { display: flex; justify-content: space-between; padding: 12px 14px; gap: 8px; }
.ov-tad-left-col { flex: 1; min-width: 0; }
.ov-tad-handle { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 5px; }
.ov-tad-follow { font-size: 11px; font-weight: 600; color: rgba(238,29,82,.8); margin-left: 6px; }
.ov-tad-caption { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.4; margin-bottom: 6px; }
.ov-tad-sound { font-size: 10px; color: rgba(255,255,255,.3); margin-bottom: 10px; }
.ov-tad-cta {
  display: inline-block; background: rgba(238,29,82,.85); color: white;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 4px;
}
.ov-tad-right-col { display: flex; flex-direction: column; gap: 16px; align-items: center; padding-top: 4px; flex-shrink: 0; }
.ov-tad-act { text-align: center; }
.ov-tad-act-icon { font-size: 20px; }
.ov-tad-act-n { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* -- Creative details panel -- */
.ov-cpanel-details {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 28px;
}
.ov-cpanel-ai-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 70%, transparent);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px;
}
.ov-cpanel-headline {
  font-size: 22px; font-weight: 700; color: rgba(255,255,255,.9);
  margin-bottom: 12px; line-height: 1.3;
}
.ov-cpanel-copy {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 24px;
}
.ov-cpanel-metrics {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px;
}
.ov-cpanel-metric {
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 14px; text-align: center;
}
.ov-cpanel-metric-val {
  font-size: 20px; font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 4px;
}
.ov-cpanel-metric-lbl {
  font-size: 10px; color: rgba(255,255,255,.28); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
}
.ov-cpanel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-cpanel-tag {
  font-size: 12px; color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.06); border-radius: 20px;
  padding: 4px 12px; border: 1px solid rgba(255,255,255,.07);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ov-cpanel-active { grid-template-columns: 1fr; }
  .ov-mad-mock, .ov-tad-mock { max-width: 100%; }
  .ov-creative-tabs { flex-wrap: wrap; }
}

/* ── FINAL CTA: network background + compact ── */
.ov-final-network {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .7;
}
.ov-final-rings { display: none; }

/* ── SECTION NUMBER CONSISTENCY: all labels use same green accent ── */
.ov-section-label { color: color-mix(in srgb, var(--green) 35%, transparent) !important; }

/* ── CREATIVE SECTION: 6-card grid ── */
.ov-cpanel-active { display: block !important; }
.ov-creative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ov-cex-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, transform .2s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
}
.ov-cex-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); }
.ov-cex-visual {
  height: 82px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 7%, transparent) 0%, color-mix(in srgb, var(--green) 2%, transparent) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ov-cex-vis-g { background: linear-gradient(135deg, rgba(251,188,5,.1) 0%, rgba(66,133,244,.1) 100%); }
.ov-cex-vis-m { background: linear-gradient(135deg, rgba(8,102,255,.14) 0%, rgba(8,102,255,.04) 100%); }
.ov-cex-body { padding: 10px 12px 10px; flex: 1; display: flex; flex-direction: column; }
.ov-cex-type {
  font-size: 9px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 5px;
}
.ov-cex-headline {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82);
  line-height: 1.35; margin-bottom: 5px;
}
.ov-cex-desc {
  font-size: 11px; color: rgba(255,255,255,.32); line-height: 1.45;
  flex: 1; margin-bottom: 8px;
}
.ov-cex-perf {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,.05);
}
.ov-cex-perf-pip { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--green) 70%, transparent); flex-shrink: 0; }
.ov-cex-perf-val { color: color-mix(in srgb, var(--green) 85%, transparent); }
.ov-cex-perf-lbl { color: rgba(255,255,255,.22); font-weight: 400; }

/* Google mini-visuals */
.ov-cex-gad-mini { padding: 8px 12px; width: 100%; }
.ov-cex-ad-badge {
  font-size: 9px; font-weight: 700; color: #fbbc05;
  background: rgba(251,188,5,.12); border: 1px solid rgba(251,188,5,.25);
  border-radius: 3px; padding: 1px 5px; margin-right: 6px;
}
.ov-cex-mini-domain { font-size: 10px; color: color-mix(in srgb, var(--green) 50%, transparent); }
.ov-cex-mini-head { font-size: 12px; font-weight: 600; color: rgba(110,160,255,.9); margin-top: 3px; }
.ov-cex-mini-desc-line { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 5px; width: 80%; }
.ov-cex-shop-mini { display: flex; gap: 6px; padding: 8px 10px; width: 100%; }
.ov-cex-shop-prod {
  flex: 1; height: 58px; border-radius: 6px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.ov-cex-shop-price { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.75); }
.ov-cex-pmax-mini { display: flex; gap: 12px; padding: 6px; }
.ov-cex-pmax-fmt { font-size: 10px; color: rgba(255,255,255,.45); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ov-cex-pmax-icon { font-size: 16px; }
.ov-cex-brand-mini { text-align: center; padding: 8px; }
.ov-cex-brand-domain { font-size: 15px; font-weight: 700; color: rgba(66,133,244,.8); margin-bottom: 4px; }
.ov-cex-brand-tagline { font-size: 10px; color: rgba(255,255,255,.35); }
.ov-cex-form-mini { padding: 6px 10px; width: 100%; }
.ov-cex-form-label { font-size: 9px; color: rgba(255,255,255,.3); margin-bottom: 2px; margin-top: 4px; }
.ov-cex-form-field { height: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 3px; margin-bottom: 3px; }
.ov-cex-form-btn { font-size: 9px; font-weight: 700; text-align: center; background: rgba(52,168,83,.5); color: white; border-radius: 3px; padding: 3px 8px; margin-top: 4px; width: fit-content; }
.ov-cex-retarg-mini { text-align: center; padding: 8px; }
.ov-cex-retarg-line { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 3px; }
.ov-cex-retarg-sub { font-size: 10px; color: rgba(255,255,255,.4); margin-bottom: 5px; }
.ov-cex-retarg-cta { font-size: 10px; font-weight: 700; color: color-mix(in srgb, var(--green) 70%, transparent); }

/* Meta mini-visuals */
.ov-cex-meta-feed-mini { width: 100%; padding: 6px 10px; }
.ov-cex-meta-header { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ov-cex-meta-avi { width: 20px; height: 20px; border-radius: 50%; background: rgba(8,102,255,.6); flex-shrink: 0; }
.ov-cex-meta-brand { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8); }
.ov-cex-meta-spon { font-size: 9px; color: rgba(255,255,255,.3); }
.ov-cex-meta-img-strip { height: 28px; background: linear-gradient(90deg, rgba(8,102,255,.2) 0%, rgba(8,102,255,.08) 100%); border-radius: 4px; }
.ov-cex-carousel-mini { display: flex; gap: 4px; padding: 10px; width: 100%; align-items: center; }
.ov-cex-car-slide { flex: 1; height: 52px; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.ov-cex-car-n { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.5); }
.ov-cex-car-arrow { font-size: 18px; color: rgba(8,102,255,.6); flex-shrink: 0; }
.ov-cex-story-mini { text-align: center; padding: 8px; }
.ov-cex-story-bar { height: 2px; background: rgba(8,102,255,.5); border-radius: 1px; margin-bottom: 10px; }
.ov-cex-story-copy { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.ov-cex-story-sub { font-size: 10px; font-weight: 600; color: rgba(8,102,255,.8); }
.ov-cex-leadform-mini { padding: 6px 10px; width: 100%; }
.ov-cex-lf-title { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.ov-cex-lf-field { height: 10px; background: rgba(8,102,255,.12); border: 1px solid rgba(8,102,255,.2); border-radius: 3px; margin-bottom: 4px; }
.ov-cex-lf-btn { font-size: 9px; font-weight: 700; background: rgba(8,102,255,.7); color: white; border-radius: 3px; padding: 3px 10px; text-align: center; margin-top: 4px; width: fit-content; }
.ov-cex-conv-mini { text-align: center; padding: 10px; width: 100%; }
.ov-cex-conv-copy { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.ov-cex-conv-cta { font-size: 12px; font-weight: 700; background: rgba(8,102,255,.8); color: white; border-radius: 5px; padding: 5px 14px; display: inline-block; }

/* TikTok mini-visuals */
.ov-cex-tt-mini { padding: 8px 10px; width: calc(100% - 28px); }
.ov-cex-tt-hook { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.88); line-height: 1.25; margin-bottom: 4px; }
.ov-cex-tt-sub { font-size: 10px; color: rgba(255,255,255,.5); }
.ov-cex-tt-stat { font-size: 20px; font-weight: 900; margin-bottom: 5px; }
.ov-cex-tt-handle { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.ov-cex-tt-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  background: rgba(238,29,82,.15); color: rgba(238,29,82,.9);
  border-radius: 3px; padding: 2px 7px; display: inline-block; margin-bottom: 5px;
}
.ov-cex-tt-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 15%, transparent); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  color: color-mix(in srgb, var(--green) 80%, transparent); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
}
.ov-cex-tt-side {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; font-size: 14px;
  color: rgba(255,255,255,.5);
}

@media (max-width: 900px) {
  .ov-creative-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ov-creative-grid { grid-template-columns: 1fr; }
}

/* ── GOOGLE ADS: product shopping strip ── */
.ov-gad-product-strip {
  display: flex; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ov-gad-product-card {
  flex: 1; background: rgba(255,255,255,.04); border-radius: 8px;
  border: 1px solid rgba(255,255,255,.07); overflow: hidden;
}
.ov-gad-product-img {
  height: 60px;
  background: linear-gradient(135deg, rgba(251,188,5,.12) 0%, color-mix(in srgb, var(--green) 8%, transparent) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ov-gad-product-img-alt {
  background: linear-gradient(135deg, rgba(8,102,255,.12) 0%, color-mix(in srgb, var(--green) 6%, transparent) 100%);
}
.ov-gad-product-img-b {
  background: linear-gradient(135deg, rgba(238,29,82,.1) 0%, color-mix(in srgb, var(--green) 6%, transparent) 100%);
}
.ov-gad-shoe-shape {
  width: 36px; height: 20px; border-radius: 2px 10px 4px 4px;
  background: rgba(251,188,5,.5);
  transform: rotate(-15deg);
  box-shadow: 0 3px 8px rgba(251,188,5,.2);
}
.ov-gad-shoe-alt { background: rgba(110,160,255,.6); box-shadow: 0 3px 8px rgba(110,160,255,.2); }
.ov-gad-shoe-b { background: rgba(238,29,82,.5); box-shadow: 0 3px 8px rgba(238,29,82,.2); }
.ov-gad-product-info { padding: 6px 7px; }
.ov-gad-product-name { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.ov-gad-product-price { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 80%, transparent); margin-bottom: 2px; }
.ov-gad-product-rating { font-size: 9px; color: rgba(251,188,5,.6); }
.ov-gad-product-rating span { color: rgba(255,255,255,.3); }

/* ── META ADS: taller creative with visual product scene ── */
.ov-mad-creative-tall { height: 220px; }
.ov-mad-visual-product {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  text-align: center;
}
.ov-mad-product-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,102,255,.3) 0%, transparent 70%);
  pointer-events: none;
}
.ov-mad-product-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px 18px;
  position: relative; z-index: 1;
  backdrop-filter: blur(6px);
}
.ov-mad-product-label {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  color: color-mix(in srgb, var(--green) 80%, transparent); margin-bottom: 6px;
}
.ov-mad-product-icon { font-size: 28px; margin-bottom: 4px; }
.ov-mad-product-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.ov-mad-product-sub { font-size: 10px; color: rgba(8,102,255,.8); font-weight: 600; margin-top: 2px; }
.ov-mad-headline-overlay {
  position: absolute; bottom: 16px; left: 14px; right: 14px;
}
.ov-mad-creative-inner { position: relative; }

/* ── TIKTOK ADS: redesigned vertical video layout ── */
.ov-tad-video { height: 260px; }
.ov-tad-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.15); z-index: 10;
}
.ov-tad-progress-fill {
  height: 100%; width: 38%;
  background: linear-gradient(90deg, #EE1D52 0%, rgba(238,29,82,.5) 100%);
}
.ov-tad-scene {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ov-tad-scene-orb {
  position: absolute; border-radius: 50%;
}
.ov-tad-orb-1 {
  width: 120px; height: 120px; top: -20px; right: -20px;
  background: radial-gradient(circle, rgba(238,29,82,.25) 0%, transparent 70%);
}
.ov-tad-orb-2 {
  width: 80px; height: 80px; bottom: 20px; left: -10px;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 15%, transparent) 0%, transparent 70%);
}
.ov-tad-scene-stat { text-align: center; z-index: 1; }
.ov-tad-stat-big {
  font-size: 48px; font-weight: 900; color: rgba(255,255,255,.88);
  letter-spacing: -2px; line-height: 1;
  text-shadow: 0 0 40px rgba(238,29,82,.4);
}
.ov-tad-stat-sub {
  font-size: 14px; font-weight: 700; letter-spacing: .12em;
  color: rgba(238,29,82,.8); margin-top: 2px;
}
.ov-tad-side-acts {
  position: absolute; right: 10px; bottom: 80px;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  z-index: 10;
}
.ov-tad-bottom-bar {
  padding: 10px 12px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  background: #000;
}
.ov-tad-cta-btn {
  background: rgba(238,29,82,.9); color: white;
  font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}

/* ── COMPARISON TABLE 5-COLUMN ── */
.ov-feat-table-5 {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden;
  max-width: 900px; margin: 40px auto 0;
}
.ov-feat-table-5 .ov-feat-table-head {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr 1.1fr;
  background: rgba(255,255,255,.04);
  padding: 14px 20px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .07em;
  gap: 0;
}
.ov-feat-table-5 .ov-feat-table-row {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr 1.1fr;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 14px; color: rgba(255,255,255,.65);
  align-items: center; gap: 0;
  transition: background .15s;
}
.ov-feat-table-5 .ov-feat-table-row:hover { background: rgba(255,255,255,.02); }
.ov-feat-table-5 .ov-feat-row-hi { background: color-mix(in srgb, var(--green) 2.5%, transparent); }
.ov-feat-table-5 .ov-feat-row-hi:hover { background: color-mix(in srgb, var(--green) 4%, transparent); }
.ov-feat-table-5 .ov-ft-cell { text-align: center; }
.ov-feat-table-5 .ov-ft-chk { color: color-mix(in srgb, var(--green) 90%, transparent); font-size: 16px; font-weight: 700; }
.ov-feat-table-5 .ov-ft-x { color: rgba(255,80,80,.55); font-size: 16px; }
.ov-feat-table-5 .ov-ft-lim {
  font-size: 11px; font-weight: 600;
  color: rgba(251,188,5,.55);
  background: rgba(251,188,5,.08);
  border: 1px solid rgba(251,188,5,.18);
  border-radius: 4px; padding: 2px 7px;
  display: inline-block;
}
.ov-feat-table-5 .ov-feat-table-head .ov-feat-oriven-badge {
  background: color-mix(in srgb, var(--green) 15%, transparent);
  color: color-mix(in srgb, var(--green) 90%, transparent);
  font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 6px;
  letter-spacing: .06em;
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}
.ov-feat-table-5 .ov-feat-table-head .ov-ft-comp-lbl {
  color: rgba(255,255,255,.3);
  font-size: 11px;
}
@media (max-width: 700px) {
  .ov-feat-table-5 .ov-feat-table-head,
  .ov-feat-table-5 .ov-feat-table-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    font-size: 12px; padding: 12px 10px;
  }
}



/* ═══════════════════════════════════════════════════════
   GLOBAL BACKGROUND CONSISTENCY
   Single unified background: #07070A across every section
   ═══════════════════════════════════════════════════════ */

/* Stage and hero use the same base color */
#lp-stage  { background: #07070A !important; }
#ov-hero   { background: #07070A !important; }
.ov-footer { background: #07070A !important; }

/* All homepage sections: transparent so stage bg shows through */
#ov-problem, #ov-dashboard, #ov-ai-recs, #ov-integrations,
#ov-creative, #ov-compare, #ov-reviews, #pricing, #faq, #ov-final {
  background: transparent !important;
  border-top: none !important;
}

/* Remove ALL pseudo-element gradient overlays on all sections */
#ov-hero::before, #ov-hero::after,
#ov-problem::before, #ov-problem::after,
#ov-dashboard::before, #ov-dashboard::after,
#ov-ai-recs::before, #ov-ai-recs::after,
#ov-integrations::before, #ov-integrations::after,
#ov-creative::before, #ov-creative::after,
#ov-compare::before, #ov-compare::after,
#ov-reviews::before, #ov-reviews::after,
#pricing::before, #pricing::after,
#faq::before, #faq::after,
#ov-final::before, #ov-final::after {
  display: none !important;
}

/* Hide canvas particle system */
#ov-canvas { display: none !important; }

/* Hide scroll cue animated line */
.ov-scroll-cue { display: none !important; }

/* Hide Section 11 decorative network */
.ov-final-network { display: none !important; }

/* Neutralise any green-tinted inner wrappers on homepage sections */
#ov-ai-recs .ov-section-label { color: color-mix(in srgb, var(--green) 35%, transparent) !important; }
#ov-ai-recs > * { background: transparent !important; }
#ov-creative > * { background: transparent !important; }

/* ═══════════════════════════════════════════════════════
   NAVIGATION DROPDOWNS
   ═══════════════════════════════════════════════════════ */

/* -- Dropdown container items -- */
.lp-nav-item { position: relative; display: flex; align-items: center; }

.lp-dd-trig {
  all: unset;
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
  cursor: pointer; padding: 6px 2px;
  transition: color .15s;
  white-space: nowrap;
}
.lp-dd-trig:hover { color: rgba(255,255,255,.92); }
.lp-dd-chev {
  width: 10px; height: 6px; flex-shrink: 0;
  transition: transform .2s ease;
  color: rgba(255,255,255,.4);
}
.lp-dd-open .lp-dd-chev { transform: rotate(180deg); color: rgba(255,255,255,.7); }

/* -- Dropdown panel -- */
.lp-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(9, 9, 15, 0.98);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  white-space: nowrap;
}
.lp-dd-open > .lp-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* -- Mega menu (Product) -- */
.lp-dd-mega {
  display: flex; flex-direction: row;
  min-width: 680px;
  padding: 32px 8px 28px;
  gap: 0;
  left: auto; right: auto;
  transform: translateX(-40%) translateY(-6px);
}
.lp-dd-open > .lp-dd-mega { transform: translateX(-40%) translateY(0); }

.lp-dd-col { flex: 1; padding: 18px 36px 0; }
.lp-dd-col + .lp-dd-col { border-left: 1px solid rgba(255,255,255,.07); }

/* -- Simple single-column dropdown (Solutions / Resources) -- */
.lp-dd-simple { min-width: 300px; padding: 10px; left: 50%; right: auto; transform: translateX(-50%) translateY(-6px); }
.lp-dd-open > .lp-dd-simple { transform: translateX(-50%) translateY(0); }
.lp-dd-simple .lp-dd-col { padding: 6px; }
.lp-dd-simple .lp-dd-item { padding: 10px 12px; border-radius: 10px; }
.lp-dd-simple .lp-dd-item:hover { background: rgba(255,255,255,.05); }
.lp-dd-colhead {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* -- Dropdown items -- */
.lp-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: rgba(255,255,255,.72);
  font-size: 13.5px; font-weight: 500;
  transition: background .14s, color .14s;
  cursor: pointer; margin-bottom: 2px;
}
.lp-dd-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.95); }
.lp-dd-item-inner { display: flex; align-items: center; gap: 8px; }
.lp-dd-item-name { line-height: 1; }
.lp-dd-item-desc {
  display: block; font-size: 11px; color: rgba(255,255,255,.3);
  font-weight: 400; margin-top: 2px; line-height: 1.3;
}

.lp-dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.lp-dd-icon svg { width: 15px; height: 15px; }

/* Live badge */
.lp-dd-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .07em;
  padding: 2px 6px; border-radius: 4px;
  background: color-mix(in srgb, var(--green) 12%, transparent); color: color-mix(in srgb, var(--green) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent); text-transform: uppercase;
  flex-shrink: 0;
}
.lp-dd-badge-soon {
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.08);
}

/* Soon column items */
.lp-dd-item-soon { color: rgba(255,255,255,.35); cursor: default; }
.lp-dd-item-soon:hover { background: transparent; color: rgba(255,255,255,.35); }
.lp-dd-icon-soon { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.05); }

/* -- Small dropdown (Solutions) -- */
.lp-dd-sm {
  min-width: 220px;
  padding: 10px 8px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
}
.lp-dd-open > .lp-dd-sm { transform: translateX(-50%) translateY(0); }
.lp-dd-sm .lp-dd-item { font-size: 13px; padding: 8px 10px; }

/* -- Mobile menu dropdown items -- */
.lp-mm-item { width: 100%; }
.lp-mm-dd-trig {
  all: unset;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; box-sizing: border-box;
  padding: 14px 0;
  font-size: 18px; font-weight: 600; color: rgba(255,255,255,.82);
  cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-mm-chev {
  font-size: 16px; color: rgba(255,255,255,.35);
  transition: transform .2s ease;
}
.lp-mm-item.lp-mm-open .lp-mm-chev { transform: rotate(90deg); }
.lp-mm-dd-items {
  display: none;
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-mm-item.lp-mm-open .lp-mm-dd-items { display: block; }
.lp-mm-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  padding: 10px 0 6px;
}
.lp-mm-dd-link {
  display: block; padding: 9px 0;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color .12s;
}
.lp-mm-dd-link:hover { color: rgba(255,255,255,.9); }

@media (max-width: 768px) {
  .lp-nav-item, .lp-dd-trig { display: none; }
}


/* nav dropdown trigger — match regular nav-link sizing */
.lp-nav-links .lp-dd-trig { padding: 7px 13px; border-radius: 8px; font-size: 13px; }
.lp-nav-links .lp-nav-item { gap: 0; }
@media (min-width: 769px) {
  .lp-nav-links .lp-nav-item,
  .lp-nav-links .lp-dd-trig { display: flex; }
}

/* ═══════════════════════════════════════════════════════
   NAV DROPDOWN v2 — hover fix + visual polish
   ═══════════════════════════════════════════════════════ */

/* ── Gap bridge: dropdown starts at top:100% so cursor never
   leaves .lp-has-dd bounds when moving from trigger to panel.
   Transparent padding-top creates the visual gap without a dead zone. ── */
.lp-dropdown {
  top: 100% !important;
  padding-top: 10px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Visual card rendered via ::before so it sits below the transparent padding.
   Color matches the real Oriven app sidebar exactly (body.dark-mode .orv-sb,
   computed live as rgb(11,11,12) / #0B0B0C, border rgba(255,255,255,.06)) —
   opaque, no blue undertone, instead of the previous rgba(10,10,18,.97). */
.lp-dropdown::before {
  content: '';
  position: absolute;
  inset: 10px 0 0 0;   /* top matches padding-top */
  background: #0B0B0C;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(0,0,0,.35),
    0 20px 56px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
  z-index: -1;
}

/* Ensure dropdown content renders above ::before */
.lp-dropdown > * { position: relative; z-index: 1; }

/* ── 2-column mega ── */
.lp-dd-mega {
  min-width: 580px !important;
  padding-top: 10px !important;   /* matches lp-dropdown padding-top, visual gap */
  padding-bottom: 40px !important;
}

/* Tighten translate animation — shorter since gap is bridged */
.lp-dropdown      { transform: translateX(-50%) translateY(-5px) !important; }
.lp-dd-mega       { transform: translateX(-40%) translateY(-5px) !important; }
.lp-dd-sm         { transform: translateX(-50%) translateY(-5px) !important; }
.lp-dd-open > .lp-dropdown { transform: translateX(-50%) translateY(0) !important; }
.lp-dd-open > .lp-dd-mega  { transform: translateX(-40%) translateY(0) !important; }
.lp-dd-open > .lp-dd-sm    { transform: translateX(-50%) translateY(0) !important; }

/* Crisper transition */
.lp-dropdown {
  transition: opacity .16s cubic-bezier(.16,1,.3,1),
              transform .16s cubic-bezier(.16,1,.3,1),
              visibility .16s !important;
}

/* ── Item hover polish ── */
.lp-dd-item {
  cursor: pointer !important;
  transition: background .1s ease, color .1s ease !important;
  border-radius: 10px !important;
}
.lp-dd-item:hover {
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.96) !important;
}
.lp-dd-item:active { background: rgba(255,255,255,.1) !important; }

/* Icon scales slightly on hover */
.lp-dd-item:hover .lp-dd-icon {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* ── Trigger hover polish ── */
.lp-dd-trig:hover .lp-dd-chev { color: rgba(255,255,255,.75) !important; }
.lp-dd-open .lp-dd-trig { color: rgba(255,255,255,.92) !important; }

/* ── Column separator spacing ── */
.lp-dd-col:first-child { border-left: none !important; }


/* ═══════════════════════════════════════════════════════
   REDUCED MOTION — one shared override for every [data-observe]
   scroll-reveal element (the whole landing page reuses this single
   IntersectionObserver-driven mechanism instead of per-section ones)
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  [data-observe] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ═══════════════════════════════════════════════════════
   PRODUCT VISUAL MOCK — reused across the 5 product pages
   (Launch / Campaigns / Intelligence / Autopilot / Business)
   ═══════════════════════════════════════════════════════ */
.ov-pv-wrap { padding: 8px 24px 0; display: flex; justify-content: center; }
.ov-pv-mock {
  width: 100%; max-width: 620px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03);
}
.ov-pv-mock-head {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.ov-pv-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ov-pv-mock-title {
  margin-left: 8px; font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,.38); letter-spacing: .03em;
}
.ov-pv-mock-body { padding: 6px 20px 8px; }
.ov-pv-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-pv-row:last-child { border-bottom: none; }
.ov-pv-row-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,.78); font-weight: 500;
  min-width: 0;
}
.ov-pv-row-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-pv-row-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 65%, transparent);
}
.ov-pv-row-val {
  font-size: 12.5px; color: rgba(255,255,255,.42);
  font-variant-numeric: tabular-nums; flex-shrink: 0; white-space: nowrap;
}
.ov-pv-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; flex-shrink: 0;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: color-mix(in srgb, var(--green) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
}
.ov-pv-badge-muted {
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.08);
}
@media (max-width: 640px) {
  .ov-pv-wrap { padding: 8px 16px 0; }
  .ov-pv-row-label { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   SUB-PAGE FIXES
   ═══════════════════════════════════════════════════════ */

/* Remove scroll container from .ov-sub-page since the VIEW div now handles it */
.ov-sub-page {
  overflow: visible !important;
  min-height: unset !important;
}

/* Offset sub-page hero content for the fixed global nav (64px tall) */
.ov-sub-page .ov-sp-hero { padding-top: 140px !important; }
@media (max-width: 768px) {
  .ov-sub-page .ov-sp-hero { padding-top: 100px !important; }
}

/* Marketing Website Product-Story Redesign pass — pricing-page fold fix.
   Much smaller top padding than the standard .ov-sp-hero + .ov-sp-section
   combo (which together pushed pricing cards below the fold) — just
   enough to clear the fixed nav, then straight into the eyebrow + cards. */
.ov-pricing-fold { padding: 80px 24px 56px; }
.ov-pricing-fold-eyebrow { text-align: center; margin-bottom: 20px; }
/* The homepage's data-observe/.ov-vis IntersectionObserver is rooted at
   #view-landing specifically (index.html) — elements inside #view-pricing
   are never its descendants, so .ov-vis is never added there and .ov-pc's
   base opacity:0 would never clear. Pricing must be visible immediately
   anyway (spec: no scroll-triggered delay above the fold), so force it. */
#view-pricing .ov-pc { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .ov-pricing-fold { padding: 72px 20px 44px; }
}

/* Hide the old ov-sub-nav (all instances, in case any remain) */
.ov-sub-nav { display: none !important; }


/* ═══════════════════════════════════════════════════════
   BLOG — SPACING & MODAL
   ═══════════════════════════════════════════════════════ */

/* Reduce gap between hero and article grid on the blog page only */
#view-blog .ov-sp-hero {
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
#view-blog .ov-sp-section {
  padding-top: 48px !important;
}

/* ── Article modal ─────────────────────────────────────── */
.ov-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 19999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}
.ov-blog-modal.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}
.ov-blog-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.ov-blog-modal-card {
  position: relative;
  z-index: 1;
  background: rgba(10,10,16,.98);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 20px;
  padding: 52px 52px 48px;
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(14px) scale(.98);
  transition: transform .24s cubic-bezier(.22,1,.36,1);
}
.ov-blog-modal.is-open .ov-blog-modal-card {
  transform: translateY(0) scale(1);
}
.ov-blog-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.55);
  transition: background .15s, color .15s, border-color .15s;
  padding: 0;
}
.ov-blog-modal-close:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.18);
}
.ov-blog-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 28px;
  padding-right: 32px;
}
.ov-blog-modal-body p {
  font-size: 15px;
  line-height: 1.82;
  color: rgba(255,255,255,.52);
  margin: 0 0 18px;
}
.ov-blog-modal-body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .ov-blog-modal-card { padding: 40px 28px 36px; border-radius: 16px; }
}

/* ═══════════════════════════════════════════════════════
   BLOG — ARTICLE CARDS
   ═══════════════════════════════════════════════════════ */

.ov-blog-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.ov-blog-art-card {
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--green) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 13%, transparent);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ov-blog-art-card:hover {
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  background: color-mix(in srgb, var(--green) 5.5%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--green) 6%, transparent);
}

.ov-blog-art-body {
  flex: 1;
  margin-bottom: 24px;
}

.ov-blog-art-title {
  font-size: 16px;
  font-weight: 650;
  color: rgba(255,255,255,.88);
  line-height: 1.45;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}

.ov-blog-art-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.46);
}

.ov-blog-art-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--green) 80%, transparent);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
  transition: background .16s, border-color .16s, color .16s;
  align-self: flex-start;
}
.ov-blog-art-btn:hover {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-color: color-mix(in srgb, var(--green) 36%, transparent);
  color: var(--green);
}

@media (max-width: 900px) {
  .ov-blog-art-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ═══════════════════════════════════════════════════════
   PLATFORM PAGES — SHARED COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* Center-aligned section inner (mirrors ov-about-centered) */
.ov-plat-centered {
  text-align: center;
}
.ov-plat-centered .ov-sp-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Direct connection capability grid — 2-col on desktop, 1-col mobile */
.ov-plat-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  max-width: 680px;
  margin: 44px auto 0;
  text-align: left;
}
.ov-plat-connect-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}
.ov-plat-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--green);
}

/* Feature card grid — 3-col on desktop (platform pages: 6 cards) */
.ov-plat-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

/* Feature card grid — 2-col 2-row on desktop (product pages: 4 cards) */
.ov-plat-feat-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 48px auto 0;
  text-align: left;
}
.ov-plat-feat-card {
  background: color-mix(in srgb, var(--green) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 13%, transparent);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ov-plat-feat-card:hover {
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  background: color-mix(in srgb, var(--green) 5.5%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--green) 6%, transparent);
}
.ov-plat-feat-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.ov-plat-feat-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.46);
}

/* Products: the six sections, each with its number and the pages inside it */
.ov-section-card { display: flex; flex-direction: column; }
.ov-section-num { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; color: color-mix(in srgb, var(--green) 70%, transparent); margin-bottom: 14px; }
.ov-section-pages { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ov-section-pages li { font-size: 12.5px; line-height: 1; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); }
.ov-section-pages li.is-dev { border-style: dashed; color: rgba(255,255,255,.5); }
.ov-section-pages li span { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.ov-hero-pages { justify-content: center; margin: -18px auto 34px; padding: 0; max-width: 640px; }
.ov-sections-note { margin: 28px auto 0; max-width: 640px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.45); }

/* Responsive */
@media (max-width: 900px) {
  .ov-plat-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ov-plat-connect-grid {
    grid-template-columns: 1fr;
  }
  .ov-plat-feat-grid {
    grid-template-columns: 1fr;
  }
  .ov-plat-feat-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ORIVEN AI MARKETING WORKSPACE — COMPLETE REDESIGN
   New architecture: Left sidebar + workflow-based navigation
   ═══════════════════════════════════════════════════════════════ */

/* Hide old top nav */
.ap-nav, #apNav, .ap-mob-nav, #apMobNav, #mobileBottomNav, .mbn { display: none !important; }

/* App shell: sidebar + content side by side */
html, body { overflow: hidden !important; height: 100vh !important; }
body { flex-direction: row !important; }
.app { display: flex !important; flex-direction: row !important; height: 100vh !important; overflow: hidden !important; }

/* Root-cause fix for "content shifted right" bugs across every route that
   uses this pattern (not a per-page hack): most routes live nested INSIDE
   .mc, which correctly fills the remaining width via its own flex:1. A
   number of .page elements (e.g. #page-campaigns, #page-campaign-results)
   are instead direct flex-item SIBLINGS of .mc right here in .app's row,
   and .page{} declares no width/flex of its own -- so when one becomes
   .active it shrink-to-fits its own content instead of stretching, while
   .mc (empty, since no page is active inside it) absorbs the leftover
   space in front of it, visually shoving the real content far to the
   right with a huge empty gap after the sidebar.
   This selector only matches .page elements that are ACTUALLY .app's
   direct children (the affected pattern) -- it does nothing to the many
   more routes correctly nested inside .mc, so it self-scopes to exactly
   the affected routes without needing a maintained list of page IDs. An
   overwhelming flex-grow (vs .mc's flex:1) makes the active page correctly
   claim the real available main-content width; each page's own inner
   max-width/margin:auto wrapper (e.g. .cgr-wrap) then centers properly
   within that correctly-sized box, exactly as it always intended to. */
/* Same root cause, second symptom: .app itself paints a legacy near-black
   background (.app{background:var(--ap-bg)}, --ap-bg:#09090B -- an old
   token whose real visual effect is "superseded by later var(--bg) rules"
   on every page that's correctly nested inside .mc, per that variable's
   own definition comment). A .page that's a direct .app child (this exact
   selector) has no opaque background of its own, so on any page whose
   content doesn't happen to fill 100% of the box (e.g. Drafts render two
   short rows, leaving empty space below), .app's dark legacy background
   -- and the always-running #appAmbient canvas beneath it -- shows
   through in the gap. Painting the real, current, theme-aware page
   background here (same var(--bg) token body/.mc already use) removes
   the gap for every affected page at once, not just one. */
.app > .page.active { flex: 9999 1 0%; width: auto; min-width: 0; max-width: 100%; background: var(--bg); }

/* Same root cause, third symptom (Autopilot only -- scoped narrowly rather
   than added to the shared rule above, since several other pages that match
   .app > .page.active already have their own working internal scroll
   solution and a blanket change here risks stacking a second scrollbar on
   top of theirs). #page-autopilot never inherits .mc's own overflow-y:auto
   (that lives only on .mc itself) and the base .page{} rule sets
   min-height:100% with no overflow of its own, so its real content -- which
   is taller than one viewport -- has nowhere to scroll: .app's
   overflow:hidden clips it outright with no scrollbar anywhere. min-height:0
   lets the flex item shrink to the row's cross-size instead of growing to
   fit its content, which is what makes the following overflow-y actually
   engage instead of never triggering. */
.app > #page-autopilot.active { min-height: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }

/* ── New sidebar ─────────────────────────────────────────────── */
/* ROOT CAUSE (found via live pixel sampling on the actual rendered page,
   not just DOM geometry): this rule's background was `var(--bg, #0E0E0F)`
   -- but `--bg` (#F6F3EE in light mode) is the EXACT SAME variable body
   and .mc paint their own backgrounds with. So no matter how wide this
   box was made (220px -> 320px), the visible painted region never changed
   at all -- sidebar, page, and main content were all one indistinguishable
   flat color, with only a single 1px border line marking the edge. Every
   prior "make it wider" pass was correct about the box model and
   completely unable to produce a visible result, because the box was
   visually invisible to begin with. Fixed by giving the sidebar its own
   background token, already defined in the existing palette for exactly
   this "surface distinct from page background" role (--bg3), instead of
   inventing a new color. Dark mode gets the same treatment just below,
   since it has the identical bug (var(--bg) there also matches .mc). */
.orv-sb {
  display: flex !important;
  flex-direction: column !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: 100vh !important;
  background: var(--bg3, #E5DED4) !important;
  border-right: 1px solid var(--b2, rgba(0,0,0,.14)) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 9200 !important;
}
/* Dark-mode background/width for .orv-sb is NOT set here -- a later,
   higher-specificity `body.dark-mode .orv-sb` rule (search this file for
   "SIDEBAR V2") always wins over anything placed at this point in the
   cascade, so that's the one actually fixed for dark mode too. */
.orv-sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.07));
  flex-shrink: 0;
  cursor: default;
}
.orv-sb-logo-img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.orv-sb-logo-name { font-size: 14px; font-weight: 700; color: var(--charcoal, #18181A); letter-spacing: -.02em; }
body.dark-mode .orv-sb-logo-name { color: rgba(255,255,255,.9); }
.orv-sb-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  scrollbar-width: none;
}
.orv-sb-nav::-webkit-scrollbar { display: none; }
.orv-sb-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(0,0,0,.3);
  padding: 14px 8px 6px;
}
body.dark-mode .orv-sb-section { color: rgba(255,255,255,.22); }
.orv-ni {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,.5);
  transition: background .12s, color .12s;
  margin-bottom: 1px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  user-select: none;
}
.orv-ni:hover { background: rgba(0,0,0,.04); color: var(--charcoal, #18181A); }
body.dark-mode .orv-ni { color: rgba(255,255,255,.5); }
body.dark-mode .orv-ni:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.9); }
.orv-ni.orv-active {
  background: color-mix(in srgb, var(--green) 9%, transparent);
  color: var(--green-text);
  font-weight: 600;
}
body.dark-mode .orv-ni.orv-active { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.orv-ni.orv-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
}
.orv-ni svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .6; transition: opacity .12s; }
.orv-ni:hover svg, .orv-ni.orv-active svg { opacity: 1; }
.orv-ni-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--green) 15%, transparent);
  color: var(--green);
}
/* Product Simplification Sprint — Intelligence's sidebar notification dot:
   a plain small dot ("something meaningful happened"), not a count pill,
   matching modern productivity-software unread indicators. */
#orvIntelBadge {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 25%, transparent);
}
.orv-sb-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--border, rgba(255,255,255,.07));
  padding: 10px;
}
.orv-sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: default;
  transition: background .12s;
}
.orv-sb-user:hover { background: color-mix(in srgb, var(--green) 8%, transparent); }
body.dark-mode .orv-sb-user:hover { background: color-mix(in srgb, var(--green) 10%, transparent); }
.orv-sb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 15%, transparent);
  color: var(--green-text);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.dark-mode .orv-sb-avatar { color: var(--green); }
.orv-sb-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal, #18181A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.dark-mode .orv-sb-user-name { color: rgba(255,255,255,.85); }
.orv-sb-user-plan { font-size: 10px; color: var(--muted); }

/* Main content adjusts for sidebar */
.mc { flex: 1 !important; min-width: 0 !important; height: 100vh !important; overflow-y: auto !important; overflow-x: hidden !important; }

/* ── Page base ─────────────────────────────────────────────────── */
.orv-page { max-width: 1140px; margin: 0 auto; padding: 40px 32px 80px; }

/* ── Overview ──────────────────────────────────────────────────── */
.orv-greeting { font-size: 26px; font-weight: 700; color: var(--charcoal); letter-spacing: -.03em; margin-bottom: 4px; }
body.dark-mode .orv-greeting { color: rgba(255,255,255,.95); }
.orv-greeting-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.orv-kpi-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 12px; margin-bottom: 28px; }
.orv-kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 14px; }
body.dark-mode .orv-kpi-card { background: rgba(255,255,255,.03); }
.orv-kpi-val { font-size: 28px; font-weight: 800; color: var(--charcoal); letter-spacing: -.04em; line-height: 1; margin-bottom: 5px; }
body.dark-mode .orv-kpi-val { color: rgba(255,255,255,.95); }
.orv-kpi-val.accent { color: var(--green); }
.orv-kpi-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.orv-kpi-delta { font-size: 11px; font-weight: 600; margin-top: 4px; }
.orv-kpi-delta.up { color: var(--green); } .orv-kpi-delta.down { color: #ef4444; }
.orv-platform-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.orv-platform-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--charcoal);
  cursor: pointer; transition: border-color .15s;
}
.orv-platform-pill:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
body.dark-mode .orv-platform-pill { background: rgba(255,255,255,.04); color: rgba(255,255,255,.8); }
.orv-platform-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.orv-platform-dot.connected { background: var(--green); }
.orv-platform-dot.disconnected { background: rgba(128,128,128,.4); }
.orv-section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.orv-section-title { font-size: 15px; font-weight: 700; color: var(--charcoal); letter-spacing: -.02em; }
body.dark-mode .orv-section-title { color: rgba(255,255,255,.9); }
.orv-alerts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 12px; margin-bottom: 32px; }
.orv-alert-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  cursor: pointer; transition: border-color .15s;
}
.orv-alert-card:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
body.dark-mode .orv-alert-card { background: rgba(255,255,255,.03); }
.orv-alert-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.orv-alert-ico { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.orv-alert-ico.warn { background: rgba(245,158,11,.12); color: #f59e0b; }
.orv-alert-ico.good { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.orv-alert-ico.info { background: rgba(96,165,250,.1); color: #60a5fa; }
.orv-alert-ico.bad  { background: rgba(239,68,68,.1); color: #ef4444; }
.orv-alert-title { font-size: 13px; font-weight: 600; color: var(--charcoal); line-height: 1.4; }
body.dark-mode .orv-alert-title { color: rgba(255,255,255,.9); }
.orv-alert-body { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.orv-alert-action { font-size: 12px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 4px; }

/* ── Discover page ─────────────────────────────────────────────── */
.orv-discover-search {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 28px; transition: border-color .2s;
}
.orv-discover-search:focus-within { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.orv-discover-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.orv-discover-inp {
  width: 100%; font-size: 15px; font-weight: 500; color: var(--charcoal);
  background: none; border: none; outline: none; padding: 0; resize: none;
}
body.dark-mode .orv-discover-inp { color: rgba(255,255,255,.9); }
.orv-discover-inp::placeholder { color: var(--muted); font-weight: 400; }
.orv-opportunity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px; }
.orv-opp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 18px 16px; cursor: pointer; transition: border-color .15s, transform .15s;
}
.orv-opp-card:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); transform: translateY(-1px); }
body.dark-mode .orv-opp-card { background: rgba(255,255,255,.03); }
.orv-opp-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 12px;
}
.orv-opp-tag.audience { background: rgba(96,165,250,.1); color: #60a5fa; }
.orv-opp-tag.hook     { background: rgba(167,139,250,.1); color: #a78bfa; }
.orv-opp-tag.angle    { background: rgba(52,211,153,.1);  color: #34d399; }
.orv-opp-tag.insight  { background: rgba(251,191,36,.1);  color: #fbbf24; }
.orv-opp-title { font-size: 14px; font-weight: 600; color: var(--charcoal); line-height: 1.4; margin-bottom: 8px; }
body.dark-mode .orv-opp-title { color: rgba(255,255,255,.9); }
.orv-opp-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Launch page ───────────────────────────────────────────────── */
.orv-launch-wrap { max-width: 680px; }
.orv-launch-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 12px; position: relative;
}
body.dark-mode .orv-launch-step { background: rgba(255,255,255,.03); }
.orv-launch-step.active { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.orv-step-num { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.orv-step-title { font-size: 15px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; }
body.dark-mode .orv-step-title { color: rgba(255,255,255,.9); }
.orv-step-body { font-size: 13px; color: var(--muted); line-height: 1.55; }
.orv-platform-select { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.orv-plat-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--charcoal); cursor: pointer; transition: border-color .15s;
}
body.dark-mode .orv-plat-btn { background: rgba(255,255,255,.04); color: rgba(255,255,255,.8); }
.orv-plat-btn.selected { border-color: var(--green); color: var(--green); }
.orv-plat-btn:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }

/* ── Scale page ────────────────────────────────────────────────── */
.orv-scale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 14px; }
.orv-rec-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 20px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.orv-rec-card:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
body.dark-mode .orv-rec-card { background: rgba(255,255,255,.03); }
.orv-rec-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.orv-rec-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.orv-rec-ico.budget    { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.orv-rec-ico.pause     { background: rgba(245,158,11,.1); color: #f59e0b; }
.orv-rec-ico.expand    { background: rgba(96,165,250,.1); color: #60a5fa; }
.orv-rec-ico.duplicate { background: rgba(167,139,250,.1); color: #a78bfa; }
.orv-rec-title { font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
body.dark-mode .orv-rec-title { color: rgba(255,255,255,.9); }
.orv-rec-camp { font-size: 11px; color: var(--muted); }
.orv-rec-body { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.orv-rec-footer { display: flex; align-items: center; justify-content: space-between; }
.orv-rec-impact { display: flex; align-items: center; gap: 20px; }
.orv-rec-stat-val { font-size: 18px; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.orv-rec-stat-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.orv-conf-wrap { display: flex; align-items: center; gap: 6px; }
.orv-conf-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.orv-conf-bar { width: 52px; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.orv-conf-fill { height: 100%; background: linear-gradient(90deg, var(--green), #6ee7b7); border-radius: 4px; }

/* ── Generic empty state ──────────────────────────────────────── */
.orv-empty { text-align: center; padding: 80px 32px; }
.orv-empty-ico { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--green) 8%, transparent); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--green); }
.orv-empty-title { font-size: 18px; font-weight: 700; color: var(--charcoal); letter-spacing: -.02em; margin-bottom: 8px; }
body.dark-mode .orv-empty-title { color: rgba(255,255,255,.9); }
.orv-empty-sub { font-size: 14px; color: var(--muted); max-width: 380px; margin: 0 auto 24px; line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   HOMEPAGE — NEW WORKFLOW SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Workflow section base ───────────────────────────────────── */
.ov-wf-section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-wf-section.ov-wf-alt { background: rgba(255,255,255,.02); }

/* Redesign v2 — text-column entrance (Intelligence/Autopilot/Business):
   previously only the visual mockup side animated in via data-observe;
   the copy/bullets side just appeared instantly. */
.ov-wf-text {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.ov-wf-text.ov-vis { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════════
   REDESIGN — Ad Examples Showcase (platform-switching interactive proof)
   ══════════════════════════════════════════════════════════════════ */
.ov-showcase-section { padding: 100px 48px; background: #07070A; border-bottom: 1px solid rgba(255,255,255,.05); }
.ov-showcase-inner { max-width: 1400px; margin: 0 auto; }
.ov-showcase-head { text-align: center; margin-bottom: 40px; }
.ov-showcase-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 48px; flex-wrap: wrap; }
.ov-showcase-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 100px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.ov-showcase-tab:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.ov-showcase-tab-active { background: rgba(182,255,59,.08); border-color: rgba(182,255,59,.4); color: #fff; }
.ov-showcase-tab:focus-visible { outline: 2px solid var(--green, #B7FF2A); outline-offset: 2px; }
@media (max-width: 640px) {
  .ov-showcase-section { padding: 64px 20px; }
}

/* ══════════════════════════════════════════════════════════════════
   Final Marketing Website Polish pass — scroll-based product statement,
   simplified to ONE line (was a lead + 4 stacked sentences). The
   transition is calmer: no upward movement (spec: "fix the visual
   behavior where the text currently transitions too aggressively... and
   visually moves upward"), a longer/subtler color fade, and a less
   extreme starting mute — present but dim, not fully invisible, so the
   initial state reads as "calm and muted" rather than "popping in".
   ══════════════════════════════════════════════════════════════════ */
.ov-statement-section { padding: 140px 48px; background: #07070A; border-bottom: 1px solid rgba(255,255,255,.05); }
/* Complete Homepage Redesign pass — widened substantially (was 980px,
   originally 900px) per spec: "Make the statement occupy much more
   horizontal width than it currently does... It should feel like a
   major editorial statement," and the color animation moved from the
   whole paragraph to individual words (see .ov-word below) — driven
   continuously by scroll position in the JS IIFE further down this
   file, not a one-time IntersectionObserver class toggle, so it
   genuinely interpolates and reverses as the user scrolls up. */
.ov-statement-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.ov-statement-lead {
  font-size: clamp(24px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.015em; line-height: 1.45;
  margin: 0;
}
.ov-word { color: rgba(255,255,255,.3); }
/* prefers-reduced-motion: skip the scroll-driven per-word animation
   entirely (the JS IIFE checks this and never touches word color when
   set) — words render at full brightness immediately, fully readable,
   no motion. Accent words ("Oriven", Research/Create/Launch/Improve)
   still get their ORIVEN-green treatment, just with no animation. */
.ov-statement-lead.ov-reduced-motion .ov-word { color: #fff; }
.ov-statement-lead.ov-reduced-motion .ov-word-accent { color: var(--green); }

@media (max-width: 640px) {
  .ov-statement-section { padding: 88px 20px; }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN — "Every Brand Needs It"
   ══════════════════════════════════════════════════════════════════ */
.ov-brands-section { padding: 64px 48px; background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.05); }
.ov-brands-inner { max-width: 1400px; margin: 0 auto; }
.ov-brands-head { text-align: center; margin-bottom: 40px; }
.ov-brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ov-brand-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 28px 24px;
  opacity: 0; transition: opacity .35s ease, border-color .3s ease, background .3s ease, transform .3s ease;
}
.ov-brand-card.ov-vis { opacity: 1; }
.ov-brand-card:hover { border-color: rgba(182,255,59,.3); background: rgba(255,255,255,.045); transform: translateY(-3px); }
.ov-brand-ico { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(182,255,59,.08); border-radius: 10px; margin-bottom: 18px; }
.ov-brand-ico svg { width: 20px; height: 20px; }
.ov-brand-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ov-brand-desc { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.55); }

@media (max-width: 900px) {
  .ov-brands-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ov-brands-grid { grid-template-columns: 1fr; }
  .ov-brands-section, .ov-showcase-section { padding: 64px 20px; }
}

/* ══════════════════════════════════════════════════════════════════
   Marketing/Pricing Redesign — "From Idea to Performance" wrapper
   (single-section head above the 3 consolidated workflow steps) and
   "Everything Oriven Does" 5-pillar overview, replacing the former
   standalone Business deep-dive section.
   ══════════════════════════════════════════════════════════════════ */
.ov-wf-head { text-align: center; max-width: 640px; margin: 0 auto 72px; padding: 0 48px; }
.ov-wf-head .ov-section-h { margin-bottom: 16px; }
.ov-wf-head .ov-section-sub { margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════
   THE SIX ORIVEN FRAGMENTS — Final Brand, Visual System & Connected
   Advertising Experience Refinement pass. A ring of 6 arc segments
   (the real ORIVEN logo geometry — see the HTML comment above this
   section) that starts each slightly rotated apart ("fragmented") and
   settles into place once scrolled into view ("connected"), with one
   small Electric-Lime signal continuously traveling the full ring only
   while in view. One accent color throughout; the six functions are
   differentiated by label and position, not hue.
   ══════════════════════════════════════════════════════════════════ */
.ov-frag-section { padding: 120px 48px; text-align: center; }
.ov-frag-inner { max-width: 760px; margin: 0 auto; }
.ov-frag-h {
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1.15;
  color: #fff; margin: 0 0 16px;
}
.ov-frag-sub { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.5); max-width: 560px; margin: 0 auto 64px; }

/* Final Visual Refinement pass — ring made "clearly dominant" (spec
   section 4): wrap grew from 460px to 640px max, and the ring itself now
   fills 84% of it (was 72%), leaving just enough outer margin for the
   6 radial labels. */
.ov-frag-ring-wrap { position: relative; width: min(640px, 88vw); aspect-ratio: 1; margin: 0 auto; }
/* Final Interaction Refinement pass — the ring itself no longer reacts
   to hover at all (spec section 9: "Remove the previous interaction:
   hover ring → entire O becomes larger. That is NOT desired. The O
   itself should remain stable."). Only the idle breathing pulse
   remains, purely for ambient discoverability. */
.ov-frag-ring { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .ov-frag-inner.ov-vis .ov-frag-ring { animation: ovFragBreathe 4.5s ease-in-out infinite; }
}
@keyframes ovFragBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
/* Six filled annulus wedges (real logo geometry — outer/inner arcs +
   straight bevel cuts, traced from assets/orivenlogo.png), not a
   stroked dashed circle. Each piece reads as a genuinely separate
   fragment of the O, not a decorated ring. */
.ov-frag-seg { fill: var(--green); }

/* Google Interface + O Label Fix pass — the transform (both the initial
   "fragmented -> assembled" rotation AND the later hover/focus/active
   translate) now lives on the GROUP (path + its own text together),
   never on the path alone — see the HTML comment above the SVG for why
   this structural change was necessary, not optional. */
.ov-frag-unit {
  opacity: .4;
  transform-box: view-box;
  transform-origin: 110px 110px;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .7s ease, filter .3s ease;
}
/* Each fragment drifts apart by its own distinct angle in the resting
   "fragmented" state — never a uniform, mechanical offset. */
.ov-frag-unit-1 { transform: rotate(18deg); transition-delay: 0s; }
.ov-frag-unit-2 { transform: rotate(-14deg); transition-delay: .06s; }
.ov-frag-unit-3 { transform: rotate(10deg); transition-delay: .12s; }
.ov-frag-unit-4 { transform: rotate(-20deg); transition-delay: .18s; }
.ov-frag-unit-5 { transform: rotate(15deg); transition-delay: .24s; }
.ov-frag-unit-6 { transform: rotate(-12deg); transition-delay: .3s; }
.ov-frag-inner.ov-vis .ov-frag-unit { transform: rotate(0deg); opacity: 1; }

/* The label lives inside the same <g> as its segment now — Charcoal for
   contrast against the Electric Lime fill (never Pure White on lime,
   the site's established contrast rule), font-family matched to the
   page's Inter body stack (SVG text doesn't inherit this by default). */
.ov-frag-label-svg { font-family: var(--font-body), 'Inter', sans-serif; pointer-events: none; }
.ov-frag-label-svg-num { font-size: 4.1px; font-weight: 800; fill: rgba(23,23,23,.55); letter-spacing: .02em; }
.ov-frag-label-svg-name { font-size: 5.6px; font-weight: 800; fill: rgba(23,23,23,.9); }

.ov-frag-hint {
  margin: 28px 0 0; font-size: 12.5px; color: rgba(255,255,255,.32);
  opacity: 0; transition: opacity .5s ease; transition-delay: .7s;
}
.ov-frag-inner.ov-vis .ov-frag-hint { opacity: 1; }

/* Ring's own hollow center doubles as a readout for whichever fragment
   is being hovered/focused — spec: "reveal a short piece of explanatory
   text inside the corresponding part of the ring... don't overcrowd the
   ring." Only one line shows at a time, keyed to the label under
   pointer/focus, via :has() rather than JS. */
.ov-frag-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  padding: 0 22%;
}
.ov-frag-center-text {
  position: absolute;
  font-size: 13px; font-weight: 600; line-height: 1.35;
  color: rgba(255,255,255,.9); text-align: center;
  opacity: 0; transform: scale(.94);
  transition: opacity .25s ease, transform .25s ease;
}
/* Mobile Polish pass — bug fix: this span is position:absolute, so the
   parent .ov-frag-center's own `padding: 0 22%` (its intended "safe
   zone" for this text) never actually constrained it — percentages on
   an absolutely positioned element's own width resolve against the
   containing block's PADDING box, not its content box, so that padding
   was cosmetic as far as this element's own sizing is concerned. At
   desktop's ring size this went unnoticed (even the longest label,
   "Give Oriven the context behind your business.", fits on one line
   with real margin to spare); at mobile's smaller ring
   (.ov-frag-ring-wrap: 420px/90vw, was 640px/88vw) the same
   unconstrained single-line text is wide enough to sit directly over
   the fragments on both sides — confirmed via direct measurement
   before this fix (up to 267px wide inside a ~180px hollow center).
   A real max-width (not a percentage) is the actual fix; wrapping to a
   second line is what text-align:center + line-height already handle
   correctly once the box is finally constrained. */
@media (max-width: 640px) {
  .ov-frag-center-text {
    /* Responsive, not a flat px cap — the ring itself scales with
       viewport width down to 640px (.ov-frag-ring-wrap: min(420px,
       90vw)), so a fixed max-width here was still too wide at the
       narrow end (confirmed: overlapped again at 360px specifically,
       even though 390px/375px were fine) -- this tracks the ring's own
       vw-based shrinkage instead of assuming one fixed mobile size. */
    max-width: min(160px, 40vw);
    font-size: 12px;
    line-height: 1.32;
  }
}
/* Labels positioned radially around the ring at percentages (not fixed
   px), so they stay correctly aligned at any container size — precomputed
   sin/cos for the 6 segment midpoint angles (30/90/150/210/270/330°),
   matching Research→Create→Launch→Campaigns→Autopilot→Business reading
   clockwise from just past the top, the conceptual loop order the spec
   describes. */
/* --frag-move is now consumed ENTIRELY inside the SVG (applied to the
   .ov-frag-unit-N group), so it's expressed in SVG user-units, not
   real screen px — the values below were chosen empirically (rendering
   ~18-22px of real on-screen movement at each breakpoint, within the
   spec's 12-28px range) rather than copied from the old HTML-space
   values, which would render roughly 2.5x too far now that there is
   only one coordinate system to satisfy. */
.ov-frag-ring-wrap { --frag-move: 8px; }

/* The real interaction target — one generous invisible pie-slice per
   fragment (clip-path polygons set inline in the HTML), reaching from
   the ring's center out past its edge. Visually nothing; the fragment
   itself lighting up + moving + glowing IS its focus indicator, which
   is more informative than a generic outline sitting in empty space. */
.ov-frag-hit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
}
/* The button's real hit area is clip-path'd to one wedge, but the
   site-wide "button:focus-visible{outline:2px solid...}" accessibility
   baseline (kept everywhere else on purpose) draws that outline around
   the button's full, un-clipped 100%x100% box — outlines ignore
   clip-path — which reads as a stray rectangle/line traced near the
   ring rather than around the fragment actually being focused. The
   segment itself moving + glowing (:has() rules below) already IS a
   clear, WCAG-compliant focus indicator, so this one narrow override
   (specific enough to beat that global rule on purpose, not by
   accident) swaps the misleading full-box outline for that instead —
   every other button/link on the site keeps the normal outline. */
button.ov-frag-hit:focus-visible {
  outline: none;
}

/* Hovering, keyboard-focusing, OR clicking/tapping a fragment's hit area
   (spec section 3-5): its segment pops radially outward + glows, its
   number+label move together with it as one physically-connected unit,
   and its explanation surfaces in the ring's center — six near-identical
   rule groups because each fragment needs its own direction, not a
   generic loop. ".ov-frag-active" is the click/tap-persistent state set
   by the small JS in index.html; hover/focus-visible are the transient
   CSS-only states. Every segment rule ends in "rotate(0deg)" because
   hover/focus/click can only happen once the segment has already
   settled into its assembled resting rotation. */
.ov-frag-ring-wrap:has(.ov-frag-hit-1:hover) .ov-frag-unit-1,
.ov-frag-ring-wrap:has(.ov-frag-hit-1:focus-visible) .ov-frag-unit-1,
.ov-frag-ring-wrap:has(.ov-frag-hit-1.ov-frag-active) .ov-frag-unit-1 { transform: translate(calc(var(--frag-move) * 0.5), calc(var(--frag-move) * -0.866)) rotate(0deg); filter: drop-shadow(0 0 3px rgba(182,255,59,.75)); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.ov-frag-ring-wrap:has(.ov-frag-hit-1:hover) .ov-frag-center-1,
.ov-frag-ring-wrap:has(.ov-frag-hit-1:focus-visible) .ov-frag-center-1,
.ov-frag-ring-wrap:has(.ov-frag-hit-1.ov-frag-active) .ov-frag-center-1 { opacity: 1; transform: scale(1); }

.ov-frag-ring-wrap:has(.ov-frag-hit-2:hover) .ov-frag-unit-2,
.ov-frag-ring-wrap:has(.ov-frag-hit-2:focus-visible) .ov-frag-unit-2,
.ov-frag-ring-wrap:has(.ov-frag-hit-2.ov-frag-active) .ov-frag-unit-2 { transform: translate(var(--frag-move), 0) rotate(0deg); filter: drop-shadow(0 0 3px rgba(182,255,59,.75)); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.ov-frag-ring-wrap:has(.ov-frag-hit-2:hover) .ov-frag-center-2,
.ov-frag-ring-wrap:has(.ov-frag-hit-2:focus-visible) .ov-frag-center-2,
.ov-frag-ring-wrap:has(.ov-frag-hit-2.ov-frag-active) .ov-frag-center-2 { opacity: 1; transform: scale(1); }

.ov-frag-ring-wrap:has(.ov-frag-hit-3:hover) .ov-frag-unit-3,
.ov-frag-ring-wrap:has(.ov-frag-hit-3:focus-visible) .ov-frag-unit-3,
.ov-frag-ring-wrap:has(.ov-frag-hit-3.ov-frag-active) .ov-frag-unit-3 { transform: translate(calc(var(--frag-move) * 0.5), calc(var(--frag-move) * 0.866)) rotate(0deg); filter: drop-shadow(0 0 3px rgba(182,255,59,.75)); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.ov-frag-ring-wrap:has(.ov-frag-hit-3:hover) .ov-frag-center-3,
.ov-frag-ring-wrap:has(.ov-frag-hit-3:focus-visible) .ov-frag-center-3,
.ov-frag-ring-wrap:has(.ov-frag-hit-3.ov-frag-active) .ov-frag-center-3 { opacity: 1; transform: scale(1); }

.ov-frag-ring-wrap:has(.ov-frag-hit-4:hover) .ov-frag-unit-4,
.ov-frag-ring-wrap:has(.ov-frag-hit-4:focus-visible) .ov-frag-unit-4,
.ov-frag-ring-wrap:has(.ov-frag-hit-4.ov-frag-active) .ov-frag-unit-4 { transform: translate(calc(var(--frag-move) * -0.5), calc(var(--frag-move) * 0.866)) rotate(0deg); filter: drop-shadow(0 0 3px rgba(182,255,59,.75)); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.ov-frag-ring-wrap:has(.ov-frag-hit-4:hover) .ov-frag-center-4,
.ov-frag-ring-wrap:has(.ov-frag-hit-4:focus-visible) .ov-frag-center-4,
.ov-frag-ring-wrap:has(.ov-frag-hit-4.ov-frag-active) .ov-frag-center-4 { opacity: 1; transform: scale(1); }

.ov-frag-ring-wrap:has(.ov-frag-hit-5:hover) .ov-frag-unit-5,
.ov-frag-ring-wrap:has(.ov-frag-hit-5:focus-visible) .ov-frag-unit-5,
.ov-frag-ring-wrap:has(.ov-frag-hit-5.ov-frag-active) .ov-frag-unit-5 { transform: translate(calc(var(--frag-move) * -1), 0) rotate(0deg); filter: drop-shadow(0 0 3px rgba(182,255,59,.75)); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.ov-frag-ring-wrap:has(.ov-frag-hit-5:hover) .ov-frag-center-5,
.ov-frag-ring-wrap:has(.ov-frag-hit-5:focus-visible) .ov-frag-center-5,
.ov-frag-ring-wrap:has(.ov-frag-hit-5.ov-frag-active) .ov-frag-center-5 { opacity: 1; transform: scale(1); }

.ov-frag-ring-wrap:has(.ov-frag-hit-6:hover) .ov-frag-unit-6,
.ov-frag-ring-wrap:has(.ov-frag-hit-6:focus-visible) .ov-frag-unit-6,
.ov-frag-ring-wrap:has(.ov-frag-hit-6.ov-frag-active) .ov-frag-unit-6 { transform: translate(calc(var(--frag-move) * -0.5), calc(var(--frag-move) * -0.866)) rotate(0deg); filter: drop-shadow(0 0 3px rgba(182,255,59,.75)); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.ov-frag-ring-wrap:has(.ov-frag-hit-6:hover) .ov-frag-center-6,
.ov-frag-ring-wrap:has(.ov-frag-hit-6:focus-visible) .ov-frag-center-6,
.ov-frag-ring-wrap:has(.ov-frag-hit-6.ov-frag-active) .ov-frag-center-6 { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .ov-frag-unit { transition: none !important; transform: rotate(0deg); opacity: 1; }
  .ov-frag-ring { animation: none; }
  .ov-frag-center-text { transition: none; }
}

@media (max-width: 640px) {
  .ov-frag-section { padding: 72px 20px; }
  .ov-frag-sub { margin-bottom: 48px; }
  .ov-frag-ring-wrap { width: min(420px, 90vw); --frag-move: 6px; }
  .ov-frag-hint { font-size: 11.5px; }
}

/* ══════════════════════════════════════════════════════════════════
   PREMIUM VISUAL EXPERIENCE REBUILD — shared small components reused
   across the new scenes below (eyebrow label, product-frame "browser
   chrome" card). Kept in one place rather than redeclared per scene.
   ══════════════════════════════════════════════════════════════════ */
.ov-section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(182,255,59,.68);
  margin: 0 0 16px;
}

/* Scene 3 — Real Product */
.ov-product-section { padding: 120px 48px; }
.ov-product-inner { max-width: 1180px; margin: 0 auto; }
.ov-product-head { text-align: center; margin-bottom: 56px; }
.ov-product-head .ov-section-h { margin-bottom: 0; }
.ov-product-head .ov-section-eyebrow { text-align: center; }

.ov-product-frame {
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  background: #07070A;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.ov-product-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ov-product-chrome span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ov-product-frame img { display: block; width: 100%; height: auto; }

.ov-product-primary { margin-bottom: 28px; }
.ov-product-frame-lg { max-width: 1000px; margin: 0 auto; }

.ov-product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ov-product-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  background: rgba(8,8,8,.72);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .ov-product-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ov-product-section { padding: 72px 20px; }
  .ov-product-head { margin-bottom: 36px; }
  .ov-product-row { grid-template-columns: 1fr; gap: 16px; }
}

/* Scene 5 — Create -> Launch -> Campaigns (one story, direction reverses) */
.ov-lf-section { padding: 120px 48px; text-align: center; }
.ov-lf-inner { max-width: 900px; margin: 0 auto; }
.ov-lf-phase .ov-section-h { margin-bottom: 0; }
.ov-lf-phase .ov-section-eyebrow { text-align: center; }
.ov-lf-phase .ov-section-sub { max-width: 560px; margin: 16px auto 0; }

.ov-lf-hub { position: relative; width: 300px; height: 300px; margin: 56px auto 0; }
.ov-lf-hub-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(1);
  opacity: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700;
}
.ov-lf-hub-ico { padding: 15px; box-sizing: content-box; border: 1px solid rgba(182,255,59,.34); border-radius: 50%; background: rgba(182,255,59,.05); color: var(--green); }
.ov-lf-hub-spoke {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 76px; opacity: 1; transform: translate(0,0) scale(1);
}
.ov-lf-hub-spoke span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); }
.ov-lf-hub-spoke-1 { top: 0;    left: 50%; margin-left: -38px; }
.ov-lf-hub-spoke-2 { top: 50%; right: 0;  margin-top: -30px; }
.ov-lf-hub-spoke-3 { bottom: 0; left: 50%; margin-left: -38px; }
.ov-lf-hub-spoke-4 { top: 50%; left: 0;   margin-top: -30px; }

@media (prefers-reduced-motion: no-preference) {
  .ov-lf-hub-center { transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); }
  .ov-lf-hub-spoke { transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1); }
  .ov-lf-hub-spoke-1 { transition-delay: .15s; }
  .ov-lf-hub-spoke-2 { transition-delay: .25s; }
  .ov-lf-hub-spoke-3 { transition-delay: .35s; }
  .ov-lf-hub-spoke-4 { transition-delay: .45s; }
  .ov-lf-hub-center, .ov-lf-hub-spoke { opacity: 0; }
  .ov-lf-hub-center { transform: translate(-50%,-50%) scale(.5); }
  .ov-lf-hub-spoke-1 { transform: translate(0,130px) scale(.3); }
  .ov-lf-hub-spoke-2 { transform: translate(-130px,0) scale(.3); }
  .ov-lf-hub-spoke-3 { transform: translate(0,-130px) scale(.3); }
  .ov-lf-hub-spoke-4 { transform: translate(130px,0) scale(.3); }
  .ov-lf-inner.ov-vis .ov-lf-hub-center { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  .ov-lf-inner.ov-vis .ov-lf-hub-spoke { opacity: 1; }
  .ov-lf-inner.ov-vis .ov-lf-hub-spoke-1,
  .ov-lf-inner.ov-vis .ov-lf-hub-spoke-2,
  .ov-lf-inner.ov-vis .ov-lf-hub-spoke-3,
  .ov-lf-inner.ov-vis .ov-lf-hub-spoke-4 { transform: translate(0,0) scale(1); }

  /* Reverse (Campaigns phase): platforms settle first, Oriven's own
     center node visibly arrives last, receiving them — same geometry,
     the sequence itself is what flips. */
  .ov-lf-reverse .ov-lf-hub-spoke-1 { transition-delay: 0s; }
  .ov-lf-reverse .ov-lf-hub-spoke-2 { transition-delay: .08s; }
  .ov-lf-reverse .ov-lf-hub-spoke-3 { transition-delay: .16s; }
  .ov-lf-reverse .ov-lf-hub-spoke-4 { transition-delay: .24s; }
  .ov-lf-reverse .ov-lf-hub-center { transform: translate(-50%,-50%) scale(.3); transition-delay: .55s; }
  .ov-lf-inner.ov-vis .ov-lf-reverse .ov-lf-hub-center { transform: translate(-50%,-50%) scale(1); }
}

.ov-lf-reversal {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 72px 0; color: rgba(182,255,59,.7);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ov-lf-reversal::before, .ov-lf-reversal::after {
  content: ''; flex: 1 1 auto; height: 1px; max-width: 160px;
  background: linear-gradient(90deg, transparent, rgba(182,255,59,.28), transparent);
}

.ov-lf-metrics {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
}
.ov-lf-metrics span {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 6px 13px;
}

@media (max-width: 640px) {
  .ov-lf-section { padding: 72px 20px; }
  .ov-lf-hub { width: 260px; height: 260px; transform: scale(.9); }
  .ov-lf-reversal { margin: 48px 0; }
  .ov-lf-reversal::before, .ov-lf-reversal::after { max-width: 40px; }
}

/* Scene 6 — Proof Break */
.ov-proof-section { padding: 110px 48px; }
.ov-proof-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.ov-proof-statement { margin-bottom: 56px; }
.ov-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.ov-proof-item { border-top: 1px solid rgba(182,255,59,.28); padding-top: 18px; }
.ov-proof-item-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(182,255,59,.7); margin-bottom: 10px;
}
.ov-proof-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.62); }
@media (max-width: 900px) {
  .ov-proof-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .ov-proof-section { padding: 64px 20px; }
  .ov-proof-statement { margin-bottom: 36px; }
}

/* Scene 7 — Autopilot loop */
.ov-ap-section { padding: 120px 48px; text-align: center; }
.ov-ap-inner { max-width: 820px; margin: 0 auto; }
.ov-ap-inner .ov-section-h { margin: 14px 0 0; }
.ov-ap-inner .ov-section-sub { max-width: 560px; margin: 16px auto 0; }
.ov-ap-loop { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 56px; flex-wrap: wrap; }
.ov-ap-step { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ov-ap-node {
  width: 56px; height: 56px; box-sizing: border-box; padding: 15px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.03);
}
.ov-ap-node-key { border-color: rgba(182,255,59,.4); background: rgba(182,255,59,.06); color: var(--green); }
.ov-ap-step span { font-size: 13px; font-weight: 700; color: #fff; }
.ov-ap-chevron { color: var(--green); flex: 0 0 auto; }
.ov-ap-rule {
  margin: 40px auto 0; max-width: 480px; font-size: 13.5px; font-style: italic;
  color: rgba(255,255,255,.5); line-height: 1.6;
}
.ov-ap-loop-return {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 20px 0 0; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.36);
}
@media (max-width: 640px) {
  .ov-ap-section { padding: 64px 20px; }
  .ov-ap-loop { gap: 6px; }
}

/* Scene 8 — Second Visual Proof / Wall (the marquee itself reuses
   .ov-wall/.ov-wall-row/.ov-wall-track exactly as #ov-showcase does —
   only this section-level wrapper is new). */
.ov-wall2-section { padding: 100px 0; }
.ov-wall2-head { text-align: center; margin-bottom: 40px; }
.ov-wall2-head .ov-section-eyebrow { text-align: center; }
@media (max-width: 640px) {
  .ov-wall2-section { padding: 64px 0; }
}

/* Scene 9 — Case Studies / Story (one large editorial block, no
   fabricated customer proof — see index.html's comment). */
.ov-story-section { padding: 110px 48px; }
.ov-story-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.ov-story-inner .ov-section-eyebrow { text-align: center; }
.ov-story-quote {
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.92);
  margin: 8px 0 24px;
}
.ov-story-attr {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.4);
}
@media (max-width: 640px) {
  .ov-story-section { padding: 64px 20px; }
}

/* ══════════════════════════════════════════════════════════════════
   FROM SCATTERED TO IN ORDER — Connected-System pass (builds on the
   earlier Final Create Enhancement + Landing-Page Storytelling pass,
   which replaced the old "How Oriven Works" 2x2 grid with this ring +
   caption). Still reuses the six-fragment ring defined just above
   verbatim via the sizing-only modifier .ov-frag-ring-wrap-sm — ring
   geometry itself untouched, not redesigned. What's new: a second SVG
   layer (.ov-order-connect — six spokes + a center hub, see the HTML
   comment above #ov-workflow for the full reasoning) that gives the same
   ring motion an actual meaning ("six pieces join at one shared center"),
   plus a plain-text node row and one closing line below it. Everything
   new here is driven by the SAME .ov-vis toggle the ring itself already
   used — no new IntersectionObserver, no scroll-scrubbing. Reduced
   motion: every element's *final* state is set unconditionally outside
   the no-preference media query below (spokes drawn, hub lit, nodes
   bright, result line visible); only the transition timing is gated —
   identical pattern to the existing ring rules just above. ══════ */
.ov-order-section { padding: 120px 48px; text-align: center; }
.ov-order-inner.ov-frag-inner { display: flex; flex-direction: column; align-items: center; }
.ov-frag-ring-wrap-sm { width: min(320px, 60vw); margin-top: 8px; }
.ov-order-caption {
  margin: 20px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.ov-order-caption-before { color: rgba(255,255,255,.4); }
.ov-order-caption svg { color: rgba(255,255,255,.3); flex-shrink: 0; }
.ov-order-caption-after { color: var(--green); }

/* Spokes: thin lines from each wedge's inner edge to the ring's shared
   center. stroke-dasharray/dashoffset "draws" each one in — all six are
   the same length (~58 user-units, each wedge sits on the same inner
   radius), so one dasharray value covers all of them. Drawn in the
   spec's WORKFLOW/story order (Business -> Research -> Create -> Launch
   -> Campaigns -> Autopilot), which is deliberately NOT the same order
   as the ring's fixed wedge positions or the node row below — see the
   HTML comment above #ov-workflow. */
.ov-order-spoke {
  stroke: var(--green); stroke-width: 1.1; stroke-linecap: round; fill: none;
  opacity: .85; stroke-dasharray: 60; stroke-dashoffset: 60;
}
.ov-order-hub {
  fill: var(--green); opacity: 0;
  transform-box: fill-box; transform-origin: center; transform: scale(.3);
}
@media (prefers-reduced-motion: no-preference) {
  .ov-order-spoke { transition: stroke-dashoffset .6s cubic-bezier(.16,1,.3,1); }
  .ov-order-hub { transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); }
  /* Story order: spoke-6 (Business's wedge position) fires first, then
     spoke-2 (Research), spoke-1 (Create), spoke-3 (Launch), spoke-4
     (Campaigns), spoke-5 (Autopilot) last — see the canonical vs.
     workflow-order note in the HTML comment. */
  .ov-order-inner.ov-vis .ov-order-spoke-6 { transition-delay: .5s; }
  .ov-order-inner.ov-vis .ov-order-spoke-2 { transition-delay: .64s; }
  .ov-order-inner.ov-vis .ov-order-spoke-1 { transition-delay: .78s; }
  .ov-order-inner.ov-vis .ov-order-spoke-3 { transition-delay: .92s; }
  .ov-order-inner.ov-vis .ov-order-spoke-4 { transition-delay: 1.06s; }
  .ov-order-inner.ov-vis .ov-order-spoke-5 { transition-delay: 1.2s; }
  .ov-order-inner.ov-vis .ov-order-hub { transition-delay: 1.7s; }
}
.ov-order-inner.ov-vis .ov-order-spoke { stroke-dashoffset: 0; }
.ov-order-inner.ov-vis .ov-order-hub { opacity: 1; transform: scale(1); }

/* Node row — six short plain-text signals below the ring, canonical
   Create-first order, name + one three-word line each. Never cards: no
   border, no background, no icon — just spacing and a thin divider.
   Dim until the ring's connection sequence finishes, then the whole row
   brightens together as one confirming beat (not staggered per-node —
   see HTML comment for why a per-node stagger tied to the spokes would
   read as broken rather than deliberate). */
.ov-order-nodes {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: 10px 0; margin: 40px 0 0; max-width: 800px;
  opacity: .38; transition: opacity .1s;
}
.ov-order-node {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0 18px; border-left: 1px solid rgba(255,255,255,.12);
}
.ov-order-node:first-child { border-left: none; }
.ov-order-node-name { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.005em; }
.ov-order-node-tag { font-size: 11px; color: rgba(255,255,255,.42); }
@media (prefers-reduced-motion: no-preference) {
  .ov-order-nodes { transition: opacity .7s ease; transition-delay: 1.85s; }
}
.ov-order-inner.ov-vis .ov-order-nodes { opacity: 1; }

/* Finale convergence mark — the real ORIVEN logo, centered exactly on
   the ring's hub, appearing right after the hub itself lights up (hub's
   own transition-delay is 1.7s; the mark follows at 1.9s). */
.ov-order-mark {
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%,-50%) scale(.4);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ov-order-mark { transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); transition-delay: 1.9s; }
}
.ov-order-inner.ov-vis .ov-order-mark { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Final headline + CTA — the page's actual closing statement (brief's
   exact required phrasing), at real heading weight, appearing last,
   after everything else above it has settled. */
.ov-order-final {
  margin: 32px 0 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800;
  letter-spacing: -.02em; color: #fff;
  opacity: 0; transform: translateY(10px);
}
.ov-order-final-cta { margin-top: 24px; opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: no-preference) {
  .ov-order-final { transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); transition-delay: 2.2s; }
  .ov-order-final-cta { transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); transition-delay: 2.4s; }
}
.ov-order-inner.ov-vis .ov-order-final { opacity: 1; transform: translateY(0); }
.ov-order-inner.ov-vis .ov-order-final-cta { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ov-order-nodes { opacity: 1; }
  .ov-order-mark { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  .ov-order-final, .ov-order-final-cta { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .ov-order-section { padding: 72px 20px; }
  .ov-frag-ring-wrap-sm { width: min(220px, 68vw); }
  .ov-order-nodes { gap: 18px 22px; margin-top: 32px; }
  .ov-order-node { padding: 0; border-left: none; flex: 0 0 auto; }
  .ov-order-node-name { font-size: 12px; }
  .ov-order-node-tag { font-size: 10px; }
}

/* ══════════════════════════════════════════════════════════════════
   Homepage + Pricing Polish Pass — RESEARCH → CREATE → LAUNCH → IMPROVE
   connected path. One component: a horizontal row of 4 step-cards
   linked by a thin track line + arrows on desktop, which becomes a
   vertical stack (arrows rotated 90°) below 900px — pure CSS, no JS
   layout logic. Each step keeps a small, distinct accent visual so the
   four don't read as identical repeated cards.
   ══════════════════════════════════════════════════════════════════ */
.ov-path-section { padding: 100px 48px; background: #07070A; border-bottom: 1px solid rgba(255,255,255,.05); }

/* Final Visual Polish pass — the four-step workflow is now a 2x2
   editorial grid, not a horizontal connected-path row (spec: "Instead of
   four narrow vertical cards, use a 2x2 editorial layout... The result
   should feel like a large product story rather than four small
   cards"). No connector track / traveling pulse / arrows here anymore —
   see the HTML comment above this section for why; the grid's own
   reading order (top-left -> bottom-right) plus the 01-04 numbering is
   the "very subtle visual progression" the spec still allows. */
.ov-wf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1680px; margin: 0 auto;
}
.ov-wf-cell {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease, background .3s ease, border-color .3s ease;
  outline: none;
}
.ov-wf-cell.ov-vis { opacity: 1; transform: translateY(0); }
/* Hover/focus prominence (spec: "On hover: image slightly scales,
   container slightly lifts, accent becomes more visible, typography
   becomes slightly stronger") — keyboard-focusable (tabindex="0" in the
   markup) so this works via focus too, not mouse-only. */
.ov-wf-cell:hover, .ov-wf-cell:focus-visible {
  background: rgba(182,255,59,.04);
  border-color: rgba(182,255,59,.25);
  transform: translateY(-4px);
}
.ov-wf-cell:focus-visible { box-shadow: 0 0 0 2px rgba(182,255,59,.4); }
.ov-wf-cell:hover .ov-wf-cell-media, .ov-wf-cell:focus-visible .ov-wf-cell-media { transform: scale(1.02); }
.ov-wf-cell:hover .ov-wf-cell-num, .ov-wf-cell:focus-visible .ov-wf-cell-num { color: var(--green); }
.ov-wf-cell:hover .ov-wf-cell-desc, .ov-wf-cell:focus-visible .ov-wf-cell-desc { color: rgba(255,255,255,.7); }

.ov-wf-cell-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.ov-wf-cell-num { font-size: 13px; font-weight: 800; color: rgba(182,255,59,.6); font-variant-numeric: tabular-nums; transition: color .3s ease; }
.ov-wf-cell-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0; }
.ov-wf-cell-desc { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.5); margin: 0 0 24px; transition: color .3s ease; }

/* Real, LARGE per-step media area (spec: "The current workflow
   cards/images are too small... enough visual area to actually
   communicate something. Avoid tiny screenshots"). A wide 16:10 ratio
   gives each cell substantial visual area inside the 2-column grid.
   Each step's content is a real inline SVG conceptual visualization
   (see .ov-wf-viz-* below) — not a real product screenshot and not a
   fabricated performance number, just an abstract diagram of what that
   step does (spec section 12: "create the visual content directly in
   HTML/CSS/SVG... these can be conceptual visualizations"). */
.ov-wf-cell-media {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* Centers content within the space BELOW the 30px winbar, not the
     full box — without this, flex-centered content (the feed/adcard/
     launch-wrap, all real HTML now, not just SVG) can ride up under the
     winbar's chrome on shorter boxes (found on mobile via screenshot,
     the Launch card's campaign chip was overlapping "DEPLOYMENT"). */
  padding-top: 30px;
  transition: transform .4s ease;
}
.ov-wf-cell-media svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Shared "product window" chrome across all four visuals (spec: "The
   four cards should feel like miniature windows into ORIVEN itself") —
   the same thin title-bar treatment on every card is what makes them
   read as one coherent, premium system rather than four separate
   diagrams each doing their own thing. */
.ov-wfv-winbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.07);
}
/* Familiar red/yellow/green window-control treatment -- restrained
   opacity/saturation so these read as a tiny nod to "real app window"
   without competing with the one ORIVEN Electric Lime accent used
   everywhere else. These three colors are scoped to this one decorative
   spot only, never reused elsewhere in the brand system. */
.ov-wfv-winbar-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.16); }
.ov-wfv-winbar-dot:nth-child(1) { background: rgba(255,95,86,.55); }
.ov-wfv-winbar-dot:nth-child(2) { background: rgba(255,189,46,.55); }
.ov-wfv-winbar-dot:nth-child(3) { background: rgba(39,201,63,.5); }
.ov-wfv-winbar-label {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.32);
}

/* ══════════════════════════════════════════════════════════════════
   ACTUAL VISUAL FIXES pass — full rebuild. Each card is now ONE real
   interface idea (spec section 16: "one strong visual idea per card"),
   not a diagram assembled from dots/lines/bars. Shared vocabulary:
   Obsidian card, Deep Moss surface where a block is called for, Snow
   only for the Create card's actual creative canvas, Electric Lime for
   the one active/highlighted state, Pure White for primary text.
   ══════════════════════════════════════════════════════════════════ */

/* Small floating readout chips (Improve) — real UI-like labels overlaid
   on the diagram (spec: "use actual UI-like elements"). */
.ov-wfv-chip {
  position: absolute; transform: translate(-50%,-50%) scale(.94);
  background: rgba(8,8,8,.88); border: 1px solid rgba(182,255,59,.35);
  border-radius: 9px; padding: 7px 12px;
  display: flex; flex-direction: column; gap: 2px;
  white-space: nowrap; backdrop-filter: blur(2px);
  /* Delay pushed to land right after the trend line finishes drawing
     (see .ov-wfv-trend's ~1.3s draw-in below) -- these read as results
     of the completed trend, not decorations appearing mid-draw. */
  opacity: 0; transition: opacity .5s ease 1.4s, transform .5s ease 1.4s;
  z-index: 1;
}
.ov-wf-cell.ov-vis .ov-wfv-chip { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.ov-wfv-chip-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.ov-wfv-chip-improve-2 { transition-delay: 1.6s; }

/* ── Research: a real signal feed, one row pulled forward as the
   selected insight — reads as an actual intelligence-panel list, not a
   network diagram of dots and lines. ── */
.ov-wfv-feed {
  width: 78%; display: flex; flex-direction: column; gap: 9px;
  opacity: 0; transition: opacity .5s ease;
}
.ov-wf-cell.ov-vis .ov-wfv-feed { opacity: 1; }
.ov-wfv-feed-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.45);
  transform: translateX(0) scale(1); transition: transform .5s cubic-bezier(.16,1,.3,1), background .4s ease, border-color .4s ease;
}
.ov-wfv-feed-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); flex-shrink: 0; transition: background .4s ease, box-shadow .4s ease; }
.ov-wfv-feed-row-active {
  color: #fff; background: rgba(182,255,59,.06); border-color: rgba(182,255,59,.4);
  transform: translateX(6px) scale(1.03);
}
.ov-wfv-feed-row-active .ov-wfv-feed-dot { background: var(--green); box-shadow: 0 0 8px rgba(182,255,59,.7); }
.ov-wfv-feed-tag {
  margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--oriven-text-dark, #171717); background: var(--green); padding: 4px 9px; border-radius: 20px; white-space: nowrap;
  /* Appears as its own small "detection" beat, slightly after the card
     itself has revealed -- reads as a live result landing, not just
     static label text that was always there. One-time, not looping. */
  opacity: 0; transform: scale(.82);
  transition: opacity .4s ease .35s, transform .4s cubic-bezier(.34,1.4,.64,1) .35s;
}
.ov-wf-cell.ov-vis .ov-wfv-feed-tag { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .ov-wf-cell.ov-vis .ov-wfv-feed-row-active { animation: ovWfFeedPulse 3s ease-in-out .8s infinite; }
  /* The two non-active rows get a brief highlight pass, timed with the
     scanline below sweeping past them -- together they read as ORIVEN
     actively checking each signal before settling on the real one. */
  .ov-wf-cell.ov-vis .ov-wfv-feed-row:not(.ov-wfv-feed-row-active):nth-child(1) { animation: ovWfFeedScan 4.5s ease-in-out .3s infinite; }
  .ov-wf-cell.ov-vis .ov-wfv-feed-row:not(.ov-wfv-feed-row-active):nth-child(3) { animation: ovWfFeedScan 4.5s ease-in-out 1.9s infinite; }
}
@keyframes ovWfFeedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182,255,59,0); }
  50%      { box-shadow: 0 0 0 6px rgba(182,255,59,.06); }
}
@keyframes ovWfFeedScan {
  0%, 90%, 100% { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
  6% { border-color: rgba(182,255,59,.3); background: rgba(182,255,59,.04); }
}

/* Soft scanline sweeping through the signal feed once per cycle -- the
   clearest, most restrained way to say "ORIVEN is actively analyzing"
   without a spinner or a loading bar. Purely decorative (aria-hidden,
   pointer-events: none), so it costs nothing functionally under reduced
   motion -- it simply never animates and stays fully transparent. */
.ov-wfv-scanline {
  position: absolute; left: 6%; right: 6%; top: 14%;
  height: 15%; border-radius: 8px;
  background: linear-gradient(180deg, transparent, rgba(182,255,59,.16), transparent);
  opacity: 0; pointer-events: none; z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .ov-wf-cell.ov-vis .ov-wfv-scanline { animation: ovWfScan 4.5s ease-in-out .3s infinite; }
}
@keyframes ovWfScan {
  0%   { top: 14%; opacity: 0; }
  10%  { opacity: .9; }
  55%  { top: 78%; opacity: .9; }
  68%  { opacity: 0; }
  100% { top: 78%; opacity: 0; }
}

/* ── Create: the creative itself, full size — no scattered dots or
   connecting lines around it, the card IS the visual. Deep Moss
   surface (spec section 11's color correction), Pure White structure,
   Electric Lime reserved for the CTA only. ── */
.ov-wfv-adcard {
  position: relative;
  background: var(--oriven-accent-dark, #26331A); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 16px 36px -14px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.ov-wfv-adcard-lg { width: 72%; height: 76%; }
.ov-wf-cell.ov-vis .ov-wfv-adcard { opacity: 1; transform: translateY(0) scale(1); }
/* Internal elements stagger in one after another, after the card itself
   has landed -- reads as the creative assembling piece by piece (meta ->
   hook -> visual -> CTA) rather than the whole card just appearing as
   one flat block. Same restrained translateY+opacity language as every
   other reveal in this section, just applied per-element. */
.ov-wfv-adcard-meta, .ov-wfv-adcard-hook, .ov-wfv-adcard-visual, .ov-wfv-adcard-cta {
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.ov-wfv-adcard-meta { transition-delay: .15s; }
.ov-wfv-adcard-hook { transition-delay: .25s; }
.ov-wfv-adcard-visual { transition-delay: .35s; }
.ov-wfv-adcard-cta { transition-delay: .45s; }
.ov-wf-cell.ov-vis .ov-wfv-adcard-meta,
.ov-wf-cell.ov-vis .ov-wfv-adcard-hook,
.ov-wf-cell.ov-vis .ov-wfv-adcard-visual,
.ov-wf-cell.ov-vis .ov-wfv-adcard-cta { opacity: 1; transform: translateY(0); }
.ov-wfv-adcard-meta { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: .02em; }
.ov-wfv-adcard-hook { display: flex; flex-direction: column; gap: 4px; }
.ov-wfv-adcard-eyebrow { color: rgba(255,255,255,.5) !important; }
.ov-wfv-adcard-headline { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.ov-wfv-adcard-visual {
  position: relative;
  flex: 1; min-height: 0; border: 1.5px dashed rgba(255,255,255,.22); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.35);
}
/* Subtle shimmer sweep -- suggests the creative is actively being
   generated inside this placeholder, not just a static dashed box. */
.ov-wfv-adcard-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .ov-wf-cell.ov-vis .ov-wfv-adcard-visual::after { animation: ovWfShimmer 3.6s ease-in-out 1s infinite; }
}
@keyframes ovWfShimmer {
  0%, 30%  { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
.ov-wfv-adcard-cta {
  align-self: flex-start; background: var(--green); color: var(--oriven-text-dark, #171717);
  font-size: 12px; font-weight: 700; padding: 7px 16px; border-radius: 20px;
}

/* ── Launch: a campaign-preview card handing off into a real deployment
   checklist — each destination checks in on its own beat, like watching
   a real publish flow complete, not a node graph of connected circles. ── */
.ov-wfv-launch-wrap {
  width: 76%; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transition: opacity .5s ease;
}
.ov-wf-cell.ov-vis .ov-wfv-launch-wrap { opacity: 1; }
.ov-wfv-launch-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--green); color: var(--oriven-text-dark, #171717);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 10px 26px -10px rgba(182,255,59,.35);
}
.ov-wfv-launch-card .ov-wfv-chip-eyebrow { color: rgba(23,23,23,.6); }
.ov-wfv-launch-card-name { font-size: 15px; font-weight: 800; }
.ov-wfv-deploy-list { display: flex; flex-direction: column; gap: 7px; }
.ov-wfv-deploy-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.4);
  transition: color .4s ease, border-color .4s ease;
}
.ov-wfv-deploy-check {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.25); position: relative;
  transition: background .4s ease, border-color .4s ease;
}
.ov-wfv-deploy-check::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 4px; border-left: 1.5px solid var(--oriven-text-dark, #171717); border-bottom: 1.5px solid var(--oriven-text-dark, #171717);
  transform: translateY(-1px) rotate(-45deg); opacity: 0; transition: opacity .2s ease;
}
.ov-wfv-deploy-name { flex-shrink: 0; }
/* Small status readout per platform, swapping from Queued -> Live in
   the same beat the checkmark ticks on -- reads as an actual publish
   flow completing per destination, not just a checklist filling in. */
.ov-wfv-deploy-status {
  margin-left: auto; position: relative;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; min-width: 40px; height: 12px;
}
.ov-wfv-status-queued, .ov-wfv-status-live {
  position: absolute; right: 0; top: 0; transition: opacity .3s ease;
}
.ov-wfv-status-queued { color: rgba(255,255,255,.35); opacity: 1; }
.ov-wfv-status-live { color: var(--green); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ov-wf-cell.ov-vis .ov-wfv-deploy-check { animation: ovWfDeployCheck 6s ease-in-out infinite; animation-delay: calc(.4s + var(--d) * .5s); }
  .ov-wf-cell.ov-vis .ov-wfv-deploy-row { animation: ovWfDeployRow 6s ease-in-out infinite; animation-delay: calc(.4s + var(--d) * .5s); }
  .ov-wf-cell.ov-vis .ov-wfv-status-queued { animation: ovWfStatusQueued 6s ease-in-out infinite; animation-delay: calc(.4s + var(--d) * .5s); }
  .ov-wf-cell.ov-vis .ov-wfv-status-live { animation: ovWfStatusLive 6s ease-in-out infinite; animation-delay: calc(.4s + var(--d) * .5s); }
}
@keyframes ovWfStatusQueued { 0%, 9% { opacity: 1; } 12%, 100% { opacity: 0; } }
@keyframes ovWfStatusLive { 0%, 9% { opacity: 0; } 12%, 100% { opacity: 1; } }
@keyframes ovWfDeployCheck {
  0%, 7% { background: transparent; border-color: rgba(255,255,255,.25); }
  10%, 100% { background: var(--green); border-color: var(--green); }
}
@keyframes ovWfDeployRow {
  0%, 7% { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.07); }
  10%, 100% { color: #fff; border-color: rgba(182,255,59,.25); }
}
/* The checkmark itself only needs a plain opacity toggle in sync with
   the fill above — same keyframe timing, simplest as its own rule. */
@media (prefers-reduced-motion: no-preference) {
  .ov-wf-cell.ov-vis .ov-wfv-deploy-check::after { animation: ovWfDeployMark 6s ease-in-out infinite; animation-delay: calc(.4s + var(--d) * .5s); }
}
@keyframes ovWfDeployMark { 0%, 9% { opacity: 0; } 12%, 100% { opacity: 1; } }

/* ── Improve: one smooth trend line with a single highlighted state
   change — not a bar chart. The line draws itself left to right on
   reveal (communicating LAUNCH -> DATA -> LEARNING), the area fill and
   endpoint land right as the line finishes, then the endpoint settles
   into its steady ambient pulse -- one continuous beat, not three
   unrelated effects. ── */
.ov-wfv-trend { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2; stroke-linecap: round; }
.ov-wfv-trend-fill { fill: url(#wfTrendGrad); stroke: none; }
.ov-wfv-trend-point { fill: var(--green); filter: drop-shadow(0 0 6px rgba(182,255,59,.7)); }
@media (prefers-reduced-motion: no-preference) {
  .ov-wfv-trend { stroke-dasharray: 500; stroke-dashoffset: 500; }
  .ov-wf-cell.ov-vis .ov-wfv-trend { animation: ovWfTrendDraw 1.3s cubic-bezier(.16,1,.3,1) .15s forwards; }
  .ov-wfv-trend-fill { opacity: 0; }
  .ov-wf-cell.ov-vis .ov-wfv-trend-fill { opacity: 1; transition: opacity .6s ease 1.3s; }
  .ov-wfv-trend-point { opacity: 0; }
  .ov-wf-cell.ov-vis .ov-wfv-trend-point { animation: ovWfTrendPointIn .4s ease 1.3s both, ovWfTrendPulse 2.6s ease-in-out 1.7s infinite; }
}
@keyframes ovWfTrendDraw { to { stroke-dashoffset: 0; } }
@keyframes ovWfTrendPointIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovWfTrendPulse {
  0%, 100% { r: 5; opacity: 1; }
  50%      { r: 7; opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .ov-wf-cell, .ov-wf-cell-num, .ov-wf-cell-desc, .ov-wf-cell-media { transition: none; }
  .ov-wf-cell:hover, .ov-wf-cell:focus-visible { transform: none; }
  .ov-wf-cell:hover .ov-wf-cell-media, .ov-wf-cell:focus-visible .ov-wf-cell-media { transform: none; }
  .ov-wfv-chip { transition: none; opacity: 1; }
  .ov-wfv-adcard { transition: none; opacity: 1; transform: none; }
  .ov-wfv-adcard-meta, .ov-wfv-adcard-hook, .ov-wfv-adcard-visual, .ov-wfv-adcard-cta { transition: none; opacity: 1; transform: none; }
  .ov-wfv-feed { transition: none; opacity: 1; }
  .ov-wfv-feed-row, .ov-wfv-feed-row-active { transition: none; animation: none; }
  .ov-wfv-feed-tag { transition: none; opacity: 1; transform: none; }
  .ov-wfv-scanline { display: none; }
  .ov-wfv-launch-wrap { transition: none; opacity: 1; }
  .ov-wfv-deploy-check, .ov-wfv-deploy-row, .ov-wfv-deploy-check::after { animation: none !important; }
  .ov-wfv-deploy-check { background: var(--green); border-color: var(--green); }
  .ov-wfv-deploy-check::after { opacity: 1; }
  .ov-wfv-deploy-row { color: #fff; border-color: rgba(182,255,59,.25); }
  /* Settled "deployed" state to match the checkmark above, instead of
     the mid-sequence Queued/Live crossfade. */
  .ov-wfv-status-queued, .ov-wfv-status-live { animation: none !important; }
  .ov-wfv-status-queued { opacity: 0; }
  .ov-wfv-status-live { opacity: 1; }
  .ov-wfv-trend-point { animation: none; }
}

@media (max-width: 900px) {
  .ov-wf-grid { grid-template-columns: 1fr; gap: 20px; }
  .ov-wf-cell { padding: 24px; }
}
@media (max-width: 480px) {
  .ov-path-section { padding: 64px 20px; }
  .ov-wf-cell { padding: 20px; border-radius: 18px; }
  /* A taller box (16:12 instead of 16:10) plus tighter internal spacing
     — the new real-UI content (feed rows, the deploy checklist, the
     creative card) is taller than the old thin SVG lines were, and a
     screenshot on a real phone caught it clipping against the box's
     bottom edge without this. */
  .ov-wf-cell-media { aspect-ratio: 16 / 14; }
  .ov-wfv-feed { gap: 6px; }
  .ov-wfv-feed-row { padding: 10px 12px; font-size: 12px; }
  .ov-wfv-adcard-lg { height: 84%; }
  .ov-wfv-adcard { padding: 14px; gap: 7px; }
  .ov-wfv-adcard-headline { font-size: 13px; }
  .ov-wfv-launch-wrap { gap: 8px; width: 84%; }
  .ov-wfv-launch-card { padding: 8px 12px; }
  .ov-wfv-launch-card-name { font-size: 12.5px; }
  .ov-wfv-deploy-list { gap: 4px; }
  .ov-wfv-deploy-row { padding: 6px 12px; font-size: 11px; gap: 8px; }
  .ov-wfv-deploy-check { width: 14px; height: 14px; }
}

/* ══════════════════════════════════════════════════════════════════
   Final Marketing Website Structure pass — "Everything Oriven Does" as
   ONE connected workspace composition: a rail of 5 capability tabs, a
   set of connector lines, and one central preview panel whose content
   swaps on hover/focus/click. Explicitly not a radial wheel/spider
   chart — a straight rail + panel, one accent color throughout.
   ══════════════════════════════════════════════════════════════════ */
.ov-pillars-section { padding: 100px 48px; background: #07070A; border-bottom: 1px solid rgba(255,255,255,.05); }
.ov-pillars-inner { max-width: 1640px; margin: 0 auto; } /* widened to fit the now-dominant 1600px product showcase */
.ov-pillars-head { text-align: center; margin-bottom: 48px; }

/* Final Visual Polish pass — the whole workspace is now a LARGE LIGHT
   rounded product surface on the dark grid, the same contrast principle
   as the "Experience Oriven Yourself" panel (spec: "dark grid background
   + large rounded light content block... use this contrast more
   confidently"). Rail and panel are still ONE integrated frame (kept
   from the previous pass — "the left navigation should feel integrated
   into the large media container"), just re-themed light instead of
   dark. The inner video STAGE itself stays dark on purpose (like a real
   screen/device viewport inside a light bezel) so a colorful play button
   and the empty-state icon both keep working exactly as before with no
   contrast rework needed there. */
.ov-workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1680px; margin: 0 auto;
  min-height: 460px;
  background: var(--oriven-accent-dark, #26331A); /* Deep Moss — dark ORIVEN accent surface, not Snow */
  border-radius: 32px;
  overflow: hidden;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.ov-workspace.ov-vis { opacity: 1; transform: translateY(0); }

/* Final Brand, Visual System & Connected Advertising Experience
   Refinement pass — the six per-capability accent colors are gone (spec:
   "REMOVE the previous capability-specific color treatment... That
   system is obsolete... ORIVEN should feel like ONE visual system, not
   six unrelated products"). Every --cap-color reference below now falls
   back to var(--green) (Electric Lime) for every capability alike;
   capabilities are differentiated by label, icon and state, not hue. */
.ov-ws-rail {
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.ov-ws-tab {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 15px 18px; border-radius: 12px;
  font: inherit; text-align: left; text-decoration: none; color: rgba(255,255,255,.55);
  background: none; border: 1px solid transparent; cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.ov-ws-tab-ico { flex-shrink: 0; color: rgba(255,255,255,.4); transition: color .25s ease; }
.ov-ws-tab span { font-size: 15px; font-weight: 600; }
.ov-ws-tab:hover, .ov-ws-tab:focus-visible { color: rgba(255,255,255,.9); }
/* Deliberately subtle active state — spec: "Avoid excessive glow
   effects... The interaction should feel premium and intentional," not
   a bright highlight. A thin left accent bar + faint tint, nothing
   more — the ONE ORIVEN accent (Electric Lime), the same for every
   capability alike now that the six-color system is gone. */
.ov-ws-tab-active {
  color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1);
  box-shadow: inset 2px 0 0 var(--green);
}
.ov-ws-tab-active .ov-ws-tab-ico, .ov-ws-tab:hover .ov-ws-tab-ico, .ov-ws-tab:focus-visible .ov-ws-tab-ico { color: var(--green); }
.ov-ws-tab:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(182,255,59,.4); }

.ov-ws-panel {
  position: relative;
  padding: 32px 36px;
  display: flex; align-items: center;
}
.ov-ws-content {
  display: none; flex-direction: column;
  width: 100%;
  animation: ovWsFade .35s ease;
}
.ov-ws-content-active { display: flex; }
@keyframes ovWsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ov-ws-panel-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.ov-ws-panel-title { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0 0 8px; }
.ov-ws-panel-desc { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.65); margin: 0; max-width: 520px; }

/* Video-ready media box — the main stage, large and cinematic (16:9,
   the real aspect ratio a screen-recorded product demo will actually be
   shot in), kept dark like a real screen even though the surrounding
   panel is now light — the "bezel vs. screen" contrast reads as a real
   device/video player, not an inconsistency. Genuinely EMPTY except for
   the real video once one exists at OV_WS_VIDEOS[cap] (checked lazily —
   see the workspace IIFE) or the clean .ov-ws-empty placeholder
   otherwise — no fake UI/mockup content lives in here. */
.ov-ws-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; margin-bottom: 22px;
  background: var(--oriven-secondary, #080808); border: 1px solid rgba(255,255,255,.08);
}
.ov-ws-media::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 20%, rgba(182,255,59,.14), transparent 65%);
}
.ov-ws-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s ease; z-index: 2;
}
/* Product films loading pass — layers, bottom to top: the faint icon
   placeholder, the poster (the film's own first frame, assets/films/
   posters/), the video, then the play / retry controls. The poster shows
   as soon as it has loaded; the video only fades in once it has a decoded
   frame (ov-ws-frame), so the poster → video change is seamless (same
   frame) — never a black or empty box while the film loads. */
.ov-ws-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease; z-index: 1;
}
.ov-ws-poster-ok .ov-ws-poster { opacity: 1; }
.ov-ws-poster-ok .ov-ws-empty { opacity: 0; }
.ov-ws-frame .ov-ws-video { opacity: 1; }
.ov-ws-has-video .ov-ws-empty { opacity: 0; }
/* Clean, neutral placeholder — a large faint outline of the capability's
   own icon, nothing else. Shown by default and whenever no real video
   exists yet; never a broken-media icon, never fabricated UI.
   Product Films pass — bug fix: purely decorative (aria-hidden), but sits
   later in DOM order than .ov-ws-play, so even at opacity:0 it silently
   intercepted the play button's clicks (real, verified via Playwright —
   the button never received the click once a video existed). pointer-
   events:none makes it truly inert, matching its aria-hidden intent. */
.ov-ws-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.14); transition: opacity .3s ease; pointer-events: none;
}
.ov-ws-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: #0a0a0d;
  display: none; align-items: center; justify-content: center;
  padding-left: 3px; /* optically center the triangle */
  border: none; cursor: pointer; z-index: 3;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transition: transform .2s ease, filter .2s ease;
}
/* Only when the film won't start by itself (reduced motion, data saver,
   or the browser blocked muted autoplay) — not as a flash while it loads. */
.ov-ws-has-video.ov-ws-tap .ov-ws-play { display: flex; }
/* A film that failed (or is taking unusually long) keeps its poster and
   offers a retry instead of leaving the frame stuck. */
.ov-ws-retry {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  display: none; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(8,8,8,.82); color: #f2f2ee;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer;
}
.ov-ws-retry:hover { border-color: rgba(182,255,59,.6); }
.ov-ws-retry:focus-visible { outline: 2px solid #B6FF3B; outline-offset: 2px; }
.ov-ws-error .ov-ws-retry { display: inline-flex; }
.ov-ws-error .ov-ws-play { display: none; }
.ov-ws-playing .ov-ws-play { display: none; }
.ov-ws-play:hover { transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.08); }
/* The global button:active press (transform: scale(.97)) would replace the
   centring translate, so the button jumped 32px away under the pointer
   mid-press and the release landed on the video — the click never reached
   the button (always with reduced motion, on slower presses otherwise). */
.ov-ws-play:active:not(:disabled) { transform: translate(-50%, -50%) scale(.97); }
.ov-ws-retry:active:not(:disabled) { transform: translateX(-50%) scale(.97); }
.ov-ws-play:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 0 0 5px rgba(182,255,59,.5); }

@media (prefers-reduced-motion: reduce) {
  .ov-ws-content { animation: none; }
  .ov-ws-tab, .ov-ws-tab-ico, .ov-ws-video, .ov-ws-poster, .ov-ws-play, .ov-ws-empty { transition: none; }
}

@media (max-width: 900px) {
  .ov-workspace { grid-template-columns: 1fr; min-height: 0; }
  .ov-ws-rail { flex-direction: row; flex-wrap: wrap; justify-content: center; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ov-ws-tab { padding: 10px 14px; }
  .ov-ws-panel { padding: 20px; min-height: 0; }
  /* Product Films pass — the real films are genuinely 16:9 (verified:
     1280x720 for all six); the previous 16:10 override here predates real
     footage and would crop the actual product UI on tablet. Aspect ratio
     now stays 16:9 at every breakpoint (inherited from the base rule). */
  .ov-ws-play { width: 54px; height: 54px; }
}
@media (max-width: 480px) {
  .ov-pillars-section { padding: 64px 20px; }
  .ov-wf-head { padding: 0 20px; margin-bottom: 48px; }
  .ov-ws-rail { gap: 8px; }
  .ov-ws-tab { padding: 9px 12px; }
  .ov-ws-tab span { font-size: 13px; }
  .ov-ws-panel { padding: 14px; }
  .ov-ws-panel-title { font-size: 21px; }
  /* Same reasoning as the 900px breakpoint above — the previous 4:3
     override predates real 16:9 footage and would crop it on mobile. */
}

/* Mobile Polish pass — phone-only (≤600px; the 900px breakpoint above
   still governs tablet, untouched). The film itself becomes the
   section's actual focal point instead of a small preview squeezed
   under a tall, wrapped 6-item tab grid:
   - .ov-ws-rail becomes a single-row, horizontally-scrolling strip
     (icons dropped — text-only pills read faster in a scroll strip and
     the row stays genuinely one line instead of wrapping to two/three)
     so the selector claims minimal, fixed vertical height regardless of
     which of the 6 items is active or how the labels wrap on a wider
     phone.
   - .ov-ws-media (the video) bleeds to the card's own edges via a
     negative margin equal to .ov-ws-panel's own padding — same
     established "bleed past the card's padding" technique already used
     elsewhere on this page (e.g. the Meta ad-card media on mobile) —
     instead of sitting inset inside it. Combined with reduced outer
     section/panel padding, this is what actually gives the film
     meaningfully more real width, not just `width:100%` inside an
     already-narrow box.
   - Six real films, six-item order and every video src are completely
     untouched — this is presentation-only. */
@media (max-width: 600px) {
  .ov-pillars-section { padding: 48px 14px; }
  .ov-workspace { border-radius: 20px; }
  .ov-ws-rail {
    position: relative;
    flex-direction: row; flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 8px;
    padding: 10px 8px 10px 12px;
  }
  .ov-ws-rail::-webkit-scrollbar { display: none; }
  /* Scroll discoverability — a restrained edge fade toward the card's
     own Deep Moss background (not a hard cut), shown/hidden by JS
     (index.html, updateRailFades) based on actual scroll position, not
     a permanent decoration. pointer-events:none so it never blocks
     touch scrolling underneath it. Paired with the rail's own right
     padding (8px, tighter than the left's 12px) so the next pill is
     always genuinely, deliberately partially visible at rest — the
     fade reinforces that cut-off edge rather than being the only cue. */
  .ov-ws-rail::before,
  .ov-ws-rail::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 28px;
    pointer-events: none; z-index: 1;
    opacity: 0; transition: opacity .2s ease;
  }
  .ov-ws-rail::before {
    left: 0;
    background: linear-gradient(to right, var(--oriven-accent-dark, #26331A), transparent);
  }
  .ov-ws-rail::after {
    right: 0;
    background: linear-gradient(to left, var(--oriven-accent-dark, #26331A), transparent);
  }
  .ov-ws-rail.ov-ws-rail-fade-l::before { opacity: 1; }
  .ov-ws-rail.ov-ws-rail-fade-r::after { opacity: 1; }
  .ov-ws-tab {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px;
    border-radius: 999px;
  }
  .ov-ws-tab-ico { display: none; }
  .ov-ws-tab span { font-size: 13px; }
  .ov-ws-panel { padding: 12px 12px 16px; }
  .ov-ws-media {
    margin: -12px -12px 14px;
    width: calc(100% + 24px);
    border-radius: 0;
  }
  .ov-ws-panel-eyebrow { font-size: 11px; margin-bottom: 6px; }
  .ov-ws-panel-title { font-size: 19px; margin-bottom: 6px; }
  .ov-ws-panel-desc { font-size: 13.5px; }
}


.ov-wf-inner {
  max-width: 1400px; /* Redesign: was 1100px */
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ov-wf-inner-rev { direction: rtl; }
.ov-wf-inner-rev > * { direction: ltr; }

/* Business/Teams — the one section deliberately mirrored end-to-end
   (visual left, text right, text itself right-aligned) to close out the
   Build -> Publish -> Scale alternating rhythm with a clean bookend. */
.ov-wf-text-r { text-align: right; }
.ov-wf-text-r .ov-wf-bullets { align-items: flex-end; }
.ov-wf-text-r .ov-wf-bullets li { padding-left: 0; padding-right: 20px; }
.ov-wf-text-r .ov-wf-bullets li::before { left: auto; right: 0; }
.ov-wf-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.ov-wf-h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin: 0 0 16px;
}
.ov-wf-desc {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0 0 22px;
}
.ov-wf-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-wf-bullets li {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.ov-wf-bullets li::before {
  content: '↗';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 11px;
  top: 1px;
}
.ov-btn-sm {
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 9px;
}

/* ── Connect visual ──────────────────────────────────────────── */
.ov-conn-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-conn-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-conn-card.ov-vis {
  opacity: 1;
  transform: translateY(0);
}
.ov-conn-card-left { display: flex; align-items: center; gap: 12px; }
.ov-conn-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.ov-conn-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 2px; }
.ov-conn-sub { font-size: 11px; color: rgba(255,255,255,.4); }
.ov-conn-badge { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .03em; }
.ov-conn-badge-grey { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: .03em; }
.ov-conn-stat-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  background: color-mix(in srgb, var(--green) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius: 14px;
  padding: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-conn-stat-row.ov-vis { opacity: 1; transform: translateY(0); }
.ov-conn-stat-val { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.ov-conn-stat-lbl { font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; font-weight: 600; }

/* ── Workspace framing + connection visual (Section 01) ──────── */
.ov-conn-workspace { display: flex; flex-direction: column; gap: 14px; }
.ov-conn-ws-head {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-conn-ws-head.ov-vis { opacity: 1; transform: translateY(0); }
.ov-conn-ws-mark {
  width: 20px; height: 20px; border-radius: 6px;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ov-conn-ws-mark svg { width: 11px; height: 11px; }
.ov-conn-ws-title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); flex: 1;
}
.ov-conn-ws-sync {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; color: color-mix(in srgb, var(--green) 75%, transparent);
}
.ov-conn-ws-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: ovWsPulse 2.2s ease-out infinite;
}
@keyframes ovWsPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); }
  70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 0%, transparent); }
}

.ov-conn-cards { position: relative; padding-left: 14px; }
.ov-conn-rail {
  position: absolute; top: 6px; bottom: 6px; left: 0;
  width: 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--green) 45%, transparent) 0%,
    color-mix(in srgb, var(--green) 12%, transparent) 100%);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.ov-conn-rail-dot {
  position: absolute; left: 50%; top: 0;
  width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 70%, transparent);
  animation: ovRailFlow 3.2s ease-in-out infinite;
}
@keyframes ovRailFlow {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-conn-ws-dot { animation: none; }
  .ov-conn-rail-dot { animation: none; top: 50%; opacity: .8; }
}

/* ── Discover visual ─────────────────────────────────────────── */
.ov-disc-mock {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}
.ov-disc-prompt {
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-disc-prompt-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.35); margin-bottom: 8px; }
.ov-disc-prompt-text { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; }
.ov-disc-results { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.ov-disc-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.ov-disc-card.ov-vis { opacity: 1; transform: translateY(0); }
.ov-disc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 7px;
}
.ov-disc-tag-aud { background: rgba(96,165,250,.12); color: #60a5fa; }
.ov-disc-tag-hook { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.ov-disc-tag-ins { background: rgba(251,191,36,.1); color: #fbbf24; }
.ov-disc-title { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 4px; line-height: 1.4; }
.ov-disc-body { font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.5; }

/* ── Create visual ───────────────────────────────────────────── */
.ov-create-mock {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}
.ov-cr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-cr-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.ov-cr-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  padding: 3px 8px;
  border-radius: 5px;
}
.ov-cr-asset {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.ov-cr-asset.ov-vis { opacity: 1; transform: translateY(0); }
.ov-cr-asset:last-child { border-bottom: none; }
.ov-cr-asset-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.3); min-width: 80px; padding-top: 2px; flex-shrink: 0; }
.ov-cr-asset-val { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.5; flex: 1; }
.ov-cr-score { display: flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(255,255,255,.4); flex-shrink: 0; white-space: nowrap; }
.ov-score-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ov-score-dot.ov-score-great { background: var(--green); }
.ov-score-dot.ov-score-ok { background: #fbbf24; }

/* ── Launch visual ───────────────────────────────────────────── */
.ov-launch-mock {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ov-lm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-lm-step.ov-vis { opacity: 1; transform: translateX(0); }
.ov-lm-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.ov-lm-num-done { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.ov-lm-num-active {
  background: var(--green); color: #000;
  transform-origin: center center;
  animation: ovLmPulse 2.2s cubic-bezier(.45,0,.55,1) infinite;
}
.ov-lm-num-inactive { background: rgba(255,255,255,.05); color: rgba(255,255,255,.25); }

/* Active step indicator — subtle continuous "in progress" pulse. Scale-only,
   fixed box size, so it never shifts the surrounding step layout. */
@keyframes ovLmPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
  .ov-lm-num-active { animation: none; }
}
.ov-lm-step-t { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.ov-lm-step.ov-lm-inactive .ov-lm-step-t { color: rgba(255,255,255,.3); }
.ov-lm-step-s { font-size: 11px; color: rgba(255,255,255,.35); }
.ov-lm-connector {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.08);
  margin: 0 0 0 14px;
}
.ov-lm-done-line { background: color-mix(in srgb, var(--green) 25%, transparent); }

/* ── Analyze visual ──────────────────────────────────────────── */
.ov-an-mock {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}
.ov-an-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ov-an-tabs { display: flex; gap: 0; }
.ov-an-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4);
  border-radius: 7px; cursor: default;
}
.ov-an-tab-active { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.ov-an-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ov-an-range { font-size: 11px; color: rgba(255,255,255,.3); font-weight: 500; }
.ov-an-kpis {
  display: grid; grid-template-columns: repeat(4,1fr);
  padding: 14px 16px;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-an-kpi { padding: 6px 0; }
.ov-an-kv { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: -.03em; }
.ov-an-kl { font-size: 10px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-top: 2px; }
.ov-an-table { padding: 0 0 8px; }
.ov-an-table-hdr {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 16px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ov-an-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 10px 16px;
  font-size: 12px; color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ov-an-row:last-child { border-bottom: none; }

/* ── Scale visual ────────────────────────────────────────────── */
.ov-scale-mock { display: flex; flex-direction: column; gap: 12px; }
.ov-sm-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 2px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-scale-mock.ov-vis .ov-sm-topbar { opacity: 1; transform: translateY(0); }
.ov-sm-topbar-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
.ov-sm-topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: ovSmPulseDot 1.6s ease-in-out infinite; }
.ov-sm-topbar-status { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); }
@keyframes ovSmPulseDot { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .ov-sm-topbar-dot { animation: none; } }

/* All three platforms shown as continuously, independently monitored —
   replaces the old single "hero variant" card treatment, which made two
   of the three platforms read as inert. */
.ov-sm-platforms {
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-sm-platforms.ov-vis { opacity: 1; transform: translateY(0); }
.ov-sm-plat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 11px 14px;
}
.ov-sm-plat-logo { display: flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.ov-sm-plat-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); flex: 1; }
.ov-sm-plat-live { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.ov-sm-plat-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: ovSmPulseDot 1.8s ease-in-out infinite; }
.ov-sm-plat:nth-child(2) .ov-sm-plat-live-dot { animation-delay: .3s; }
.ov-sm-plat:nth-child(3) .ov-sm-plat-live-dot { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .ov-sm-plat-live-dot { animation: none; opacity: .85; } }

/* Live activity feed — a genuine "system log" of optimization events,
   one row entering at a time (see the JS tick() in index.html), the
   older two rows dimming in place like a real notification feed rather
   than everything appearing at once. */
.ov-sm-feed {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 18px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease .08s, transform .5s ease .08s;
}
.ov-sm-feed.ov-vis { opacity: 1; transform: translateY(0); }
.ov-sm-feed-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.3); margin-bottom: 12px; }
.ov-sm-feed-rows { display: flex; flex-direction: column; gap: 11px; }
.ov-sm-feed-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; transition: opacity .3s ease; }
.ov-sm-feed-row:nth-child(1) { opacity: .95; }
.ov-sm-feed-row:nth-child(2) { opacity: .5; }
.ov-sm-feed-row:nth-child(3) { opacity: .26; }
.ov-sm-feed-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ov-sm-feed-plat { color: rgba(255,255,255,.55); font-weight: 600; flex-shrink: 0; }
.ov-sm-feed-sep { color: rgba(255,255,255,.25); }
.ov-sm-feed-txt { color: rgba(255,255,255,.9); font-weight: 600; }
.ov-sm-feed-row-flash { animation: ovSmFeedFlash .5s ease; }
@keyframes ovSmFeedFlash { 0% { opacity: 0; transform: translateX(-6px); } 100% { opacity: .95; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ov-sm-feed-row-flash { animation: none; } }

/* ══════════════════════════════════════════════════════════════════
   REDESIGN — Build → Publish → Scale workflow. Replaces the old
   Intelligence/Autopilot sections with three connected steps. Reuses
   .ov-wf-section/.ov-wf-inner/.ov-wf-text and (for Scale) the
   .ov-scale-mock/.ov-sm-platforms/.ov-sm-feed above as-is — the only
   new component CSS is below: .ov-build-mock/.ov-bm-*,
   .ov-pub-mock/.ov-pub-*, and .ov-workflow-connector/.ov-wfc-*.
   ══════════════════════════════════════════════════════════════════ */

/* ── Build visual — prompt → generating → finished ad, auto-cycling
   through three stacked panels. A miniature version of the real Oriven
   generation UI's own language (structured field: "value" lines, a
   green active-glow on the field still resolving) rather than a
   generic illustration — see app.html's campaign blueprint, which uses
   the same visual vocabulary at full scale. ── */
.ov-build-mock { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.ov-bm-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 280px;
  background: #08080a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.ov-bm-panel {
  position: absolute;
  inset: 0;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}
.ov-bm-panel.ov-bm-panel-active { opacity: 1; visibility: visible; }

.ov-bm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ov-bm-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: ovBmPulseDot 1.4s ease-in-out infinite; }

/* Stage 1 — prompt, typed in via a pure-CSS steps() typewriter that
   restarts each time this panel becomes active (see the JS toggle). */
.ov-bm-prompt-box { background: rgba(255,255,255,.044); border: 1.5px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 20px; min-height: 52px; display: flex; align-items: center; }
.ov-bm-prompt-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14.5px;
  color: rgba(255,255,255,.88);
  width: 0;
}
.ov-bm-panel-active .ov-bm-prompt-text { animation: ovBmType 2.2s steps(32, end) forwards; }
.ov-bm-cursor { display: inline-block; width: 2px; height: 16px; background: var(--green); margin-left: 2px; vertical-align: -3px; animation: ovBmBlink .9s steps(1) infinite; }

/* Stage 2 — generating (miniature campaign-blueprint style) */
.ov-bm-gen-lines { font-family: "SF Mono","Cascadia Code","Consolas",monospace; font-size: 12.5px; line-height: 2.1; }
.ov-bm-gen-line { color: rgba(255,255,255,.42); }
.ov-bm-gen-key { color: rgba(255,255,255,.4); }
.ov-bm-gen-colon { color: rgba(255,255,255,.22); }
.ov-bm-gen-val { color: var(--green); font-weight: 600; }
.ov-bm-gen-line-active .ov-bm-gen-val { animation: ovBmActivePulse 1.3s ease-in-out infinite; }

/* Stage 3 — the finished ad, styled to match the ad showcase wall's
   real card look. */
.ov-bm-result { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ov-bm-result-card {
  width: 100%;
  max-width: 320px;
  height: 168px;
  border-radius: 14px;
  background: #0c0c10;
  border: 1px solid rgba(251,188,5,.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-bm-dots { display: flex; gap: 8px; }
.ov-bm-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.15); transition: background .3s ease, transform .3s ease; }
.ov-bm-dot.ov-bm-dot-active { background: var(--green); transform: scale(1.35); }

@keyframes ovBmType { to { width: 27ch; } }
@keyframes ovBmBlink { 50% { opacity: 0; } }
@keyframes ovBmPulseDot { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes ovBmActivePulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ov-bm-prompt-text { animation: none !important; width: 27ch !important; }
  .ov-bm-cursor, .ov-bm-eyebrow-dot, .ov-bm-gen-line-active .ov-bm-gen-val { animation: none !important; }
}

/* ── Publish visual — one ad, branching to three platforms. Deliberately
   simple: a source card, a stem, a branch line, three targets — not a
   dashboard. ── */
.ov-pub-mock { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 620px; }

/* Entrance sequence, all keyed off .ov-pub-mock.ov-vis (the mock's own
   data-observe): the source card appears, then each platform's own
   connector draws in, sends a traveling pulse, and activates its node —
   one platform fully at a time, not a shared branch that reveals all
   three together. Deliberately slower than a typical UI transition so
   the sequence itself reads as "Oriven distributing this ad", not just
   decoration. No background glow — removed per design direction. */
.ov-pub-source {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 16px 24px;
  font-size: 16px; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s ease .1s, transform .6s cubic-bezier(.16,1,.3,1) .1s;
}
.ov-pub-mock.ov-vis .ov-pub-source { opacity: 1; transform: translateY(0); }
.ov-pub-source-ico { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--green) 14%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.ov-pub-flow { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 100%; padding-top: 12px; gap: 20px; }
.ov-pub-conn { display: flex; flex-direction: column; align-items: center; flex: 1; }

.ov-pub-conn-line {
  position: relative;
  width: 1.5px; height: 42px; background: rgba(255,255,255,.15);
  transform-origin: top; transform: scaleY(0);
  opacity: 0;
  transition: transform .5s cubic-bezier(.16,1,.3,1) var(--d), opacity .25s ease var(--d);
}
.ov-pub-mock.ov-vis .ov-pub-conn-line { transform: scaleY(1); opacity: 1; }
.ov-pub-conn-pulse {
  position: absolute; left: 50%; top: 0;
  width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--green);
  opacity: 0;
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--green) 65%, transparent);
}
.ov-pub-mock.ov-vis .ov-pub-conn-pulse { animation: ovPubPulseTravel .55s ease-out calc(var(--d) + .15s) 1; }
@keyframes ovPubPulseTravel { 0% { opacity: 1; top: 0; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }

.ov-pub-node {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  margin-top: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1) calc(var(--d) + .45s), transform .55s cubic-bezier(.16,1,.3,1) calc(var(--d) + .45s);
}
.ov-pub-mock.ov-vis .ov-pub-node { opacity: 1; transform: translateY(0); }
.ov-pub-target-logo { width: 68px; height: 68px; border-radius: 17px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.ov-pub-target-name { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.65); }
.ov-pub-target-status { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .ov-pub-source, .ov-pub-conn-line, .ov-pub-node {
    transition: opacity .3s ease !important;
    transform: none !important;
  }
  .ov-pub-conn-pulse { animation: none !important; opacity: 0 !important; }
}

/* ── Workflow connector — the ↓ thread between Build/Publish/Scale ── */
.ov-workflow-connector {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0;
  background: #07070A;
}
.ov-wfc-line { width: 1.5px; height: 22px; background: linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,.18)); }
.ov-wfc-arrow { color: var(--green); display: flex; opacity: .85; }
.ov-wfc-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); }

/* ── Social proof strip ──────────────────────────────────────── */
.ov-social-proof { padding: 72px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.ov-sp-wrap { max-width: 1300px; margin: 0 auto; padding: 0 48px; text-align: center; } /* Redesign: was 900px */
.ov-sp-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 36px; }
.ov-sp-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.ov-sp-stat {
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.ov-sp-stat.ov-vis { opacity: 1; transform: translateY(0); }
.ov-sp-stat:last-child { border-right: none; }
.ov-sp-stat-val { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -.04em; margin-bottom: 6px; }
.ov-sp-stat-lbl { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500; }

/* ── Staggered recurring glow (Section 04 stats) ─────────────── */
.ov-sp-glow { position: relative; }
.ov-sp-glow::before {
  content: '';
  position: absolute;
  inset: -8px -6px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--green) 18%, transparent) 0%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: ovSpGlow 4.5s ease-in-out infinite;
  animation-delay: var(--glow-delay, 0s);
}
@keyframes ovSpGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-sp-glow::before { animation: none !important; opacity: 0 !important; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ov-wf-inner { grid-template-columns: 1fr; gap: 40px; }
  .ov-wf-inner-rev { direction: ltr; }
  .ov-wf-text-r { text-align: left; }
  .ov-wf-text-r .ov-wf-bullets { align-items: flex-start; }
  .ov-wf-text-r .ov-wf-bullets li { padding-left: 20px; padding-right: 0; }
  .ov-wf-text-r .ov-wf-bullets li::before { left: 0; right: auto; }
  .ov-wf-h2 { font-size: 26px; }
  .ov-wf-section { padding: 64px 0; }
  .ov-sp-stats { grid-template-columns: repeat(2,1fr); }
  .ov-sp-stat:nth-child(2) { border-right: none; }
  .ov-sp-stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,.06); }
  .ov-sp-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.06); border-right: none; }
  .ov-an-kpis { grid-template-columns: repeat(2,1fr); }
  .ov-an-table-hdr, .ov-an-row { grid-template-columns: 2fr 1fr 1fr; }
  .ov-an-table-hdr span:last-child, .ov-an-row span:last-child { display: none; }
}
@media (max-width: 540px) {
  .ov-wf-inner { padding: 0 20px; }
  .ov-sp-wrap { padding: 0 20px; }
  .ov-sp-stats { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   ORIVEN v2 — PRODUCT REDESIGN CSS
   ══════════════════════════════════════════════════════════════ */

/* ── Hide legacy top nav + old sidebar ──────────────────────── */
.ap-nav { display: none !important; }
.ap-mob-nav { display: none !important; }
body > .ap-nav { display: none !important; }
#apMobNav { display: none !important; }

/* ── App shell: sidebar + workspace + AI panel ──────────────── */
.app {
  display: flex !important;
  flex-direction: row !important;
  height: 100vh !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.orv-sb {
  width: 280px;
  min-width: 280px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border-right: 1px solid var(--border, rgba(0,0,0,.07));
  flex-shrink: 0;
  z-index: 10;
  overflow: hidden;
}
body.dark-mode .orv-sb {
  background: #111113;
  border-right-color: rgba(255,255,255,.07);
}

.orv-sb-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 14px;
  cursor: default;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
  margin-bottom: 10px;
}
.orv-sb-logo-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.orv-sb-logo-name { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--charcoal, #18181A); }
body.dark-mode .orv-sb-logo-name { color: #fff; }

.orv-sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.orv-ni {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(0,0,0,.5);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  user-select: none;
  transition: color var(--orv-t, .16s), background var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
  letter-spacing: -.01em;
}
/* Premium Motion System — hover/active/glow all read var(--green), the
   same variable Settings' Accent Color picker overrides on <body>
   (settings.js:_applyAccent), so the sidebar automatically follows
   whichever accent the user has chosen instead of a hardcoded green. */
.orv-ni:hover { background: color-mix(in srgb, var(--green) 8%, transparent); color: var(--charcoal, #18181A); }
body.dark-mode .orv-ni { color: rgba(255,255,255,.45); }
body.dark-mode .orv-ni:hover { background: color-mix(in srgb, var(--green) 10%, transparent); color: rgba(255,255,255,.9); }
/* Light mode: solid lime background + near-black text/icon (--green-deep,
   the same "black-on-green" token .sub-pcard-btn-up already uses) -- the
   previous pale 10%-tint background + var(--gm) lime TEXT read as
   green-on-green with poor contrast. Dark mode below is unchanged (a
   subtle tinted background with bright lime text already reads correctly
   against a near-black surface). */
.orv-ni.orv-active {
  background: var(--green);
  color: var(--green-deep);
  font-weight: 600;
}
body.dark-mode .orv-ni.orv-active { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.orv-ni.orv-active::before {
  content: '';
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity var(--orv-t, .16s), transform var(--orv-t, .16s);
}
.orv-ni.orv-active::before { opacity: 1; transform: scaleY(1); }

/* Fixed-size icon "slot" -- width/height never change, so every hover
   micro-interaction below (per icon, see the Icon Motion System further
   down) animates purely via transform/opacity/filter inside this box and
   can never shift the label or any other row. */
.orv-ni svg {
  width: 17px; height: 17px; flex-shrink: 0; opacity: .55;
  transition: opacity var(--orv-t, .16s), transform var(--orv-nit, .18s) cubic-bezier(.22,.61,.36,1), filter var(--orv-nit, .18s) ease;
}
.orv-ni:hover svg, .orv-ni.orv-active svg { opacity: 1; }
.orv-ni-label { display: inline-block; }

.orv-sb-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--border, rgba(0,0,0,.07));
  padding: 10px 12px;
}
body.dark-mode .orv-sb-bottom { border-top-color: rgba(255,255,255,.07); }

.orv-sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: default;
  transition: background .12s;
  margin-top: 4px;
}
.orv-sb-user:hover { background: color-mix(in srgb, var(--green) 8%, transparent); }
body.dark-mode .orv-sb-user:hover { background: color-mix(in srgb, var(--green) 10%, transparent); }
.orv-sb-avatar {
  width: 30px; height: 30px; border-radius: 9px;
  background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green-text);
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.dark-mode .orv-sb-avatar { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.orv-sb-user-info { min-width: 0; }
.orv-sb-user-name { font-size: 12.5px; font-weight: 600; color: var(--charcoal, #18181A); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dark-mode .orv-sb-user-name { color: rgba(255,255,255,.9); }
.orv-sb-user-plan { font-size: 11px; color: var(--muted, rgba(0,0,0,.45)); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Icon Motion System — one distinct micro-interaction per nav item ──
   Each targets only the icon's own transform/filter, never layout
   properties, so the fixed 17x17 slot above never resizes and the label
   never moves. var(--orv-nit) = 180ms, inside the spec's 150-220ms range.
   A few items below need a one-shot sequence (rotate a full 360°, pulse
   up then settle, dim then relight) rather than a simple two-state hover
   hold -- those use a keyframe `animation` (plays once per hover-in) instead
   of a `transition`; the base `.orv-ni svg` transition already declared
   above still handles the smooth return to rest on hover-out. */
:root { --orv-nit: 180ms; }

/* Create / Launch — real overflow-hidden clip slots for the two icons
   below whose motion travels fully out of and back into their own box
   (Research's scale and everything above stays unclipped, matching the
   existing "transform/opacity/filter only, box never resizes" rule).
   Sized only by `inline-flex` shrink-to-fit around the svg child, so the
   clip boundary always matches whatever the icon's own rest-state box is
   at the current breakpoint (14/16/17/20/21px, see the width/height
   overrides above) with no per-breakpoint magic numbers to keep in sync. */
.orv-ni-ic { display: inline-flex; overflow: hidden; flex-shrink: 0; }

/* Create / Launch loops -- BUG FIX: a naive 4-keyframe loop (0% rest ->
   42% exit -> 50% re-enter -> 100% rest) does NOT jump instantly at the
   42%->50% boundary the way it looks on paper. CSS keyframes always
   interpolate continuously between whichever two stops are adjacent in
   time, so that segment actually swept the icon back THROUGH its fully
   visible resting position at high speed -- read by the eye as a
   teleport/glitch, not a clean hidden reset. The fix is a per-keyframe
   `animation-timing-function: step-end` on the exit stop: it holds the
   icon at its fully-exited (clipped, invisible) position for the entire
   segment and only switches to the re-entry (also clipped, invisible)
   position in one discrete jump at the very end of that segment -- so
   the reset genuinely happens while nothing is visible, with zero
   sweep through center. The two easing segments on either side (rest->
   exit, re-entry->rest) still glide smoothly. 165% clears the icon's own
   box with margin to spare at every breakpoint (percentage transforms
   scale with the icon's own current size, no per-breakpoint numbers). */
@keyframes orv-ni-arrow-loop {
  0%   { transform: translateX(0); animation-timing-function: cubic-bezier(.3,.06,.16,1); }
  44%  { transform: translateX(165%); animation-timing-function: step-end; }
  50%  { transform: translateX(-165%); animation-timing-function: cubic-bezier(.22,.61,.36,1); }
  100% { transform: translateX(0); }
}
/* Nav Motion Timing pass — 620ms -> 740ms (+19%), same small slow-down
   applied to all six real product nav icons (create/research/launch/
   campaigns/autopilot/business) below. Settings and the nine-dot/Add
   Platforms control intentionally keep their own separate rules
   untouched (Settings: #orvNavSettingsBtn below, still var(--orv-nit));
   Add Platforms has no per-icon animation of its own to begin with. */
/* Create — sparkles rise a little in turn with a brief lime shimmer, then
   settle back (ends exactly at rest, so leaving hover never jumps). */
@keyframes orv-ni-spk-rise {
  0%   { transform: translateY(0); opacity: 1; filter: none; }
  40%  { transform: translateY(-1.4px); opacity: .55; filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--green) 85%, transparent)); }
  65%  { transform: translateY(-1px); opacity: 1; filter: drop-shadow(0 0 1.5px color-mix(in srgb, var(--green) 55%, transparent)); }
  100% { transform: translateY(0); opacity: 1; filter: none; }
}
.orv-ni[data-orv-page="create"] svg .orv-ni-spk { transform-box: fill-box; transform-origin: center; }
.orv-ni[data-orv-page="create"]:is(:hover, :focus-visible) svg .orv-ni-spk { animation: orv-ni-spk-rise 820ms cubic-bezier(.22,.61,.36,1) 1 both; }
.orv-ni[data-orv-page="create"]:is(:hover, :focus-visible) svg .orv-ni-spk-b { animation-delay: 110ms; }
.orv-ni[data-orv-page="create"]:is(:hover, :focus-visible) svg .orv-ni-spk-c { animation-delay: 200ms; }

/* Research — one-shot scale pulse (matches the Autopilot bolt's mechanic:
   a keyframe `animation` that plays once per hover-in, not a hover-held
   transition). BUG FIX: the previous version was a plain `:hover svg {
   transform: scale(1.16) }` declaration, which a pre-existing, unrelated
   dark-mode rule (`body.dark-mode .orv-ni:hover svg { transform:
   translateX(1.5px) }`, further down this file) silently outranks on
   specificity in dark mode, replacing the scale with a 1.5px nudge --
   the actual cause of "not scaling noticeably". A CSS `animation`
   targeting the same property always wins over a plain (non-!important)
   declaration regardless of selector specificity, so switching to a
   keyframe fixes the conflict at its root instead of chasing specificity
   or touching the unrelated shared dark-mode rule. transform-origin is
   pinned to center explicitly (browsers already default a root <svg> to
   50% 50%, but this makes the "scale from its own center, never move"
   requirement explicit and future-proof). */
@keyframes orv-ni-glass-pulse {
  0%   { transform: scale(1); }
  48%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.orv-ni[data-orv-page="research"] svg { transform-origin: center; }
.orv-ni[data-orv-page="research"]:hover svg {
  /* Nav Motion Timing pass — 340ms -> 420ms (+24%). This is the scale
     pulse the task specifically called out ("especially animations where
     an icon noticeably scales/enlarges"). */
  animation: orv-ni-glass-pulse 420ms cubic-bezier(.22,.61,.36,1) 1;
}

/* Launch — same step-end fix as Create's loop, on the vertical axis: the
   icon (already an upward arrow/liftoff shape) glides up and fully out
   through the top of its clipped slot, holds there (invisible) for the
   44%->50% segment, jumps in one discrete step to already-below (also
   invisible), then glides smoothly up into its exact resting position. */
@keyframes orv-ni-launch-loop {
  0%   { transform: translateY(0); animation-timing-function: cubic-bezier(.3,.06,.16,1); }
  44%  { transform: translateY(-165%); animation-timing-function: step-end; }
  50%  { transform: translateY(165%); animation-timing-function: cubic-bezier(.22,.61,.36,1); }
  100% { transform: translateY(0); }
}
.orv-ni[data-orv-page="launch"]:hover .orv-ni-ic svg {
  /* Nav Motion Timing pass — 620ms -> 740ms (+19%), matching Create so
     the two loop-style icons stay symmetric, as they were before. */
  animation: orv-ni-launch-loop 740ms 1;
}

/* Campaigns — the clipboard's clip presses down and closes over the body;
   the body/list-lines stay put so only the clip itself reads as moving. */
.orv-ni svg .orv-ni-clip {
  transform-box: fill-box; transform-origin: center;
  transition: transform var(--orv-nit, .18s) cubic-bezier(.22,.61,.36,1);
}
.orv-ni[data-orv-page="performance"]:hover svg .orv-ni-clip { transform: translateY(2.4px) scaleY(.72); }
/* Nav Motion Timing pass — Campaigns' clip press uses the SHARED
   var(--orv-nit, 180ms) transition on .orv-ni svg .orv-ni-clip above,
   and that variable also drives the base .orv-ni svg transition every
   nav icon (including Settings) relies on -- so it can't be changed
   globally without touching Settings too. This scoped override (the
   [data-orv-page="performance"] attribute adds specificity over the
   unscoped base rule) raises only Campaigns' own duration, 180ms ->
   220ms (+22%), leaving --orv-nit and every other icon's use of it
   untouched. */
.orv-ni[data-orv-page="performance"] svg .orv-ni-clip { transition-duration: .22s; }

/* Intelligence — the clock hand sweeps one complete revolution; the dial
   (the circle) stays completely stationary the whole time. */
@keyframes orv-ni-clock-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orv-ni[data-orv-page="intelligence"] svg .orv-ni-clockhand {
  transform-box: fill-box; transform-origin: center;
}
.orv-ni[data-orv-page="intelligence"]:hover svg .orv-ni-clockhand {
  animation: orv-ni-clock-spin 620ms cubic-bezier(.55,.06,.45,.94) 1;
}

/* Autopilot — the bolt energizes: a quick scale pulse with a brief glow,
   settling back to rest -- one controlled "charge", not a spin. */
@keyframes orv-ni-bolt-pulse {
  0%   { transform: scale(1) translateY(0); filter: none; }
  45%  { transform: scale(1.18) translateY(-1px); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--green) 75%, transparent)); }
  100% { transform: scale(1) translateY(0); filter: none; }
}
/* Explicit resting transform -- this is the icon's own bug fix (nav icon
   bolt getting visually stuck enlarged). Every OTHER animated nav icon
   (clock-spin, bulb-flicker) only rotates or changes opacity, so an
   interrupted/incomplete animation-to-base handoff is never visible; this
   is the only icon whose animation SCALES it, so it's the only one where
   that handoff being implicit (no `transform` on the non-hover rule for
   the base .orv-ni svg transition to target) could leave the last
   mid-animation scale value on screen instead of cleanly resolving back
   to 1. Giving it an explicit, always-present rest value removes the
   ambiguity regardless of whether the animation completed naturally or
   was interrupted by hover ending mid-pulse (e.g. clicking navigates
   away while still hovered). */
.orv-ni[data-orv-page="autopilot"] svg { transform: scale(1); }
/* Automations — the workflow builds step by step: top-left node, lower
   node, right node, then the connections draw in. The end state is the
   normal icon, so it stays complete while hovered and leaving hover never
   jumps. */
@keyframes orv-ni-wf-node { 0% { opacity: 0; transform: scale(.55); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes orv-ni-wf-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.orv-ni[data-orv-page="autopilot"] svg .orv-ni-wf-n { transform-box: fill-box; transform-origin: center; }
.orv-ni[data-orv-page="autopilot"] svg .orv-ni-wf-l { stroke-dasharray: 1; stroke-dashoffset: 0; }
.orv-ni[data-orv-page="autopilot"]:is(:hover, :focus-visible) svg .orv-ni-wf-n { animation: orv-ni-wf-node 260ms cubic-bezier(.22,.61,.36,1) 1 both; }
.orv-ni[data-orv-page="autopilot"]:is(:hover, :focus-visible) svg .orv-ni-wf-n2 { animation-delay: 170ms; }
.orv-ni[data-orv-page="autopilot"]:is(:hover, :focus-visible) svg .orv-ni-wf-n3 { animation-delay: 340ms; }
.orv-ni[data-orv-page="autopilot"]:is(:hover, :focus-visible) svg .orv-ni-wf-l { animation: orv-ni-wf-line 300ms ease-out 520ms 1 both; }
.orv-ni[data-orv-page="autopilot"]:is(:hover, :focus-visible) svg .orv-ni-wf-l2 { animation-delay: 600ms; }

/* Business / Brand Brain — the bulb switches OFF briefly, then back ON,
   ending slightly brighter than its resting state (restrained glow). BUG
   FIX: the previous version also scaled the whole <svg> up to 1.08x at
   its peak, which visibly moved/resized the bulb geometry itself -- exactly
   what the icon must never do. Rebuilt with zero transform anywhere: the
   bulb outline is its own <g class="orv-ni-bulb-body"> that only ever
   changes opacity (dims, then restores -- never moves or resizes), and a
   separate, blurred <circle class="orv-ni-bulb-glow"> painted behind it
   (present in the SVG at opacity:0 normally) is the actual "light" that
   switches off then on with a strong glow -- it can extend past the
   bulb's own bounds without affecting the bulb's own geometry, since it's
   a different element entirely. */
.orv-ni[data-orv-page="businessbrain"] svg .orv-ni-bulb-glow { filter: blur(2.4px); }
@keyframes orv-ni-bulb-body-flicker {
  0%   { opacity: 1; }
  22%  { opacity: .3; }
  45%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes orv-ni-bulb-glow-pulse {
  0%   { opacity: 0; }
  22%  { opacity: 0; }
  45%  { opacity: .25; }
  65%  { opacity: .95; }
  82%  { opacity: .95; }
  100% { opacity: .4; }
}
.orv-ni[data-orv-page="businessbrain"]:hover svg .orv-ni-bulb-body {
  /* Nav Motion Timing pass — 820ms -> 980ms (+20%), both the body flicker
     and the glow pulse below kept in sync (they're two parallel
     animations on the same one-shot gesture). */
  animation: orv-ni-bulb-body-flicker 980ms ease 1;
}
.orv-ni[data-orv-page="businessbrain"]:hover svg .orv-ni-bulb-glow {
  animation: orv-ni-bulb-glow-pulse 980ms ease 1;
  animation-fill-mode: forwards;
}

/* Dashboard/Home — a small house whose door subtly swings open on hover,
   settling at a slightly-ajar resting angle (fill-mode: forwards), the
   same "ends changed from rest" idea as the Business bulb's glow above.
   The door is its own <path class="orv-ni-house-door">, separate from the
   roof/walls <g class="orv-ni-house-body">, so only the door ever moves —
   the house outline itself stays completely still, matching this file's
   established rule (see the Business bulb comment above) that an icon's
   static frame must never move/resize, only the one element that
   represents the actual gesture. A shallow CSS 3D rotate (perspective +
   rotateY, hinge on the right edge via transform-origin) reads as a real
   door opening rather than a flat slide/skew. */
.orv-ni svg .orv-ni-house-door {
  transform-box: fill-box; transform-origin: right center;
}
@keyframes orv-ni-house-door-open {
  0%   { transform: perspective(40px) rotateY(0deg); }
  60%  { transform: perspective(40px) rotateY(-40deg); }
  100% { transform: perspective(40px) rotateY(-22deg); }
}
.orv-ni[data-orv-page="dashboard"]:hover svg .orv-ni-house-door {
  animation: orv-ni-house-door-open 340ms cubic-bezier(.22,.61,.36,1) 1 forwards;
}

/* Settings — a small, deliberate turn, not a continuous spin. Unchanged. */
#orvNavSettingsBtn:hover svg { transform: rotate(18deg); }

@media (prefers-reduced-motion: reduce) {
  .orv-ni svg, .orv-ni svg .orv-ni-clockhand, .orv-ni svg .orv-ni-clip,
  .orv-ni svg .orv-ni-bulb-body, .orv-ni svg .orv-ni-bulb-glow,
  .orv-ni svg .orv-ni-house-door, .orv-ni svg .orv-ni-spk, .orv-ni svg .orv-ni-wf-n, .orv-ni svg .orv-ni-wf-l,
  .orv-ni-ic svg { transition: none !important; animation: none !important; }
  .orv-ni svg .orv-ni-wf-l { stroke-dashoffset: 0 !important; }
  .orv-ni[data-orv-page="create"]:hover .orv-ni-ic svg,
  .orv-ni[data-orv-page="research"]:hover svg,
  .orv-ni[data-orv-page="launch"]:hover .orv-ni-ic svg,
  .orv-ni[data-orv-page="performance"]:hover svg .orv-ni-clip,
  .orv-ni[data-orv-page="intelligence"]:hover svg .orv-ni-clockhand,
  .orv-ni[data-orv-page="autopilot"]:hover svg,
  .orv-ni[data-orv-page="businessbrain"]:hover svg .orv-ni-bulb-body,
  .orv-ni[data-orv-page="dashboard"]:hover svg .orv-ni-house-door,
  #orvNavSettingsBtn:hover svg { transform: none !important; filter: none !important; animation: none !important; }
  .orv-ni[data-orv-page="businessbrain"]:hover svg .orv-ni-bulb-glow { opacity: 0 !important; animation: none !important; }
}

/* ── Main content ────────────────────────────────────────────── */
.mc {
  flex: 1 !important;
  min-width: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100vh !important;
  transition: none !important;
  background: var(--bg, #F8F8F6);
}
body.dark-mode .mc { background: #0e0e10; }

/* Oriven 1.0 (V11) — permanent sidebar is back (the fixed header from
   V5/V8 that needed .mc's padding-top:56px to clear it is gone), so
   .orv-sb's display:none retirement rule and that padding are both
   removed here. Sidebar's own display:flex (below) is unopposed again. */

/* ── Workspace header — replaces the sidebar's logo/settings/avatar ── */
.orv-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.07));
}
body.dark-mode .orv-header { background: #111113; border-bottom-color: rgba(255,255,255,.07); }

.orv-header-logo { display: flex; align-items: center; cursor: pointer; }
.orv-header-logo-img { width: 32px; height: 32px; object-fit: contain; }


.orv-header-right { display: flex; align-items: center; gap: 8px; }

.orv-header-ic {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: none; background: none; cursor: pointer;
  color: rgba(0,0,0,.5); transition: background .12s, color .12s;
}
.orv-header-ic:hover { background: rgba(0,0,0,.05); color: var(--charcoal, #18181A); }
body.dark-mode .orv-header-ic { color: rgba(255,255,255,.5); }
body.dark-mode .orv-header-ic:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ── Workspace Switcher panel (Oriven 1.0 V8) — floating, not a sidebar/
   dropdown/modal. Fixed under the header's right side, fade+scale in. ── */
.orv-ws-panel {
  position: fixed;
  top: 64px;
  right: 20px;
  width: 340px;
  z-index: 260;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition: opacity .16s cubic-bezier(.22,.61,.36,1), transform .16s cubic-bezier(.22,.61,.36,1);
}
.orv-ws-panel.orv-ws-open { opacity: 1; transform: translateY(0) scale(1); }
body.dark-mode .orv-ws-panel { background: rgba(17,17,19,.92); border-color: rgba(255,255,255,.08); box-shadow: 0 16px 48px rgba(0,0,0,.45); }

.orv-ws-item {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: left;
  padding: 10px; border-radius: 12px;
  border: none; background: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.orv-ws-item:hover, .orv-ws-item:focus-visible { background: rgba(0,0,0,.045); outline: none; transform: translateX(2px); }
body.dark-mode .orv-ws-item:hover, body.dark-mode .orv-ws-item:focus-visible { background: rgba(255,255,255,.06); }
.orv-ws-item-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-text); background: color-mix(in srgb, var(--green) 10%, transparent);
  transition: background .15s, transform .15s;
}
.orv-ws-item:hover .orv-ws-item-ico { background: color-mix(in srgb, var(--green) 18%, transparent); transform: scale(1.06); }
body.dark-mode .orv-ws-item-ico { color: var(--green); }
.orv-ws-item-title { font-size: 13.5px; font-weight: 700; color: var(--charcoal, #18181A); margin-bottom: 2px; }
body.dark-mode .orv-ws-item-title { color: #fff; }
.orv-ws-item-desc { font-size: 12px; color: var(--muted, rgba(0,0,0,.5)); line-height: 1.4; }

/* Notif bell now flows inside the header instead of floating fixed */
.orv-header .orv-notif-bell { position: static; top: auto; right: auto; }

.orv-header-user {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 10px;
  transition: background .12s;
}
.orv-header-user:hover { background: rgba(0,0,0,.04); }
body.dark-mode .orv-header-user:hover { background: rgba(255,255,255,.06); }
.orv-header-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.orv-header-user-info .orv-sb-user-name { font-size: 12px; font-weight: 700; }
.orv-header-user-info .orv-sb-user-plan { font-size: 11px; color: var(--muted); }

@media (max-width: 640px) {
  .orv-header-user-info { display: none; }
}

/* ── AI panel ────────────────────────────────────────────────── */
/* ── Oriven AI — panel, feed, action cards ────────────────────── */

/* Panel shell */
/* Oriven Chat — Floating Assistant pass. Was a docked flex-row sidebar
   member (width 0->320px) that narrowed the main workspace whenever
   opened — "opening a second application" rather than a contextual
   helper. Now position:fixed, anchored just above its own trigger
   (.orv-ai-fab, bottom:24px/right:24px), so the application underneath
   never resizes. Same fade+slide-in mechanic as .orv-launcher-pop
   (the app's other fixed-position popover), scaled up for a real
   conversation surface. Taken out of the document flow entirely, so no
   sibling layout depends on its width the way it briefly did before. */
.orv-ai-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(600px, calc(100vh - 140px));
  max-height: 70vh;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .18s cubic-bezier(.22,.61,.36,1), transform .18s cubic-bezier(.22,.61,.36,1);
  z-index: 210;
}
body.dark-mode .orv-ai-panel { background: #111113; border-color: rgba(255,255,255,.1); box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3); }
.orv-ai-panel.orv-ai-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .orv-ai-panel { transition: opacity .12s linear; transform: none !important; } }

/* Panel header */
.orv-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
  flex-shrink: 0;
}
body.dark-mode .orv-ai-panel-head { border-bottom-color: rgba(255,255,255,.07); }
.orv-ai-panel-head-left { display: flex; flex-direction: column; gap: 2px; }
.orv-ai-panel-name {
  font-size: 15px; font-weight: 800; letter-spacing: -.03em;
  color: var(--charcoal, #18181A); line-height: 1;
}
body.dark-mode .orv-ai-panel-name { color: rgba(255,255,255,.95); }
.orv-ai-panel-role { font-size: 11px; color: var(--muted); font-weight: 500; }
.orv-ai-panel-head-right { display: flex; align-items: center; gap: 10px; }
.orv-ai-panel-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--green-text); white-space: nowrap;
}
body.dark-mode .orv-ai-panel-status { color: var(--green); }
.orv-ai-online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  animation: oliviaOnlinePulse 2.8s ease-in-out infinite;
}
@keyframes oliviaOnlinePulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent); opacity: 1; }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 0%, transparent); opacity: .85; }
}
.orv-ai-panel-close {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--muted, rgba(0,0,0,.4)); transition: background .12s, color .12s;
}
.orv-ai-panel-close:hover { background: rgba(0,0,0,.05); color: var(--charcoal); }
body.dark-mode .orv-ai-panel-close:hover { background: rgba(255,255,255,.07); color: #fff; }

/* Context indicator (Continuity discoverability pass) — extremely small,
   premium, native to the panel header. Deliberately no pulsing animation
   (unlike .orv-ai-online-dot) so the header stays calm; state changes via
   color alone are backed by real text ("Context" label + popover text),
   never color-only. Popover is a lightweight discovery affordance, not a
   second dashboard — max ~4 real lines, dismissible like any other
   ORIVEN overlay (outside click / Escape, see _orvAiCtxOutsideClick). */
.orv-ai-ctx-wrap { position: relative; display: flex; align-items: center; }
.orv-ai-ctx-badge {
  display: flex; align-items: center; gap: 5px;
  font-family: inherit; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted, rgba(0,0,0,.4)); background: var(--sf2, var(--bg2)); border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 100px; padding: 4px 9px 4px 7px; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.orv-ai-ctx-badge:hover { color: var(--charcoal); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
body.dark-mode .orv-ai-ctx-badge:hover { color: rgba(255,255,255,.9); }
.orv-ai-ctx-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--m2, var(--muted)); flex-shrink: 0; transition: background .2s ease; }
/* Active = real, current, usable context exists (window._orvCurrentState()) */
.orv-ai-ctx-badge-active { color: var(--green-text); border-color: color-mix(in srgb, var(--green) 30%, transparent); background: color-mix(in srgb, var(--green) 6%, transparent); }
body.dark-mode .orv-ai-ctx-badge-active { color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent); }
.orv-ai-ctx-badge-active .orv-ai-ctx-dot { background: var(--green); }
.orv-ai-ctx-popover {
  position: absolute; top: 32px; right: 0; z-index: 5;
  width: 230px; background: var(--surface, #fff); border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
body.dark-mode .orv-ai-ctx-popover { background: #17171a; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.orv-ai-ctx-popover-hd { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.orv-ai-ctx-popover-item { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--c2, var(--charcoal)); line-height: 1.5; padding: 2px 0; }
.orv-ai-ctx-popover-item::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 6px; }
.orv-ai-ctx-popover-empty { font-size: 12px; color: var(--muted); font-style: italic; }

/* Context bar */
.orv-ai-context-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 16px;
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 10%, transparent);
  font-size: 11px; font-weight: 600; color: var(--green-text); flex-shrink: 0;
}
body.dark-mode .orv-ai-context-bar { color: var(--green); background: color-mix(in srgb, var(--green) 5%, transparent); border-bottom-color: color-mix(in srgb, var(--green) 8%, transparent); }
.orv-ai-ctx-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

/* Feed */
.orv-ai-feed {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Greeting */
.orv-ai-greeting { display: flex; flex-direction: column; gap: 14px; }
.orv-ai-greeting-text {
  font-size: 17px; font-weight: 800; letter-spacing: -.03em;
  color: var(--charcoal); line-height: 1.2; margin-top: 4px;
}
body.dark-mode .orv-ai-greeting-text { color: rgba(255,255,255,.95); }
.orv-ai-greeting-sub { font-size: 12px; color: var(--muted); margin-top: -8px; font-weight: 500; }

/* Recommendation cards */
.orv-ai-rec-list { display: flex; flex-direction: column; gap: 8px; }

@keyframes oliviaRecIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.orv-ai-rec-stagger {
  animation: oliviaRecIn .35s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: calc(var(--i, 0) * 80ms + 60ms);
}

.orv-ai-rec-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .14s, box-shadow .14s;
}
.orv-ai-rec-card:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); box-shadow: 0 2px 12px color-mix(in srgb, var(--green) 6%, transparent); }
body.dark-mode .orv-ai-rec-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode .orv-ai-rec-card:hover { border-color: color-mix(in srgb, var(--green) 25%, transparent); }

.orv-ai-rec-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.orv-ai-rec-icon-warn  { background: rgba(251,191,36,.12); color: #92610a; }
.orv-ai-rec-icon-green { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-text); }
.orv-ai-rec-icon-blue  { background: rgba(99,179,237,.12); color: #2563eb; }
.orv-ai-rec-icon-gold  { background: rgba(253,224,71,.12); color: #854d0e; }
body.dark-mode .orv-ai-rec-icon-warn  { color: #fbbf24; }
body.dark-mode .orv-ai-rec-icon-green { color: var(--green); }
body.dark-mode .orv-ai-rec-icon-blue  { color: #60a5fa; }
body.dark-mode .orv-ai-rec-icon-gold  { color: #fcd34d; }

.orv-ai-rec-body { flex: 1; min-width: 0; }
.orv-ai-rec-label { font-size: 12px; font-weight: 700; color: var(--charcoal); letter-spacing: -.01em; margin-bottom: 2px; }
body.dark-mode .orv-ai-rec-label { color: rgba(255,255,255,.9); }
.orv-ai-rec-desc { font-size: 11px; color: var(--muted); line-height: 1.45; }

.orv-ai-rec-action {
  font-size: 11px; font-weight: 700; color: var(--green-text);
  background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  border-radius: 7px; padding: 4px 9px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.orv-ai-rec-action:hover { background: color-mix(in srgb, var(--green) 20%, transparent); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
body.dark-mode .orv-ai-rec-action { color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); }

/* Section divider */
.orv-ai-section-divider {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-top: 4px;
}
.orv-ai-section-divider::before,.orv-ai-section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border, rgba(0,0,0,.07));
}
body.dark-mode .orv-ai-section-divider::before, body.dark-mode .orv-ai-section-divider::after { background: rgba(255,255,255,.07); }

/* Per-page suggested prompts — compact pill buttons, deliberately quieter
   than .orv-ai-rec-card (those are real findings; these are just example
   text) so the two never read as the same kind of information. */
.orv-ai-suggest-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.orv-ai-suggest-hd { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.orv-ai-suggest-btn {
  text-align: left; font-family: inherit; cursor: pointer; font-size: 12.5px; color: var(--charcoal);
  background: var(--bg2, rgba(0,0,0,.03)); border: 1px solid transparent; border-radius: 10px;
  padding: 8px 11px; transition: border-color .14s, background .14s;
}
.orv-ai-suggest-btn:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
body.dark-mode .orv-ai-suggest-btn { background: rgba(255,255,255,.04); color: rgba(255,255,255,.85); }

/* Chat messages */
.orv-ai-msg { display: flex; flex-direction: column; gap: 4px; }
.orv-ai-msg-user .orv-ai-msg-bubble {
  align-self: flex-end;
  background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--charcoal);
  border-radius: 12px 12px 3px 12px;
}
body.dark-mode .orv-ai-msg-user .orv-ai-msg-bubble { background: color-mix(in srgb, var(--green) 12%, transparent); color: rgba(255,255,255,.9); }
.orv-ai-msg-ai .orv-ai-msg-bubble {
  align-self: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px 12px 12px 12px; color: var(--charcoal);
}
body.dark-mode .orv-ai-msg-ai .orv-ai-msg-bubble { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.orv-ai-msg-bubble { padding: 9px 13px; font-size: 13px; line-height: 1.55; max-width: 100%; white-space: pre-wrap; }
.orv-ai-used-context {
  align-self: flex-start; font-size: 10.5px; color: var(--muted);
  padding: 0 4px; max-width: 100%; overflow-wrap: break-word;
}
body.dark-mode .orv-ai-used-context { color: rgba(255,255,255,.4); }

/* Action cards — Tool Router confirmation flow */
.orv-ai-action-card { padding: 12px 13px 11px; }
.orv-ai-action-card-summary { font-size: 13px; line-height: 1.5; color: var(--charcoal); }
body.dark-mode .orv-ai-action-card-summary { color: rgba(255,255,255,.9); }
.orv-ai-action-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.orv-ai-action-btn {
  flex: 1; padding: 7px 10px; font-size: 12.5px; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: opacity .12s, transform .12s;
  border: 1px solid var(--border); background: transparent; color: var(--charcoal);
}
body.dark-mode .orv-ai-action-btn { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.orv-ai-action-btn:hover { opacity: .82; transform: scale(1.02); }
.orv-ai-action-apply { background: var(--green); border-color: var(--green); color: #000; }
.orv-ai-action-success { color: #4a9d5f; border-color: rgba(74,157,95,.3) !important; background: rgba(74,157,95,.08) !important; }
body.dark-mode .orv-ai-action-success { color: #7fe89a; }
.orv-ai-action-error { color: #d9534f; border-color: rgba(217,83,79,.3) !important; background: rgba(217,83,79,.08) !important; }
body.dark-mode .orv-ai-action-error { color: #ff8b87; }

/* Thinking indicator */
.orv-ai-thinking-dots { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.orv-ai-thinking-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  animation: oliviaThinkDot 1.2s ease-in-out infinite;
}
.orv-ai-thinking-dots span:nth-child(2) { animation-delay: .15s; }
.orv-ai-thinking-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes oliviaThinkDot {
  0%,60%,100% { transform: translateY(0); opacity: .3; }
  30%          { transform: translateY(-4px); opacity: 1; }
}

/* Input area */
.orv-ai-input-wrap {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--border, rgba(0,0,0,.07)); flex-shrink: 0;
}
body.dark-mode .orv-ai-input-wrap { border-top-color: rgba(255,255,255,.07); }
.orv-ai-input {
  flex: 1; background: rgba(0,0,0,.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 11px; font-size: 13px; color: var(--charcoal);
  resize: none; font-family: inherit; line-height: 1.4; max-height: 100px; overflow-y: auto;
}
body.dark-mode .orv-ai-input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.orv-ai-input:focus { outline: none; border-color: color-mix(in srgb, var(--green) 50%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 6%, transparent); }
.orv-ai-input::placeholder { color: var(--muted); }
.orv-ai-send {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #000;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .12s, transform .12s;
}
.orv-ai-send:hover { opacity: .88; transform: scale(1.04); }
.orv-ai-send:disabled { opacity: .35; cursor: default; transform: none; }

/* Floating button */
/* ── Smart Notifications (V6 Final Phase) ────────────────────────── */
.orv-notif-bell {
  position: fixed; top: 20px; right: 24px; z-index: 210;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--charcoal); transition: border-color .15s;
}
body.dark-mode .orv-notif-bell { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.orv-notif-bell:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.orv-notif-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.orv-notif-panel {
  position: fixed; top: 62px; right: 24px; z-index: 210;
  width: 320px; max-height: 420px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
body.dark-mode .orv-notif-panel { background: #111113; border-color: rgba(255,255,255,.08); }
.orv-notif-hd {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; padding: 12px 14px; color: var(--charcoal);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
body.dark-mode .orv-notif-hd { color: rgba(255,255,255,.92); background: #111113; border-color: rgba(255,255,255,.08); }
.orv-notif-hd-actions { display: flex; align-items: center; gap: 10px; }
.orv-notif-markall { font-size: 11px; font-weight: 600; color: var(--muted, #888); background: none; border: none; cursor: pointer; padding: 2px 4px; }
.orv-notif-markall:hover { color: var(--charcoal); }
body.dark-mode .orv-notif-markall:hover { color: rgba(255,255,255,.9); }
/* "Clear inbox" — deliberately separate from "Mark all read" both in
   wording and hover color (destructive red vs. neutral) so the two
   actions can't be confused: one changes read state, the other removes
   notifications permanently. */
.orv-notif-clearall { font-size: 11px; font-weight: 600; color: var(--muted, #888); background: none; border: none; cursor: pointer; padding: 2px 4px; }
.orv-notif-clearall:hover { color: #ef4444; }
body.dark-mode .orv-notif-clearall:hover { color: #f87171; }

/* Per-notification delete — small, subtle, icon-only so it never competes
   visually with the notification content itself; only firms up into an
   obvious "destructive" affordance (red tint) on hover, not at rest. */
.orv-notif-del {
  align-self: flex-start; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 4px; border-radius: 5px;
  color: var(--muted); opacity: .5; flex-shrink: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.orv-notif-del:hover { opacity: 1; background: rgba(239,68,68,.1); color: #ef4444; }
body.dark-mode .orv-notif-del:hover { background: rgba(239,68,68,.16); color: #f87171; }

/* Notification items -- unread emphasis + severity dot (info/success/
   warning/critical), Final Polish notification rewrite. */
.orv-notif-item { cursor: pointer; position: relative; }
.orv-notif-item.orv-notif-unread { background: color-mix(in srgb, var(--green) 6%, transparent); }
.orv-notif-sev-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 2px; background: rgba(120,120,120,.5); }
.orv-notif-sev-info .orv-notif-sev-dot { background: #60a5fa; }
.orv-notif-sev-success .orv-notif-sev-dot { background: #34d399; }
.orv-notif-sev-warning .orv-notif-sev-dot { background: #fbbf24; }
.orv-notif-sev-critical .orv-notif-sev-dot { background: #ef4444; }

.orv-ai-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px 10px 14px;
  background: var(--green); color: #000;
  border: none; border-radius: 50px; cursor: pointer;
  font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 35%, transparent), 0 2px 8px rgba(0,0,0,.12);
  transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .18s;
}
.orv-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in srgb, var(--green) 45%, transparent), 0 4px 12px rgba(0,0,0,.1); }
body.dark-mode .orv-ai-fab { background: var(--green); color: #000; }
.orv-ai-fab.orv-ai-fab-hidden { display: none; }
.orv-ai-fab-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.35); flex-shrink: 0;
  animation: oliviaFabDot 2.4s ease-in-out infinite;
}
@keyframes oliviaFabDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(0.7); }
}
.orv-ai-fab-label { letter-spacing: -.02em; }

/* ── Page wrapper ────────────────────────────────────────────── */
.orv-page-wrap {
  max-width: var(--orv-content-maxw);
  margin: 0 auto;
  padding: var(--orv-content-pad-top) var(--orv-content-pad-x) var(--orv-content-pad-bottom);
}

.orv-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--orv-title-gap);
  gap: 20px;
}
.orv-ph-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal, #18181A);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0 0 5px;
}
body.dark-mode .orv-ph-title { color: rgba(255,255,255,.95); }
.orv-ph-sub { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

.orv-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Overview layout ─────────────────────────────────────────── */
.orv-platform-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.orv-platform-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  cursor: pointer; transition: border-color .12s;
  white-space: nowrap;
}
.orv-platform-pill:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
body.dark-mode .orv-platform-pill { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
.orv-platform-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.orv-platform-dot.connected { background: var(--green); }
.orv-platform-dot.disconnected { background: rgba(128,128,128,.4); }

.orv-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.orv-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
body.dark-mode .orv-kpi-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.orv-kpi-val { font-size: 24px; font-weight: 800; color: var(--charcoal); letter-spacing: -.04em; margin-bottom: 4px; }
body.dark-mode .orv-kpi-val { color: rgba(255,255,255,.95); }
.orv-kpi-val.orv-accent { color: var(--green); }
.orv-kpi-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.orv-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.orv-insights-list { display: flex; flex-direction: column; gap: 8px; }
.orv-insight-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: border-color .12s;
}
.orv-insight-card:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
body.dark-mode .orv-insight-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.orv-insight-empty {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border: 1.5px dashed var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .12s;
  color: var(--muted);
}
.orv-insight-empty:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.orv-insight-empty svg { flex-shrink: 0; opacity: .6; margin-top: 2px; }
.orv-insight-empty-title { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
body.dark-mode .orv-insight-empty-title { color: rgba(255,255,255,.8); }
.orv-insight-empty-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

.orv-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.orv-qa-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-size: 12px; font-weight: 600; color: var(--charcoal); text-align: left;
  cursor: pointer; transition: border-color .12s;
}
.orv-qa-btn:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); }
body.dark-mode .orv-qa-btn { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.orv-qa-btn svg { flex-shrink: 0; opacity: .6; }

/* ── Create workflow ─────────────────────────────────────────── */
.orv-create-shell { max-width: 680px; }

.orv-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.orv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.orv-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  background: rgba(0,0,0,.06);
  color: var(--muted);
  flex-shrink: 0;
}
body.dark-mode .orv-step-num { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.orv-step-lbl { font-size: 12px; font-weight: 500; color: var(--muted); }
.orv-step.orv-step-active .orv-step-num { background: var(--green); color: #000; }
.orv-step.orv-step-active .orv-step-lbl { color: var(--charcoal); font-weight: 600; }
body.dark-mode .orv-step.orv-step-active .orv-step-lbl { color: rgba(255,255,255,.9); }
.orv-step.orv-step-done .orv-step-num { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green-text); }
body.dark-mode .orv-step.orv-step-done .orv-step-num { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.orv-step-line { flex: 1; height: 1px; background: var(--border); margin: 0 10px; min-width: 20px; }

.orv-create-step-title { font-size: 18px; font-weight: 700; color: var(--charcoal); letter-spacing: -.02em; margin-bottom: 8px; }
body.dark-mode .orv-create-step-title { color: rgba(255,255,255,.95); }
.orv-create-step-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.orv-create-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--charcoal);
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
  transition: border-color .15s;
  box-sizing: border-box;
}
body.dark-mode .orv-create-textarea { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.orv-create-textarea:focus { outline: none; border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.orv-create-textarea::placeholder { color: var(--muted); }
.orv-create-actions { display: flex; gap: 10px; margin-top: 24px; }

.orv-goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 10px; }
.orv-goal-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .12s;
}
.orv-goal-card:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.orv-goal-card.selected { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, transparent); }
body.dark-mode .orv-goal-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.09); }
body.dark-mode .orv-goal-card.selected { border-color: var(--green); background: color-mix(in srgb, var(--green) 7%, transparent); }
.orv-goal-icon { margin-bottom: 12px; color: var(--muted); }
.orv-goal-card.selected .orv-goal-icon { color: var(--green-text); }
body.dark-mode .orv-goal-card.selected .orv-goal-icon { color: var(--green); }
.orv-goal-name { font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
body.dark-mode .orv-goal-name { color: rgba(255,255,255,.9); }
.orv-goal-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }

.orv-platform-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.orv-platform-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
  position: relative;
}
.orv-platform-card:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.orv-platform-card.selected { border-color: var(--green); }
body.dark-mode .orv-platform-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.09); }
.orv-platform-card-name { font-size: 13px; font-weight: 700; color: var(--charcoal); margin-top: 10px; margin-bottom: 3px; }
body.dark-mode .orv-platform-card-name { color: rgba(255,255,255,.9); }
.orv-platform-card-sub { font-size: 11px; color: var(--muted); }
.orv-platform-check {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .12s;
}
.orv-platform-card.selected .orv-platform-check { opacity: 1; color: var(--green-text); }
body.dark-mode .orv-platform-card.selected .orv-platform-check { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }

/* Generated ad output */
.orv-gen-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.orv-gen-title { font-size: 18px; font-weight: 700; color: var(--charcoal); letter-spacing: -.02em; }
body.dark-mode .orv-gen-title { color: rgba(255,255,255,.95); }
.orv-gen-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.orv-gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.orv-gen-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 14px;
}
.orv-gen-asset-group { margin-bottom: 18px; }
.orv-gen-asset-label {
  font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 7px;
}
.orv-gen-asset-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 6px;
  cursor: text;
  outline: none;
  transition: border-color .12s;
}
body.dark-mode .orv-gen-asset-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.orv-gen-asset-item:focus { border-color: color-mix(in srgb, var(--green) 45%, transparent); }

.orv-publish-bar {
  background: color-mix(in srgb, var(--green) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body.dark-mode .orv-publish-bar { background: color-mix(in srgb, var(--green) 5%, transparent); border-color: color-mix(in srgb, var(--green) 15%, transparent); }
.orv-publish-label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
body.dark-mode .orv-publish-label { color: rgba(255,255,255,.9); }
.orv-publish-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Reports page ────────────────────────────────────────────── */
.orv-reports-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; }
.orv-report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 20px 16px;
  cursor: pointer;
  transition: border-color .15s;
}
.orv-report-card:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); }
body.dark-mode .orv-report-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.orv-report-ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--green-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
body.dark-mode .orv-report-ico { color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent); }
.orv-report-name { font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; letter-spacing: -.01em; }
body.dark-mode .orv-report-name { color: rgba(255,255,255,.9); }
.orv-report-desc { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.orv-report-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(0,0,0,.05); color: var(--muted);
}
body.dark-mode .orv-report-tag { background: rgba(255,255,255,.06); }

/* ── Performance page wrapper ────────────────────────────────── */
#page-performance .orv-page-wrap { padding-bottom: 0; }
#page-performance .ads-page { padding-top: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
/* The icon-only collapsed sidebar (64px rail, labels hidden) that used to
   live here at <=900px has been removed entirely per the "Responsive
   Navigation" sprint — there are now exactly two nav modes: full sidebar
   above the drawer breakpoint (see .orv-sb display:none below), hamburger
   + drawer at or below it. No intermediate icon-only state. */
@media (max-width: 900px) {
  .orv-ai-panel { width: 340px; }
  .orv-two-col { grid-template-columns: 1fr; }
  .orv-platform-grid { grid-template-columns: 1fr; }
  .orv-gen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .orv-page-wrap { padding: 24px 18px 60px; }
  .orv-goal-grid { grid-template-columns: 1fr 1fr; }
}
/* AI panel full-screen slide-over — moved to the canonical 768px mobile
   cutover (was bundled into the 600px block above with unrelated Launch
   rules) and z-index raised from 300 to 9250: the sidebar rail is
   z-index:9200 !important and is never removed below 900px on its own, so
   at 300 the "full-screen" panel was rendering underneath it. 9250 clears
   the sidebar while staying below the onboarding tour's 9300/9301. */
@media (max-width: 768px) {
  /* Floating Assistant pass — base rule is already position:fixed, so
     mobile only needs to go edge-to-edge and drop the floating card
     chrome (radius/shadow/anchor gap), same "larger sheet on mobile"
     treatment the spec explicitly allows. */
  .orv-ai-panel { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; right: 0; bottom: 0; top: 0; border-radius: 0; border: none; z-index: 9250; }
  .orv-ai-panel.orv-ai-open { transform: none; }
  /* Was collapsing to a bare 27px circle with only the 7px pulsing dot
     visible (label:none + uniform 10px padding) — read as an unexplained
     tiny green dot, not a recognizable Oriven control. Keeps the same
     pill/label identity as desktop, just slightly more compact, so it
     stays clearly identifiable and has a proper touch target. */
  .orv-ai-fab { bottom: 16px; right: 16px; padding: 9px 14px 9px 11px; gap: 6px; font-size: 12.5px; }
}

/* ── Mobile/tablet nav: hamburger + slide-out drawer, replacing .orv-sb
   below the unified drawer breakpoint (1024px — see the @media rule at the
   bottom of this section) ────────────────────────────────────────────────
   Exactly two nav modes app-wide: full sidebar above 1024px, hamburger+
   drawer at or below it. No intermediate icon-only rail (removed above).
   1024px chosen as "where the interface genuinely stops behaving like a
   desktop": it's iPad Pro 12.9" portrait width, the standard tablet/laptop
   boundary, and already used elsewhere in this file as the "tablet-lg"
   tier. Landscape tablets wider than that (iPad Air/Pro landscape, Surface
   landscape) get the real sidebar, matching "Desktop/Laptop: exactly like
   today" — only portrait/narrow tablet and phone widths get the drawer.
   New class names only, does not touch either existing .orv-sb block
   (24059/24713 range — that duplication is pre-existing and out of scope
   here). Off-canvas slide-in adapted from the same approach the retired
   .sb drawer already used (left:-Npx -> left:0, .25s ease, dark overlay). */
.orv-mob-toggle {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 9215;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--charcoal); cursor: pointer; box-shadow: var(--shm);
}
body.dark-mode .orv-mob-toggle { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); color: rgba(255,255,255,.85); }
/* Applied by _orvDrawerOpen/_orvDrawerClose (app.html) — the hamburger and
   the drawer's own close (X) button must never both be visible at once.
   Two classes on the same element beats the single-class @media rule
   below by specificity alone, no !important needed. */
.orv-mob-toggle.orv-mob-toggle-hidden { display: none; }

.orv-mob-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 9205;
  opacity: 0; transition: opacity .25s ease;
}
.orv-mob-drawer-overlay.open { display: block; }
.orv-mob-drawer-overlay.open.active { opacity: 1; }

.orv-mob-drawer {
  display: none;
  position: fixed; left: -260px; top: 0; height: 100vh; width: 240px;
  z-index: 9210; background: var(--bg, #F6F3EE);
  border-right: 1px solid var(--border); box-shadow: var(--shl);
  transition: left .25s ease;
  flex-direction: column;
}
body.dark-mode .orv-mob-drawer { background: #0E0E0F; border-color: rgba(255,255,255,.07); }
.orv-mob-drawer.open { display: flex; }
.orv-mob-drawer.open.active { left: 0; }

.orv-mob-drawer-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px 12px;
}
.orv-mob-drawer-logo { width: 32px; height: 32px; border-radius: 7px; }
.orv-mob-drawer-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.orv-mob-drawer-close:hover { background: rgba(0,0,0,.05); }
body.dark-mode .orv-mob-drawer-close:hover { background: rgba(255,255,255,.06); }

.orv-mob-drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px; flex: 1; overflow-y: auto; }
.orv-mob-drawer-bottom { padding: 8px; border-top: 1px solid var(--border); }
body.dark-mode .orv-mob-drawer-bottom { border-color: rgba(255,255,255,.07); }
/* .orv-mob-drawer-nav/.orv-mob-drawer-bottom buttons reuse .orv-ni's own
   visual styling (already defined in the .orv-sb blocks) — only the
   drawer's own chrome and layout are new. */
.orv-mob-drawer .orv-ni { width: 100%; justify-content: flex-start; padding: 10px 12px; min-height: 44px; }
.orv-mob-drawer .orv-ni .orv-ni-label { display: inline !important; }

@media (max-width: 1024px) {
  .orv-sb { display: none !important; } /* base .orv-sb is display:flex !important — must match to win */
  .orv-mob-toggle { display: flex; }
}


/* ══════════════════════════════════════════════════════════════
   OVERVIEW v2 — Command Center redesign
   ══════════════════════════════════════════════════════════════ */

/* ── Sidebar logo: left-aligned, larger ────────────────────── */
.orv-sb-logo-name { display: none !important; }
.orv-sb-logo-img  { width: 40px !important; height: 40px !important; border-radius: 8px !important; }
.orv-sb-logo      { justify-content: flex-start !important; padding: 14px 12px 12px !important; }

/* ── Page wrapper ───────────────────────────────────────────── */
.orv-ov-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 32px 56px;
}

/* ── Header ─────────────────────────────────────────────────── */
.orv-ov-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

/* ── Quick actions strip ────────────────────────────────────── */
.orv-ov-actions { display: flex; gap: 6px; flex-shrink: 0; }
.orv-ov-action {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .12s, color .12s;
  white-space: nowrap;
  font-family: inherit;
}
.orv-ov-action:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--charcoal); }
.orv-ov-action svg { opacity: .7; flex-shrink: 0; }
body.dark-mode .orv-ov-action {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
}
body.dark-mode .orv-ov-action:hover { color: rgba(255,255,255,.9); border-color: color-mix(in srgb, var(--green) 40%, transparent); }

/* ── KPI strip ──────────────────────────────────────────────── */
.orv-ov-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.orv-ov-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
body.dark-mode .orv-ov-kpi {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
.orv-ov-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.orv-ov-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.orv-ov-kpi-trend { font-size: 11px; font-weight: 600; }
.orv-trend-up   { color: #3ecf8e; }
.orv-trend-down { color: #f66; }
.orv-trend-flat { color: var(--muted); }
.orv-ov-kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.04em;
  line-height: 1;
}
body.dark-mode .orv-ov-kpi-val { color: rgba(255,255,255,.95); }
.orv-kpi-accent { color: var(--green-text) !important; }
body.dark-mode .orv-kpi-accent { color: var(--green) !important; }

/* ── Main grid ──────────────────────────────────────────────── */
.orv-ov-main {
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 12px;
  margin-bottom: 12px;
}

/* ── Campaigns card ─────────────────────────────────────────── */
.orv-ov-campaigns {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
body.dark-mode .orv-ov-campaigns {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
.orv-ov-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--border);
}
body.dark-mode .orv-ov-card-head { border-bottom-color: rgba(255,255,255,.06); }
.orv-ov-card-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.orv-ov-see-all {
  font-size: 11px; font-weight: 500;
  color: var(--muted); background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit;
  transition: color .12s;
}
.orv-ov-see-all:hover { color: var(--charcoal); }
body.dark-mode .orv-ov-see-all:hover { color: rgba(255,255,255,.85); }

/* Campaign table header */
.orv-ov-camp-thead {
  display: grid;
  grid-template-columns: 1fr 80px 56px 56px;
  gap: 8px;
  padding: 7px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  opacity: .6;
}
body.dark-mode .orv-ov-camp-thead { border-bottom-color: rgba(255,255,255,.05); }
.orv-camp-th-r { text-align: right; }

/* Campaign rows */
.orv-ov-camp-row {
  display: grid;
  grid-template-columns: 1fr 80px 56px 56px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.orv-ov-camp-row:last-child { border-bottom: none; }
.orv-ov-camp-row:hover { background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .orv-ov-camp-row { border-bottom-color: rgba(255,255,255,.05); }
body.dark-mode .orv-ov-camp-row:hover { background: rgba(255,255,255,.03); }
.orv-ov-camp-name {
  font-size: 12px; font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.dark-mode .orv-ov-camp-name { color: rgba(255,255,255,.88); }
.orv-ov-camp-plat {
  font-size: 11px; color: var(--muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orv-ov-camp-stat {
  text-align: right;
  font-size: 12px; font-weight: 700;
  color: var(--charcoal);
}
body.dark-mode .orv-ov-camp-stat { color: rgba(255,255,255,.88); }
.orv-camp-stat-good { color: #3ecf8e !important; }
.orv-camp-stat-warn { color: #ffb43c !important; }

/* ── AI Recommendations card ────────────────────────────────── */
.orv-ov-ai-recs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
body.dark-mode .orv-ov-ai-recs {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
/* Top accent line — marks this as the most important card */
.orv-ov-ai-recs::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, color-mix(in srgb, var(--green) 0%, transparent) 100%);
  border-radius: 14px 14px 0 0;
}

.orv-ov-ai-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  background: color-mix(in srgb, var(--green) 13%, transparent);
  color: var(--green-text);
  padding: 2px 7px; border-radius: 20px;
}
body.dark-mode .orv-ov-ai-badge { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }

/* Rec rows */
.orv-ov-rec-list { display: flex; flex-direction: column; }
.orv-ov-rec {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.orv-ov-rec:last-of-type { border-bottom: none; }
.orv-ov-rec:hover { background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .orv-ov-rec { border-bottom-color: rgba(255,255,255,.06); }

/* Ghost state: shown when no account connected */
.orv-ov-rec.orv-rec-ghost { opacity: .3; pointer-events: none; }

.orv-ov-rec-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0; margin-top: 1px;
}
.orv-rec-green { background: rgba(62,207,142,.12); color: #3ecf8e; }
.orv-rec-red   { background: rgba(246,102,102,.12); color: #f55; }
.orv-rec-blue  { background: rgba(99,179,255,.12);  color: #63b3ff; }
.orv-rec-warn  { background: rgba(255,180,60,.12);  color: #ffb43c; }

.orv-ov-rec-body { flex: 1; min-width: 0; }
.orv-ov-rec-title {
  font-size: 12px; font-weight: 600;
  color: var(--charcoal); line-height: 1.35; margin-bottom: 2px;
}
body.dark-mode .orv-ov-rec-title { color: rgba(255,255,255,.88); }
.orv-ov-rec-sub { font-size: 11px; color: var(--muted); line-height: 1.4; }
.orv-ov-rec-arrow { font-size: 11px; color: var(--muted); flex-shrink: 0; margin-top: 3px; }

/* Connect banner inside rec list */
.orv-ov-rec-connect {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px 13px;
  font-size: 11px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  transition: color .12s;
  border-top: 1px dashed var(--border);
  font-family: inherit; background: none;
}
.orv-ov-rec-connect:hover { color: var(--charcoal); }
body.dark-mode .orv-ov-rec-connect:hover { color: rgba(255,255,255,.8); }

/* ── Empty state ────────────────────────────────────────────── */
.orv-ov-empty {
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
}
.orv-ov-empty-icon { margin-bottom: 8px; }
.orv-ov-empty-title {
  font-size: 12px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 4px;
}
body.dark-mode .orv-ov-empty-title { color: rgba(255,255,255,.55); }
.orv-ov-empty-sub { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ── Platform status row ────────────────────────────────────── */
.orv-ov-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.orv-ov-plat {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: border-color .12s;
}
.orv-ov-plat:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
body.dark-mode .orv-ov-plat {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
.orv-ov-plat-left { display: flex; align-items: center; gap: 10px; }
.orv-ov-plat-name { font-size: 12px; font-weight: 600; color: var(--charcoal); line-height: 1.3; }
body.dark-mode .orv-ov-plat-name { color: rgba(255,255,255,.85); }
.orv-ov-plat-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.orv-ov-plat-status { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.orv-ov-plat-status.connected { color: #3ecf8e; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .orv-ov-main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .orv-ov-wrap { padding: 16px 16px 40px; }
  .orv-ov-kpis { grid-template-columns: repeat(2, 1fr); }
  .orv-ov-platforms { grid-template-columns: 1fr; }
  .orv-ov-actions { display: none; }
  .orv-ov-header { margin-bottom: 14px; }
}


/* ══════════════════════════════════════════════════════════════
   OVERVIEW v3 — Expanded viewport, platform filters
   ══════════════════════════════════════════════════════════════ */

/* ── Remove centering constraint, fill the viewport ────────── */
.orv-ov-wrap {
  max-width: none !important;
  padding: 22px 28px 44px !important;
}

/* ── KPI source label row ───────────────────────────────────── */
.orv-ov-kpi-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.orv-ov-kpi-source {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.orv-ov-kpi-clear {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color .12s, border-color .12s;
}
.orv-ov-kpi-clear:hover { color: var(--charcoal); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
body.dark-mode .orv-ov-kpi-clear { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
body.dark-mode .orv-ov-kpi-clear:hover { color: rgba(255,255,255,.85); border-color: color-mix(in srgb, var(--green) 40%, transparent); }

/* ── KPI cards — slightly taller, larger values ─────────────── */
.orv-ov-kpis { gap: 10px; margin-bottom: 12px; }
.orv-ov-kpi  { padding: 16px 18px 14px !important; }
.orv-ov-kpi-val { font-size: 30px !important; }

/* ── Main grid — campaigns fill available width ─────────────── */
.orv-ov-main { grid-template-columns: 1fr 308px !important; gap: 10px !important; margin-bottom: 10px !important; }

/* ── Campaign list — taller, scrollable ─────────────────────── */
.orv-ov-camp-list {
  min-height: 300px;
  max-height: 460px;
  overflow-y: auto;
}
.orv-ov-camp-list::-webkit-scrollbar { width: 4px; }
.orv-ov-camp-list::-webkit-scrollbar-track { background: transparent; }
.orv-ov-camp-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── AI rec list — taller to match campaigns ─────────────────── */
.orv-ov-ai-recs .orv-ov-rec-list {
  min-height: 300px;
}

/* ══════════════════════════════════════════════════════════════
   PLATFORM FILTER CARDS — full redesign
   ══════════════════════════════════════════════════════════════ */

/* Override old flat layout with vertical card layout */
.orv-ov-platforms { gap: 10px; }

.orv-ov-plat {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 13px !important;
  cursor: pointer;
  transition: border-color .15s, opacity .15s, background .15s !important;
  user-select: none;
}

/* Platform card head row */
.orv-ov-plat-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.orv-ov-plat-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  flex: 1;
}
.orv-ov-plat-filter-hint {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .15s;
}
.orv-ov-plat:hover .orv-ov-plat-filter-hint { opacity: 1; }

/* Stats block inside card */
.orv-ov-plat-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.orv-ov-plat-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.orv-ov-plat-stat-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.orv-ov-plat-stat-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
}
body.dark-mode .orv-ov-plat-stat-val { color: rgba(255,255,255,.88); }

/* Status value colour */
.orv-ov-plat-status.connected { color: #3ecf8e !important; }
body.dark-mode .orv-ov-plat-status:not(.connected) { color: rgba(255,255,255,.35) !important; }

/* ── Filter states ───────────────────────────────────────────── */

/* Default: all active */
.orv-ov-plat.orv-plat-active {
  border-color: var(--border);
  opacity: 1;
}
/* Active filter — selected card gets accent border + faint bg */
.orv-ov-plat.orv-plat-active.orv-plat-selected {
  border-color: color-mix(in srgb, var(--green) 55%, transparent) !important;
  background: color-mix(in srgb, var(--green) 4%, transparent) !important;
}
body.dark-mode .orv-ov-plat.orv-plat-active.orv-plat-selected {
  background: color-mix(in srgb, var(--green) 6%, transparent) !important;
}
/* Dimmed: non-selected platforms when a filter is active */
.orv-ov-plat.orv-plat-dim {
  opacity: .38 !important;
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .orv-ov-main { grid-template-columns: 1fr 280px !important; }
}
@media (max-width: 900px) {
  .orv-ov-main { grid-template-columns: 1fr !important; }
  .orv-ov-camp-list { max-height: 300px; }
}
@media (max-width: 700px) {
  .orv-ov-wrap { padding: 14px 14px 36px !important; }
  .orv-ov-kpis { grid-template-columns: repeat(2,1fr) !important; }
  .orv-ov-platforms { grid-template-columns: 1fr !important; }
  .orv-ov-actions { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   OVERVIEW v4 — Visual energy: strategic color + hierarchy
   ══════════════════════════════════════════════════════════════ */

/* ── Platform icon badges ───────────────────────────────────── */
.orv-plat-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -.01em;
  font-style: normal;
  line-height: 1;
}

/* Light mode */
.orv-plat-icon-google {
  background: rgba(251,188,4,.12);
  color: #b8860b;
  border: 1px solid rgba(251,188,4,.25);
}
.orv-plat-icon-meta {
  background: rgba(24,119,242,.1);
  color: #1a6ed8;
  border: 1px solid rgba(24,119,242,.2);
}
.orv-plat-icon-tiktok {
  background: rgba(254,44,85,.09);
  color: #c81e3d;
  border: 1px solid rgba(254,44,85,.18);
}

/* Dark mode */
body.dark-mode .orv-plat-icon-google {
  background: rgba(251,188,4,.1);
  color: #FBBC04;
  border-color: rgba(251,188,4,.2);
}
body.dark-mode .orv-plat-icon-meta {
  background: rgba(24,119,242,.1);
  color: #5da8ff;
  border-color: rgba(24,119,242,.2);
}
body.dark-mode .orv-plat-icon-tiktok {
  background: rgba(254,44,85,.1);
  color: #ff6b7a;
  border-color: rgba(254,44,85,.16);
}

/* ── Platform cards: CSS custom property per platform ────────── */
.orv-ov-plat[data-platform="google"] { --pc: 251,188,4; }
.orv-ov-plat[data-platform="meta"]   { --pc: 24,119,242; }
.orv-ov-plat[data-platform="tiktok"] { --pc: 254,44,85; }

/* Position context for ::before accent line */
.orv-ov-plat[data-platform] {
  position: relative;
  overflow: hidden;
}

/* Colored top accent line — always visible */
.orv-ov-plat[data-platform]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(var(--pc), 1);
  opacity: .45;
  border-radius: 13px 13px 0 0;
  transition: opacity .15s;
}

/* Hover: colored border + platform-tinted background */
.orv-ov-plat[data-platform]:hover {
  border-color: rgba(var(--pc), .3) !important;
  background: rgba(var(--pc), .03) !important;
}
.orv-ov-plat[data-platform]:hover::before { opacity: .7; }
body.dark-mode .orv-ov-plat[data-platform]:hover {
  background: rgba(var(--pc), .06) !important;
}

/* Selected state: platform color takes over */
.orv-ov-plat[data-platform].orv-plat-selected {
  border-color: rgba(var(--pc), .45) !important;
  background: rgba(var(--pc), .05) !important;
}
.orv-ov-plat[data-platform].orv-plat-selected::before { opacity: .9; }
body.dark-mode .orv-ov-plat[data-platform].orv-plat-selected {
  border-color: rgba(var(--pc), .4) !important;
  background: rgba(var(--pc), .08) !important;
}

/* Filter hint shows in platform color when selected */
.orv-ov-plat[data-platform].orv-plat-selected .orv-ov-plat-filter-hint {
  color: rgba(var(--pc), 1);
  opacity: 1;
}

/* Status "Active" text gets platform color tint */
.orv-ov-plat[data-platform].orv-plat-selected .orv-ov-plat-status.connected {
  color: rgba(var(--pc), .9) !important;
}

/* ── KPI cards: colored top accent by position ───────────────── */
.orv-ov-kpi {
  position: relative;
  overflow: hidden;
}
.orv-ov-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 12px 12px 0 0;
}

/* Spend — warm yellow */
.orv-ov-kpis .orv-ov-kpi:nth-child(1)::before { background: rgba(251,188,4,.75); }
/* Clicks — cool blue */
.orv-ov-kpis .orv-ov-kpi:nth-child(2)::before { background: rgba(99,179,255,.75); }
/* Conversions — green */
.orv-ov-kpis .orv-ov-kpi:nth-child(3)::before { background: rgba(62,207,142,.75); }
/* ROAS — brand accent */
.orv-ov-kpis .orv-ov-kpi:nth-child(4)::before { background: color-mix(in srgb, var(--green) 80%, transparent); }

/* KPI label: tinted to echo card accent (dark mode only — legible on dark bg) */
body.dark-mode .orv-ov-kpis .orv-ov-kpi:nth-child(1) .orv-ov-kpi-lbl { color: rgba(251,188,4,.55); }
body.dark-mode .orv-ov-kpis .orv-ov-kpi:nth-child(2) .orv-ov-kpi-lbl { color: rgba(99,179,255,.55); }
body.dark-mode .orv-ov-kpis .orv-ov-kpi:nth-child(3) .orv-ov-kpi-lbl { color: rgba(62,207,142,.55); }
body.dark-mode .orv-ov-kpis .orv-ov-kpi:nth-child(4) .orv-ov-kpi-lbl { color: color-mix(in srgb, var(--green) 55%, transparent); }

/* ── Quick action buttons: color-coded ───────────────────────── */
.orv-ov-actions .orv-ov-action {
  position: relative;
  overflow: hidden;
}
/* Colored top line per button */
.orv-ov-actions .orv-ov-action::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
}
.orv-ov-actions .orv-ov-action:nth-child(1)::before { background: color-mix(in srgb, var(--green) 65%, transparent); }  /* Create: green */
.orv-ov-actions .orv-ov-action:nth-child(2)::before { background: rgba(99,179,255,.65); }  /* Connect: blue */
.orv-ov-actions .orv-ov-action:nth-child(3)::before { background: rgba(251,188,4,.65); }   /* Performance: yellow */
.orv-ov-actions .orv-ov-action:nth-child(4)::before { background: rgba(168,85,247,.65); }  /* Reports: purple */

/* Colored SVG icons */
.orv-ov-actions .orv-ov-action:nth-child(1) svg { color: var(--green); opacity: .9; }
.orv-ov-actions .orv-ov-action:nth-child(2) svg { color: #63b3ff; opacity: .9; }
.orv-ov-actions .orv-ov-action:nth-child(3) svg { color: #FBBC04; opacity: .9; }
.orv-ov-actions .orv-ov-action:nth-child(4) svg { color: #a855f7; opacity: .9; }

/* Hover: match accent color */
.orv-ov-actions .orv-ov-action:nth-child(1):hover {
  border-color: color-mix(in srgb, var(--green) 35%, transparent) !important;
  background: color-mix(in srgb, var(--green) 4%, transparent) !important;
}
.orv-ov-actions .orv-ov-action:nth-child(2):hover {
  border-color: rgba(99,179,255,.35) !important;
  background: rgba(99,179,255,.04) !important;
}
.orv-ov-actions .orv-ov-action:nth-child(3):hover {
  border-color: rgba(251,188,4,.35) !important;
  background: rgba(251,188,4,.04) !important;
}
.orv-ov-actions .orv-ov-action:nth-child(4):hover {
  border-color: rgba(168,85,247,.35) !important;
  background: rgba(168,85,247,.04) !important;
}

/* ── AI Recommendations: fill full height of main grid ───────── */
.orv-ov-main { align-items: stretch !important; }
.orv-ov-ai-recs {
  display: flex !important;
  flex-direction: column !important;
}
.orv-ov-ai-recs .orv-ov-card-head { flex-shrink: 0; }
.orv-ov-ai-recs .orv-ov-rec-list  { flex: 1; min-height: 0; }

/* ── Campaign card: centerpiece emphasis ─────────────────────── */
.orv-ov-campaigns {
  position: relative;
  overflow: hidden;
}
/* Subtle white top-line — differentiates from AI card's green */
.orv-ov-campaigns::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,.06) 50%,
    rgba(255,255,255,0)   100%
  );
  border-radius: 14px 14px 0 0;
}
/* Slightly elevated header */
.orv-ov-campaigns .orv-ov-card-head {
  background: rgba(255,255,255,.015);
}
/* Stronger section label */
.orv-ov-campaigns .orv-ov-card-title {
  letter-spacing: .11em !important;
}

/* Campaign table header: subtle tinted row */
.orv-ov-camp-thead {
  background: rgba(255,255,255,.018);
}
body.dark-mode .orv-ov-camp-thead {
  background: rgba(255,255,255,.022);
}


/* ══════════════════════════════════════════════════════════════
   OVERVIEW v5 — Height expansion, whitespace reduction
   ══════════════════════════════════════════════════════════════ */

/* ── Reduce bottom padding — content fills screen ───────────── */
.orv-ov-wrap { padding-bottom: 20px !important; }

/* ── Active Campaigns: taller list ──────────────────────────── */
.orv-ov-camp-list {
  min-height: 400px !important;
  max-height: 600px !important;
}

/* ── AI panel: taller rec list to match campaigns ────────────── */
.orv-ov-ai-recs .orv-ov-rec-list {
  min-height: 400px !important;
}

/* Empty state: vertically centered in the taller space */
.orv-ov-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 20px !important;
  cursor: default !important;
}

/* Campaign empty state: no pointer cursor since it's not clickable */
#orvCampEmpty { cursor: default !important; }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONNECT PAGE v1 — 3-column integrations grid
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Page wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-page {
  padding: 28px 32px 48px;
}

/* â”€â”€ Page header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-hdr { margin-bottom: 28px; }
.conn-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
body.dark-mode .conn-title { color: rgba(255,255,255,.92); }
.conn-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 540px;
}

/* â”€â”€ 3-column grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

/* â”€â”€ Individual card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s;
}
body.dark-mode .conn-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}

/* Platform-color top accent line */
.conn-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(var(--conn-pc), 1);
  opacity: .45;
  border-radius: 14px 14px 0 0;
}
.conn-card:hover::before { opacity: .75; }

.conn-card-google { --conn-pc: 251,188,4; }
.conn-card-meta   { --conn-pc: 24,119,242; }
.conn-card-tiktok { --conn-pc: 254,44,85; }

/* Subtle hover */
.conn-card:hover {
  border-color: rgba(var(--conn-pc), .3);
}
body.dark-mode .conn-card:hover {
  border-color: rgba(var(--conn-pc), .25);
}

/* â”€â”€ Card head: logo + name + status badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.conn-logo-wrap {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.conn-name-group { flex: 1; min-width: 0; }
.conn-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.015em;
  margin-bottom: 4px;
}
body.dark-mode .conn-name { color: rgba(255,255,255,.92); }

/* â”€â”€ Connected badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-badge-on {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #3ecf8e;
  background: rgba(62,207,142,.1);
  border: 1px solid rgba(62,207,142,.22);
  padding: 2px 8px 2px 6px;
  border-radius: 20px;
}
.conn-badge-on::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ecf8e;
  flex-shrink: 0;
}

/* â”€â”€ Description â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* â”€â”€ Connected details block â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conn-loading {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
}
.conn-error {
  font-size: 12px;
  color: #ef4444;
  line-height: 1.45;
}

/* Accounts section label */
.conn-accounts-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Compact account list: tighten the existing int-account-row styles */
.conn-accounts-list .int-account-row {
  padding: 8px 10px !important;
  border-radius: 8px !important;
  margin-bottom: 4px;
}
.conn-accounts-list .int-account-row:last-child { margin-bottom: 0; }
.conn-accounts-list .int-account-name { font-size: 12px !important; }
.conn-accounts-list .int-account-id   { font-size: 10px !important; }
.conn-accounts-list .int-account-meta { font-size: 10px !important; }
.conn-accounts-list .int-account-mcc-warn { font-size: 10px !important; }

/* â”€â”€ Details actions: Refresh + Disconnect â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-details-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.conn-btn-danger {
  color: rgba(239,68,68,.75) !important;
  border-color: rgba(239,68,68,.18) !important;
}
.conn-btn-danger:hover {
  color: #ef4444 !important;
  border-color: rgba(239,68,68,.4) !important;
  background: rgba(239,68,68,.04) !important;
}

/* â”€â”€ Connect button (full-width, disconnected state) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-btn-full {
  width: 100%;
  justify-content: center !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1100px) {
  .conn-grid { grid-template-columns: repeat(2, 1fr); }
  .conn-card-tiktok { grid-column: span 2; max-width: 50%; }
}
@media (max-width: 740px) {
  .conn-page { padding: 16px 16px 40px; }
  .conn-grid { grid-template-columns: 1fr; }
  .conn-card-tiktok { grid-column: span 1; max-width: none; }
}



/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONNECT PAGE v2 — Equal card heights
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Grid rows stretch all cards to the same height */
.conn-grid { align-items: stretch !important; }

/* â”€â”€ Disconnected state: Connect button pins to bottom â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.conn-btn-full { margin-top: auto !important; }

/* â”€â”€ Connected state: details block fills remaining height â”€â”€â”€â”€â”€ */
.conn-details {
  flex: 1 !important;
}

/* Actions pin to bottom of the details block regardless of account count */
.conn-details-actions { margin-top: auto !important; }



/* ══════════════════════════════════════════════════════════════
   CAMPAIGN CREATION v2 — 5-screen guided experience
   ══════════════════════════════════════════════════════════════ */

/* ── Page & screen container ─────────────────────────────────── */
#page-create {
  height: 100%;
  flex-direction: column;
}
.crv-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.crv-screen {
  flex: 1;
  overflow-y: auto;
}
.crv-screen::-webkit-scrollbar { width: 4px; }
.crv-screen::-webkit-scrollbar-track { background: transparent; }
.crv-screen::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Stage (centered content wrapper) ───────────────────────── */
.crv-stage {
  padding: 56px 32px 64px;
  margin: 0 auto;
  width: 100%;
}
.crv-stage-center { max-width: 980px; }
.crv-stage-narrow { max-width: 520px; }
.crv-stage-wide   { max-width: 1100px; }

/* ── Typography ──────────────────────────────────────────────── */
.crv-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.crv-h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}
body.dark-mode .crv-h1 { color: rgba(255,255,255,.95); }
.crv-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 40px;
  line-height: 1.5;
}

/* ── Navigation row (back + breadcrumb) ──────────────────────── */
.crv-nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.crv-back {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .12s;
  flex-shrink: 0;
}
.crv-back:hover { color: var(--charcoal); }
body.dark-mode .crv-back:hover { color: rgba(255,255,255,.85); }
.crv-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
}
body.dark-mode .crv-breadcrumb {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09);
}

/* ══════════════════════════════════════════════════════════════
   SCREEN 1 — Platform Selection
   ══════════════════════════════════════════════════════════════ */

.crv-plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
}

.crv-plat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 26px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  font-family: inherit;
}
body.dark-mode .crv-plat-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}

/* Platform color accent line */
.crv-plat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(var(--crv-pc), 1);
  opacity: .5;
  border-radius: 18px 18px 0 0;
  transition: opacity .18s, height .18s;
}
.crv-plat-card:hover::before  { opacity: .9; height: 4px; }
.crv-plat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--crv-pc), .35);
  box-shadow: 0 10px 32px rgba(var(--crv-pc), .12);
}
.crv-plat-card.crv-plat-selected {
  border-color: rgba(var(--crv-pc), .5) !important;
  background: rgba(var(--crv-pc), .04) !important;
}
body.dark-mode .crv-plat-card.crv-plat-selected {
  background: rgba(var(--crv-pc), .07) !important;
}

.crv-plat-google { --crv-pc: 251,188,4; }
.crv-plat-meta   { --crv-pc: 24,119,242; }
.crv-plat-tiktok { --crv-pc: 254,44,85; }

.crv-plat-logo {
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.crv-plat-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.02em;
}
body.dark-mode .crv-plat-name { color: rgba(255,255,255,.92); }

.crv-plat-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.crv-plat-types li {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding-left: 14px;
  position: relative;
}
.crv-plat-types li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: rgba(var(--crv-pc), 1);
  font-weight: 900;
}

/* ══════════════════════════════════════════════════════════════
   SCREEN 2 — Goal Selection
   ══════════════════════════════════════════════════════════════ */

.crv-goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
}

.crv-goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  transition: border-color .14s, background .14s, transform .14s;
  position: relative;
  overflow: hidden;
}
body.dark-mode .crv-goal-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
.crv-goal-card:hover {
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
  background: color-mix(in srgb, var(--green) 3%, transparent);
  transform: translateY(-1px);
}
.crv-goal-card.crv-selected {
  border-color: color-mix(in srgb, var(--green) 55%, transparent) !important;
  background: color-mix(in srgb, var(--green) 5%, transparent) !important;
}
body.dark-mode .crv-goal-card.crv-selected {
  background: color-mix(in srgb, var(--green) 7%, transparent) !important;
}

.crv-goal-ico {
  color: var(--muted);
  transition: color .14s;
  width: 22px;
  height: 22px;
}
.crv-goal-card:hover .crv-goal-ico,
.crv-goal-card.crv-selected .crv-goal-ico { color: var(--green); }
body.dark-mode .crv-goal-card.crv-selected .crv-goal-ico { color: var(--green); }

.crv-goal-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.01em;
}
body.dark-mode .crv-goal-name { color: rgba(255,255,255,.9); }
.crv-goal-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════
   SCREEN 3 — Product Details
   ══════════════════════════════════════════════════════════════ */

.crv-fields { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

.crv-field { display: flex; flex-direction: column; gap: 7px; }
.crv-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}
body.dark-mode .crv-label { color: rgba(255,255,255,.75); }
.crv-opt {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.crv-input, .crv-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--charcoal);
  font-family: inherit;
  transition: border-color .12s;
  box-sizing: border-box;
  resize: none;
  outline: none;
}
body.dark-mode .crv-input, body.dark-mode .crv-textarea {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
}
.crv-input:focus, .crv-textarea:focus {
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
}
.crv-input::placeholder, .crv-textarea::placeholder { color: var(--muted); opacity: .7; }

.crv-continue {
  width: 100%;
  justify-content: center !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
}

/* ══════════════════════════════════════════════════════════════
   SHARED — Loading state
   ══════════════════════════════════════════════════════════════ */

.crv-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 300px;
  padding: 60px 20px;
  gap: 16px;
}
.crv-spinner-ring {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: crvSpin .75s linear infinite;
}
body.dark-mode .crv-spinner-ring { border-color: rgba(255,255,255,.1); border-top-color: var(--green); }
@keyframes crvSpin { to { transform: rotate(360deg); } }

.crv-loading-h {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.01em;
}
body.dark-mode .crv-loading-h { color: rgba(255,255,255,.85); }
.crv-loading-p { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   SCREEN 4 — Concept Cards
   ══════════════════════════════════════════════════════════════ */

.crv-concepts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.crv-concept-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
}
body.dark-mode .crv-concept-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
.crv-concept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
}
body.dark-mode .crv-concept-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.crv-concept-card.crv-selected {
  border-color: color-mix(in srgb, var(--green) 55%, transparent) !important;
  background: color-mix(in srgb, var(--green) 4%, transparent) !important;
}

.crv-concept-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  align-self: flex-start;
}
.crv-concept-angle {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.01em;
  line-height: 1.3;
}
body.dark-mode .crv-concept-angle { color: rgba(255,255,255,.9); }
.crv-concept-hook {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.crv-concept-line {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.4;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}
body.dark-mode .crv-concept-line { color: rgba(255,255,255,.7); }
.crv-concept-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: auto;
  transition: color .12s;
}
.crv-concept-card:hover .crv-concept-cta { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   [REMOVED — Final Polish cleanup audit] "SCREEN 5 — Campaign Studio"
   (~400 lines: .crv-studio-*, .crv-sl-*, .crv-pub-*, .crv-gen-*,
   .crv-ai-*, .crv-center-*, .crv-asset-*, #crvS2/S3/S4/Sassets, and
   the "Studio outer container fix" that followed it) was the CSS for
   the early 3-column Campaign Studio modal the user explicitly
   rejected earlier this project -- its HTML was already deleted from
   app.html in that pass, leaving this CSS (and app.html's _crvShow/
   _crvLaunchStudio, which are effectively no-ops now since every DOM
   id they target no longer exists) orphaned. Confirmed zero matches
   for every selector here across app.html/*.js before removal. The
   still-active Meta/Google/TikTok Preview/Edit/Review screens use an
   unrelated, current design system (.cst-*), not this one.
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   OVERVIEW v2 — ov2-*
   ══════════════════════════════════════════════════════════════ */

.ov2 {
  padding: 32px 36px 64px;
  max-width: 900px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.ov2-hero { margin-bottom: 32px; }
.ov2-greeting {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
body.dark-mode .ov2-greeting { color: rgba(255,255,255,.92); }
.ov2-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ── Action Cards ────────────────────────────────────────────── */
.ov2-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.ov2-act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  position: relative;
  overflow: hidden;
}
body.dark-mode .ov2-act {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
.ov2-act:hover {
  border-color: rgba(99,179,255,.35);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
body.dark-mode .ov2-act:hover {
  border-color: rgba(99,179,255,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
}
.ov2-act-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #63b3ff, #a855f7);
  border-radius: 14px 14px 0 0;
}
.ov2-act-ico {
  font-size: 22px;
  line-height: 1;
}
.ov2-act-body { flex: 1; }
.ov2-act-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
body.dark-mode .ov2-act-title { color: rgba(255,255,255,.9); }
.ov2-act-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.ov2-act-arrow {
  font-size: 16px;
  color: var(--muted);
  align-self: flex-end;
  transition: transform .15s, color .15s;
}
.ov2-act:hover .ov2-act-arrow {
  transform: translateX(3px);
  color: #63b3ff;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.ov2-section { margin-bottom: 32px; }
.ov2-sh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ov2-sh-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.01em;
  flex: 1;
}
body.dark-mode .ov2-sh-title { color: rgba(255,255,255,.85); }
.ov2-sh-btn {
  font-size: 11.5px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.ov2-sh-btn:hover { color: var(--charcoal); }
body.dark-mode .ov2-sh-btn:hover { color: rgba(255,255,255,.8); }
.ov2-ai-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a855f7;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  padding: 2px 7px;
  border-radius: 20px;
}

/* ── AI Recommendations ──────────────────────────────────────── */
.ov2-recs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov2-rec {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .15s, background .15s;
}
body.dark-mode .ov2-rec {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.065);
}
.ov2-rec:hover {
  background: rgba(99,179,255,.04);
  border-color: rgba(99,179,255,.2);
}
body.dark-mode .ov2-rec:hover {
  background: rgba(99,179,255,.06);
  border-color: rgba(99,179,255,.2);
}
/* Ghost state (not connected yet) */
.ov2-rec.orv-rec-ghost {
  opacity: .45;
  pointer-events: none;
}
.ov2-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov2-rec-dot-green  { background: #3ecf8e; }
.ov2-rec-dot-warn   { background: #FBBC04; }
.ov2-rec-dot-red    { background: #ef4444; }
.ov2-rec-dot-blue   { background: #63b3ff; }
.ov2-rec-body { flex: 1; min-width: 0; }
.ov2-rec-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 2px;
}
body.dark-mode .ov2-rec-title { color: rgba(255,255,255,.88); }
.ov2-rec-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}
.ov2-rec-arrow {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}
.ov2-rec:hover .ov2-rec-arrow {
  transform: translateX(3px);
  color: #63b3ff;
}
.ov2-rec-connect {
  font-size: 11px;
  color: #63b3ff;
  flex-shrink: 0;
}

/* ── Connected Platforms ─────────────────────────────────────── */
.ov2-platforms {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ov2-plat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 160px;
}
body.dark-mode .ov2-plat {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.065);
}
.ov2-plat-logo {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.ov2-plat-info { flex: 1; min-width: 0; }
.ov2-plat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 3px;
}
body.dark-mode .ov2-plat-name { color: rgba(255,255,255,.88); }
.ov2-plat-status {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

/* ── Empty state ─────────────────────────────────────────────── */
.ov2-empty {
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
body.dark-mode .ov2-empty {
  background: rgba(255,255,255,.015);
  border-color: rgba(255,255,255,.08);
}
.ov2-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 6px;
}
body.dark-mode .ov2-empty-title { color: rgba(255,255,255,.75); }
.ov2-empty-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 16px;
}
.ov2-empty-cta {
  font-size: 13px;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ov2 { padding: 24px 20px 48px; }
  .ov2-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ov2-actions { grid-template-columns: 1fr; }
  .ov2-platforms { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   CREATE S1 — GOAL + PLATFORM PILLS  (crv-pill-*)
   ══════════════════════════════════════════════════════════════ */

.crv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .1s;
  white-space: nowrap;
  letter-spacing: -.01em;
}
body.dark-mode .crv-pill {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}
.crv-pill:hover {
  border-color: rgba(99,179,255,.4);
  background: rgba(99,179,255,.06);
}

/* Selected (single-select goals) */
.crv-pill.crv-pill-selected {
  border-color: #63b3ff;
  background: rgba(99,179,255,.12);
  color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(99,179,255,.12);
}
body.dark-mode .crv-pill.crv-pill-selected {
  color: #93c5fd;
  background: rgba(99,179,255,.14);
}

/* Active (multi-select platforms) */
.crv-pill.crv-pill-on {
  border-color: transparent;
  color: #fff;
}
.crv-pill-google.crv-pill-on  { background: #4285F4; }
.crv-pill-meta.crv-pill-on    { background: #1877F2; }
.crv-pill-tiktok.crv-pill-on  { background: #FE2C55; }

/* Inactive platform pill shows brand color border */
.crv-pill-google:not(.crv-pill-on) { border-color: rgba(66,133,244,.3); color: #4285F4; }
.crv-pill-meta:not(.crv-pill-on)   { border-color: rgba(24,119,242,.3); color: #1877F2; }
.crv-pill-tiktok:not(.crv-pill-on) { border-color: rgba(254,44,85,.3);  color: #FE2C55; }
body.dark-mode .crv-pill-google:not(.crv-pill-on) { background: rgba(66,133,244,.08); }
body.dark-mode .crv-pill-meta:not(.crv-pill-on)   { background: rgba(24,119,242,.08); }
body.dark-mode .crv-pill-tiktok:not(.crv-pill-on) { background: rgba(254,44,85,.08); }

/* ══════════════════════════════════════════════════════════════
   CONCEPT CARDS v2 — crv-cc
   ══════════════════════════════════════════════════════════════ */

/* Grid: up to 3 columns, scrolls horizontally on small screens */
#crvConceptsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 24px 32px;
}
@media (max-width: 1100px) { #crvConceptsGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { #crvConceptsGrid { grid-template-columns: 1fr; } }

.crv-cc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  position: relative;
  overflow: hidden;
}
body.dark-mode .crv-cc {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
.crv-cc:hover {
  border-color: rgba(99,179,255,.35);
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
body.dark-mode .crv-cc:hover {
  border-color: rgba(99,179,255,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.crv-cc.crv-selected {
  border-color: #63b3ff;
  box-shadow: 0 0 0 3px rgba(99,179,255,.15);
}

/* Top row: angle badge */
.crv-cc-top { display: flex; align-items: center; justify-content: space-between; }
.crv-cc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

/* Target Audience */
.crv-cc-audience {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

/* Primary Hook — prominent */
.crv-cc-hook {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.02em;
  line-height: 1.3;
}
body.dark-mode .crv-cc-hook { color: rgba(255,255,255,.92); }

/* Separator */
.crv-cc-sep {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}
body.dark-mode .crv-cc-sep { background: rgba(255,255,255,.07); }

/* Label / Value row */
.crv-cc-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crv-cc-lbl {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.crv-cc-val {
  font-size: 12px;
  color: var(--charcoal);
  line-height: 1.45;
}
body.dark-mode .crv-cc-val { color: rgba(255,255,255,.82); }
.crv-cc-headline { font-weight: 600; }
.crv-cc-body     { color: var(--muted); }
.crv-cc-muted    { color: var(--muted); font-size: 11.5px; }

/* CTA pill */
.crv-cc-cta-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: rgba(99,179,255,.1);
  color: #3b82f6;
  border-radius: 20px;
  padding: 2px 10px;
  border: 1px solid rgba(99,179,255,.2);
}
body.dark-mode .crv-cc-cta-pill { color: #93c5fd; background: rgba(99,179,255,.12); }

/* Platforms row */
.crv-cc-plats {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

/* Footer CTA */
.crv-cc-footer {
  font-size: 12px;
  font-weight: 600;
  color: #63b3ff;
  text-align: right;
  margin-top: 4px;
  transition: color .15s;
}
.crv-cc:hover .crv-cc-footer { color: #3b82f6; }

/* ══════════════════════════════════════════════════════════════
   OVERVIEW v3 — ov3-*   (Creation Hub)
   ══════════════════════════════════════════════════════════════ */

.ov3 {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Hero ────────────────────────────────────────────────────── */
.ov3-hero {
  padding: 52px 40px 44px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* ── Workspace Grid (Oriven 1.0 V5) — Home's first viewport ───── */
/* Oriven 1.0 (V6) — compact welcome section: header -> this -> grid,
   target ~80-120px total height, not a hero banner. */
.orv-welcome {
  text-align: center;
  padding: 28px 40px 12px;
}
.orv-welcome-sub {
  font-size: 13px;
  color: var(--muted, rgba(0,0,0,.5));
  margin-top: 4px;
}
.ov3-greeting {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted, rgba(0,0,0,.5));
}
.orv-ws-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 24px auto 44px;
  padding: 0 40px;
}
.orv-ws-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .18s, border-color .18s;
}
.orv-ws-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.07);
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
}
body.dark-mode .orv-ws-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark-mode .orv-ws-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.orv-ws-ico { color: var(--green); margin-bottom: 10px; }
.orv-ws-title { font-size: 16px; font-weight: 700; color: var(--charcoal, #18181A); margin-bottom: 4px; letter-spacing: -.01em; }
body.dark-mode .orv-ws-title { color: #fff; }
.orv-ws-desc { font-size: 12px; color: var(--muted, rgba(0,0,0,.5)); line-height: 1.4; }

@media (max-width: 900px) {
  .orv-ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 580px; }
}
@media (max-width: 560px) {
  .orv-ws-grid { grid-template-columns: 1fr; max-width: 380px; }
}
.ov3-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px;
  height: 280px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--green) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
body:not(.dark-mode) .ov3-hero::before {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(100,160,0,.05) 0%, transparent 70%);
}

.ov3-greeting {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 14px;
  letter-spacing: .01em;
}

.ov3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
body:not(.dark-mode) .ov3-eyebrow { color: var(--green-text); }

.ov3-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: ov3Pulse 2.8s ease-in-out infinite;
}
body:not(.dark-mode) .ov3-eyebrow-dot { background: var(--green-text); }

@keyframes ov3Pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent); }
  50%       { opacity: .55; box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 0%, transparent); }
}

.ov3-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 50px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.07;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}
body:not(.dark-mode) .ov3-headline { color: #18181A; }

.ov3-hero-sub {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 30px;
}

/* Prompt box */
.ov3-prompt-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
body.dark-mode .ov3-prompt-box {
  background: #111;
  border-color: rgba(255,255,255,.07);
}
.ov3-prompt-box:focus-within {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 6%, transparent);
}
body:not(.dark-mode) .ov3-prompt-box:focus-within {
  border-color: rgba(90,140,0,.4);
  box-shadow: 0 0 0 4px rgba(90,140,0,.06);
}

.ov3-prompt {
  width: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  outline: none;
  resize: none;
  padding: 18px 20px 12px;
  font-size: 14.5px;
  font-family: 'Geist', system-ui, sans-serif;
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 80px;
}
.ov3-prompt::placeholder { color: var(--muted); opacity: .6; }

.ov3-prompt-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-top: 1px solid var(--border);
}
body.dark-mode .ov3-prompt-footer { border-color: rgba(255,255,255,.055); }

.ov3-hints {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.ov3-hint {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1.4;
}
body.dark-mode .ov3-hint {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.ov3-hint:hover {
  color: var(--charcoal);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 6%, transparent);
}
body:not(.dark-mode) .ov3-hint:hover { border-color: rgba(90,140,0,.3); }

.ov3-generate-btn {
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}

/* ── Sections ─────────────────────────────────────────────────── */
.ov3-section {
  padding: 0 32px 36px;
}

.ov3-section-last { padding-bottom: 56px; }

.ov3-sh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.ov3-sh-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov3-sh-dot {
  color: var(--border);
  font-size: 14px;
  line-height: 1;
}

.ov3-sh-sub {
  font-size: 11px;
  color: var(--muted);
  opacity: .6;
}

.ov3-sh-btn {
  font-size: 11.5px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: color .15s;
}
.ov3-sh-btn:hover { color: var(--charcoal); }

.ov3-ai-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  padding: 2px 6px;
  border-radius: 20px;
}
body:not(.dark-mode) .ov3-ai-pill {
  color: var(--green-text);
  background: rgba(90,140,0,.08);
  border-color: rgba(90,140,0,.18);
}

/* ── Campaign Gallery ──────────────────────────────────────────── */
.ov3-gallery {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: 196px 196px;
  gap: 10px;
}

.ov3-card {
  background: #0e0e10;
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s, border-color .2s;
}
.ov3-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
}
body:not(.dark-mode) .ov3-card {
  border-color: rgba(255,255,255,.08);
}

.ov3-card-featured { grid-row: span 2; }

/* Card visual: layered radial gradients create an atmospheric glow */
.ov3-card-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, var(--cv3) 0%, transparent 62%),
    radial-gradient(ellipse 40% 35% at 16% 84%, var(--cv2) 0%, transparent 58%),
    var(--cv1);
}

/* Large atmospheric text — decorative layer */
.ov3-card-visual::before {
  content: attr(data-bg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Instrument Serif', serif;
  font-size: 110px;
  line-height: 1;
  color: rgba(255,255,255,.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.02em;
}
.ov3-card-featured .ov3-card-visual::before { font-size: 160px; }

/* Campaign name overlaid on the visual */
.ov3-vis-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,.88);
  line-height: 1.18;
  z-index: 2;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.ov3-card-featured .ov3-vis-label {
  font-size: 30px;
  bottom: 20px;
  left: 18px;
}

/* Bottom gradient fade */
.ov3-card-vgrad {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  z-index: 1;
}

/* Card info bar */
.ov3-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  gap: 8px;
  background: #0e0e10;
  border-top: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.ov3-card-featured .ov3-card-info { padding: 11px 16px; }

.ov3-card-meta { flex: 1; min-width: 0; }

.ov3-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  letter-spacing: -.005em;
}
.ov3-card-featured .ov3-card-title { font-size: 12.5px; }

.ov3-card-badges { display: flex; gap: 4px; }

.ov3-pb {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 20px;
}
.ov3-pb-google { background: rgba(66,133,244,.18);  color: #8ab4f8; }
.ov3-pb-meta   { background: rgba(24,119,242,.18);  color: #80aaff; }
.ov3-pb-tiktok { background: rgba(254,44,85,.2);    color: #ff8099; }

.ov3-perf {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hover CTA */
.ov3-card-hover-cta {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: color-mix(in srgb, var(--green) 92%, transparent);
  color: #000;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.ov3-card:hover .ov3-card-hover-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Your Campaigns — empty state ──────────────────────────────── */
.ov3-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  gap: 6px;
}
body.dark-mode .ov3-empty {
  background: rgba(255,255,255,.015);
  border-color: rgba(255,255,255,.08);
}

.ov3-empty-ico {
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 2px;
}
body:not(.dark-mode) .ov3-empty-ico { background: rgba(90,140,0,.08); color: var(--green-text); }

.ov3-empty-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}
body.dark-mode .ov3-empty-title { color: rgba(255,255,255,.7); }

.ov3-empty-sub {
  font-size: 12px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.55;
  margin: 0;
}

/* ── AI Insights ───────────────────────────────────────────────── */
.ov3-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
/* Oriven 1.0 (V7 — visually verified) — when this section is just the
   "connect an account" empty state (its only child), give it real
   presence instead of a small pill stranded on the left edge of a
   mostly-empty section (confirmed via screenshot). Populated state
   (real bullets) is untouched — :has() only matches the empty case. */
.ov3-insights:has(> .ov3-ins-connect:only-child) {
  justify-content: center;
  padding: 28px 20px;
  background: rgba(0,0,0,.015);
  border: 1px dashed var(--border, rgba(0,0,0,.1));
  border-radius: 14px;
}
body.dark-mode .ov3-insights:has(> .ov3-ins-connect:only-child) { background: rgba(255,255,255,.02); }
.ov3-insights:has(> .ov3-ins-connect:only-child) .ov3-ins-connect {
  border-style: none;
  font-size: 13px;
  padding: 4px 8px;
}

/* Oriven 1.0 (V7 — visually verified) — same treatment as Home's briefing
   empty state, for Intelligence's Executive Mode connect-prompt (confirmed
   via screenshot: a small left-aligned pill stranded in an otherwise-empty
   page). Only applies when the connect-prompt is the sole content. */
#intelExecBody:has(> .ov3-insight:only-child) {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}
.ov3-insight {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
  line-height: 1;
}
body.dark-mode .ov3-insight {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
}
.ov3-insight:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--charcoal); }
body:not(.dark-mode) .ov3-insight:hover { border-color: rgba(90,140,0,.3); }
.ov3-insight.orv-rec-ghost { opacity: .38; pointer-events: none; }

.ov3-ins-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov3-dot-green { background: #3ecf8e; }
.ov3-dot-warn  { background: #FBBC04; }
.ov3-dot-red   { background: #ef4444; }
.ov3-dot-blue  { background: #63b3ff; }

.ov3-ins-arrow { font-size: 10px; margin-left: 2px; }

.ov3-ins-connect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  background: none;
  border: 1px dashed var(--border);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
  line-height: 1;
}
.ov3-ins-connect:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); color: var(--charcoal); }

/* ── Marketing Briefing (V6 Home Intelligence Dashboard) ─────────── */
.ov3-brief-loading {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.ov3-health-badge {
  display: flex; align-items: baseline; gap: 8px;
  width: 100%; margin-bottom: 4px;
}
.ov3-health-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--charcoal); }
body.dark-mode .ov3-health-num { color: rgba(255,255,255,.95); }
.ov3-health-max { font-size: 14px; font-weight: 600; color: var(--muted); }
.ov3-health-lbl { font-size: 12.5px; font-weight: 700; color: var(--green-text); }
body.dark-mode .ov3-health-lbl { color: var(--green); }
.ov3-brief-summary { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.ov3-brief-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.ov3-brief-action {
  display: flex; flex-direction: column; gap: 2px;
  text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 13px; min-width: 180px; flex: 1 1 220px;
  transition: border-color .15s, transform .12s;
}
body.dark-mode .ov3-brief-action { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.065); }
.ov3-brief-action:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); transform: translateY(-1px); }
.ov3-brief-action-title { font-size: 12.5px; font-weight: 700; color: var(--charcoal); }
body.dark-mode .ov3-brief-action-title { color: rgba(255,255,255,.9); }
.ov3-brief-action-why { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ── V6 Phase 2 — shared insight card (oi-*) ─────────────────────
   One card component reused by Home Dashboard, Analytics AI Insights,
   and Cross-Platform recommendations. */
.oi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
}
.oi-card:hover { border-color: color-mix(in srgb, var(--green) 25%, var(--b2)); box-shadow: 0 4px 14px rgba(0,0,0,.04); }
body.dark-mode .oi-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode .oi-card:hover { border-color: color-mix(in srgb, var(--green) 30%, rgba(255,255,255,.14)); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.oi-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.oi-card-title { font-size: 13px; font-weight: 700; color: var(--charcoal); line-height: 1.35; }
body.dark-mode .oi-card-title { color: rgba(255,255,255,.92); }
.oi-card-badges { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.oi-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 7px; border-radius: 100px; white-space: nowrap;
  background: rgba(0,0,0,.05); color: var(--muted);
}
body.dark-mode .oi-badge { background: rgba(255,255,255,.06); }
.oi-badge.oi-sev-high { background: rgba(239,68,68,.12); color: #ef4444; }
.oi-badge.oi-sev-med  { background: rgba(251,191,36,.14); color: #b8860b; }
body.dark-mode .oi-badge.oi-sev-med { color: #fbbf24; }
.oi-badge.oi-sev-low  { background: rgba(99,179,237,.12); color: #2563eb; }
body.dark-mode .oi-badge.oi-sev-low { color: #63b3ff; }
.oi-badge-conf { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-text); }
body.dark-mode .oi-badge-conf { color: var(--green); }
.oi-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.oi-card-impact { font-size: 11.5px; font-weight: 600; color: var(--green-text); }
body.dark-mode .oi-card-impact { color: var(--green); }
.oi-why-toggle {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0;
}
.oi-why-toggle:hover { color: var(--charcoal); }
body.dark-mode .oi-why-toggle:hover { color: rgba(255,255,255,.85); }
.oi-why-body { font-size: 11.5px; color: var(--muted); line-height: 1.6; padding: 6px 10px; background: rgba(0,0,0,.025); border-radius: 8px; }
body.dark-mode .oi-why-body { background: rgba(255,255,255,.03); }
.oi-why-basis { display: block; margin-top: 4px; font-style: italic; opacity: .8; }
.oi-card-actions { display: flex; gap: 8px; margin-top: 2px; }
.oi-card-btn {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--charcoal);
  transition: opacity var(--orv-t, .16s), transform var(--orv-t, .16s), box-shadow var(--orv-t, .16s), border-color var(--orv-t, .16s);
}
body.dark-mode .oi-card-btn { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.oi-card-btn:hover { opacity: .82; transform: translateY(-1px); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.oi-card-btn:active { transform: scale(.96); opacity: 1; }
.oi-card-btn-primary { background: var(--green); border-color: var(--green); color: #000; }
.oi-card-btn-primary:hover { box-shadow: 0 3px 10px color-mix(in srgb, var(--green) 35%, transparent); }
.oi-card-btn-primary:active { transform: scale(.96); box-shadow: 0 1px 4px color-mix(in srgb, var(--green) 25%, transparent); }
/* Tertiary action — same real button box (padding/border-radius/font-size)
   as .oi-card-btn so it sits in the same row at the same height/baseline
   as Test and Create Automation (Autopilot builder polish pass: "Start
   Over" previously used .oi-why-toggle, a borderless inline-text-link
   style built for a different context, which read as loose floating text
   rather than part of the action group). Transparent border keeps it
   visually quietest of the three without dropping out of the row. */
.oi-card-btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.oi-card-btn-ghost:hover { opacity: 1; color: var(--charcoal); border-color: var(--border); background: rgba(0,0,0,.03); }
body.dark-mode .oi-card-btn-ghost:hover { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
/* Business Final Polish — the dark-mode .oi-card-btn override above (higher
   specificity than .oi-card-btn-primary alone) was winning and turning
   "Save"/"Analyse my website"/etc back to near-white text on the green
   background in dark mode. Primary buttons always keep dark text on the
   light-green fill, in both themes. */
body.dark-mode .oi-card-btn-primary { color: #000; }
.oi-card-btn:disabled { opacity: .55; cursor: default; pointer-events: none; }

/* ── Intelligence (Oriven 1.0 — "One AI Briefing" redesign) ────────────
   Was a small dashboard of separate widgets (hero + Watchlist grid +
   Monitored Campaigns sidebar + Recent Signals section + a modal). Now
   one page mental model — AI Active -> what am I monitoring? -> what
   does Oriven see? -> what should I do? — delivered as ONE panel
   (.intel-panel), which keeps the same always-dark premium surface +
   ambient glow the old .intel-hero already had (renamed, same visual
   identity), just now containing everything instead of one hero among
   several separately-bordered cards below it. */
#page-intelligence .orv-page-wrap { max-width: var(--camp-content-maxw); padding-top: 56px; }

/* ── Header: "Intelligence" / "Monitor Campaigns", subtle divider ── */
.intel-hdr2 { padding: 0 0 18px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
body.dark-mode .intel-hdr2 { border-color: rgba(255,255,255,.08); }
.intel-hdr2-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--charcoal); margin: 0 0 4px; }
body.dark-mode .intel-hdr2-title { color: rgba(255,255,255,.95); }
.intel-hdr2-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }

/* ── Research (Final Product Navigation redesign) ──────────────────
   Dedicated classes (not shared with .biz-ov2-* — a shared class name
   caused document.querySelectorAll('.biz-ov2-card') on the unrelated
   Business Hub page to also match these 4 Research cards, a real
   cross-page collision caught by business-hub.test.js). Same visual
   language as .biz-ov2-card by design (card family consistency, spec:
   "cards should feel like one family") — just independently owned,
   and accent-color-aware via var(--green), never a new hardcoded one.

   Research Investigation Canvas pass (Research Final Polish sprint):
   previously the ENTIRE page was forced dark unconditionally (background
   + every token below --charcoal/--muted/--border overridden dark),
   regardless of the user's real light/dark setting — confirmed via a
   live computed-style probe: on this app's actual default (light) theme,
   Research rendered as a jarring black rectangle while Create/Autopilot/
   Business all correctly showed the light Snow background. That
   full-page override is removed below; the page chrome (header,
   composer, activity feed, map topbar/filters, follow-up row) now uses
   the same var(--charcoal)/var(--muted)/var(--border)/var(--surface)
   tokens as every other page, so it follows body.dark-mode exactly like
   the rest of the app. Only the Market Map canvas itself
   (.rsc-map-stage + everything inside it, and .rsc-map-sources) keeps a
   deliberate always-dark "intelligence canvas" treatment — the same
   established precedent as .biz-canvas/.ov3-card elsewhere in this file:
   a focused, technical surface that is Research's own visual identity
   (spec: "Research is an Investigation Canvas"), not a page-wide
   takeover. Every hardcoded rgba(255,255,255,X) further down, inside
   that canvas, is intentional and correctly un-gated. */
.research-query-row { display: flex; gap: 10px; }
.research-query-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl, 14px); padding: 12px 16px; font-size: 14px; color: var(--charcoal); font-family: inherit;
}
.research-query-input::placeholder { color: var(--m2); }
.research-query-input:focus { outline: none; border-color: var(--green); }
.research-query-btn {
  background: var(--green); color: #0E0E10; border: none; border-radius: var(--rl, 14px);
  padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: opacity .15s ease;
}
.research-query-btn:hover { opacity: .88; }
.research-query-btn:disabled { opacity: .5; cursor: default; }

.research-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  flex: 1; min-height: 0; padding: 40px 24px; text-align: center;
  border: 1px dashed rgba(248,113,113,.25); border-radius: var(--rl, 14px); margin-bottom: 20px;
}
.research-error-msg { color: #f87171; font-size: 14px; margin: 0; max-width: 420px; }
.research-error-retry { margin-top: 0 !important; }

.rsc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Honest no-result state — base structural rule; the Investigation
   Workspace pass's compact-strip presentation (.rsc-noresults.rsc-state-strip,
   higher specificity) lives further down this file alongside the rest of
   the Investigation Instrument rules, not duplicated here. */
.rsc-noresults { display: flex; flex-direction: column; }

/* ── Interactive Market Map (Research redesign) ────────────────────────
   STATE A: .rsc-hero — the prompt is the hero element, a large textarea
   with a single honest helper line, nothing else competing for attention.
   STATE B: .rsc-activity — 3 real sequential stages (see
   _researchSetActivityStage in app.html), never a fake browsing sequence.
   STATE C/D: .rsc-map-view — a hand-rolled pan/zoom SVG graph (no charting
   dependency added; none existed in this project) plus a detail panel and
   a source drawer, both real data from the structured API response. ── */
.rsc-wrap { display: flex; flex-direction: column; }

/* ── READY-state optical centering (Research polish pass) ───────────────
   Reuses the EXACT same, already-validated pattern Create's own
   #page-create.active uses for its own single-composer initial state
   (styles.css ~40769) — title + workspace treated as ONE composition and
   centered as a unit within the real available viewport, rather than
   sitting flush against the top. Applied to #page-research.active itself
   (the outer page container) so its one child (.rsc-wrap, which already
   stacks the title above the workspace) centers as a whole block.
   Conditional on .rsc-page-centered (toggled by _researchSetState,
   app.html) so it applies to every pre-result state (ready/investigating/
   error/no-results — all rendered inside the same #researchCanvas, so
   centering stays consistent across them instead of visually jumping)
   but NOT to the completed Market Map workspace, which can be long/
   scrollable and must stay top-anchored like every other product page.
   Only above 1280px (matching Create's own breakpoint exactly) — at
   1280 and below the composer/starters/tools stack taller relative to
   the viewport, where forcing vertical centering reads as awkward rather
   than deliberate; top-anchored is the correct, established choice
   there, same as Create already decided. */
@media (min-width: 1281px) {
  #page-research.active.rsc-page-centered {
    min-height: calc(100vh - 56px);
    display: flex;
    /* flex-direction:column + justify-content:center centers the MAIN
       (vertical) axis; align-items is deliberately left at its default
       (stretch) rather than "center" -- align-items:center would shrink
       .rsc-wrap to its own content width (a real bug caught via
       screenshot: the canvas rendered ~550px narrower than intended)
       instead of keeping it filling the real available width. */
    flex-direction: column;
    justify-content: center;
  }
  /* .orv-page-wrap's own pre-existing `margin: 0 auto` (its normal
     block-level centering pattern) suppresses flex cross-axis stretch
     once it becomes a flex item of the rule above (a flex item with an
     auto margin in the stretch axis sizes to its own content instead of
     stretching, per the flexbox spec) -- confirmed via direct computed-
     style measurement (803px instead of the real available ~1363px).
     An explicit width restores the intended "full width up to the real
     max-width, centered" sizing while keeping the vertical centering
     above. */
  #page-research.active.rsc-page-centered .orv-page-wrap { width: 100%; }
}

/* Responsive Layout Audit pass — pure vertical centering (above) splits
   ALL leftover space evenly top and bottom, so the gap above the
   heading keeps growing as the viewport gets taller. That reads as
   intentional breathing room on large desktop, but on real laptop
   window heights (roughly 700-950px, where the ~590px ready-state
   composition still leaves real but much smaller leftover space) the
   same math still centers it, so the whole composition sits noticeably
   lower than the nav with a large, empty gap above it — the "positioned
   too low, compressed toward the lower portion" effect. Height-scoped
   (not a single hardcoded offset) rather than centered: switches to a
   capped, viewport-height-proportional top gap instead of true
   centering once the viewport is short enough that centering no longer
   reads as deliberate. clamp() keeps a real minimum and a real ceiling,
   so it scales with the viewport rather than landing on one fixed
   number. */
@media (min-width: 1281px) and (min-height: 700px) and (max-height: 950px) {
  #page-research.active.rsc-page-centered {
    justify-content: flex-start;
    padding-top: clamp(32px, 8vh, 110px);
  }
}
/* Gives .rsc-hero{flex:1} real room to center within — matches the
   viewport-height composition Create's #page-create.active already uses
   for its own single-composer initial state. box-sizing is border-box
   globally, so .orv-page-wrap's own top/bottom padding is already
   included inside this height — it must NOT be subtracted again (that
   was double-counted in an earlier pass and left ~160px of dead space
   at the bottom that .rsc-hero's flex:1 never got to fill). */
/* Research UX/product pass — this used to force the whole wrap to fill
   the viewport unconditionally, which made sense when the Investigation
   Rail gave the pre-result canvas real content to fill that space with;
   now that the rail is gone (the rail itself WAS the "expose empty
   result panels before any result exists" anti-pattern this pass fixes,
   see #researchRail's removal note, app.html), forcing 100vh here would
   just reintroduce the exact "title + textarea + button + 700px of
   black space" void the pass explicitly warns against, under a
   different name. The canvas now sizes to its own real content
   (.rsc-canvas's own min-height below keeps it substantial, not
   token-sized) instead of being stretched to fill leftover viewport. */

/* Living Surface pass — Research previously used the shared
   --orv-content-maxw (1040px), the narrowest content column in the app,
   which is a real contributor to the "small centered form in a vast
   black viewport" feeling at 1440/1280px. Widened to the SAME token
   Campaigns/Business already use (--camp-content-maxw, 1440px) — not an
   invented value, an existing precedent — so the workspace becomes a
   genuinely large object rather than a bigger empty margin. */
#page-research .orv-page-wrap { max-width: var(--camp-content-maxw); }

/* ── Research Workspace shell (Living Surface pass) ─────────────────────
   ONE persistent instrument canvas that every pre-result state
   (ready/investigating/no-results/error) renders inside, sharing the
   EXACT visual identity .rsc-map-stage already established for the
   Market Map (see .rsc-map-stage/.rsc-canvas shared rule below) — so the
   workspace already exists, framed and structured, before the user types
   anything, and the transition into the Market Map is a continuation of
   the same object rather than a page swap. Deliberately always-dark
   regardless of body.dark-mode, same precedent as .rsc-map-stage/
   .biz-canvas — this does NOT reintroduce the old full-page forced-dark
   override research-market-map.test.js #1c guards against: #page-research
   itself is untouched and still follows the real theme setting. ── */
.rsc-workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.rsc-canvas, .rsc-map-stage {
  position: relative; border: 1px solid rgba(255,255,255,.08); border-radius: var(--rl, 14px);
  overflow: hidden; background: #0e0e10 radial-gradient(circle at 50% 40%, rgba(183,255,42,.05), transparent 60%);
}
/* min-height reduced from 520px (Research UX/product pass) — that value
   was sized to hold the old Investigation Rail's 3 zones; the canvas now
   holds only the composer, which needs real presence but not vast empty
   space beneath it. Still a genuinely substantial "instrument" object at
   400px, well above a token-sized floating box. */
.rsc-canvas { min-height: 400px; display: flex; flex-direction: column; }

/* Real system chrome — a single honest status line, never a fake browser
   bar (no URL field, no tabs, no traffic-light buttons). The dot/label
   mirror whatever _researchSetState/_researchSetActivityStage already
   know to be true (see _researchUpdateCanvasChrome, app.html) — idle,
   the real active stage's own label, or a real error/no-result state —
   never an invented value. */
.rsc-canvas-chrome {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px; padding: 18px 26px 0;
}
.rsc-canvas-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28);
  flex-shrink: 0; transition: background .25s ease;
}
.rsc-canvas-dot-active { background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .rsc-canvas-dot-active { animation: rscCanvasDotPulse 1.6s ease-in-out infinite; }
}
@keyframes rscCanvasDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.rsc-canvas-dot-error { background: #f87171; }
.rsc-canvas-label {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* ── Investigation Instrument (Research Investigation Workspace pass) ───
   Replaces the first pass's centered-composer-over-decorative-rings
   composition, which — per direct critique — still read as "a prompt
   inside a larger container": the decorative rings decorated empty
   space rather than solving it. This pass adds real product structure
   instead: a compact, top-anchored control bar (the composer — the
   ENTRY POINT into the workspace, not the whole workspace) plus a real
   3-zone Investigation Rail (Sources / Findings / Market Map) that
   exposes Research's own real lifecycle before any query runs. Nothing
   in the rail is fabricated: every number it ever shows comes straight
   from a real response's own array lengths / retrieval.sourceCount (see
   _researchRailRenderReal, app.html) — before that, its copy is a
   capability description ("appear as evidence is analyzed"), not a
   claim about existing data. ── */
.rsc-instrument {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: flex; flex-direction: column; padding: 22px 26px 26px;
}

.rsc-control-bar { flex-shrink: 0; }
.rsc-control-label {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.rsc-control-row { display: flex; align-items: stretch; gap: 12px; }
.rsc-control-input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--rl, 14px); padding: 14px 18px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92);
  font-family: inherit; resize: vertical; min-height: 56px; transition: border-color .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.rsc-control-input::placeholder { color: rgba(255,255,255,.32); }
.rsc-control-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
/* Wraps the Investigate button + its cost hint as one unit (Pricing/Credit
   Consistency pass) so the pair centers together against the textarea's
   own height, exactly like the button alone did before -- see the
   Research READY-state polish pass note on .rsc-control-btn below. */
.rsc-control-btn-col { flex-shrink: 0; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rsc-control-btn {
  /* Research READY-state polish pass — was align-self:flex-end, which
     pinned the button to the BOTTOM of the row instead of centering it
     against the textarea's own height (rows="2" renders taller than
     this button's fixed 46px), reading as misaligned. Centered on the
     textarea's own vertical axis specifically (not the tools row below,
     which is a separate flex container/unaffected). */
  flex-shrink: 0; background: var(--green); color: #0E0E10; border: none; border-radius: 100px;
  padding: 0 26px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; height: 46px;
  transition: opacity .15s ease;
}
.rsc-control-btn:hover { opacity: .88; }
.rsc-control-btn:disabled { opacity: .5; cursor: default; }
.rsc-cost-hint { font-size: 10.5px; color: rgba(255,255,255,.38); white-space: nowrap; }
.rsc-hero-sub { font-size: 12.5px; color: rgba(255,255,255,.4); margin: 10px 0 0; }

/* Investigating — the control region de-emphasizes (never disappears)
   so visual weight shifts to the rail below it; a real, honest state
   change, not decoration. */
.rsc-instrument-busy .rsc-control-input { opacity: .55; pointer-events: none; }

.rsc-focus { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rsc-focus-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.35); flex-shrink: 0; }
.rsc-focus-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* State strips — the same real state (_researchSetState) previously took
   over the whole canvas; now it's a compact line that sits between the
   control bar and the rail, which keeps rendering underneath it either
   way, so failure/no-results never removes the workspace. researchEmptyState
   (READY) is intentionally empty: nothing more honest to add there. */
.rsc-state-strip:empty { display: none !important; }
#researchLoadingState.rsc-state-strip { padding: 14px 0 0; }
#researchActivityFeed { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rsc-activity-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.4); transition: color .25s ease; }
.rsc-activity-row-active { color: rgba(255,255,255,.92); font-weight: 600; }
.rsc-activity-row-done { color: rgba(255,255,255,.55); }
.rsc-activity-icon { width: 13px; flex-shrink: 0; text-align: center; color: rgba(255,255,255,.35); font-size: 10.5px; transition: color .25s ease; }
.rsc-activity-row-done .rsc-activity-icon, .rsc-activity-row-active .rsc-activity-icon { color: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .rsc-activity-row-active .rsc-activity-icon { animation: rscActivityPulse 1.4s ease-in-out infinite; display: inline-block; }
}
@keyframes rscActivityPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }

.research-error.rsc-state-strip {
  flex: none; margin: 14px 0 0; padding: 14px 18px; display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 14px; text-align: left;
}
.research-error.rsc-state-strip .research-error-msg { margin: 0; }
.research-error.rsc-state-strip .research-error-retry { flex-shrink: 0; height: 36px; padding: 0 18px; font-size: 12.5px; }

.rsc-noresults.rsc-state-strip {
  flex: none; align-items: flex-start; text-align: left; padding: 14px 0 0; margin: 0;
}
.rsc-noresults-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); margin: 0 0 4px; }
.rsc-noresults-body { font-size: 12.5px; color: rgba(255,255,255,.5); max-width: 520px; margin: 0 0 12px; }
.rsc-noresults-actions { display: flex; gap: 10px; }

.rsc-canvas-btn {
  font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 8px 14px;
  transition: border-color .15s ease, color .15s ease;
}
.rsc-canvas-btn:hover { border-color: color-mix(in srgb, var(--green) 30%, rgba(255,255,255,.2)); color: #fff; }

/* Investigation Rail — real product structure standing in for the
   removed decorative rings. Three real Research concepts, each with its
   own real activation condition; see the block comment above
   #researchRail in app.html for the full honesty contract. */
.rsc-rail {
  flex: 1; min-height: 0; display: flex; align-items: stretch; margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
}
.rsc-rail-zone { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rsc-rail-div { width: 1px; flex-shrink: 0; background: rgba(255,255,255,.08); margin: 0 22px; }
.rsc-rail-zone-label {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.4);
}
.rsc-rail-zone-body {
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.45); display: flex; flex-direction: column; gap: 8px;
  transition: color .25s ease;
}
.rsc-rail-zone-map .rsc-rail-zone-body { flex-direction: row; align-items: center; gap: 10px; color: rgba(255,255,255,.5); }

/* Findings — real per-category chips, rendered only once real counts
   exist (mapping stage onward); colors reuse the SAME established
   domain palette Business Intelligence's own cards use for these exact
   real concepts (see the block comment above .rmap-node-competitor,
   styles.css) so the same category reads as the same color everywhere
   in ORIVEN. */
.rsc-rail-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.rsc-rail-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rsc-rail-pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .rsc-rail-pulse-dot { animation: rscCanvasDotPulse 1.6s ease-in-out infinite; }
}

.rsc-rail-map-glyph { width: 34px; height: 34px; flex-shrink: 0; }
.rsc-rail-map-glyph line { stroke: rgba(255,255,255,.16); stroke-width: 1.3; transition: stroke .3s ease; }
.rsc-rail-map-node { fill: rgba(255,255,255,.2); transition: fill .3s ease; }
.rsc-rail-map-hub { fill: #16161a; stroke: rgba(255,255,255,.28); stroke-width: 1.3; transition: stroke .3s ease; }
/* Active — once real data has arrived (mapping stage / no-results / the
   Market Map about to settle in), the glyph brightens to the SAME green
   the real map uses for its own market/hub node — a state change, not
   ambient decoration. */
.rsc-rail-active .rsc-rail-map-glyph line { stroke: color-mix(in srgb, var(--green) 45%, rgba(255,255,255,.16)); }
.rsc-rail-active .rsc-rail-map-node { fill: var(--green); }
.rsc-rail-active .rsc-rail-map-hub { stroke: var(--green); }

@media (prefers-reduced-motion: no-preference) {
  .rsc-instrument { animation: rscStateIn .4s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes rscStateIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .rsc-control-row { flex-direction: column; align-items: stretch; }
  .rsc-control-btn-col { align-self: stretch; }
  .rsc-control-btn { align-self: stretch; width: 100%; }
  .rsc-rail { flex-direction: column; gap: 18px; }
  .rsc-rail-div { width: auto; height: 1px; margin: 0; }
}

@media (max-width: 640px) {
  .rsc-canvas { min-height: 0; }
  .rsc-canvas-chrome { padding: 14px 18px 0; }
  .rsc-instrument { padding: 16px 18px 20px; }
  /* The real placeholder question wraps to 3 lines at narrow widths;
     rows=2's default height clipped the 3rd line. Real typed input
     always scrolled fine either way — this only fixes the placeholder's
     own readability. */
  .rsc-control-input { min-height: 82px; }
}

/* Page header — Research UX Polish pass: the title must sit visibly
   centered on the page's central axis, the same real, genuine centering
   Create's own .cr2-hero uses (text-align:center — Create's H1 is not
   merely inside a centered wrapper, it visibly sits in the middle of the
   line). An earlier pass left this left-aligned by mistake. Scale/weight
   still matches Create's .cr2-h1 exactly (28px/800/-.02em); no eyebrow,
   no subtitle, no divider. Dedicated class, not the shared .intel-hdr2-*
   used elsewhere, so this only affects Research. */
/* Micro-Polish pass — 22px -> 32px, one small spacing-step more breathing
   room between the "Research" title and the workspace card beneath it
   (founder: "title and card feel slightly too close together... not a
   huge empty gap"). Everything else on this page is unchanged. */
.rsc-page-hdr { margin-bottom: 32px; text-align: center; }
.rsc-page-h1 { font-size: 28px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; color: var(--charcoal); margin: 0; }

/* Research Focus pills — real, optional scope controls, not example
   prompts: they never touch the textarea, only compose an honest
   sentence onto the real question at submit time (see
   _researchComposeQuestion, app.html). The wrapper-level layout
   (.rsc-focus/.rsc-focus-label/.rsc-focus-grid) now lives with the rest
   of the Investigation Instrument rules earlier in this file; only the
   pill's own look stays here, unchanged since the first pass. */
.rsc-focus-pill {
  font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 100px; padding: 8px 16px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rsc-focus-pill:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.2)); color: rgba(255,255,255,.92); }
.rsc-focus-pill:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.rsc-focus-pill-active, .rsc-focus-pill[aria-pressed="true"] {
  background: var(--green); border-color: var(--green); color: #0E0E10;
}
.rsc-focus-pill-active:hover, .rsc-focus-pill[aria-pressed="true"]:hover { color: #0E0E10; }

/* ── Composer tools row (Research UX/product pass) — "+ Add URL" and
   "Focus" as two small, equal-weight, optional disclosure controls below
   the textarea, instead of Focus's old 6 permanently-visible pills.
   Neither control's own reveal (.rsc-url-input-row / .rsc-focus-grid)
   floats as an overlay -- both flow inline below the row, staying a
   deliberate part of the same composer instead of a popover. ── */
.rsc-composer-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 12px; }
.rsc-tool { display: flex; flex-direction: column; gap: 8px; }
.rsc-tool-btn {
  font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 100px; padding: 7px 14px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rsc-tool-btn:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.2)); color: rgba(255,255,255,.92); }
.rsc-tool-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.rsc-tool-btn[aria-expanded="true"] { border-color: var(--green); color: var(--green); }

.rsc-url-input-row { display: flex; gap: 8px; }
.rsc-url-input {
  min-width: 220px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
  padding: 8px 12px; font-size: 12.5px; color: rgba(255,255,255,.92); font-family: inherit;
  transition: border-color .15s ease;
}
.rsc-url-input::placeholder { color: rgba(255,255,255,.32); }
.rsc-url-input:focus { outline: none; border-color: var(--green); }
.rsc-tool-btn-sm {
  font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 700; color: #0E0E10;
  background: var(--green); border: none; border-radius: 9px; padding: 0 14px;
  transition: opacity .15s ease;
}
.rsc-tool-btn-sm:hover { opacity: .88; }
.rsc-url-error { font-size: 11.5px; color: #f87171; margin: 0; }

.rsc-url-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rsc-url-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 100px; padding: 4px 6px 4px 12px;
}
.rsc-url-chip-domain { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsc-url-chip-remove {
  font-family: inherit; cursor: pointer; font-size: 14px; line-height: 1; color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08); border: none; border-radius: 50%; width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.rsc-url-chip-remove:hover { background: rgba(255,80,80,.25); color: #fff; }
.rsc-url-chip-remove:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* ── Research Launchpad (Research READY-state pass) — real, functional
   entry points into the same Focus + composer mechanism, sitting below
   the composer tools inside the SAME dark instrument canvas (one
   composition, not a second panel). Restrained: a small uppercase label
   matching the existing .rsc-control-label/.rsc-focus-label convention,
   a compact 2x2 grid of 4 starters (never a giant card grid), and one
   short outcome line — never fabricated stats, never "recent
   investigations," never a fake source count. ── */
.rsc-launchpad { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.rsc-starters-label {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 12px;
}
.rsc-starters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsc-starter {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; font-family: inherit;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.rsc-starter:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.rsc-starter:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.rsc-starter[aria-pressed="true"] {
  background: color-mix(in srgb, var(--green) 10%, rgba(255,255,255,.03)); border-color: color-mix(in srgb, var(--green) 55%, transparent);
}
.rsc-starter-icon { flex-shrink: 0; width: 17px; height: 17px; margin-top: 1px; color: rgba(255,255,255,.45); transition: color .15s ease; }
/* Visual Life pass — restrained per-starter category color (resting-state
   icon only; the Investigation Canvas is deliberately always-dark, so
   these use the same fixed --sem-* tokens as Business's category cards,
   not theme-switching values). Same specificity as the hover/pressed
   rule below, so it must come first in source order to let hover/
   pressed still win on interaction. */
.rsc-starter[data-starter="market"] .rsc-starter-icon { color: var(--sem-blue); }
.rsc-starter[data-starter="competitors"] .rsc-starter-icon { color: var(--sem-purple); }
.rsc-starter[data-starter="audience"] .rsc-starter-icon { color: var(--sem-amber); }
.rsc-starter[data-starter="opportunities"] .rsc-starter-icon { color: var(--sem-teal); }
/* Final Visual Correction pass — the icon color alone read as too thin a
   signal (spec: "strengthen the four starter cards' semantic identity
   beyond just icon color"); a faint category-tinted surface + border does
   the same job the icon already does, just reinforced, and a slightly
   stronger tinted glow on hover. Kept deliberately quieter than the
   Dashboard KPI cards' tint strength (spec: "Dashboard KPIs should be
   more visually saturated than Research") — background stays under 6%,
   border under 16%, vs. Dashboard's 13-18%/35-40%. :not([aria-pressed])
   keeps the existing green pressed/selected state (below) as the one
   real state override — never fighting this resting-state tint. */
.rsc-starter[data-starter="market"]:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--sem-blue) 5%, rgba(255,255,255,.03)); border-color: color-mix(in srgb, var(--sem-blue) 15%, rgba(255,255,255,.09)); }
.rsc-starter[data-starter="competitors"]:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--sem-purple) 5%, rgba(255,255,255,.03)); border-color: color-mix(in srgb, var(--sem-purple) 15%, rgba(255,255,255,.09)); }
.rsc-starter[data-starter="audience"]:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--sem-amber) 5%, rgba(255,255,255,.03)); border-color: color-mix(in srgb, var(--sem-amber) 15%, rgba(255,255,255,.09)); }
.rsc-starter[data-starter="opportunities"]:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--sem-teal) 5%, rgba(255,255,255,.03)); border-color: color-mix(in srgb, var(--sem-teal) 15%, rgba(255,255,255,.09)); }
.rsc-starter[data-starter="market"]:hover:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--sem-blue) 32%, transparent); box-shadow: 0 3px 14px color-mix(in srgb, var(--sem-blue) 12%, transparent); }
.rsc-starter[data-starter="competitors"]:hover:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--sem-purple) 32%, transparent); box-shadow: 0 3px 14px color-mix(in srgb, var(--sem-purple) 12%, transparent); }
.rsc-starter[data-starter="audience"]:hover:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--sem-amber) 32%, transparent); box-shadow: 0 3px 14px color-mix(in srgb, var(--sem-amber) 12%, transparent); }
.rsc-starter[data-starter="opportunities"]:hover:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--sem-teal) 32%, transparent); box-shadow: 0 3px 14px color-mix(in srgb, var(--sem-teal) 12%, transparent); }
.rsc-starter[aria-pressed="true"] .rsc-starter-icon, .rsc-starter:hover .rsc-starter-icon { color: var(--green); }
.rsc-starter-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rsc-starter-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.rsc-starter-desc { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.45); }
.rsc-outcome-line { font-size: 12px; color: rgba(255,255,255,.4); margin: 16px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .rsc-starter, .rsc-starter-icon { transition: none; }
  .rsc-starter:hover { transform: none; }
}

@media (max-width: 480px) {
  .rsc-composer-tools { flex-direction: column; }
  .rsc-url-input-row { flex-direction: column; }
  .rsc-url-input { min-width: 0; }
  .rsc-tool-btn-sm { align-self: stretch; padding: 8px 14px; }
  .rsc-starters { grid-template-columns: 1fr; }
  /* The launchpad's new outcome line pushed real, measured content low
     enough on short mobile viewports (e.g. 390x844) to sit directly
     behind the persistent floating ORIVEN assistant pill (fixed-
     position, present on every page, untouched here). Since the pill is
     fixed to the viewport, margin/padding AFTER the canvas can't move
     it — the actual fix is tightening the real vertical space ABOVE the
     outcome line so it lands higher on screen. Scoped to Research only. */
  .rsc-launchpad { margin-top: 16px; padding-top: 14px; }
  .rsc-starters-label { margin-bottom: 8px; }
  .rsc-starters { gap: 8px; }
  .rsc-starter { padding: 10px 12px; }
  .rsc-outcome-line { margin-top: 10px; padding-right: 84px; }
}

/* STATE C/D — the map itself. Topbar/filters are page-level controls and
   follow the page theme; the canvas below is the deliberately dark
   Investigation Canvas (see block comment above). */
.rsc-map-view { display: flex; flex-direction: column; gap: 12px; }
.rsc-map-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rsc-map-topbar-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rsc-map-question { font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--charcoal); margin: 0; max-width: 640px; }
body.dark-mode .rsc-map-question { color: rgba(255,255,255,.85); }
.rsc-map-summary { font-size: 13.5px; line-height: 1.5; color: var(--c2); margin: 0; max-width: 640px; }
.rsc-map-actions { display: flex; gap: 8px; flex-shrink: 0; }
.rsc-map-btn {
  font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--sf2, var(--surface)); border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px;
  transition: border-color .15s ease, color .15s ease;
}
.rsc-map-btn:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--border)); color: var(--charcoal); }
.rsc-map-btn[aria-expanded="true"] { border-color: var(--green); color: var(--green); }
/* "Use in Create" — the one action that carries this result forward
   into another workspace, so it gets the same primary-accent treatment
   Create's own composer footer uses (var(--green) fill), not just another
   quiet outline button next to Sources/New Research. */
.rsc-map-btn-primary { background: var(--green); border-color: var(--green); color: #0a0a0a; }
.rsc-map-btn-primary:hover { background: var(--gm, var(--green)); border-color: var(--gm, var(--green)); color: #0a0a0a; }

/* ── Findings panel (Research UX/product pass) — the primary "what did
   ORIVEN discover" surface (spec 17), built from the completed
   response's own real entity arrays. Light-surface card (follows the
   page theme, NOT the always-dark canvas identity — Findings is real
   information to read, not the investigation instrument), sitting above
   the Map so it gets read first. Grouped rows, not one paragraph;
   restrained borders/typography matching the rest of Research, no new
   visual language. ── */
.rsc-findings {
  display: none; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: var(--rl, 14px);
  border: 1px solid var(--border); background: var(--surface);
}
.rsc-findings:not(:empty) { display: flex; }
.rsc-findings-hdr { display: flex; align-items: center; gap: 10px; }
.rsc-findings-title { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rsc-findings-confidence {
  font-size: 10.5px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent);
  border-radius: 100px; padding: 2px 9px; text-transform: capitalize;
}
.rsc-findings-group { display: flex; flex-direction: column; gap: 4px; }
.rsc-findings-group-label { font-size: 11px; font-weight: 700; color: var(--charcoal); opacity: .55; }
body.dark-mode .rsc-findings-group-label { color: rgba(255,255,255,.55); }
.rsc-findings-group-rows { display: flex; flex-direction: column; }
.rsc-finding-row {
  display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left; font-family: inherit;
  background: none; border: none; border-radius: 8px; padding: 7px 8px; cursor: pointer;
  transition: background .12s ease;
}
.rsc-finding-row:hover { background: color-mix(in srgb, var(--green) 7%, transparent); }
.rsc-finding-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.rsc-finding-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.rsc-finding-text { font-size: 13px; line-height: 1.5; color: var(--charcoal); flex: 1; }
body.dark-mode .rsc-finding-text { color: rgba(255,255,255,.85); }
.rsc-finding-sourced { font-size: 8px; color: var(--green); flex-shrink: 0; margin-top: 7px; }
.rmap-evidence-provenance {
  font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em;
}

/* Restrained real-evidence legend (Investigation Workspace pass) — see
   _rmapRenderLegend, app.html. Empty (no children) whenever a category
   genuinely has zero real items, so :empty hides it entirely rather than
   showing an empty row. */
.rsc-map-legend:empty { display: none; }
.rsc-map-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: -4px 0 2px; }
.rmap-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.55); }
.rmap-legend-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
/* Finding -> Map continuity (Market Map Analysis pass) — legend items
   for a real category (source count excluded) are real buttons, not
   plain text, that jump straight to filtering the map by that category. */
.rmap-legend-item-btn {
  font-family: inherit; cursor: pointer; background: none; border: 1px solid transparent; border-radius: 100px;
  padding: 3px 9px 3px 7px; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.rmap-legend-item-btn:hover, .rmap-legend-item-btn:focus-visible { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.rmap-legend-item-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

.rsc-map-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.rmap-filter-chip {
  font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted);
  background: none; border: 1px solid var(--border); border-radius: 100px; padding: 6px 13px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rmap-filter-chip:hover { color: var(--charcoal); }
.rmap-filter-chip-active { background: color-mix(in srgb, var(--green) 14%, transparent); border-color: var(--green); color: var(--green); }

/* .rsc-map-stage's own background/border/radius now lives in the shared
   ".rsc-canvas, .rsc-map-stage" rule above (Living Surface pass) so the
   Market Map's canvas and the pre-result workspace canvas are provably
   the same visual object, not two hand-kept-in-sync declarations. */
.rsc-map-canvas-wrap { width: 100%; height: 560px; cursor: grab; touch-action: none; outline: none; }
.rsc-map-canvas-wrap.rmap-dragging { cursor: grabbing; }
.rsc-map-canvas-wrap:focus-visible { box-shadow: inset 0 0 0 2px var(--green); }
.rsc-map-svg { width: 100%; height: 100%; display: block; }

.rsc-map-zoom-controls { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.rsc-map-zoom-controls button {
  width: 32px; height: 32px; border-radius: 9px; background: rgba(20,20,22,.9); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1;
}
.rsc-map-zoom-controls button:hover { border-color: var(--green); color: var(--green); }

/* Nodes/edges */
.rmap-edge { stroke: rgba(255,255,255,.14); stroke-width: 1.4; transition: stroke .2s ease, opacity .2s ease; }
.rmap-edge-evidence { stroke: color-mix(in srgb, var(--green) 45%, transparent); stroke-dasharray: 3 4; }
.rmap-edge-active { stroke: var(--green); stroke-width: 2; }
.rmap-edge-filtered-out { opacity: 0; }

.rmap-node circle { fill: #16161a; stroke: rgba(255,255,255,.16); stroke-width: 1.4; transition: stroke .2s ease, fill .2s ease, opacity .2s ease; }
.rmap-node-label { fill: rgba(255,255,255,.78); font-size: 10.5px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.rmap-node { cursor: pointer; }
.rmap-node:hover circle { stroke: color-mix(in srgb, var(--green) 55%, rgba(255,255,255,.2)); }
.rmap-node-market circle { fill: #1a2410; stroke: var(--green); stroke-width: 2; }
.rmap-node-market .rmap-node-label { fill: var(--green); font-size: 12px; font-weight: 800; }
.rmap-node-cluster circle { fill: #131316; stroke: rgba(255,255,255,.28); }
.rmap-node-cluster .rmap-node-label { fill: rgba(255,255,255,.9); font-size: 10.5px; font-weight: 700; }
/* Market Map Analysis pass — Opportunities are one of Research's most
   valuable real outputs; a slightly stronger real information hierarchy
   (thicker border, brighter/bolder label), still the SAME established
   lime accent already used for this domain everywhere else in ORIVEN —
   no invented score/confidence/rank, just clearer visual weight. */
.rmap-node-opportunity circle { fill: color-mix(in srgb, var(--green) 16%, #16161a); stroke: color-mix(in srgb, var(--green) 60%, transparent); stroke-width: 1.8; }
.rmap-node-opportunity .rmap-node-label { fill: var(--green); font-weight: 700; }
/* Research Investigation Workspace pass — per-category color, reusing
   the SAME real domain palette Business Intelligence's own cards already
   established (.bic-card-competition/-audience/-advertising/-knowledge,
   styles.css ~46187) so the same real concept (Competitors, Audience/
   Customer Signals, Advertising, Trends/Knowledge) reads as the same
   color everywhere in ORIVEN, not a map-local invention. Opportunity
   already reused var(--green) before this pass (Business's own domain
   color for itself) — left untouched. Cluster header nodes get the same
   hue as their child items via the new rmap-node-cluster-<key> class
   (see _rmapRenderSvg, app.html) so a category reads as one visual group. */
.rmap-node-competitor circle { stroke: #60A5FA; }
.rmap-node-competitor:hover circle { stroke: #60A5FA; fill: color-mix(in srgb, #60A5FA 16%, #16161a); }
.rmap-node-signal circle { stroke: #FACC15; }
.rmap-node-signal:hover circle { stroke: #FACC15; fill: color-mix(in srgb, #FACC15 16%, #16161a); }
.rmap-node-pattern circle { stroke: #34D399; }
.rmap-node-pattern:hover circle { stroke: #34D399; fill: color-mix(in srgb, #34D399 16%, #16161a); }
.rmap-node-trend circle { stroke: #F97316; }
.rmap-node-trend:hover circle { stroke: #F97316; fill: color-mix(in srgb, #F97316 16%, #16161a); }
.rmap-node-cluster-competitor circle { stroke: color-mix(in srgb, #60A5FA 55%, rgba(255,255,255,.28)); }
.rmap-node-cluster-signal circle { stroke: color-mix(in srgb, #FACC15 55%, rgba(255,255,255,.28)); }
.rmap-node-cluster-pattern circle { stroke: color-mix(in srgb, #34D399 55%, rgba(255,255,255,.28)); }
.rmap-node-cluster-trend circle { stroke: color-mix(in srgb, #F97316 55%, rgba(255,255,255,.28)); }
/* Selected node state (Market Map Analysis pass, spec 19) — refined, not
   a giant glowing pulse: a brighter/thicker border, a restrained static
   outer ring via drop-shadow (not animated — same node stays selected
   until the user changes it, so a persistent shadow is a state, not
   motion), and a small one-time scale-in on the circle only (the SAME
   fill-box/transform-origin technique the existing entrance animation
   already uses, since a CSS transform on the node's own <g> would
   replace its JS-set translate() — see the entrance-animation comment
   below). Reduced motion keeps the scale (it's an instant state change,
   not a transition) but drops the transition timing. */
.rmap-node-active circle {
  stroke: var(--green); stroke-width: 3; transform: scale(1.08); transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--green) 45%, transparent));
  transition: stroke .15s ease, stroke-width .15s ease, transform .15s ease;
}
.rmap-node-active .rmap-node-label { fill: #fff; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .rmap-node-active circle { transition: none; }
}
.rmap-node-dimmed { opacity: .25; }
.rmap-node-filtered-out { display: none; }
.rmap-node:focus-visible circle { stroke: var(--green); stroke-width: 2.5; }

/* Scale-only entrance (no translate here — a CSS `transform` on an SVG <g>
   REPLACES its `transform="translate(x,y)"` attribute rather than
   composing with it, so animating translate here would fly every node in
   from the origin instead of scaling in at its real position). */
@media (prefers-reduced-motion: no-preference) {
  .rmap-node circle, .rmap-node text { animation: rmapNodeIn .3s ease backwards; transform-box: fill-box; transform-origin: center; }
  .rmap-edge { animation: rmapEdgeIn .3s ease backwards; }
}
@keyframes rmapNodeIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes rmapEdgeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hover quick-context (Market Map Analysis pass, spec 5) — lightweight,
   fixed-position tooltip positioned from the real pointer/focus location
   in JS (_rmapShowTooltip/_rmapPositionTooltip, app.html), clamped to the
   viewport there. Deliberately smaller/plainer than the full detail
   panel so the two are never confused. pointer-events:none so it can
   never itself block the next hover/click. */
.rmap-tooltip {
  display: none; position: fixed; z-index: 20; max-width: 240px; pointer-events: none;
  background: rgba(12,12,14,.97); border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 9px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
@media (prefers-reduced-motion: no-preference) {
  .rmap-tooltip { animation: rmapTooltipIn .12s ease; }
}
@keyframes rmapTooltipIn { from { opacity: 0; } to { opacity: 1; } }
.rmap-tooltip-name { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.95); }
.rmap-tooltip-cat { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); margin-top: 2px; }
.rmap-tooltip-sum { font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.65); margin-top: 5px; }

/* Detail panel — a floating card over the map, becomes a bottom sheet on mobile */
.rsc-map-detail {
  position: absolute; top: 16px; right: 16px; width: 280px; max-height: calc(100% - 32px); overflow-y: auto;
  background: rgba(15,15,17,.97); border: 1px solid rgba(255,255,255,.12); border-radius: var(--rl, 14px);
  padding: 18px 20px; z-index: 4; backdrop-filter: blur(6px);
}
.rmap-detail-close { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 6px; background: none; border: none; color: rgba(255,255,255,.4); font-size: 16px; cursor: pointer; line-height: 1; }
.rmap-detail-close:hover { color: #fff; }
.rmap-detail-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.rmap-detail-title { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.95); margin-bottom: 12px; padding-right: 20px; }
.rmap-detail-field { margin-bottom: 12px; }
.rmap-detail-field-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 3px; }
.rmap-detail-field-value { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.82); }
.rmap-detail-cluster-hint { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 0 0 12px; }
.rmap-detail-chain { display: flex; flex-wrap: wrap; gap: 6px; }
.rmap-chain-chip {
  font-family: inherit; cursor: pointer; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 100px; padding: 5px 11px;
}
.rmap-chain-chip:hover { border-color: var(--green); color: var(--green); }

/* Evidence — each claim + an explicit, honest sourced/unsourced signal
   (see _rmapRenderEvidence, app.html). Never styled to look like a
   verified citation when unsourced is the true state. */
.rmap-evidence-item { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.rmap-evidence-item:first-of-type { border-top: none; padding-top: 0; }
.rmap-evidence-claim { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 4px; }
.rmap-evidence-sourced, .rmap-evidence-unsourced { font-size: 10.5px; }
.rmap-evidence-sourced { color: var(--green); }
.rmap-evidence-source-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rmap-evidence-source-link:hover { color: #fff; }
.rmap-evidence-unsourced { color: rgba(255,255,255,.35); font-style: italic; }

.rmap-focus-btn {
  width: 100%; margin-top: 14px; font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 700;
  color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  border-radius: 9px; padding: 9px; transition: background .15s ease;
}
.rmap-focus-btn:hover { background: color-mix(in srgb, var(--green) 18%, transparent); }

/* Sources panel — a real, honest, always-the-same-4-official-tools drawer
   (see RESEARCH_SOURCE_LINKS, server.js) — never per-node fabricated
   citations, since the backend has no way to honestly know which node
   "came from" which link. */
.rsc-map-sources { background: #0e0e10; border: 1px solid rgba(255,255,255,.08); border-radius: var(--rl, 14px); padding: 18px 20px; }
.rmap-sources-hd { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 6px; }
.rmap-sources-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.rmap-sources-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rmap-source-link {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 9px 14px;
  transition: border-color .15s ease;
}
.rmap-source-link:hover { border-color: var(--green); }
.rmap-source-type-badge {
  align-self: flex-start; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); border-radius: 4px; padding: 2px 6px; margin-bottom: 2px;
}
.rmap-source-type-badge-real { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.rmap-source-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.rmap-source-domain { font-size: 11px; color: var(--muted); }

.rsc-input-row { display: flex; gap: 10px; margin-top: 4px; }

.rsc-followup-answer {
  font-size: 13px; line-height: 1.6; color: var(--c2);
  background: var(--sf2, var(--surface)); border: 1px solid var(--border);
  border-radius: var(--rl, 14px); padding: 12px 16px; margin-top: 12px;
}
.rsc-followup-answer-loading { color: var(--muted); font-style: italic; }
.rsc-followup-answer-error { color: #f87171; border-color: rgba(248,113,113,.25); }

@media (max-width: 900px) {
  .rsc-map-canvas-wrap { height: 440px; }
  .rsc-map-detail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 60vh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 640px) {
  .rsc-hero { padding: 24px 0 8px; }
  .rsc-hero-input { font-size: 15px; padding: 16px 18px; }
  .research-query-row, .rsc-input-row { flex-direction: column; }
  .rsc-map-canvas-wrap { height: 380px; }
  .rsc-map-topbar { flex-direction: column; }
}

/* ── The one primary panel — always a near-black premium surface
   regardless of the page's light/dark theme (Oriven's core visual
   identity is dark-first, same precedent .ov3-card already set). Ambient
   glow lives on the panel's OWN box-shadow, not a child pseudo-element —
   a spread-0 box-shadow radiates evenly outward from every edge and is
   never clipped by the panel's own overflow:hidden (only descendant
   content is); a radial-gradient ::before was tried first and got
   clipped to the box's interior, washing the whole panel in green
   instead of glowing only at the edges (caught via screenshot before
   shipping). The dark-depth shadow and the two green glow layers are
   combined into ONE box-shadow list so they interpolate together in the
   breathing keyframes below (animating box-shadow needs the same shadow
   COUNT at every keyframe). */
.intel-panel {
  position: relative; overflow: hidden;
  background: #0e0e10; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 26px 28px;
  box-shadow:
    0 20px 60px -28px rgba(0,0,0,.6),
    0 0 36px 0 color-mix(in srgb, var(--green) 14%, transparent),
    0 0 90px 0 color-mix(in srgb, var(--green) 7%, transparent);
  animation: intelHeroGlowBreathe 5s ease-in-out infinite;
}
@keyframes intelHeroGlowBreathe {
  0%, 100% {
    box-shadow:
      0 20px 60px -28px rgba(0,0,0,.6),
      0 0 36px 0 color-mix(in srgb, var(--green) 14%, transparent),
      0 0 90px 0 color-mix(in srgb, var(--green) 7%, transparent);
  }
  50% {
    box-shadow:
      0 20px 60px -28px rgba(0,0,0,.6),
      0 0 36px 0 color-mix(in srgb, var(--green) 10%, transparent),
      0 0 90px 0 color-mix(in srgb, var(--green) 4%, transparent);
  }
}
/* AI Active — deliberately understated (a 6px pulsing dot + tiny
   uppercase label, no background/badge chrome), per the explicit "not a
   generic green status badge" direction. */
.intel-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; position: relative; z-index: 1; }
.intel-status-pill { display: flex; align-items: center; gap: 7px; }
.intel-ai-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: intelAiPulse 2.4s ease-in-out infinite;
}
@keyframes intelAiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183,255,42,.35); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(183,255,42,0); opacity: .6; }
}
.intel-ai-txt { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.intel-change-btn {
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.5);
  background: none; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 5px 11px; cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s;
}
.intel-change-btn:hover { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.24); }

.intel-hero-body { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

/* Cards inside the hero must stay legible against the always-dark hero
   background regardless of the surrounding page's light/dark theme — these
   overrides are intentionally NOT gated behind body.dark-mode. */
.intel-hero-body .oi-card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.intel-hero-body .oi-card:hover { border-color: color-mix(in srgb, var(--green) 30%, rgba(255,255,255,.14)); }
.intel-hero-body .oi-card-title { color: rgba(255,255,255,.92); }
.intel-hero-body .oi-card-desc { color: rgba(255,255,255,.5); }
.intel-hero-body .oi-card-impact { color: var(--green); }
.intel-hero-body .oi-badge { background: rgba(255,255,255,.07); }
.intel-hero-body .oi-badge-conf { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }

.intel-hero-calm { text-align: center; padding: 20px 10px; position: relative; z-index: 1; }
.intel-hero-calm-title { display: block; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.5; max-width: 420px; margin: 0 auto; }

/* Error state — inside the same panel, never a silently fabricated
   "everything's fine" fallback. */
.intel-error-state { text-align: center; padding: 18px 10px; position: relative; z-index: 1; }
.intel-retry-link { color: var(--green); font-weight: 700; text-decoration: underline; margin-left: 4px; }

/* Premium empty state — rendered into the panel body itself, so there is
   structurally only ever one empty state on screen at a time. */
.intel-hero-empty { text-align: center; padding: 20px 10px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.intel-hero-empty-ico {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--green);
  margin-bottom: 18px;
}
.intel-hero-empty-title { font-size: 17px; font-weight: 700; color: rgba(255,255,255,.92); letter-spacing: -.01em; margin-bottom: 8px; max-width: 380px; }
.intel-hero-empty-sub { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.55; max-width: 380px; margin-bottom: 20px; }

/* Per-platform breakdown inside the "no-campaigns" / "zero-monitored" empty
   states — makes the actual reason (not connected / connected but genuinely
   empty / campaigns available) explicit per platform, not one blanket
   message. */
.intel-hero-empty-plats {
  width: 100%; max-width: 340px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  padding: 4px 14px; margin-bottom: 20px;
}
.intel-hero-empty-plat-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 12px; text-align: left;
}
.intel-hero-empty-plat-row:last-child { border-bottom: none; }
.intel-hero-empty-plat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.intel-hero-empty-plat-dot-on { background: var(--green); }
.intel-hero-empty-plat-dot-off { background: rgba(255,255,255,.25); }
.intel-hero-empty-plat-name { font-weight: 600; color: rgba(255,255,255,.85); flex-shrink: 0; }
.intel-hero-empty-plat-status { color: rgba(255,255,255,.4); margin-left: auto; text-align: right; }

/* ── "This is what Oriven is watching" — compact chip row, sits right
   under the AI Active line inside the panel, replaces the old separate
   Monitored Campaigns sidebar card. ── */
.intel-monitoring { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.intel-monitoring-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.intel-monitoring-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.intel-monitoring-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 4px 11px 4px 9px;
}
.intel-monitoring-chip-ico { display: flex; align-items: center; }
.intel-brief-divider { height: 1px; background: rgba(255,255,255,.08); margin: 16px 0; position: relative; z-index: 1; }

/* ── Watchlist — folded into the panel as plain rows with a coloured
   left accent (severity-coded, same red/amber/green family the old
   bordered-card badges used), NOT a grid of separately bordered/shadowed
   cards — the whole point of the redesign is one continuous briefing,
   not a dashboard of boxes. ── */
.intel-wl-grid { display: flex; flex-direction: column; position: relative; z-index: 1; }
.intel-wl-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 13px 6px 13px 14px; margin: 0 -6px;
  border-left: 2px solid transparent; border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer; opacity: 0; background: none;
  transition: background .15s ease, border-color .15s ease;
}
.intel-wl-grid .intel-wl-card:last-child { border-bottom: none; }
.intel-wl-card:hover { background: rgba(255,255,255,.03); }
.intel-wl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.intel-wl-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.intel-wl-critical { border-left-color: #ef4444; }
.intel-wl-critical .intel-wl-badge { color: #f87171; }
.intel-wl-attention { border-left-color: #fbbf24; }
.intel-wl-attention .intel-wl-badge { color: #fbbf24; }
.intel-wl-opportunity, .intel-wl-positive { border-left-color: var(--green); }
.intel-wl-opportunity .intel-wl-badge, .intel-wl-positive .intel-wl-badge { color: var(--green); }
.intel-wl-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.92); line-height: 1.35; }
.intel-wl-camp { font-size: 11.5px; color: rgba(255,255,255,.45); }
.intel-wl-camp-lbl { font-weight: 600; }
.intel-wl-detail { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.5; }
.intel-wl-link { font-size: 11.5px; font-weight: 600; color: var(--green); transition: transform .15s; display: inline-block; }
.intel-wl-card:hover .intel-wl-link { transform: translateX(3px); }
.intel-spark { color: rgba(255,255,255,.4); flex-shrink: 0; }
.intel-spark-up { color: var(--green); }
.intel-spark-down { color: #f87171; }

/* Recent Signals — folded directly into the briefing flow, small
   labelled rows (not a separately-headed section); empty when there are
   no real events (JS leaves the feed container empty, never a
   placeholder row). */
.intel-signals-feed { display: flex; flex-direction: column; position: relative; z-index: 1; }
.intel-signal-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 6px; margin: 0 -6px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.intel-signals-feed .intel-signal-row:first-child { border-top: none; }
.intel-signal-ico { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.4; }
.intel-signal-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.intel-signal-lbl { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.intel-signal-txt { color: rgba(255,255,255,.75); }
.intel-signal-plat { color: rgba(255,255,255,.4); font-size: 11px; }
.intel-signal-time { color: rgba(255,255,255,.35); font-size: 11px; white-space: nowrap; flex-shrink: 0; }

/* ── Inline platform -> campaign picker (replaces the old modal) ──── */
.intel-picker { position: relative; z-index: 1; }
.intel-picker-lead { font-size: 13px; color: rgba(255,255,255,.55); margin: 0 0 16px; }
.intel-picker-plats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.intel-picker-plat {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 10px 14px; font-family: inherit;
  cursor: pointer; transition: border-color .15s, background .15s;
  color: rgba(255,255,255,.85);
}
.intel-picker-plat-on:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.12)); }
.intel-picker-plat-active { border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, rgba(255,255,255,.03)); }
.intel-picker-plat-off { color: rgba(255,255,255,.4); }
.intel-picker-plat-ico { display: flex; align-items: center; }
.intel-picker-plat-name { font-size: 12.5px; font-weight: 700; }
.intel-picker-plat-status { font-size: 10.5px; color: rgba(255,255,255,.4); }
.intel-picker-plat-active .intel-picker-plat-status { color: var(--green); }
.intel-picker-body { min-height: 40px; }
.intel-picker-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.5; padding: 6px 0 4px;
}
.intel-picker-err {
  margin-top: 12px; padding: 9px 12px;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); border-radius: 8px;
  color: #f87171; font-size: 11.5px; line-height: 1.5;
}
.intel-picker-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
}
.intel-picker-count { font-size: 11.5px; color: rgba(255,255,255,.4); margin-right: auto; }
.intel-picker-cancel-btn {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.6);
  background: none; border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
  padding: 8px 14px; cursor: pointer; transition: background .14s, color .14s;
}
.intel-picker-cancel-btn:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
.intel-picker-done-btn {
  font-size: 12.5px; font-weight: 700; color: #000;
  background: var(--green); border: none; border-radius: 9px;
  padding: 8px 18px; cursor: pointer; transition: opacity .15s;
}
.intel-picker-done-btn:hover { opacity: .88; }

/* Reused by the picker above (dark premium chrome shared across
   platform-status / campaign-checkbox rows) — also still used verbatim
   by Autopilot's Create Automation / Settings modals
   (.intel-mon-panel, .intel-mon-topbar, .intel-mon-close-btn,
   .intel-mon-loading, see app.html), so these are NOT Intelligence-only
   and must not be removed even though Intelligence itself no longer uses
   the modal shell.
   REAL BUG FOUND AND FIXED (Autopilot Builder Fix sprint): this comment
   used to list the class names with a trailing asterisk directly
   followed by a forward slash (glob notation, no space between them) --
   that two-character pair is the literal CSS comment-close token, so
   writing it inside this very comment silently closed the comment early.
   Everything from there through the next open-brace (all the way into
   the .intel-mon-panel rule below) became one long invalid selector,
   which browsers drop entirely -- so .intel-mon-panel's real
   background #0b0b0c / border / border-radius / box-shadow never applied
   at all. That's the actual root cause of "the builder panel is
   transparent": the rule that was supposed to make it opaque was dead
   code this whole time, not a runtime opacity/z-index/stacking issue.
   Confirmed via document.styleSheets: .intel-mon-panel was completely
   absent from the parsed rule list before this fix. Lesson: never write
   an asterisk immediately followed by a slash inside a CSS comment, even
   to describe the bug -- always leave a space or punctuation between
   them. */
.intel-mon-panel {
  width: 100%; max-width: 480px;
  background: #0b0b0c; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 24px 72px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
.intel-mon-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.intel-mon-topbar-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); letter-spacing: -.01em; }
.intel-mon-close-btn {
  display: flex; align-items: center; justify-content: center; margin-left: auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.4); font-size: 13px; transition: background .14s, color .14s;
}
.intel-mon-close-btn:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.intel-mon-loading { display: flex; align-items: center; gap: 10px; padding: 30px 4px; font-size: 12.5px; color: rgba(255,255,255,.45); }

.intel-mon-connect-btn {
  align-self: flex-start; font-size: 12px; font-weight: 700;
  background: var(--green); color: #000; border: none; border-radius: 8px;
  padding: 7px 12px; cursor: pointer; transition: opacity .15s;
}
.intel-mon-connect-btn:hover { opacity: .85; }

.intel-mon-camp-list { display: flex; flex-direction: column; gap: 1px; padding-bottom: 4px; }
.intel-mon-camp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px; margin: 0 -8px; border-radius: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.75); cursor: pointer;
  transition: background .12s;
}
.intel-mon-camp-row:hover { background: rgba(255,255,255,.04); }
.intel-mon-camp-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.intel-mon-camp-box {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,.2); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s, border-color .14s;
}
.intel-mon-camp-box::after {
  content: ''; width: 4px; height: 8px;
  border: solid #000; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}
.intel-mon-camp-row input:checked + .intel-mon-camp-box {
  background: var(--green); border-color: var(--green);
}
.intel-mon-camp-row input:checked + .intel-mon-camp-box::after { opacity: 1; }
.intel-mon-camp-row input:checked ~ .intel-mon-camp-name { color: rgba(255,255,255,.95); }
.intel-mon-camp-row input:focus-visible + .intel-mon-camp-box { outline: 2px solid var(--green); outline-offset: 2px; }
.intel-mon-camp-name { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .intel-mon-camp-row, .intel-mon-camp-box, .intel-mon-connect-btn, .intel-picker-cancel-btn, .intel-picker-done-btn { transition: none !important; }
}

/* Entrance sequence — header/panel fade+slide, watchlist rows staggered
   via per-row animation-delay set in JS (_intelPlayCardStagger).
   Triggered by toggling .intel-anim-play on #intelPageWrap (remove →
   forced reflow → re-add), the standard reliable way to restart a CSS
   animation on repeat visits rather than relying on display:none/block
   to reset it. */
.intel-anim-hdr, .intel-anim-hero { opacity: 0; }
.intel-anim-play .intel-anim-hdr  { animation: intelFadeUp .4s cubic-bezier(.22,1,.36,1) forwards; }
.intel-anim-play .intel-anim-hero { animation: intelFadeUp .5s cubic-bezier(.22,1,.36,1) .08s forwards; }
.intel-anim-cards .intel-wl-card  { animation: intelFadeUp .45s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes intelFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intel-anim-hdr, .intel-anim-hero, .intel-wl-card { opacity: 1 !important; animation: none !important; transform: none !important; }
  .intel-ai-dot { animation: none !important; }
  .intel-panel {
    animation: none !important;
    box-shadow:
      0 20px 60px -28px rgba(0,0,0,.6),
      0 0 36px 0 color-mix(in srgb, var(--green) 12%, transparent),
      0 0 90px 0 color-mix(in srgb, var(--green) 6%, transparent) !important; /* static, still-subtle ambient glow */
  }
  .intel-wl-card { transition: none !important; }
}

/* ── Intelligence — loading skeleton ───────────────────────────────
   Shown the instant a real (non-cached) /api/intelligence/home fetch
   starts, so the wait reads as "Intelligence is loading my data" rather
   than a blank gap. .intel-wl-skel overrides the entrance-animation
   system's opacity:0 base state (.intel-wl-card) — skeleton rows are
   swapped in before _intelPlayCardStagger ever runs for this render
   pass, so they'd otherwise stay invisible with nothing to trigger their
   reveal. */
.intel-skel-pulse {
  background: rgba(255,255,255,.08);
  border-radius: 5px;
  animation: intelSkelPulse 1.4s ease-in-out infinite;
}
.intel-hero-body .intel-skel-pulse { background: rgba(255,255,255,.07); }
.intel-wl-skel { opacity: 1 !important; cursor: default; border-left-color: transparent !important; }
.intel-wl-skel .intel-skel-pulse { background: rgba(255,255,255,.07); }
@keyframes intelSkelPulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
.intel-skel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .intel-skel-pulse { animation: none !important; opacity: .7 !important; }
}

/* ── Cross-Platform comparison table (Home Dashboard) ────────────── */
.ov3-cmp-table {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 15px; margin-bottom: 4px;
}
body.dark-mode .ov3-cmp-table { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.ov3-cmp-row {
  display: grid; grid-template-columns: 1fr 90px 90px;
  padding: 7px 0; font-size: 12px;
  border-bottom: 1px solid var(--border);
}
body.dark-mode .ov3-cmp-row { border-bottom-color: rgba(255,255,255,.06); }
.ov3-cmp-row:last-child { border-bottom: none; }
.ov3-cmp-lbl { color: var(--muted); }
.ov3-cmp-val { text-align: right; font-weight: 600; color: var(--charcoal); }
body.dark-mode .ov3-cmp-val { color: rgba(255,255,255,.85); }

/* ── Connected Platforms ───────────────────────────────────────── */
.ov3-plats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ov3-plat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .15s;
}
body.dark-mode .ov3-plat-chip {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.065);
}
.ov3-plat-chip:hover { border-color: color-mix(in srgb, var(--green) 25%, transparent); }
body:not(.dark-mode) .ov3-plat-chip:hover { border-color: rgba(90,140,0,.25); }

.ov3-plat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
}
body.dark-mode .ov3-plat-name { color: rgba(255,255,255,.8); }

.ov3-plat-stat {
  font-size: 11px;
  color: var(--muted);
}
.ov3-plat-stat.connected { color: #3ecf8e; }

.ov3-tiktok-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #010101;
  border-radius: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .ov3-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 190px 190px 190px;
  }
  .ov3-card-featured { grid-row: span 2; grid-column: 1; }
  .ov3-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ov3-card:nth-child(3) { grid-column: 2; grid-row: 2; }
  .ov3-card:nth-child(4) { grid-column: 1; grid-row: 3; }
  .ov3-card:nth-child(5) { grid-column: 2; grid-row: 3; }
}

@media (max-width: 740px) {
  .ov3-hero { padding: 36px 20px 32px; }
  .ov3-headline { font-size: 34px; letter-spacing: -.025em; }
  .ov3-section { padding: 0 16px 28px; }
  .ov3-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 200px 200px 200px 200px;
  }
  .ov3-card-featured { grid-row: span 1; }
  .ov3-plats-row { flex-direction: column; }
  .ov3-hints { display: none; }
  .ov3-trend-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Trending Creations ───────────────────────────────────────── */
.ov3-trend-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: .03em;
}

.ov3-trend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ov3-tc {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}

.ov3-tc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.ov3-tc-vis {
  position: relative;
  height: 100px;
  background:
    radial-gradient(ellipse 55% 55% at 80% 20%, var(--tv3) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 15% 80%, var(--tv2) 0%, transparent 60%),
    var(--tv1);
  overflow: hidden;
}

.ov3-tc-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  font-weight: 400;
  color: rgba(255,255,255,.045);
  letter-spacing: -.02em;
  pointer-events: none;
  user-select: none;
}

.ov3-tc-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.ov3-tc-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 3px 7px;
}

.ov3-tc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px 10px;
  gap: 6px;
}

.ov3-tc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov3-tc-stat {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CAMPAIGNS PAGE — Filter bar + status pills  (clib-*)
   ══════════════════════════════════════════════════════════════ */

/* Filter bar: tabs on left, search on right */
.clib-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Status tabs */
.clib-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
body.dark-mode .clib-tabs {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.07);
}

.clib-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 7px;
  padding: 5px 13px;
  cursor: pointer;
  transition: color .12s, background .12s;
  white-space: nowrap;
  letter-spacing: -.005em;
}
.clib-tab:hover { color: var(--charcoal); }
body.dark-mode .clib-tab:hover { color: rgba(255,255,255,.8); }

.clib-tab.clib-tab-on {
  background: var(--surface);
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
body.dark-mode .clib-tab.clib-tab-on {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

/* Search input */
.clib-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 12px;
  transition: border-color .15s;
  min-width: 200px;
}
body.dark-mode .clib-search-wrap {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.clib-search-wrap:focus-within { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
body:not(.dark-mode) .clib-search-wrap:focus-within { border-color: rgba(90,140,0,.35); }

.clib-search-ico { flex-shrink: 0; color: var(--muted); }

.clib-search {
  background: none;
  border: none;
  outline: none;
  font-size: 12.5px;
  font-family: 'Geist', system-ui, sans-serif;
  color: var(--charcoal);
  width: 100%;
  min-width: 0;
}
.clib-search::placeholder { color: var(--muted); opacity: .7; }

/* Status pills on campaign cards */
.clib-status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.clib-status-draft    { background: rgba(251,188,4,.12);  color: #c49a00; }
.clib-status-active   { background: rgba(62,207,142,.12); color: #3ecf8e; }
.clib-status-archived { background: rgba(107,107,107,.1); color: var(--muted); }
/* V8 Phase 2 (Epic 10) — publish-workflow states not already covered above */
.clib-status-approved          { background: rgba(72,187,120,.12);  color: #276749; }
.clib-status-rejected          { background: rgba(255,107,122,.12); color: #c0293f; }
.clib-status-needs-improvement { background: rgba(255,159,10,.12);  color: #b06a00; }
body.dark-mode .clib-status-draft    { color: #FBBC04; }
body.dark-mode .clib-status-active   { color: #3ecf8e; }
body.dark-mode .clib-status-approved          { color: #68D391; }
body.dark-mode .clib-status-rejected          { color: #FF6B7A; }
body.dark-mode .clib-status-needs-improvement { color: #FFB84D; }

/* No search results */
.clib-no-results {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0 8px;
}

/* ══════════════════════════════════════════════════════════════
   PERFORMANCE PAGE — Analytics dashboard preview (perf-*)
   ══════════════════════════════════════════════════════════════ */

.perf-preview {
  padding: 0 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Connect banner */
.perf-connect-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 14px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.perf-connect-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 10px;
  color: var(--green);
}

.perf-connect-copy { flex: 1; min-width: 180px; }

.perf-connect-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.perf-connect-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Demo KPI cards */
.perf-demo-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.perf-demo-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  opacity: .55;
}

.perf-demo-kpi-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.perf-demo-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.perf-demo-kpi-chg {
  font-size: 11.5px;
  font-weight: 600;
}

.perf-chg-up  { color: #3ecf8e; }
.perf-chg-neu { color: var(--muted); }

/* Demo chart */
.perf-demo-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  opacity: .55;
}

.perf-demo-chart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.perf-demo-chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.perf-demo-chart-tags { display: flex; gap: 6px; }

.perf-dtag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}

.perf-dtag.perf-dtag-on {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--green);
}

.perf-demo-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 8px;
}

.perf-demo-bar {
  flex: 1;
  height: var(--bh, 50%);
  background: linear-gradient(to top, color-mix(in srgb, var(--green) 30%, transparent), color-mix(in srgb, var(--green) 10%, transparent));
  border-radius: 4px 4px 0 0;
}

.perf-demo-chart-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Demo campaigns table */
.perf-demo-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  opacity: .55;
}

.perf-demo-table-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.perf-demo-table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.perf-demo-table-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  border-radius: 20px;
  padding: 2px 9px;
}

.perf-demo-table { opacity: 1; }

.perf-demo-table-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 16px !important;
}

/* AI Recommendations preview */
.perf-demo-ai {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  opacity: .55;
}

.perf-demo-ai-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.perf-demo-ai-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.perf-demo-ai-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 6px;
  padding: 1px 6px;
}

.perf-demo-ai-placeholder { display: flex; flex-direction: column; gap: 16px; }

.perf-demo-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.perf-demo-ai-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.perf-dot-warn  { background: #f59e0b; }
.perf-dot-green { background: #3ecf8e; }
.perf-dot-blue  { background: #3b82f6; }

.perf-demo-ai-line { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.perf-demo-skel {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  animation: perfSkelPulse 1.6s ease-in-out infinite;
}

@keyframes perfSkelPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   REPORTS PAGE — Reporting center (rpt-*)
   ══════════════════════════════════════════════════════════════ */

.rpt-page {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 36px 60px;
  max-width: 1100px;
}

/* Header */
.rpt-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.rpt-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--charcoal);
  margin: 0 0 5px;
}
body.dark-mode .rpt-title { color: rgba(255,255,255,.95); }

.rpt-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Stats row */
.rpt-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.rpt-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}

.rpt-stat-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--charcoal);
  margin-bottom: 4px;
}
body.dark-mode .rpt-stat-val { color: rgba(255,255,255,.9); }

.rpt-stat-lbl {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* Sections */
.rpt-section {
  margin-bottom: 36px;
}

.rpt-section-last { margin-bottom: 0; }

.rpt-sect-hd {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.rpt-sect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* Quick export row */
.rpt-export-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rpt-export-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, transform .12s;
}

.rpt-export-btn:hover {
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  transform: translateY(-1px);
}

.rpt-export-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
}

.rpt-ico-pdf    { background: rgba(239,68,68,.12);   color: #ef4444; }
.rpt-ico-csv    { background: rgba(62,207,142,.12);  color: #3ecf8e; }
.rpt-ico-xls    { background: rgba(34,197,94,.12);   color: #22c55e; }
.rpt-ico-sheets { background: rgba(59,130,246,.12);  color: #3b82f6; }

.rpt-export-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
body.dark-mode .rpt-export-name { color: rgba(255,255,255,.9); }

.rpt-export-desc {
  font-size: 11.5px;
  color: var(--muted);
}

/* Report templates grid */
.rpt-templates-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpt-tpl {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .15s;
}

.rpt-tpl:hover { border-color: color-mix(in srgb, var(--green) 35%, transparent); }

.rpt-tpl-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}

.rpt-tpl-perf   { background: rgba(59,130,246,.12);  color: #3b82f6; }
.rpt-tpl-exec   { background: rgba(139,92,246,.12);  color: #8b5cf6; }
.rpt-tpl-client { background: rgba(249,115,22,.12);  color: #f97316; }
.rpt-tpl-custom { background: color-mix(in srgb, var(--green) 12%, transparent);  color: var(--green); }

.rpt-tpl-body { flex: 1; min-width: 0; }

.rpt-tpl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}
body.dark-mode .rpt-tpl-name { color: rgba(255,255,255,.9); }

.rpt-tpl-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.rpt-tpl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rpt-tpl-tags span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
}

.rpt-tpl-arrow {
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}

.rpt-tpl:hover .rpt-tpl-arrow { transform: translateX(3px); color: var(--green); }

/* Scheduled reports empty */
.rpt-sched-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-style: dashed;
  gap: 10px;
  color: var(--muted);
}

.rpt-sched-empty-ico { opacity: .4; }

.rpt-sched-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}
body.dark-mode .rpt-sched-empty-title { color: rgba(255,255,255,.7); }

.rpt-sched-empty-sub { font-size: 12.5px; max-width: 360px; line-height: 1.5; }

/* Report history table */
.rpt-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}

.rpt-history-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.rpt-history-thead {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 60px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.rpt-history-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .perf-demo-kpis { grid-template-columns: repeat(3, 1fr); }
  .rpt-stats-row  { grid-template-columns: repeat(2, 1fr); }
  .rpt-export-row { grid-template-columns: repeat(2, 1fr); }
  .rpt-history-thead { display: none; }
}

@media (max-width: 600px) {
  .perf-demo-kpis { grid-template-columns: repeat(2, 1fr); }
  .perf-preview   { padding: 0 16px 36px; }
  .rpt-page       { padding: 24px 16px 48px; }
  .rpt-stats-row  { grid-template-columns: repeat(2, 1fr); }
  .rpt-export-row { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PERFORMANCE PAGE — Standalone analytics dashboard (pfm-*)
   ══════════════════════════════════════════════════════════════ */

.pfm-page {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 32px 60px;
  max-width: 1200px;
}

/* Header */
.pfm-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pfm-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--charcoal);
  margin: 0 0 4px;
}
body.dark-mode .pfm-title { color: rgba(255,255,255,.95); }

.pfm-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.pfm-hdr-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Platform tabs */
.pfm-plat-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}

.pfm-ptab {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.pfm-ptab.pfm-ptab-on {
  background: var(--surface);
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
body.dark-mode .pfm-ptab.pfm-ptab-on { color: rgba(255,255,255,.9); }

/* Date tabs */
.pfm-date-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}

.pfm-dtab {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.pfm-dtab.pfm-dtab-on {
  background: var(--surface);
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
body.dark-mode .pfm-dtab.pfm-dtab-on { color: rgba(255,255,255,.9); }

/* No-account prompt */
.pfm-no-acct {
  background: color-mix(in srgb, var(--green) 6%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.pfm-no-acct-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pfm-no-acct-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 11px;
  color: var(--green);
}

.pfm-no-acct-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}
body.dark-mode .pfm-no-acct-title { color: rgba(255,255,255,.9); }

.pfm-no-acct-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* KPI cards */
.pfm-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pfm-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 16px;
  transition: border-color .15s;
}

.pfm-kpi:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }

.pfm-kpi-roas { border-color: color-mix(in srgb, var(--green) 20%, transparent); background: color-mix(in srgb, var(--green) 4%, transparent); }

.pfm-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.pfm-kpi-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--charcoal);
  margin-bottom: 5px;
}
body.dark-mode .pfm-kpi-val { color: rgba(255,255,255,.92); }
.pfm-kpi-roas .pfm-kpi-val { color: var(--green); }

.pfm-kpi-sub {
  font-size: 11.5px;
  color: var(--muted);
}

/* Charts */
.pfm-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.pfm-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 14px;
}

.pfm-chart-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pfm-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
}
body.dark-mode .pfm-chart-title { color: rgba(255,255,255,.88); }

.pfm-chart-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 6px;
  padding: 2px 7px;
}

.pfm-badge-spend { background: rgba(59,130,246,.12); color: #3b82f6; }
.pfm-badge-conv  { background: rgba(62,207,142,.12); color: #3ecf8e; }
.pfm-badge-roas  { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }

.pfm-chart-area {
  height: 80px;
  position: relative;
  margin-bottom: 8px;
}

.pfm-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}

.pfm-bar {
  flex: 1;
  height: var(--bh, 50%);
  background: linear-gradient(to top, rgba(59,130,246,.5), rgba(59,130,246,.2));
  border-radius: 3px 3px 0 0;
}

.pfm-bar-conv {
  background: linear-gradient(to top, rgba(62,207,142,.5), rgba(62,207,142,.15));
}

.pfm-bar-roas {
  background: linear-gradient(to top, color-mix(in srgb, var(--green) 55%, transparent), color-mix(in srgb, var(--green) 15%, transparent));
}

.pfm-chart-no-data {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.pfm-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 4px;
}

/* Campaign table */
.pfm-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pfm-table-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.pfm-table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}
body.dark-mode .pfm-table-title { color: rgba(255,255,255,.9); }

.pfm-table-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  border-radius: 20px;
  padding: 2px 9px;
}

.pfm-table-wrap { overflow-x: auto; }

.pfm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pfm-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pfm-table td {
  padding: 12px 14px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}
body.dark-mode .pfm-table td { color: rgba(255,255,255,.82); }

.pfm-table tbody tr:last-child td { border-bottom: none; }

.pfm-num { text-align: right !important; }

.pfm-table-empty {
  text-align: center !important;
  color: var(--muted) !important;
  padding: 32px 16px !important;
  font-size: 13px;
}

/* AI Recommendations */
.pfm-ai-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.pfm-ai-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pfm-ai-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}
body.dark-mode .pfm-ai-title { color: rgba(255,255,255,.9); }

.pfm-ai-sub { font-size: 12.5px; color: var(--muted); }

.pfm-ai-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
}

.pfm-ai-list { display: flex; flex-direction: column; gap: 12px; }

.pfm-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pfm-ai-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  background: var(--muted);
}

.pfm-ai-warn .pfm-ai-dot { background: #f59e0b; }
.pfm-ai-good .pfm-ai-dot { background: #3ecf8e; }
.pfm-ai-info .pfm-ai-dot { background: #3b82f6; }

.pfm-ai-content { flex: 1; min-width: 0; }

.pfm-ai-rec {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}
body.dark-mode .pfm-ai-rec { color: rgba(255,255,255,.88); }

.pfm-ai-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.pfm-ai-act {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 2px 0;
  flex-shrink: 0;
}

/* ── Platform Report Cards (Reports page) ─────────────────── */
.rpt-plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rpt-plat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rpt-plat-google { border-top: 3px solid #4285F4; }
.rpt-plat-meta   { border-top: 3px solid #1877F2; }
.rpt-plat-tiktok { border-top: 3px solid #FE2C55; }

.rpt-plat-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpt-plat-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rpt-logo-google  { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rpt-logo-meta    { background: #1877F2; }
.rpt-logo-tiktok  { background: #010101; }

.rpt-plat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
body.dark-mode .rpt-plat-name { color: rgba(255,255,255,.9); }

.rpt-plat-status {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rpt-plat-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rpt-status-connected::before { background: #3ecf8e; }
.rpt-status-disconnected::before { background: var(--muted); }
.rpt-status-connected { color: #3ecf8e; }
.rpt-status-disconnected { color: var(--muted); }

.rpt-plat-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rpt-plat-metric {
  text-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px;
}

.rpt-plat-metric span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.rpt-plat-metric strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.01em;
}
body.dark-mode .rpt-plat-metric strong { color: rgba(255,255,255,.88); }

.rpt-plat-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.rpt-plat-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}

.rpt-plat-btn:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--charcoal); }

.rpt-btn-gen {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-color: color-mix(in srgb, var(--green) 25%, transparent);
  color: var(--green);
  font-weight: 700;
}

.rpt-btn-gen:hover { background: color-mix(in srgb, var(--green) 18%, transparent); border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }

/* Responsive for pfm and rpt-plat */
@media (max-width: 1100px) {
  .pfm-kpis   { grid-template-columns: repeat(3, 1fr); }
  .pfm-charts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .pfm-kpis     { grid-template-columns: repeat(2, 1fr); }
  .pfm-charts   { grid-template-columns: 1fr; }
  .pfm-page     { padding: 24px 18px 48px; }
  .rpt-plat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pfm-kpis    { grid-template-columns: repeat(2, 1fr); }
  .pfm-hdr-controls { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════
   PERFORMANCE PAGE — prf-*
   ════════════════════════════════════════════════════════════ */

/* Bug fix (Intelligence + Studio Refinement sprint, "Campaigns should never
   require scrolling"): the global `.page { min-height: 100% }` rule floors
   every page at .mc's full height — fine for sparse pages, but #page-performance
   sits below the 54px Campaigns hub-tab strip (a sibling inside .mc, not
   inside this page), so hub-strip(54px) + page(min 900px) always overflowed
   .mc by exactly 54px regardless of how little content Campaigns has. This
   page has plenty of real content to fill the space on its own, so the
   floor is unnecessary here — scoped to this one page, not the shared rule. */
#page-performance.active { min-height: auto; }
.prf-wrap {
  /* Campaigns gets its own, wider content column (--camp-content-maxw,
     1240px, vs the shared --orv-content-maxw:1040px other pages use) —
     matches #orvHubTabsCampaigns/#page-ads-manager/.camp-hub below so the
     tab strip and all three pages' content share one left/right edge. */
  max-width: var(--camp-content-maxw);
  margin: 0 auto;
  /* Compact vertical padding (page-scoped override, not the shared
     --orv-content-pad-top/-bottom tokens other pages still use at their
     full 40px/80px) — Overview's real content (tabs, platform switcher,
     5 KPI rings, 2x2 chart grid, AI card) is intentionally dense enough
     that it should fit inside a 900px-tall viewport without the page
     needing its own scrollbar. Horizontal padding is untouched. */
  /* Final Visual Correction pass — 20/16 -> 16/12, one more small trim
     toward eliminating the desktop vertical scroll (see .prf-perf-col's
     gap and the redundant-margin removals above/below on this page). */
  padding: 16px var(--orv-content-pad-x) 12px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* Per-page "mode" line — replaces each Campaigns page's old standalone H1.
   The shared "Campaigns" title now lives once in .camp-shell-hdr above the
   tab strip; each mode (Overview=Analyze / Live Campaigns=Operate /
   Drafts=Create) just needs a small, dense indicator, not a repeated
   heading. Shared class so all three pages use the exact same component. */
.camp-mode-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.camp-mode-label {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-text, var(--green));
}
.camp-mode-sep { color: var(--muted, rgba(0,0,0,.25)); }
.camp-mode-copy { color: var(--muted, rgba(0,0,0,.5)); }
body.dark-mode .camp-mode-sep { color: rgba(255,255,255,.2); }
body.dark-mode .camp-mode-copy { color: rgba(255,255,255,.4); }

.prf-select {
  padding: 6px 30px 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.12);
  background-color: #fff;
  color: var(--charcoal, #18181A);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='rgba(0,0,0,.45)' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Bug fix (Campaigns Workspace Final Polish): a bare <select> sizes itself
   to whichever option text is currently selected, so the Campaign selector
   visibly resized every time the platform changed ("All Campaigns" vs "All
   Ads" etc.). Fixed widths — chosen to comfortably fit the longest expected
   option — stop that layout shift entirely. */
/* max-width:100% alongside the fixed width: still 190px/168px normally (no
   layout shift, per the comment above), but clamps down instead of
   overflowing when the containing row is narrower than that on small
   screens. */
#prfCampSelect { width: 190px; max-width: 100%; }
#prfRangeSelect { width: 168px; max-width: 100%; }
/* Native <option> list styling — Chromium renders the popup using the
   select's own background-color/color as a baseline, so without this the
   popup falls back to a white background regardless of theme while still
   inheriting dark-mode's light text color, making it unreadable. Explicit
   colors on both the trigger and its options fix this in both themes. */
.prf-select option { background-color: #fff; color: var(--charcoal, #18181A); }
.prf-select:hover { border-color: rgba(0,0,0,.22); }
body.dark-mode .prf-select {
  border-color: rgba(255,255,255,.12);
  background-color: #1c1c1e;
  color: var(--text, #e8e8e8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='rgba(255,255,255,.5)' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
}
body.dark-mode .prf-select option { background-color: #1c1c1e; color: var(--text, #e8e8e8); }
body.dark-mode .prf-select:hover { border-color: rgba(255,255,255,.22); }
.prf-custom-range { display: flex; align-items: center; gap: 8px; }
.prf-custom-range .crv-inp {
  width: auto;
  color: var(--charcoal, #18181A);
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
}
body.dark-mode .prf-custom-range .crv-inp {
  color: var(--text, #e8e8e8);
  border-color: rgba(255,255,255,.12);
}
.prf-custom-range-sep { font-size: 12px; color: var(--muted, rgba(0,0,0,.4)); }

/* AI Analysis card — Strengths / Weaknesses / Recommendations / Expected Impact */
.prf-ai-section { margin-top: 16px; }
.prf-ai-section-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, rgba(0,0,0,.45));
  margin-bottom: 6px;
}
.prf-ai-bullet { font-size: 12.5px; color: var(--charcoal, #18181A); padding: 2px 0; line-height: 1.5; }
body.dark-mode .prf-ai-bullet { color: var(--text, #e8e8e8); }
.prf-ai-rec {
  background: var(--bg, rgba(0,0,0,.02));
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.prf-ai-rec-title { font-size: 12.5px; font-weight: 600; color: var(--charcoal, #18181A); display: flex; align-items: center; gap: 8px; }
body.dark-mode .prf-ai-rec-title { color: var(--text, #e8e8e8); }
.prf-ai-rec-detail { font-size: 12px; color: var(--muted, rgba(0,0,0,.5)); margin-top: 3px; line-height: 1.5; }
.prf-date-pills {
  display: flex;
  gap: 3px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
/* Oriven 1.0 (V7 — visually-verified light-mode fix) — this whole
   Performance/Overview block was built dark-only (confirmed via
   screenshot: near-invisible title/KPIs/charts on the light theme). */
body.dark-mode .prf-title { color: #fff; }
body.dark-mode .prf-sub { color: rgba(255,255,255,.4); }
body.dark-mode .prf-date-pills { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.prf-pill {
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,.5);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .15s;
}
.prf-pill:hover { color: var(--charcoal, #18181A); }
.prf-pill.active { background: rgba(0,0,0,.06); color: var(--charcoal, #18181A); }
/* Oriven 1.0 (V6 light-mode fix) — this component was dark-only (no
   body.dark-mode gate anywhere), invisible against a light background. */
body.dark-mode .prf-pill { color: rgba(255,255,255,.45); }
body.dark-mode .prf-pill:hover { color: rgba(255,255,255,.75); }
body.dark-mode .prf-pill.active { background: rgba(255,255,255,.1); color: #fff; }

/* Platform switcher — one segmented control (icon + name + connection dot),
   not three separate colorful buttons. Platform identity comes from the
   real brand-color icon (reused from .clib-tab) plus a faint per-platform
   active tint; the control itself stays neutral/Oriven-toned. */
.prf-plat-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 16px;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 3px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.prf-plat-tabs::-webkit-scrollbar { display: none; }
.prf-ptab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(0,0,0,.5);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  letter-spacing: .1px;
}
.prf-ptab:hover { color: var(--charcoal, #18181A); background: rgba(0,0,0,.045); }
/* Unified Oriven-green active state (not per-platform brand tinting) — the
   platform's own identity is carried entirely by its icon; the switcher
   chrome itself stays one consistent language across Google/Meta/TikTok,
   matching the segmented Overview/Live/Drafts tabs' treatment. */
/* .clib-tab-on is Drafts' own active-state class (cmpFilter toggles this,
   not .active) — same visual treatment, different selector so its
   existing JS needs no change. */
.prf-ptab.active, .prf-ptab.clib-tab-on {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--charcoal, #18181A);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 22%, transparent);
}
.prf-ptab-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.prf-ptab-dot-on  { background: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 18%, transparent); }
.prf-ptab-dot-off { background: rgba(0,0,0,.18); }
/* Oriven 1.0 (V6 light-mode fix) — see .prf-pill above, same defect. */
body.dark-mode .prf-plat-tabs { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode .prf-ptab { color: rgba(255,255,255,.45); }
body.dark-mode .prf-ptab:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); }
body.dark-mode .prf-ptab.active, body.dark-mode .prf-ptab.clib-tab-on {
  color: #fff;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--green) 28%, transparent);
}
body.dark-mode .prf-ptab-dot-off { background: rgba(255,255,255,.18); }

/* Oriven 1.0 nav redesign — hub tab strips (Campaigns/Studio/Business).
   Deliberately its own class, not .prf-ptab: prfSwitchPlatform() does an
   unscoped document.querySelectorAll('.prf-ptab') that would otherwise
   clear these buttons' active state whenever the Performance page's
   platform tab changes. Same visual treatment, isolated selector. */
.orv-hub-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.12);
  background: transparent;
  color: rgba(0,0,0,.5);
  cursor: pointer;
  transition: background var(--orv-t, .16s), color var(--orv-t, .16s), border-color var(--orv-t, .16s), transform var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
  letter-spacing: .2px;
}
/* Global Design System — the hub-tabs strip (Campaigns) is a shared
   navigational element sitting above whichever sub-page is active, so it
   needs its own horizontal centering; matching --orv-content-maxw/pad-x
   here is what makes its first tab's left edge land exactly on the page
   title's left edge below it. */
.orv-hub-tabs { max-width: var(--orv-content-maxw); margin: 0 auto; padding: 24px var(--orv-content-pad-x) 0; }
/* Clear the fixed hamburger (#orvMobToggle — top:12px, 44px tall, so its
   bottom edge sits at 56px), which now shows up to the unified 1024px
   drawer breakpoint (was 768px). Confirmed by direct screenshot: without
   this, the hub-tab strip's "Overview" tab renders partly underneath the
   button. Bumped to 64px, matching the existing precedent at .cr2-wrap
   (Launch) which already reserved this exact clearance for the pre-existing
   mobile-bar system. !important where a competing rule is also !important
   (.camp-hub has two such legacy rules) — plain specificity/order isn't
   reliable to fight those from here. */
@media (max-width: 1024px) {
  .orv-page-wrap { padding-top: 64px !important; }
  .prf-wrap { padding-top: 64px !important; }
  .ap-op-outer { padding-top: 64px !important; }
  .orv-hub-tabs { padding-top: 64px !important; }
  .camp-hub { padding-top: 64px !important; }
  #page-ads-manager { padding-top: 64px !important; }
  /* body.dark-mode .camp-hub (styles.css, "RESPONSIVE V2" section, later in
     this file) sets padding:28px 24px 40px !important at this same
     breakpoint -- confirmed via direct computed-style check that it was
     winning and reintroducing the hamburger overlap in dark mode only.
     Equal specificity would just lose again to source order there, so
     anchor on the page id (.camp-hub only ever renders inside
     #page-campaigns) for an ID-level specificity that wins unconditionally,
     not just by being later in the file. */
  body.dark-mode #page-campaigns .camp-hub { padding-top: 64px !important; }
  /* The shared tablet rule ".camp-hub { padding: 32px 28px 60px !important; }"
     (styles.css, "RESPONSIVE: TABLET" section, earlier in this file — shared
     with unrelated .ap-home-outer/.bcp-scroll, so left untouched) drops
     .camp-hub's left/right padding to 28px at this breakpoint, while
     .prf-wrap/#page-ads-manager keep var(--orv-content-pad-x) (40px) since
     nothing overrides their left/right padding here. That silently broke
     Drafts' shared left edge at 1024px only (confirmed via getBoundingClientRect:
     modeHdr/platformTabs/cardGrid at left:28 vs title/tabRow at left:40).
     Restore parity so Drafts keeps the same left/right padding as the other
     two Campaigns pages at every breakpoint. */
  #page-campaigns .camp-hub { padding-left: var(--orv-content-pad-x) !important; padding-right: var(--orv-content-pad-x) !important; }
}
.orv-tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--orv-tabs-gap); }
/* Tablet/mobile: scroll instead of wrap — Business's 7-tab outer strip
   previously wrapped to a second row below 900px, which the spec rules out
   ("mobile: never wrap into two rows"). Same overflow-x:auto pattern
   already proven at .bb-tab-bar (Brand tab's own nested tab strip). Applied
   at 900px (not just 768px) so it also covers "tablet: scrollable if
   needed" with the same rule. Desktop (>900px) keeps wrapping (harmless —
   3-7 tabs never wrap there anyway) so this is additive, not a behavior
   change above that width. */
@media (max-width: 900px) {
  .orv-tab-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .orv-tab-row::-webkit-scrollbar { display: none; }
  .orv-tab-row > * { flex-shrink: 0; }
}
.orv-hub-tab:hover { color: var(--charcoal, #18181A); border-color: color-mix(in srgb, var(--green) 45%, rgba(0,0,0,.12)); background: color-mix(in srgb, var(--green) 6%, transparent); }
.orv-hub-tab.active { background: rgba(0,0,0,.06); color: var(--charcoal, #18181A); border-color: rgba(0,0,0,.2); }
/* Oriven 1.0 (V6 light-mode fix) — same defect as .prf-ptab (this class
   was copied from it), fixed the same way. */
body.dark-mode .orv-hub-tab { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }
body.dark-mode .orv-hub-tab:hover { color: rgba(255,255,255,.75); border-color: color-mix(in srgb, var(--green) 45%, rgba(255,255,255,.22)); background: color-mix(in srgb, var(--green) 8%, transparent); }
body.dark-mode .orv-hub-tab.active { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

/* ── Campaigns segmented nav (Overview / Live Campaigns / Drafts) ─────────
   Scoped to #orvHubTabsCampaigns only — .orv-tab-row/.orv-hub-tab are
   shared with Business's tab bar, so the generic pill rules above stay
   untouched; this just wins on specificity for the Campaigns instance. A
   single "track" container replaces the individual bordered pills with one
   Oriven-toned segmented control — premium, not "generic SaaS pill". No
   dimension changes on activate (only background/color/shadow), so there
   is no layout shift, and the same DOM/onclick wiring is left alone. */
/* Page Header Alignment Fix — was a deliberate compact 28px top padding
   (see the "vertical-fit budget" note below, kept for the historical
   reasoning) but that left Campaigns' title measurably higher than
   Intelligence/Business/Autopilot's shared 68px (confirmed via
   getBoundingClientRect: Campaigns title y=28 vs the other three at
   y=68). Matched to the same canonical padding-top so all four page
   titles sit on one shared header gridline. */
#orvHubTabsCampaigns { padding-top: 68px; max-width: var(--camp-content-maxw); }
/* Shared "Campaigns" shell title — sits once above the tab strip, common to
   all three modes (Overview/Live Campaigns/Drafts), instead of each page
   repeating its own large heading. Individual pages keep only a short
   purpose line, not a duplicate H1 — see .prf-hdr / .camp-hub-hdr etc. */
/* Campaigns Final Polish (spec 1) — centered relative to the main content
   column (#orvHubTabsCampaigns's own max-width), not the full browser
   width including the sidebar. Same typography, no new hero. */
.camp-shell-hdr { margin-bottom: 8px; text-align: center; }
.camp-shell-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  color: var(--charcoal, #18181A); margin: 0 0 3px;
}
.camp-shell-sub { font-size: 13px; color: var(--muted, rgba(0,0,0,.45)); margin: 0; }
body.dark-mode .camp-shell-title { color: #fff; }
body.dark-mode .camp-shell-sub { color: rgba(255,255,255,.42); }

#orvHubTabsCampaigns .orv-tab-row {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 10px;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 3px;
  flex-wrap: nowrap;
}
#orvHubTabsCampaigns .orv-hub-tab {
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 16px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
#orvHubTabsCampaigns .orv-hub-tab:hover {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--charcoal, #18181A);
  border-color: transparent;
}
#orvHubTabsCampaigns .orv-hub-tab.active {
  background: var(--green);
  color: #0B0B0C;
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.18), 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent), 0 0 12px color-mix(in srgb, var(--green) 30%, transparent);
}
/* Segmented control shouldn't have neighbours nudge apart like the loose
   pill layout does elsewhere — overrides the shared .orv-tab-row > button
   hover-nudge rule for this instance only. */
#orvHubTabsCampaigns .orv-tab-row > button,
#orvHubTabsCampaigns .orv-tab-row > button:hover,
#orvHubTabsCampaigns .orv-tab-row > button:hover + button,
#orvHubTabsCampaigns .orv-tab-row > button:has(+ button:hover) {
  transform: none;
}
body.dark-mode #orvHubTabsCampaigns .orv-tab-row { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode #orvHubTabsCampaigns .orv-hub-tab { color: rgba(255,255,255,.45); }
body.dark-mode #orvHubTabsCampaigns .orv-hub-tab:hover { background: color-mix(in srgb, var(--green) 10%, transparent); color: #fff; }
body.dark-mode #orvHubTabsCampaigns .orv-hub-tab.active { background: var(--green); color: #0B0B0C; }

/* Premium Motion System — tabs respond to each other, not in isolation:
   hovering one lifts it and gently nudges its immediate neighbours away,
   communicating that the row is one connected group. Adjacent-sibling +
   :has() only reach immediate neighbours (matches the brief's own
   example: hovering the middle tab moves the one on each side, not the
   whole row). Works identically for Campaigns' hub-tabs strip and
   Business's tab bar since both share .orv-tab-row. */
.orv-tab-row > button { transform: translateY(0) translateX(0); }
.orv-tab-row > button:hover { transform: translateY(-1.5px); }
.orv-tab-row > button:hover + button { transform: translateX(3px); }
.orv-tab-row > button:has(+ button:hover) { transform: translateX(-3px); }

.prf-connect-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 14%, transparent);
  border-radius: 14px;
  padding: 11px 20px;
  /* Final Visual Correction pass — was stacking on top of .prf-perf-col's
     own flex gap (double-spacing this section boundary); the gap alone
     is enough. */
  margin-bottom: 0;
}
.prf-cb-ico {
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.prf-cb-copy { flex: 1; min-width: 0; }
/* Light-mode fix (Control-Room pass): was hardcoded white/near-white with
   no dark-mode gate, illegible on this banner's light tinted background
   in light mode — matches .perf-connect-title/.perf-connect-sub's already-
   correct theme-token pattern one component over. */
.prf-cb-title { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.prf-cb-sub   { font-size: 13px; color: var(--muted); }
/* Mobile: .prf-connect-banner has no wrap, so the icon + "Connect Accounts"
   button (neither flex-shrink:0 nor sized) squeeze .prf-cb-copy (flex:1,
   min-width:0) down to almost nothing, forcing its text to wrap a couple
   characters per line. Confirmed by direct screenshot at 320px. Stack
   instead, matching the same full-width-CTA pattern already used on Launch. */
@media (max-width: 480px) {
  .prf-connect-banner { flex-direction: column; align-items: flex-start; }
  .prf-connect-banner .btn { width: 100%; text-align: center; }
}

/* KPI ring modules — replaces the old rectangular .prf-kpi cards. Each
   module is its own circular "Oriven data visualization", not a fabricated
   progress spinner: the ring is a pure visual container that always draws
   in fully closed (see .prf-kpi-ring-fill) — it never encodes a percentage,
   fabricated or otherwise. Comparison data only colors the separate
   "vs last period" text below it (_prfLoadKpiTrend). */
.prf-kpis-ring {
  /* Campaigns Simplification & Consolidation sprint (spec 4) — replaced the
     stacked Delivery/Traffic/Conversion ring categories with one flat,
     scannable row of label+value pairs (.prf-metric, built by
     _prfRenderKpiTiles in app.html). Metrics are "information, not UI
     components": no rings, no per-category headers, no borders per tile —
     just a quiet, evenly-spaced row. The old .prf-kpi-cat/.prf-kpi-ring-mod
     rules below are left in place (dead, unreferenced by any current
     markup) rather than deleted, matching this codebase's convention for
     retired presentation code. */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 14px;
  padding: 4px 2px;
}
.prf-metric { display: flex; flex-direction: column; gap: 4px; }
.prf-metric-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, rgba(0,0,0,.45));
}
.prf-metric-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal, #18181A);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.4px;
  line-height: 1.1;
}
body.dark-mode .prf-metric-lbl { color: rgba(255,255,255,.4); }
body.dark-mode .prf-metric-val { color: #fff; }
@media (max-width: 640px) {
  .prf-kpis-ring { gap: 20px 24px; }
  .prf-metric-val { font-size: 19px; }
}
.prf-kpi-cat { display: flex; flex-direction: column; gap: 9px; }
/* Subtle divider between categories, not a heavy card boundary -- the
   category header text is the primary cue, this is just a quiet separator
   consistent with .pcm-category's own hairline convention. */
.prf-kpi-cat + .prf-kpi-cat { border-top: 1px solid rgba(0,0,0,.06); padding-top: 14px; }
.prf-kpi-cat-hd {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(0,0,0,.35); padding-left: 2px;
}
body.dark-mode .prf-kpi-cat-hd { color: rgba(255,255,255,.35); }
body.dark-mode .prf-kpi-cat + .prf-kpi-cat { border-top-color: rgba(255,255,255,.07); }
.prf-kpi-cat-rows { display: flex; flex-direction: column; gap: 16px; }
.prf-kpi-row {
  display: flex;
  flex-wrap: wrap; /* safety net only -- _prfLayoutKpiRows sizes cols to fit */
  justify-content: center;
  gap: 16px;
}
.prf-kpi-ring-mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Fixed basis (flex-grow:0), not flex:1 -- every tile is the same size
     regardless of how many share its row, so a full row of 14 and a
     centered pair of 2 both look like the same considered design rather
     than tiles stretching/shrinking to fill whatever space is left. Width
     comfortably fits a two-line label like "Search Impression Share"
     without excessive wrapping. Narrower breakpoints below override this
     basis (not the paradigm) to fit more/fewer per row. */
  flex: 0 0 128px;
}
.prf-kpi-ring-wrap {
  position: relative; width: 64px; height: 64px; margin-bottom: 10px;
  transition: transform .18s ease, filter .18s ease;
}
/* Hover: slight scale + subtle green glow, transform/filter only — never
   changes the wrap's own box (width/height untouched), so nothing else in
   the KPI strip reflows. */
.prf-kpi-ring-mod:hover .prf-kpi-ring-wrap {
  transform: scale(1.06);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--green) 45%, transparent));
}
@media (prefers-reduced-motion: reduce) {
  .prf-kpi-ring-mod:hover .prf-kpi-ring-wrap { transform: none; }
}
.prf-kpi-ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.prf-kpi-ring-track { fill: none; stroke: rgba(0,0,0,.07); stroke-width: 4; }
/* Always animates to a fully closed 360° ring (dashoffset 0) — no
   stroke-linecap:round, since a round cap at the coincident start/end point
   of a fully-closed dash would show as a tiny seam/notch instead of a
   clean closed circle. Purely a visual container now: always the Oriven
   green accent, never re-colored by comparison data (see _prfLoadKpiTrend,
   which only colors the separate "vs last period" text below it). */
.prf-kpi-ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-dasharray: 169.6;
  stroke-dashoffset: 169.6;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1);
}
.prf-kpi-ring-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.prf-kpi-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted, rgba(0,0,0,.45));
  margin-bottom: 4px;
}
.prf-kpi-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal, #18181A);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
  line-height: 1.1;
  word-break: break-word;
}
.prf-kpi-chg { font-size: 11.5px; font-weight: 500; }
.prf-chg-up   { color: #16a34a; }
.prf-chg-down { color: #dc2626; }
.prf-chg-neu  { color: var(--muted, rgba(0,0,0,.35)); }
body.dark-mode .prf-kpis-ring { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.06); }
body.dark-mode .prf-kpi-ring-track { stroke: rgba(255,255,255,.09); }
body.dark-mode .prf-kpi-lbl { color: rgba(255,255,255,.38); }
body.dark-mode .prf-kpi-val { color: #fff; }
body.dark-mode .prf-chg-up   { color: #4ade80; }
body.dark-mode .prf-chg-down { color: #f87171; }
body.dark-mode .prf-chg-neu  { color: rgba(255,255,255,.3); }

@media (prefers-reduced-motion: reduce) {
  .prf-kpi-ring-fill { transition: none !important; transition-delay: 0s !important; }
}

/* Extra compaction at <=1024px: the shared .orv-hub-tabs mobile-hamburger
   clearance rule (padding-top:64px !important, "V2 NAV ADJUSTMENTS" era —
   left untouched here since removing it would reopen the hamburger/tab
   overlap it exists to fix) adds real height back at exactly this
   breakpoint, so Overview needs to reclaim more than its baseline desktop
   trim to still fit a 1024x768 viewport with no page scroll. */
@media (max-width: 1024px) {
  /* !important: several of these properties (padding/margin/height) are
     also set unconditionally later in this file for the same selectors —
     matching this file's own established convention (see the
     .orv-hub-tabs hamburger-clearance rule above) for a breakpoint
     override that must win regardless of source-order position. */
  .prf-wrap { padding-bottom: 16px !important; }
  .prf-hdr { margin-bottom: 14px !important; }
  .prf-kpis-ring { padding: 10px 20px !important; margin-bottom: 6px !important; }
  .prf-charts-grid { margin-bottom: 8px !important; gap: 8px !important; }
  .prf-chart-card { padding: 8px 14px !important; }
  .prf-chart-hd { margin-bottom: 6px !important; }
  .prf-chart-body { height: 76px !important; }
  /* The one primary performance graph stays a real, readable "large graph"
     on mobile too (spec 22: recompose, don't just shrink) -- taller than
     the old multi-card height above, just less than desktop's 280px. */
  .prf-chart-card-primary.prf-chart-card { padding: 12px 14px !important; }
  .prf-chart-card-primary .prf-chart-body { height: 200px !important; }
  .prf-perf-metric-val { font-size: 30px !important; }
  .prf-perf-hero { gap: 10px !important; margin-bottom: 12px !important; }
  /* Provider tab row's pre-existing horizontal scroll on narrow viewports
     should read as an intentional "scroll for more" control, not
     accidental edge-clipping. Same fade-mask fix already applied to
     Launch's mobile platform pills for the identical reason. */
  #prfPlatTabs .prf-plat-tabs {
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  /* The hierarchy select's fixed 128px desktop width truncates its own
     longest option ("Campaigns") on mobile at the smaller control
     font-size's metrics -- a real usability issue (spec 16: "hierarchy
     switcher must remain usable"), not just cosmetic. */
  #prfHierarchySelect { width: 116px !important; padding: 6px 26px 6px 10px !important; font-size: 11.5px !important; }
  .prf-scope-row { gap: 8px !important; }
  .ads-ai-card { padding: 10px 22px !important; margin-bottom: 6px !important; }
  /* Shared Campaigns shell (title + segmented tabs + mode line) also needs
     to shed extra height here, same reason as above — added after the
     Command Center redesign introduced these elements.
     IMPORTANT: do NOT touch #orvHubTabsCampaigns's own padding-top here —
     .orv-hub-tabs's mobile-hamburger-clearance rule (padding-top:64px
     !important) needs to win at this breakpoint, and since #id always
     beats .class at equal !important weight regardless of source order, an
     #orvHubTabsCampaigns padding-top rule here would silently override it
     and put the hamburger back on top of the tab strip — confirmed by
     direct render this exact mistake reintroduced the clipped-title bug. */
  .camp-shell-hdr { margin-bottom: 4px !important; }
  #orvHubTabsCampaigns .orv-tab-row { margin-bottom: 6px !important; }
  .camp-mode-hdr { margin-bottom: 4px !important; }
}

@media (max-width: 900px) {
  .prf-kpi-ring-mod { min-width: 30%; flex: 0 0 30%; }
}
@media (max-width: 600px) {
  .prf-kpi-ring-mod { min-width: 42%; flex: 0 0 42%; }
}
@media (max-width: 380px) {
  .prf-kpi-ring-mod { min-width: 100%; flex: 0 0 100%; }
}

/* Charts */
/* Final Performance Workspace Redesign — ONE selected metric, ONE large
   graph (spec 4/7/31). "PERFORMANCE" eyebrow + metric name + real value
   above; every real metric reachable via .prf-metric-selector below the
   graph, one visually PRIMARY (the selected one, filled lime), the rest
   quiet NAVIGATION (spec 5: "one metric is PRIMARY, the rest are
   NAVIGATION") — no rings, no per-metric cards, no glow. */
/* Performance Workspace Refinement — the eyebrow markup was removed (spec
   4); this rule is unused now (left in place, matching this file's own
   convention for retired presentation code). */
.prf-perf-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted, rgba(0,0,0,.4)); margin-bottom: 10px;
}
body.dark-mode .prf-perf-eyebrow { color: rgba(255,255,255,.4); }

/* Campaigns Composition pass — final alignment pass. Each column is its
   own independent vertical flex stack; the LEFT column's context row
   (#prfScopeRow: Campaigns/object/date) and the RIGHT column's context
   row (#prfPlatTabs: provider tabs) are each that column's FIRST child,
   so they render in the same visual row by ordinary flex behavior — one
   coherent grid, not two independently positioned pieces. Their heights
   are made to match exactly (both a single-line control row, both given
   the same effective height + bottom space below) so the SECOND row —
   the primary graph (left) and Campaign Replay (right) — share the exact
   same top edge too (measured via Playwright: 0px delta at 1440x900; see
   #prfPlatTabs's own rule further down for the matching numbers).
   #prfHierarchySelect keeps a comfortable fixed width so the controls row
   doesn't visibly resize as its longest option changes. */
#prfHierarchySelect { width: 128px; max-width: 100%; }
/* Final Visual Correction pass — this row's own margin-bottom was
   stacking ON TOP OF .prf-perf-col's flex gap (below) instead of
   replacing it, double-spacing every section boundary on this page and
   contributing to a small unwanted vertical scroll at 1366x768/1280x800.
   The column gap alone already provides consistent spacing; dropped to 0
   here (was 18px). */
.prf-scope-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; height: 32px; margin-bottom: 0; }

/* ══ PERFORMANCE WORKSPACE — Control-Room pass, single full-width column ══
   Previously a two-column composition (chart ~65% / provider tabs +
   Campaign Replay ~35%) that reserved a large right-hand rail for Replay
   even when it had nothing to show ("No recorded activity..."). The
   primary chart is now the visual anchor at full content width; provider
   tabs moved into their own row directly under the hierarchy/object/date
   row (#prfPlatTabs is the same element, same prfSwitchPlatform wiring,
   just repositioned); Campaign Replay moved to a compact section below
   the Metric Explorer instead of competing for horizontal space — see
   #prfReplaySection / .prf-recent-activity-compact. */
.prf-workspace-row { width: 100%; margin-top: 4px; }
/* Final Visual Correction pass — 18px -> 14px (still a real, visible
   section break, just trimmed vertical rhythm; part of the fix for the
   small unwanted scroll at 1366x768/1280x800 alongside the other
   redundant-margin removals on this page). */
.prf-perf-col { display: flex; flex-direction: column; gap: 14px; }
#prfPlatTabs { margin-bottom: 0; display: flex; align-items: center; }
#prfPlatTabs .prf-plat-tabs { margin-bottom: 0; }

.prf-chart-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* Campaigns Final Cleanup pass: the header's metric <select> is removed —
   the Metric Explorer below the graph is now the ONE visible metric-
   selection mechanism (spec: "the graph header should simply be title +
   fullscreen"). .prf-chart-hd-controls now wraps only the expand button,
   kept as its own element for the existing flex-shrink:0/gap behavior. */
.prf-chart-hd-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.prf-charts-grid { margin-bottom: 0; }
.prf-chart-card-primary { padding: 18px 22px; }
/* Final Campaigns polish pass — moving the provider tabs into the right
   column (above Replay) already freed enough vertical space that 1440x900
   fits with no page scroll on its own; this -30px is a deliberate, modest
   density correction on top of that (not the sole fix for the scroll),
   still comfortably the dominant visual element next to the Metric
   Explorer's ~60px tile rows and Replay's ~50-60px event rows. */
.prf-chart-card-primary .prf-chart-body { height: 230px; }

/* ══ METRIC EXPLORER — a compact overview of every real supported metric
   (spec 4-8: "not another giant pill selector... not 19 tiny graphs...
   ALL genuinely supported metrics... odd counts are fine... responsive
   grid... clickable tile, subtle lime active state, never fluorescent").
   Plain label + real value per tile — no chart, no fake trend, no
   percentage arrow. A real CSS grid, not a flex-wrap of arbitrary widths,
   so a shorter final row reads as intentional rather than a layout bug. */
.prf-metric-explorer { display: flex; flex-direction: column; gap: 10px; }
.prf-explorer-hd { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted, rgba(0,0,0,.4)); }
body.dark-mode .prf-explorer-hd { color: rgba(255,255,255,.4); }
/* Final Visual Correction pass — 4 -> 6 columns at wide desktop (still
   plenty of room per tile at the --camp-content-maxw/1240px content
   width) packs the same real metric count into fewer rows, a genuine
   vertical-rhythm trim rather than a content change; helps close the
   small unwanted scroll at 1366x768/1280x800. Existing 1150px/640px
   steps below still apply as the grid narrows. */
.prf-explorer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.prf-explorer-tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(0,0,0,.025); border: 1px solid rgba(0,0,0,.07);
  font-family: inherit; cursor: pointer; transition: background .12s ease, border-color .12s ease;
}
.prf-explorer-tile:hover { background: rgba(0,0,0,.045); }
.prf-explorer-label { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted, rgba(0,0,0,.5)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prf-explorer-val { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--charcoal, #18181A); font-variant-numeric: tabular-nums; }
/* Restrained semantic color (Control-Room pass) — a small dot per real
   ORIVEN_METRICS category, never a colored tile background: delivery
   (spend/impressions/reach/cpm) reads as financial/budget-adjacent,
   traffic (clicks/ctr/cpc) as informational, conversion (conversions/
   cpa/roas/etc.) as positive performance. The number stays the hero. */
.prf-explorer-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: var(--muted); opacity: .5; }
.prf-explorer-tile[data-category="delivery"] .prf-explorer-dot { background: #F5A623; opacity: 1; }
.prf-explorer-tile[data-category="traffic"] .prf-explorer-dot { background: #3B82F6; opacity: 1; }
.prf-explorer-tile[data-category="conversion"] .prf-explorer-dot { background: var(--green); opacity: 1; }
/* Active tile — the metric currently driving the graph. Subtle lime
   accent (border + label/value color), never a bright fill: the graph
   stays the dominant visual object, this is secondary information
   density (spec 8/20: "do not make the whole grid visually fluorescent"). */
.prf-explorer-tile.prf-explorer-tile-active { background: color-mix(in srgb, var(--green, #B6FF3B) 10%, rgba(0,0,0,.025)); border-color: color-mix(in srgb, var(--green, #B6FF3B) 55%, transparent); }
.prf-explorer-tile.prf-explorer-tile-active .prf-explorer-label,
.prf-explorer-tile.prf-explorer-tile-active .prf-explorer-val { color: var(--green-text); }
body.dark-mode .prf-explorer-tile { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
body.dark-mode .prf-explorer-tile:hover { background: rgba(255,255,255,.06); }
body.dark-mode .prf-explorer-val { color: #fff; }
body.dark-mode .prf-explorer-tile.prf-explorer-tile-active { background: color-mix(in srgb, var(--green, #B6FF3B) 14%, rgba(255,255,255,.035)); }
body.dark-mode .prf-explorer-tile.prf-explorer-tile-active .prf-explorer-label,
body.dark-mode .prf-explorer-tile.prf-explorer-tile-active .prf-explorer-val { color: var(--green); }
@media (prefers-reduced-motion: no-preference) { .prf-explorer-tile { transition-duration: .12s; } }
@media (max-width: 1150px) and (min-width: 641px) { .prf-explorer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .prf-explorer-grid { grid-template-columns: repeat(2, 1fr); } }
.prf-chart-card {
  background: rgba(0,0,0,.025);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  padding: 10px 16px;
  overflow: hidden;
}
.prf-chart-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.prf-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal, rgba(0,0,0,.7));
}
.prf-chart-tabs { display: flex; gap: 4px; }
.prf-ct {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.1);
  color: rgba(0,0,0,.4);
  cursor: pointer;
  transition: all .12s;
}
.prf-ct:hover { color: var(--charcoal, #18181A); }
.prf-ct.active { background: rgba(0,0,0,.07); color: var(--charcoal, #18181A); border-color: transparent; }
body.dark-mode .prf-chart-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
body.dark-mode .prf-chart-title { color: rgba(255,255,255,.6); }
body.dark-mode .prf-ct { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.35); }
body.dark-mode .prf-ct:hover { color: rgba(255,255,255,.7); }
body.dark-mode .prf-ct.active { background: rgba(255,255,255,.1); color: #fff; border-color: transparent; }

/* Expand/fullscreen control (top-right of every trend chart, replaces the
   old per-chart metric dropdown -- Customize Metrics is now the only place
   that controls which metrics show; each card's header is just its real
   title plus this one action). */
.prf-chart-expand-btn {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: transparent; border: none; color: rgba(0,0,0,.32); cursor: pointer;
  transition: background .12s, color .12s;
}
.prf-chart-expand-btn:hover { background: rgba(0,0,0,.06); color: var(--charcoal, #18181A); }
body.dark-mode .prf-chart-expand-btn { color: rgba(255,255,255,.32); }
body.dark-mode .prf-chart-expand-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Campaign Replay toggle — small pill in the chart header, next to the
   expand button. Only revealed once real replay content exists
   (_prfShowReplayToggle), so an account with nothing to show never sees
   a control that opens an empty popover. */
.prf-chart-replay-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 9px 4px 7px; border-radius: 100px; flex-shrink: 0;
  background: transparent; border: 1px solid rgba(0,0,0,.1); color: rgba(0,0,0,.5);
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.prf-chart-replay-btn:hover, .prf-chart-replay-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--charcoal, #18181A); }
body.dark-mode .prf-chart-replay-btn { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.5); }
body.dark-mode .prf-chart-replay-btn:hover, body.dark-mode .prf-chart-replay-btn[aria-expanded="true"] { color: #fff; }

/* Campaign Replay popover — anchored to #prfChartWrap's upper-right
   corner (see that wrapper's own comment: a stable sibling of the
   re-rendered chart grid, so this survives metric/platform/range
   switches). Hidden by default; only visible while .prf-replay-open is
   toggled on, so it's never permanently covering the chart. */
.prf-chart-wrap { position: relative; }
.prf-replay-popover {
  display: none;
  position: absolute; top: 44px; right: 0; z-index: 5;
  width: 300px; max-width: calc(100% - 24px); max-height: 340px; overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  border: 1px solid var(--border);
}
body.dark-mode .prf-replay-popover { box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.prf-replay-popover.prf-replay-open { display: block; }
@media (max-width: 640px) {
  .prf-replay-popover { position: static; width: 100%; max-width: none; margin-top: 10px; box-shadow: none; }
}

.prf-chart-body { position: relative; height: 112px; display: flex; gap: 6px; }
/* Y-axis gutter -- 5 real, data-derived tick labels (see _prfRenderAxis,
   app.html), never shown alongside an empty/locked chart (no fabricated
   scale for data that wasn't fetched). */
.prf-chart-axis {
  flex-shrink: 0; width: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1px 0;
  font-size: 9.5px; line-height: 1; color: rgba(0,0,0,.3);
  text-align: right; font-variant-numeric: tabular-nums;
}
body.dark-mode .prf-chart-axis { color: rgba(255,255,255,.3); }
.prf-chart-matrix { position: relative; flex: 1; min-width: 0; }

/* ── Customize Metrics — trigger button (top-right of the controls row),
   trend-card metric switcher, and the info-tooltip icon used both on KPI
   tiles and inside the modal itself. ── */
.prf-customize-btn {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 7px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--charcoal, #18181A);
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.prf-customize-btn:hover { border-color: rgba(0,0,0,.22); background: rgba(0,0,0,.02); }
body.dark-mode .prf-customize-btn { color: var(--text, #e8e8e8); background: #1c1c1e; border-color: rgba(255,255,255,.12); }
body.dark-mode .prf-customize-btn:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }

/* Every KPI metric has one of these now (metrics.js's tooltip field is
   never null) -- the hover/focus treatment below makes it read clearly as
   interactive without becoming a second, competing control on the tile:
   small fixed circle, subtle background+border on hover/focus (same
   "quiet chip" language as .prf-chart-expand-btn/.pcm-cat-chevron
   elsewhere on this page), never a bigger hit target than the glyph
   itself. */
.prf-metric-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 10.5px;
  color: rgba(0,0,0,.32);
  cursor: help;
  margin-left: 3px;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.prf-metric-tip:hover, .prf-metric-tip:focus-visible {
  color: var(--gm, #1A4229);
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.1);
  outline: none;
}
body.dark-mode .prf-metric-tip { color: rgba(255,255,255,.32); }
body.dark-mode .prf-metric-tip:hover, body.dark-mode .prf-metric-tip:focus-visible {
  color: var(--green, #B7FF2A);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.16);
}

/* ── Customize Metrics modal ── */
.pcm-modal { width: 460px; max-height: 82vh; }
.pcm-close-btn {
  position: absolute; top: 20px; right: 20px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); border: none; color: var(--muted, rgba(0,0,0,.5));
  cursor: pointer; transition: background .15s;
}
.pcm-close-btn:hover { background: rgba(0,0,0,.08); }
body.dark-mode .pcm-close-btn { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
body.dark-mode .pcm-close-btn:hover { background: rgba(255,255,255,.1); }
.pcm-body { display: flex; flex-direction: column; gap: 4px; }
.pcm-category { border-bottom: 1px solid rgba(0,0,0,.06); padding: 12px 0; }
.pcm-category:last-child { border-bottom: none; padding-bottom: 0; }
.pcm-category:first-child { padding-top: 0; }
.pcm-cat-hd { display: flex; align-items: center; gap: 10px; }
.pcm-cat-hd input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green, #B7FF2A); cursor: pointer; flex-shrink: 0; }
.pcm-cat-title { font-size: 14px; font-weight: 700; color: var(--charcoal, #18181A); flex: 1; cursor: pointer; user-select: none; }
.pcm-cat-count { font-size: 11px; font-weight: 600; color: var(--muted, rgba(0,0,0,.4)); font-variant-numeric: tabular-nums; }
.pcm-cat-chevron {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: transparent; border: none; color: var(--muted, rgba(0,0,0,.4));
  cursor: pointer; padding: 0;
}
.pcm-cat-chevron:hover { background: rgba(0,0,0,.05); color: var(--charcoal, #18181A); }
.pcm-cat-chevron svg { transition: transform .16s ease; }
.pcm-category.pcm-expanded .pcm-cat-chevron svg { transform: rotate(180deg); }
/* Collapsed by default -- clicking the title or chevron reveals the
   individual metric checklist (Section 3 of the spec: "Clicking a category
   should expand it and show its individual metrics"). The category-level
   checkbox itself stays always visible/usable without expanding. */
.pcm-category .pcm-metric-list { display: none; }
.pcm-category.pcm-expanded .pcm-metric-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0 26px; }
body.dark-mode .pcm-cat-chevron:hover { background: rgba(255,255,255,.08); color: #fff; }
.pcm-metric-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; user-select: none; }
.pcm-metric-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--green, #B7FF2A); cursor: pointer; flex-shrink: 0; }
.pcm-metric-row span:not(.prf-metric-tip) { font-size: 13px; color: var(--charcoal, rgba(0,0,0,.75)); }
body.dark-mode .pcm-category { border-bottom-color: rgba(255,255,255,.08); }
body.dark-mode .pcm-cat-title { color: #fff; }
body.dark-mode .pcm-cat-count { color: rgba(255,255,255,.4); }
body.dark-mode .pcm-metric-row span:not(.prf-metric-tip) { color: rgba(255,255,255,.8); }
@media (max-width: 560px) {
  .pcm-modal { width: calc(100vw - 32px); padding: 22px; }
  .pcm-metric-list { margin-left: 22px; }
}
/* Matrix/grid background — CSS gradients only, no generated image. Two
   repeating-linear-gradients (horizontal + vertical hairlines) layered at
   very low opacity so it never competes with the green line on top. */
.prf-chart-matrix {
  background-image:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.05) 0, rgba(0,0,0,.05) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0, rgba(0,0,0,.05) 1px, transparent 1px, transparent 40px);
  border-radius: 8px;
}
body.dark-mode .prf-chart-matrix {
  background-image:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.045) 0, rgba(255,255,255,.045) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0, rgba(255,255,255,.045) 1px, transparent 1px, transparent 40px);
}

/* SVG line chart -- horizontal time navigation (Trend Charts polish pass):
   .prf-bars is the scroll container; .prf-bars-inner (app.html,
   _prfRenderLineChart) gets an explicit pixel width only when the point
   count needs more room than the card provides, so a native scrollbar
   only ever appears when the data genuinely doesn't fit -- a short range
   that already fits renders at exactly 100% width with nothing to scroll.
   The Y-axis (.prf-chart-axis) is a sibling of .prf-chart-matrix, outside
   this scroll container entirely, so it never moves with the data. */
.prf-bars { position: relative; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; }
.prf-bars-inner { position: relative; height: 100%; min-width: 100%; }
.prf-bars-scrollable { cursor: grab; }
.prf-bars::-webkit-scrollbar { height: 5px; }
.prf-bars::-webkit-scrollbar-track { background: transparent; }
.prf-bars::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.prf-bars::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }
body.dark-mode .prf-bars::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }
body.dark-mode .prf-bars::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }
.prf-linechart { width: 100%; height: 100%; display: block; overflow: visible; }
.prf-lc-path {
  fill: none;
  stroke: var(--green);
  color: var(--green); /* the .prf-lc-fill area path shares this class and reads it back via fill="currentColor" */
  stroke-width: 2;
  /* Keeps the line's visual weight consistent between the small card and
     the much larger expanded/fullscreen chart (same 0-100 viewBox scaled
     to very different pixel sizes) -- without this, stroke-width scales
     with the viewBox and the line looks disproportionately bold once
     expanded. */
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--green) 55%, transparent));
}
.prf-lc-path-conv { stroke: rgba(96,165,250,.9);  color: rgba(96,165,250,.9);  filter: drop-shadow(0 0 4px rgba(96,165,250,.5)); }
.prf-lc-path-roas { stroke: rgba(167,139,250,.9); color: rgba(167,139,250,.9); filter: drop-shadow(0 0 4px rgba(167,139,250,.5)); }
.prf-lc-path-ctr  { stroke: rgba(251,191,36,.9);  color: rgba(251,191,36,.9);  filter: drop-shadow(0 0 4px rgba(251,191,36,.5)); }
/* Fill path is a sibling <path> with the SAME color-variant class as the
   line (e.g. "prf-lc-fill prf-lc-path-conv", see _prfRenderLineChart) so
   it inherits the identical color via fill="currentColor" — that's the
   only thing it's meant to inherit. ROOT CAUSE of the inconsistent-looking
   line segments: .prf-lc-path/-conv/-roas/-ctr also set `stroke` and
   `filter: drop-shadow(...)`, meant only for the actual line. In CSS, a
   class-selector `stroke` declaration wins over the `stroke="none"`
   presentation attribute in the markup, so the fill's own zigzag/baseline
   outline was silently getting a real, glowing stroke -- rendered at this
   rule's opacity:.14, i.e. faint/washed-out relative to the real line
   drawn on top of it. That's what read as "a second thick/dark line
   underneath" and segments looking inconsistently faint: it was the
   fill's accidental outline, not the line itself, misbehaving. `!important`
   guarantees this wins regardless of which color-variant class also
   happens to be present or its position in the stylesheet. */
.prf-lc-fill { opacity: .14; stroke: none !important; filter: none !important; }
/* Plain HTML dots (not SVG <circle>s) — see _prfRenderLineChart's comment;
   the chart SVG is non-uniformly scaled so real circles have to live
   outside its coordinate space to stay round. */
.prf-lc-dot {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid var(--surface, #fff);
  cursor: pointer;
  transition: transform .12s ease;
  z-index: 2;
}
.prf-lc-dot-conv { background: rgba(96,165,250,1); }
.prf-lc-dot-roas { background: rgba(167,139,250,1); }
.prf-lc-dot-ctr  { background: rgba(251,191,36,1); }
.prf-lc-dot:hover { transform: scale(1.5); }
body.dark-mode .prf-lc-dot { border-color: #0B0B0C; }
@media (prefers-reduced-motion: reduce) {
  .prf-lc-path { transition: none !important; }
}

/* Hover tooltip — date + real value, populated from the same series data
   the line is drawn from (no second data layer). */
.prf-chart-tip {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #0B0B0C;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  font-size: 11px;
  line-height: 1.35;
  color: #fff;
  pointer-events: none;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  z-index: 3;
}
.prf-chart-tip-date { color: rgba(255,255,255,.45); font-weight: 500; }
.prf-chart-tip-val  { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Empty states — two distinct, honest states (not one "connect to unlock"
   catch-all): not connected at all, vs connected but not enough campaign
   history yet to plot a meaningful line. */
.prf-chart-lock {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(3px);
}
.prf-chart-lock.prf-lock-show { display: flex; }
/* AI Analysis card's own empty state (TikTok not-connected / no-backend-
   yet) -- same visual language as .prf-chart-lock (icon/title/sub/button
   reused directly below), but normal document flow instead of an absolute
   overlay, since .ads-ai-card has no fixed height to overlay. */
.prf-ai-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px;
  text-align: center;
}
.prf-cl-ico { opacity: .4; color: rgba(0,0,0,.55); }
.prf-cl-title { font-size: 12.5px; font-weight: 700; color: var(--charcoal, #18181A); }
.prf-cl-sub { font-size: 11px; color: var(--muted, rgba(0,0,0,.45)); max-width: 220px; line-height: 1.4; }
.prf-cl-btn {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: var(--green);
  color: #0B0B0C;
  cursor: pointer;
  transition: opacity .15s ease;
}
.prf-cl-btn:hover { opacity: .85; }
body.dark-mode .prf-chart-lock { background: rgba(14,14,15,.65); }
body.dark-mode .prf-cl-ico { color: rgba(255,255,255,.4); }
body.dark-mode .prf-cl-title { color: #fff; }
body.dark-mode .prf-cl-sub { color: rgba(255,255,255,.4); }

/* Chart expand/fullscreen overlay -- `left` is set inline (app.html,
   prfExpandChart) to the real measured edge of .mc, so this only ever
   covers the main content area and never the sidebar/navbar, per spec.
   Reuses .prf-chart-matrix/.prf-bars/.prf-chart-tip/.prf-chart-lock as-is
   for the chart itself (same styling, just more room), so only the
   surrounding chrome (bar, larger axis gutter) needs new rules here. */
.prf-chart-fs-overlay {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 900;
  background: #fff;
  display: flex; flex-direction: column;
}
body.dark-mode .prf-chart-fs-overlay { background: #0e0e10; }
.prf-chart-fs-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
body.dark-mode .prf-chart-fs-bar { border-bottom-color: rgba(255,255,255,.08); }
.prf-chart-fs-title { font-size: 16px; font-weight: 700; color: var(--charcoal, #18181A); }
body.dark-mode .prf-chart-fs-title { color: #fff; }
.prf-chart-fs-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(0,0,0,.05); border: none; color: rgba(0,0,0,.5); cursor: pointer;
  transition: background .15s;
}
.prf-chart-fs-close:hover { background: rgba(0,0,0,.1); }
body.dark-mode .prf-chart-fs-close { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
body.dark-mode .prf-chart-fs-close:hover { background: rgba(255,255,255,.14); }
.prf-chart-fs-content { flex: 1; min-height: 0; padding: 28px 36px 36px; display: flex; }
.prf-chart-fs-body { position: relative; flex: 1; min-height: 0; display: flex; gap: 16px; }
.prf-chart-fs-axis { width: 56px; font-size: 12px; padding: 4px 0; }
@media (max-width: 720px) {
  .prf-chart-fs-content { padding: 18px 16px 24px; }
  .prf-chart-fs-bar { padding: 12px 16px; }
  .prf-chart-fs-title { font-size: 14px; }
}

/* Campaigns table */
.prf-table-section {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.prf-table-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.prf-table-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.prf-table-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  color: rgba(255,255,255,.35);
}
.prf-table-wrap { overflow-x: auto; }
.prf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prf-table th {
  text-align: left;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(255,255,255,.3);
  border-bottom: 1px solid rgba(255,255,255,.07);
  white-space: nowrap;
}
.prf-table .prf-num { text-align: right; }
.prf-table-empty {
  text-align: center;
  padding: 32px;
  color: rgba(255,255,255,.28);
  font-size: 13px;
}
.prf-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.prf-status-active { background: rgba(74,222,128,.15); color: #4ade80; }
.prf-status-paused { background: rgba(251,191,36,.12); color: #fbbf24; }
.prf-plat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: .2px;
}
.prf-plat-google { background: rgba(66,133,244,.18); color: #4285F4; }
.prf-plat-meta   { background: rgba(24,119,242,.18); color: #1877F2; }
.prf-plat-tiktok { background: rgba(254,44,85,.15);  color: #FE2C55; }
.prf-bar-meta { background: linear-gradient(to top, rgba(24,119,242,.55), rgba(24,119,242,.15)); }

/* AI Insights */
.prf-ai {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 20px;
}
.prf-ai-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.prf-ai-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.prf-ai-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 20px;
  color: var(--green);
  letter-spacing: .4px;
}
.prf-ai-list { display: flex; flex-direction: column; }
.prf-ai-loading { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.prf-ai-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background .15s;
  cursor: default;
}
.prf-ai-item:hover { background: rgba(255,255,255,.03); }
.prf-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.prf-ai-dot-green { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.45); }
.prf-ai-dot-warn  { background: #fbbf24; box-shadow: 0 0 5px rgba(251,191,36,.45); }
.prf-ai-dot-blue  { background: #60a5fa; box-shadow: 0 0 5px rgba(96,165,250,.45); }
.prf-ai-dot-red   { background: #f87171; box-shadow: 0 0 5px rgba(248,113,113,.45); }
.prf-ai-body { flex: 1; min-width: 0; }
.prf-ai-lbl  { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.prf-ai-desc { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.55; }
.prf-ai-act  {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: .8;
  transition: opacity .15s;
}
.prf-ai-act:hover { opacity: 1; background: color-mix(in srgb, var(--green) 7%, transparent); }

/* ════════════════════════════════════════════════════════════
   ADS MANAGER PAGE
   ════════════════════════════════════════════════════════════ */
.adm-wrap { padding: 24px 28px; max-width: 1160px; margin: 0 auto; }
/* .adm-wrap above was never actually applied to #page-ads-manager's markup
   (confirmed by reading it — .adm-hdr/.adm-psec-tabs/.adm-sec are direct
   children of the page with no wrapper at all), so Live Campaigns had zero
   horizontal padding from any ancestor — title, tabs, refresh button,
   search, and campaign/draft lists all sat flush against the viewport
   edge. Padding applied directly to the page container instead of adding
   a new wrapper div, using the same --orv-content-* variables every other
   workspace already uses (.orv-page-wrap, .prf-wrap, .ap-op-outer) so the
   left/right margins are identical, not just similar. */
#page-ads-manager {
  /* Same Campaigns content column as Overview's .prf-wrap (--camp-content-
     maxw), and the same tightened vertical padding (page-scoped, not the
     shared --orv-content-pad-top/-bottom tokens other pages still use in
     full). */
  max-width: var(--camp-content-maxw);
  margin: 0 auto;
  padding: 20px var(--orv-content-pad-x) 20px;
}
.adm-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.adm-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: #fff; margin: 0 0 5px; }
.adm-sub { font-size: 13px; color: rgba(255,255,255,.4); margin: 0; }
.adm-hdr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.adm-date-pills { display: flex; gap: 3px; background: rgba(255,255,255,.06); border-radius: 20px; padding: 3px; }
.adm-pill { padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 16px; border: none; background: transparent; color: rgba(0,0,0,.45); cursor: pointer; transition: background .15s, color .15s; }
.adm-pill:hover { color: var(--charcoal, #18181A); }
.adm-pill.active { background: rgba(0,0,0,.06); color: var(--charcoal, #18181A); }
/* Oriven 1.0 (V6 light-mode fix) — was dark-only, invisible in light mode. */
body.dark-mode .adm-pill { color: rgba(255,255,255,.4); }
body.dark-mode .adm-pill:hover { color: rgba(255,255,255,.7); }
body.dark-mode .adm-pill.active { background: rgba(255,255,255,.1); color: #fff; }
.adm-refresh-btn {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex-shrink: 0;
  padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.04); color: var(--muted, rgba(0,0,0,.55));
  cursor: pointer; transition: background .15s, color .15s;
}
.adm-refresh-btn:hover { background: rgba(0,0,0,.07); color: var(--charcoal, #18181A); }
body.dark-mode .adm-refresh-btn { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); }
body.dark-mode .adm-refresh-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.adm-plat-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.adm-ptab { padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 20px; border: 1px solid rgba(0,0,0,.12); background: transparent; color: rgba(0,0,0,.5); cursor: pointer; transition: background .15s, color .15s, border-color .15s; letter-spacing: .2px; }
.adm-ptab:hover { color: var(--charcoal, #18181A); border-color: rgba(0,0,0,.22); }
.adm-ptab.active { background: rgba(0,0,0,.06); color: var(--charcoal, #18181A); border-color: rgba(0,0,0,.2); }
/* Oriven 1.0 (V6 light-mode fix) — was dark-only, invisible in light mode. */
body.dark-mode .adm-ptab { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }
body.dark-mode .adm-ptab:hover { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.22); }
body.dark-mode .adm-ptab.active { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

.adm-connect-banner { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.adm-connect-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: rgba(255,255,255,.35); }
.adm-connect-copy { flex: 1; min-width: 0; }
.adm-connect-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.adm-connect-sub { font-size: 13px; color: rgba(255,255,255,.4); }

.adm-loading { display: flex; align-items: center; gap: 10px; padding: 40px 0; color: rgba(255,255,255,.4); font-size: 13px; }
.adm-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.12); border-top-color: rgba(255,255,255,.55); border-radius: 50%; animation: admSpin .7s linear infinite; flex-shrink: 0; }
@keyframes admSpin { to { transform: rotate(360deg); } }

.adm-kpi-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.adm-kpi { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 14px 16px; }
.adm-kpi-lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.adm-kpi-val { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.adm-table-wrap { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; overflow: hidden; }
.adm-table-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.adm-table-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.adm-table-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.adm-table-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { padding: 10px 14px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .4px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.adm-table td { padding: 11px 14px; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: rgba(255,255,255,.025); }
.adm-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table-empty { text-align: center; padding: 32px; color: rgba(255,255,255,.25); font-size: 13px; }

.adm-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.adm-status-active { background: rgba(74,222,128,.15); color: #4ade80; }
.adm-status-paused { background: rgba(251,191,36,.12); color: #fbbf24; }

.adm-plat-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-right: 4px; vertical-align: middle; letter-spacing: .2px; }
.adm-plat-google { background: rgba(66,133,244,.18); color: #4285F4; }
.adm-plat-meta   { background: rgba(24,119,242,.18); color: #1877F2; }
.adm-plat-tiktok { background: rgba(254,44,85,.15);  color: #FE2C55; }

.adm-view-btn { font-size: 11px; font-weight: 600; color: rgba(0,0,0,.5); text-decoration: none; padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); transition: color .12s, background .12s; white-space: nowrap; display: inline-block; }
.adm-view-btn:hover { color: var(--charcoal, #18181A); background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.2); }
/* Oriven 1.0 (V6 light-mode fix) — was dark-only, invisible in light mode. */
body.dark-mode .adm-view-btn { color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.1); }
body.dark-mode .adm-view-btn:hover { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }

.adm-no-data { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 24px; text-align: center; color: rgba(255,255,255,.25); }
.adm-no-data-title { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.5); }
.adm-no-data-sub { font-size: 13px; color: rgba(255,255,255,.3); max-width: 320px; }
.adm-cta-btn { margin-top: 8px; padding: 8px 20px; font-size: 13px; font-weight: 600; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); cursor: pointer; transition: background .15s, color .15s; }
.adm-cta-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.adm-cta-sec { background: transparent; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
.adm-cta-sec:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.adm-no-data-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Ads Manager — platform section tabs. Visual styling now comes entirely
   from .prf-plat-tabs/.prf-ptab (same markup also carries these classes —
   "one universal platform switcher", not a second visual system); this
   selector stays only as admSwitchSection()'s functional query hook
   (document.querySelectorAll('.adm-psec-tab')), so it's deliberately empty
   of any box-model/color properties that would otherwise fight the shared
   component for the win on source-order (this block sits later in the
   file than .prf-ptab, which would otherwise let it win on equal
   specificity). */
.adm-psec-tabs { margin-bottom: 16px; }
.adm-psec-tab { }

/* Ads Manager — per-platform section */
.adm-sec { }
.adm-sec-hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-new-btn { padding: 7px 14px; font-size: 12px; font-weight: 600; border-radius: 8px; border: 1px solid rgba(74,222,128,.25); background: rgba(74,222,128,.1); color: #4ade80; cursor: pointer; transition: background .15s; white-space: nowrap; }
.adm-new-btn:hover { background: rgba(74,222,128,.18); }

/* Ads Manager — connection status surface + primary action, two distinct
   pieces (Master Dashboard layout spec) rather than one inline bar: the
   status gets its own padded/bordered card on the left, "+ New Campaign"
   stays a clearly separate right-aligned primary action. Same elements,
   same IDs/onclick — only the container treatment changed. */
.adm-conn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 14px; }
.adm-conn-loading, .adm-conn-ok, .adm-conn-no {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,.08)); background: var(--surface, rgba(255,255,255,.03));
}
.adm-conn-loading { color: rgba(255,255,255,.35); }
.adm-conn-no { color: rgba(255,255,255,.35); }
.adm-conn-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.adm-conn-ok-dot { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.5); }
.adm-conn-no-dot { background: rgba(255,255,255,.2); }
.adm-conn-change, .adm-conn-connect { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); cursor: pointer; transition: background .15s, color .15s; }
.adm-conn-change:hover, .adm-conn-connect:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.adm-conn-connect { border-color: rgba(99,179,237,.3); background: rgba(99,179,237,.1); color: #63B3ED; }
.adm-conn-connect:hover { background: rgba(99,179,237,.18); color: #90cdf4; }

/* Light-mode adjustments */
body:not(.dark-mode) .adm-conn-loading { color: rgba(0,0,0,.35); }
body:not(.dark-mode) .adm-conn-no { color: rgba(0,0,0,.35); }
body:not(.dark-mode) .adm-conn-change, body:not(.dark-mode) .adm-conn-connect { color: rgba(0,0,0,.45); border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.05); }
body:not(.dark-mode) .adm-conn-ok-dot { background: #16a34a; box-shadow: 0 0 5px rgba(22,163,74,.4); }
body:not(.dark-mode) .adm-conn-no-dot { background: rgba(0,0,0,.15); }

/* Ads Manager — Oriven status pills */
.adm-status-ready      { background: rgba(99,179,237,.15);  color: #63B3ED; }
.adm-status-arch       { background: rgba(107,107,107,.12); color: rgba(255,255,255,.35); }
.adm-status-publishing { background: rgba(251,191,36,.12);  color: #fbbf24; }
.adm-status-failed     { background: rgba(248,113,113,.15); color: #f87171; }

/* Ads Manager — action buttons */
.adm-act-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-act-btn { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: background .12s, color .12s, border-color .12s; white-space: nowrap; background: none; }
.adm-act-publish { background: rgba(74,222,128,.15); color: #4ade80; border-color: rgba(74,222,128,.25); }
.adm-act-publish:hover { background: rgba(74,222,128,.25); color: #22c55e; }
.adm-act-pause   { background: rgba(251,191,36,.12); color: #fbbf24; border-color: rgba(251,191,36,.2); }
.adm-act-pause:hover   { background: rgba(251,191,36,.22); }
.adm-act-resume  { background: rgba(99,179,237,.12); color: #63B3ED; border-color: rgba(99,179,237,.22); }
.adm-act-resume:hover  { background: rgba(99,179,237,.22); }
.adm-act-arch    { color: var(--muted, rgba(0,0,0,.4)); border-color: var(--border, rgba(0,0,0,.12)); }
.adm-act-arch:hover    { background: rgba(0,0,0,.06); color: var(--charcoal, #18181A); }
body.dark-mode .adm-act-arch    { color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.1); }
body.dark-mode .adm-act-arch:hover    { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
.adm-act-connect { background: rgba(66,133,244,.15); color: #4285F4; border-color: rgba(66,133,244,.25); }
.adm-act-connect:hover { background: rgba(66,133,244,.25); }
.adm-act-del  { color: var(--muted, rgba(0,0,0,.3)); border-color: var(--border, rgba(0,0,0,.1)); padding: 4px 7px; }
.adm-act-del:hover { color: #f87171; border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }
body.dark-mode .adm-act-del { color: rgba(255,255,255,.25); border-color: rgba(255,255,255,.08); }
.adm-act-retry { background: rgba(248,113,113,.12); color: #f87171; border-color: rgba(248,113,113,.2); }
.adm-act-retry:hover { background: rgba(248,113,113,.22); }

/* One primary action + a compact overflow menu (spec 8: "the campaign row
   should have one obvious primary action... secondary actions can be
   placed in a compact overflow menu"). Reused identically across Google/
   Meta/Pinterest/TikTok's Live Campaigns row templates (_admRenderGoogleLive
   etc.) and toggled by the shared _admToggleActMenu helper. */
.adm-act-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; }
.adm-act-open {
  background: color-mix(in srgb, var(--green,#B6FF3B) 16%, transparent);
  color: #4b7a00;
  border-color: color-mix(in srgb, var(--green,#B6FF3B) 42%, transparent);
  font-weight: 700;
}
.adm-act-open:hover { background: color-mix(in srgb, var(--green,#B6FF3B) 28%, transparent); }
body.dark-mode .adm-act-open { color: var(--green,#B6FF3B); }
.adm-act-overflow { position: relative; }
.adm-act-more {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--border, rgba(0,0,0,.1)); background: none;
  color: var(--muted, rgba(0,0,0,.4)); font-size: 14px; cursor: pointer; line-height: 1;
  transition: background .12s, color .12s;
}
.adm-act-more:hover, .adm-act-overflow.adm-act-menu-open .adm-act-more {
  background: rgba(0,0,0,.06); color: var(--charcoal, #18181A);
}
body.dark-mode .adm-act-more { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.1); }
body.dark-mode .adm-act-more:hover, body.dark-mode .adm-act-overflow.adm-act-menu-open .adm-act-more {
  background: rgba(255,255,255,.09); color: #fff;
}
.adm-act-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  flex-direction: column; gap: 2px;
  min-width: 128px; padding: 6px;
  background: #fff; border: 1px solid var(--border, rgba(0,0,0,.1)); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.adm-act-overflow.adm-act-menu-open .adm-act-menu { display: flex; }
.adm-act-menu .adm-act-btn { width: 100%; text-align: left; border-color: transparent !important; background: none !important; padding: 6px 8px; }
.adm-act-menu .adm-act-btn:hover { background: rgba(0,0,0,.05) !important; }
body.dark-mode .adm-act-menu { background: #1c1c1f; border-color: rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
body.dark-mode .adm-act-menu .adm-act-btn:hover { background: rgba(255,255,255,.07) !important; }

/* Ads Manager — account selector + publishing states */
.adm-acct-sel { font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); cursor: pointer; max-width: 150px; }
.adm-acct-sel option { background: #1a1a1a; color: #fff; }
.adm-acct-name { font-size: 11px; color: rgba(255,255,255,.4); white-space: nowrap; }
.adm-camp-sub { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 2px; }
.adm-fail-reason { font-size: 11px; color: #f87171; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.adm-publishing-ind { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #fbbf24; }
.adm-pub-spin { display: inline-block; width: 10px; height: 10px; border: 1.5px solid rgba(251,191,36,.3); border-top-color: #fbbf24; border-radius: 50%; animation: admSpin .7s linear infinite; flex-shrink: 0; }

/* Campaign card — action bar */
.camp-card-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.camp-card-act-adm { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; flex: 1; text-align: left; }
.camp-card-act-adm:hover { background: rgba(255,255,255,.1); color: #fff; }
.camp-card-act-adm-in { color: #4ade80; border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.08); }
.camp-card-act-adm-in:hover { background: rgba(74,222,128,.14); }
.camp-card-act-del { padding: 4px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.08); background: none; color: rgba(255,255,255,.25); cursor: pointer; transition: color .12s, background .12s, border-color .12s; display: inline-flex; align-items: center; justify-content: center; }
.camp-card-act-del:hover { color: #f87171; border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }

/* Campaign workspace — topbar right actions */
.cwr-topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cwr-adm-btn { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(74,222,128,.3); background: rgba(74,222,128,.1); color: #4ade80; cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; }
.cwr-adm-btn:hover { background: rgba(74,222,128,.18); color: #22c55e; }
.cwr-del-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: none; color: rgba(255,255,255,.3); cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.cwr-del-btn:hover { color: #f87171; border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }

/* clib-status pills — light-mode variants */
.clib-status-generated  { background: color-mix(in srgb, var(--green) 12%, transparent);  color: var(--green-text); }
.clib-status-ready      { background: rgba(99,179,237,.12);  color: #2b7eb8; }
.clib-status-publishing { background: rgba(251,191,36,.12);  color: #b45309; }
.clib-status-published  { background: rgba(72,187,120,.12);  color: #276749; }
.clib-status-paused     { background: rgba(251,191,36,.12);  color: #a16207; }
.clib-status-failed     { background: rgba(248,113,113,.12); color: #b91c1c; }

@media (max-width: 900px) { .adm-kpi-strip { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .adm-wrap { padding: 16px; } .adm-kpi-strip { grid-template-columns: repeat(2,1fr); } .adm-hdr { flex-direction: column; } }

/* ── Ads Manager V3 — Premium Section Layout ─────────────────────── */
.adm-v3-section { margin-top: 20px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.adm-v3-section:hover { border-color: rgba(255,255,255,.11); }
.adm-v3-drafts { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.06); }

.adm-v3-sh { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.adm-v3-sh-left { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .7px; }

.adm-v3-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.6); flex-shrink: 0; animation: admLivePulse 2.4s ease-in-out infinite; }
@keyframes admLivePulse { 0%,100% { box-shadow: 0 0 4px rgba(74,222,128,.4); } 50% { box-shadow: 0 0 10px rgba(74,222,128,.75), 0 0 20px rgba(74,222,128,.25); } }

.adm-v3-draft-dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 5px rgba(251,191,36,.35); flex-shrink: 0; }

.adm-v3-count { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; }

/* Campaigns Performance Workspace pass — the entity-workspace section
   (.prf-campaigns-section), the Compact AI Analysis entry point
   (.prf-ai-trigger, the "small floating AI/sparkle button"), and their
   supporting styles are removed entirely, not hidden: that whole section
   only ever existed to host the AI trigger + the honest hierarchy-
   unavailable message, and the trigger's only real interaction
   (#prfAiSection) is removed too — ORIVEN's global intelligence entry
   point already covers this, Campaigns doesn't need a second one.
   #prfHierarchyUnavailable (the still-real honest message) moved up next
   to the controls it explains and reuses the plain, already-shared
   .adm-v3-empty styling — no dedicated CSS of its own needed. */

.adm-v3-table-wrap { overflow-x: auto; }

/* Premium V3 table */
.adm-v3-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.adm-v3-table thead th { padding: 9px 16px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .5px; text-align: left; background: rgba(255,255,255,.018); border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.adm-v3-table thead th:first-child { padding-left: 20px; }
.adm-v3-table thead th:last-child { padding-right: 20px; }
.adm-v3-table tbody tr { transition: background .14s ease; }
.adm-v3-table tbody tr:hover td { background: color-mix(in srgb, var(--green) 6%, transparent); }
.adm-v3-table tbody tr:not(:last-child) td { border-bottom: 1px solid rgba(255,255,255,.038); }
.adm-v3-table tbody td { padding: 12px 16px; color: rgba(255,255,255,.75); vertical-align: middle; }
.adm-v3-table tbody td:first-child { padding-left: 20px; }
.adm-v3-table tbody td:last-child { padding-right: 20px; }

.adm-th-check,.adm-td-check { width: 38px; padding-left: 18px !important; padding-right: 4px !important; }
.adm-v3-cb { width: 14px; height: 14px; accent-color: var(--green); cursor: pointer; }

/* Card-stack on mobile — .adm-v3-table-wrap's overflow-x:auto was the only
   responsive treatment before this; that still lets narrow tables scroll
   horizontally, which the spec rules out. Each <td> becomes a labeled row
   instead, using data-label attributes added at render time (app.html,
   _admRenderGoogleLive/_admRenderMetaLive row templates). */
@media (max-width: 640px) {
  .adm-v3-table-wrap { overflow-x: visible; }
  .adm-v3-table thead { display: none; }
  .adm-v3-table, .adm-v3-table tbody, .adm-v3-table tr { display: block; width: 100%; }
  .adm-v3-table tbody tr {
    border: 1px solid rgba(255,255,255,.07); border-radius: 10px;
    margin-bottom: 10px; padding: 4px 12px; background: rgba(255,255,255,.015);
  }
  .adm-v3-table tbody tr:not(:last-child) td { border-bottom: 1px solid rgba(255,255,255,.038); }
  .adm-v3-table tbody td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 4px !important; text-align: right;
  }
  .adm-v3-table tbody td::before {
    content: attr(data-label); font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; color: rgba(255,255,255,.35); text-align: left; flex-shrink: 0;
  }
  .adm-v3-table tbody td:empty::before { content: none; }
  .adm-v3-table .adm-th-check { padding-left: 4px !important; }
  .adm-v3-table .adm-camp-name, .adm-v3-table .adm-camp-id { text-align: right; }
}
body:not(.dark-mode) .adm-v3-table tbody td::before { color: rgba(0,0,0,.4); }
@media (max-width: 640px) {
  body:not(.dark-mode) .adm-v3-table tbody tr { border-color: rgba(0,0,0,.08); background: rgba(0,0,0,.012); }
  body:not(.dark-mode) .adm-v3-table tbody tr:not(:last-child) td { border-bottom-color: rgba(0,0,0,.06); }
}

.adm-v3-camp-name { font-weight: 500; color: rgba(255,255,255,.88); }
.adm-v3-camp-id { font-size: 11px; color: rgba(255,255,255,.22); margin-top: 2px; font-variant-numeric: tabular-nums; }
.adm-v3-budget { font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-v3-type { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.4); letter-spacing: .3px; white-space: nowrap; }
.adm-v3-acts { display: flex; align-items: center; gap: 5px; }

.adm-v3-empty { padding: 28px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.22); }
.adm-v3-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; font-size: 13px; color: rgba(255,255,255,.32); }

/* Live status pills (platform API statuses) */
.adm-live-active       { background: rgba(74,222,128,.14);  color: #4ade80; }
.adm-live-paused       { background: rgba(251,191,36,.13);  color: #fbbf24; }
.adm-live-arch         { background: rgba(255,255,255,.08); color: rgba(255,255,255,.32); }
.adm-live-deleted      { background: rgba(255,255,255,.05); color: rgba(255,255,255,.22); }
.adm-live-review       { background: rgba(99,179,237,.13);  color: #63B3ED; }
.adm-live-disapproved  { background: rgba(248,113,113,.13); color: #f87171; }
.adm-live-payment-err  { background: rgba(248,113,113,.13); color: #f87171; }

/* Live Campaigns polish pass -- Active vs Archived grouping (_admBuildLiveGroupsHtml,
   app.html). Active always renders first/open; Archived is visually
   secondary (dimmed, collapsed by default) so "what's running now" reads
   before "what I've run in the past" without a second continuous table. */
.adm-lc-group + .adm-lc-group { border-top: 1px solid rgba(255,255,255,.06); }
.adm-lc-group-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: rgba(255,255,255,.45);
}
.adm-lc-group-count {
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 20px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums;
}
.adm-lc-archived-hd {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 18px; margin: 0; border: none; background: none;
  font: inherit; text-align: left; cursor: pointer;
  color: rgba(255,255,255,.45); opacity: .72; transition: opacity .15s;
}
.adm-lc-archived-hd:hover { opacity: 1; }
.adm-lc-chevron { flex-shrink: 0; transition: transform .18s ease; }
.adm-lc-chevron-open { transform: rotate(180deg); }
/* Archived rows read as secondary/history, not equal-weight to Active --
   a soft dim rather than hiding data or restyling the table itself. */
.adm-lc-archived-body { opacity: .78; }
.adm-lc-archived-body:hover { opacity: .92; }
.adm-lc-empty { padding: 16px 18px; text-align: left; font-size: 12.5px; color: rgba(255,255,255,.3); }

/* Light-mode V3 overrides */
body:not(.dark-mode) .adm-v3-section { background: rgba(0,0,0,.025); border-color: rgba(0,0,0,.07); }
body:not(.dark-mode) .adm-v3-section:hover { border-color: rgba(0,0,0,.11); }
body:not(.dark-mode) .adm-v3-drafts { background: rgba(0,0,0,.015); border-color: rgba(0,0,0,.05); }
body:not(.dark-mode) .adm-v3-sh { border-bottom-color: rgba(0,0,0,.06); }
body:not(.dark-mode) .adm-v3-sh-left { color: rgba(0,0,0,.4); }
body:not(.dark-mode) .adm-v3-count { background: rgba(0,0,0,.07); color: rgba(0,0,0,.4); }
body:not(.dark-mode) .adm-v3-table thead th { color: rgba(0,0,0,.28); background: rgba(0,0,0,.018); border-bottom-color: rgba(0,0,0,.05); }
body:not(.dark-mode) .adm-v3-table tbody tr:not(:last-child) td { border-bottom-color: rgba(0,0,0,.045); }
body:not(.dark-mode) .adm-v3-table tbody tr:hover td { background: color-mix(in srgb, var(--green) 7%, transparent); }
body:not(.dark-mode) .adm-v3-table tbody td { color: rgba(0,0,0,.75); }
body:not(.dark-mode) .adm-v3-camp-name { color: rgba(0,0,0,.88); }
body:not(.dark-mode) .adm-v3-camp-id { color: rgba(0,0,0,.25); }
body:not(.dark-mode) .adm-v3-type { background: rgba(0,0,0,.06); color: rgba(0,0,0,.4); }
body:not(.dark-mode) .adm-v3-empty { color: rgba(0,0,0,.25); }
body:not(.dark-mode) .adm-v3-loading { color: rgba(0,0,0,.32); }
body:not(.dark-mode) .adm-live-arch { background: rgba(0,0,0,.06); color: rgba(0,0,0,.35); }
body:not(.dark-mode) .adm-live-deleted { background: rgba(0,0,0,.04); color: rgba(0,0,0,.25); }
body:not(.dark-mode) .adm-lc-group + .adm-lc-group { border-top-color: rgba(0,0,0,.06); }
body:not(.dark-mode) .adm-lc-group-hd { color: rgba(0,0,0,.4); }
body:not(.dark-mode) .adm-lc-group-count { background: rgba(0,0,0,.07); color: rgba(0,0,0,.4); }
body:not(.dark-mode) .adm-lc-archived-hd { color: rgba(0,0,0,.4); }
body:not(.dark-mode) .adm-lc-empty { color: rgba(0,0,0,.3); }

/* ════════════════════════════════════════════════════════════
   REPORTS PAGE — scoped under #page-reports to override legacy rpt-* styles
   ════════════════════════════════════════════════════════════ */

.rpt-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
#page-reports .rpt-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
#page-reports .rpt-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #fff;
  margin: 0 0 4px;
}
#page-reports .rpt-sub {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.rpt-hdr-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.rpt-btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.rpt-btn-secondary:hover { background: rgba(255,255,255,.09); color: #fff; }
.rpt-btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s;
}
.rpt-btn-primary:hover { opacity: .86; }

/* Tabs */
.rpt-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 28px;
  overflow-x: auto;
}
.rpt-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,.45);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all .15s;
}
.rpt-tab:hover { color: var(--charcoal, #18181A); }
.rpt-tab.active { color: var(--charcoal, #18181A); border-bottom-color: var(--green); }
/* Oriven 1.0 (V6 light-mode fix) — was dark-only, invisible in light mode. */
body.dark-mode .rpt-tab { color: rgba(255,255,255,.4); }
body.dark-mode .rpt-tab:hover { color: rgba(255,255,255,.75); }
body.dark-mode .rpt-tab.active { color: #fff; }

/* Empty state */
.rpt-empty {
  text-align: center;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rpt-empty-ico {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: rgba(255,255,255,.28);
}
.rpt-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.rpt-empty-sub {
  font-size: 14px;
  color: rgba(255,255,255,.35);
  max-width: 400px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════════
   CONNECT PAGE — con-*
   ════════════════════════════════════════════════════════════ */

.con-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* Oriven 1.0 Business redesign — .page's min-height:100% forces every hub
   sub-page to fill a full viewport even when a hub-tabs strip sits above it
   eating into that same viewport, so short pages (Connect's 3 cards) always
   overflowed by exactly the hub-tabs bar's height. Content-driven height
   removes the forced empty space; overflow-y:auto still scrolls once real
   content (many connected accounts) genuinely exceeds the viewport. */
#page-integrations.page { min-height: 0; }
.con-hdr { margin-bottom: 32px; }
.con-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 5px;
}
body.dark-mode .con-title { color: #fff; }
.con-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 540px;
  line-height: 1.5;
}
body.dark-mode .con-sub { color: rgba(255,255,255,.4); }

/* 3-card grid */
.con-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.con-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--orv-t, .16s), transform var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
}
.con-card:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--b2)); transform: translateY(var(--orv-lift)) scale(var(--orv-scale)); box-shadow: 0 8px 20px rgba(0,0,0,.05), 0 0 0 1px color-mix(in srgb, var(--green) 10%, transparent); }
body.dark-mode .con-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
body.dark-mode .con-card:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.14)); box-shadow: 0 8px 20px rgba(0,0,0,.3), 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent); }
.con-card-connected {
  border-color: rgba(22,163,74,.28);
  background: rgba(22,163,74,.04);
}
body.dark-mode .con-card-connected { border-color: rgba(74,222,128,.22); background: rgba(74,222,128,.025); }

.con-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.con-card-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.con-logo-google { background: rgba(0,0,0,.04); border: 1px solid var(--border); }
body.dark-mode .con-logo-google { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.con-logo-meta   { background: #1877F2; }
.con-logo-tiktok { background: #000; border: 1px solid rgba(255,255,255,.12); }
.con-logo-pinterest { background: #E60023; }
.con-logo-snapchat { background: #FFFC00; }
/* Snapchat card: optional Public Profile ID for the selected ad account. */
.con-snap-profile { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.con-snap-profile-lbl { font-size: 12px; font-weight: 600; color: var(--charcoal); }
.con-snap-profile-lbl span { font-weight: 400; color: var(--muted); }
.con-snap-profile-row { display: flex; gap: 6px; flex-wrap: wrap; }
.con-snap-profile-hint { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
body.dark-mode .con-snap-profile { border-top-color: rgba(255,255,255,.08); }
body.dark-mode .con-snap-profile-lbl { color: rgba(255,255,255,.88); }

.con-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,.035);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
body.dark-mode .con-card-status { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.con-card-status.connected {
  background: rgba(22,163,74,.1);
  border-color: rgba(22,163,74,.25);
  color: #16a34a;
}
body.dark-mode .con-card-status.connected { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.2); color: #4ade80; }
.con-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.con-dot-on  { background: #16a34a; box-shadow: 0 0 5px rgba(22,163,74,.4); }
body.dark-mode .con-dot-on { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.55); }
.con-dot-off { background: var(--b2); }
body.dark-mode .con-dot-off { background: rgba(255,255,255,.18); }

.con-card-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.3px;
}
body.dark-mode .con-card-name { color: #fff; }
.con-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
body.dark-mode .con-card-desc { color: rgba(255,255,255,.45); }
.con-card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.con-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
body.dark-mode .con-feat { color: rgba(255,255,255,.55); }
.con-feat::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(120,175,20,.65);
  flex-shrink: 0;
}
body.dark-mode .con-feat::before { background: color-mix(in srgb, var(--green) 55%, transparent); }
/* ── Universal Setup Engine readiness row — sits between the account
   list and the connect/disconnect footer on each Connections card.
   Deliberately understated (spec: "calm, trustworthy, transparent",
   no giant badges) — a small status line + at most one action. */
.con-ready-row { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
body.dark-mode .con-ready-row { border-top-color: rgba(255,255,255,.08); }
.con-ready-status { font-size: 12px; font-weight: 600; }
.con-ready-muted { color: var(--muted); }
body.dark-mode .con-ready-muted { color: rgba(255,255,255,.45); }
/* #page-business-brain (this card lives inside it) is unconditionally
   dark via its own token overrides, NOT via body.dark-mode — so unlike
   .con-ready-muted/-action/-result/-input above (which correctly ride
   var(--muted)/var(--border)/var(--charcoal)/var(--sf2), tokens that
   page already redefines), a hardcoded light-appropriate color here
   would never flip for a user without body.dark-mode set, exactly the
   contrast bug found and fixed earlier for this same page. Set dark-
   appropriate directly rather than relying on a body.dark-mode variant
   that a light-theme-preference user would never trigger. */
.con-ready-warn { color: #FBBF24; }
.con-ready-ready { color: #4ade80; }
.con-ready-action {
  align-self: flex-start;
  background: none; border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--charcoal);
  cursor: pointer; transition: border-color .15s, color .15s;
}
body.dark-mode .con-ready-action { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.con-ready-action:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); color: var(--green); }
.con-ready-action:disabled { opacity: .55; cursor: default; }
.con-ready-result { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
body.dark-mode .con-ready-result { color: rgba(255,255,255,.45); }
.con-ready-testevent { display: flex; gap: 6px; flex-wrap: wrap; }
.con-ready-input {
  flex: 1; min-width: 160px;
  background: var(--sf2); border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 9px; font-size: 12px; color: var(--charcoal); font-family: inherit;
}
body.dark-mode .con-ready-input { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }

/* Completion Pass — checklist rows + Recheck action. Same rule as
   .con-ready-warn/.con-ready-ready above: this page is unconditionally
   dark via its own scoped token overrides, not body.dark-mode, so the
   two semantic colors below are set dark-appropriate directly. */
.con-checklist { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0; }
.con-check-item { font-size: 11px; white-space: nowrap; }
.con-check-done { color: #4ade80; }
.con-check-unverified { color: var(--muted); }
.con-check-pending { color: #FBBF24; }
.con-ready-recheck {
  align-self: flex-start;
  background: none; border: none; border-radius: 7px;
  padding: 3px 2px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.con-ready-recheck:hover { color: var(--green); }

/* UX + Reliability Overhaul — progressive disclosure controls. Same
   token-based rule as everything else on this unconditionally-dark
   page: no body.dark-mode variant needed for the token-driven colors,
   and the one semantic accent (con-why-link) is set dark-appropriate
   directly, matching .con-ready-warn/.con-ready-ready above. */
.con-manage-toggle {
  align-self: flex-start; margin-top: 4px;
  background: none; border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--charcoal);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.con-manage-toggle:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); color: var(--green); }
.con-details { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.con-why-link {
  background: none; border: none; padding: 0; margin: 0;
  font-size: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

.con-card-foot { margin-top: auto; }
/* Root cause of Google Ads' account list sitting lower than Meta's: two
   compounding issues. (1) .con-cards is a grid with align-items:stretch,
   so every card is forced to the height of the tallest sibling (Meta, 3
   detail rows). With flex:1 here, THIS block was the one absorbing that
   leftover height, pushing the account list further down still. Removing
   flex:1 fixed that part. (2) Even without flex:1, .con-card-details still
   only grows to its OWN content's height -- Google's 2 rows vs Meta's 3
   means Google's block is naturally shorter (measured: 86px vs 133px,
   exactly one row + gap = 39px + 8px = 47px, matching the reported gap),
   so its next sibling (the account list) still started ~47px higher than
   Meta's regardless of flex:1. min-height below pins every card's details
   block to Meta's real height (3 rows x 39px + 2 gaps x 8px = 133px) --
   Meta (already 133px) is unaffected; Google/TikTok's shorter blocks (2
   and 1 real rows respectively) now match it exactly, so the account list
   starts at the identical Y position in every card regardless of how many
   real detail rows each platform actually has. */
.con-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 133px;
}
.con-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,.025);
  border: 1px solid var(--border);
  border-radius: 10px;
}
body.dark-mode .con-detail-row { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.06); }
.con-detail-lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}
body.dark-mode .con-detail-lbl { color: rgba(255,255,255,.4); }
.con-detail-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--c2);
  font-variant-numeric: tabular-nums;
}
body.dark-mode .con-detail-val { color: rgba(255,255,255,.55); }
.con-btn-connect {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: opacity .15s;
}
.con-btn-connect:hover { opacity: .86; }
.con-btn-connect:disabled { opacity: .5; cursor: default; }
.con-btn-disconnect {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0,0,0,.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: all .15s;
}
body.dark-mode .con-btn-disconnect { color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.con-btn-disconnect:hover { color: #dc2626; border-color: rgba(220,38,38,.3); background: rgba(220,38,38,.05); }
body.dark-mode .con-btn-disconnect:hover { color: #f87171; border-color: rgba(248,113,113,.28); background: rgba(248,113,113,.04); }

/* Integration card — account list */
.con-acct-list { margin: 10px 0 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.con-acct-list-hdr { padding: 7px 12px 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.07); }
.con-acct-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; transition: background .12s; }
.con-acct-row + .con-acct-row { border-top: 1px solid rgba(255,255,255,.06); }
.con-acct-row.con-acct-active { background: rgba(74,222,128,.06); }
.con-acct-info { flex: 1; min-width: 0; }
.con-acct-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.con-acct-id { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 1px; }
.con-acct-badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4ade80; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.2); border-radius: 5px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; }
.con-acct-set { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: rgba(255,255,255,.55); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .12s, color .12s; }
.con-acct-set:hover { background: rgba(255,255,255,.13); color: rgba(255,255,255,.9); }

/* Honest error state (e.g. Google Ads discovery genuinely failed -- bad
   dev token, expired credentials, API error) -- never just a bare, visually
   identical "0 accounts" empty state. */
.con-acct-err { margin: 8px 0 4px; padding: 9px 12px; font-size: 12px; line-height: 1.5; color: #f87171; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2); border-radius: 8px; }

/* Light mode */
body:not(.dark-mode) .con-acct-list { border-color: rgba(0,0,0,.1); }
body:not(.dark-mode) .con-acct-list-hdr { color: rgba(0,0,0,.3); border-bottom-color: rgba(0,0,0,.07); }
body:not(.dark-mode) .con-acct-row + .con-acct-row { border-top-color: rgba(0,0,0,.06); }
body:not(.dark-mode) .con-acct-row.con-acct-active { background: rgba(22,163,74,.06); }
body:not(.dark-mode) .con-acct-name { color: rgba(0,0,0,.8); }
body:not(.dark-mode) .con-acct-id { color: rgba(0,0,0,.35); }
body:not(.dark-mode) .con-acct-badge { color: #16a34a; background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.2); }
body:not(.dark-mode) .con-acct-set { border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.05); color: rgba(0,0,0,.5); }
body:not(.dark-mode) .con-acct-set:hover { background: rgba(0,0,0,.1); color: rgba(0,0,0,.85); }
body:not(.dark-mode) .con-acct-err { color: #dc2626; background: rgba(220,38,38,.06); border-color: rgba(220,38,38,.18); }

/* Why connect section */
.con-why { border-top: 1px solid rgba(255,255,255,.07); padding-top: 40px; }
.con-why-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.con-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.con-why-item {
  padding: 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
}
.con-why-ico {
  width: 34px;
  height: 34px;
  background: color-mix(in srgb, var(--green) 7%, transparent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 12px;
}
.con-why-lbl { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.con-why-desc { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.6; }

/* Responsive */
@media (max-width: 960px) {
  .prf-kpis  { grid-template-columns: repeat(3, 1fr); }
  .prf-charts-grid { grid-template-columns: 1fr; }
  .prf-chart-wide  { grid-column: span 1; }
  .con-cards { grid-template-columns: 1fr; }
  .con-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .prf-wrap, .rpt-wrap, .con-wrap { padding: 24px 20px 60px; }
  .prf-kpis  { grid-template-columns: repeat(2, 1fr); }
  .prf-hdr   { flex-direction: column; }
  .rpt-hdr   { flex-direction: column; }
  .rpt-hdr-actions { flex-wrap: wrap; }
}
/* .prf-kpis only, on the canonical tablet/mobile tiers -- spec wants
   2/row on tablet, 1/row on mobile. The 960/720 rules above also control
   unrelated rpt- and con- prefixed selectors sharing those blocks, so
   rather than repurposing their breakpoints (which would shift Reports/
   Connections behavior too, outside this page's scope), this coexists
   with them: placed after, so it wins by source order at the same
   specificity. */
@media (max-width: 900px) {
  .prf-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .prf-kpis { grid-template-columns: 1fr; }
}
/* .prf-charts-grid is 2-col by default (desktop) — the 960px rule above
   collapses it to 1-col starting at the tablet band, which undercuts spec's
   "tablet: charts become 2 columns" (already true on desktop; tablet should
   stay that way, only mobile should stack to 1). Restore 2-col through the
   whole tablet range (up to and including the 912px test width), then
   actually collapse to 1 only at the mobile tier. */
@media (max-width: 1024px) {
  .prf-charts-grid { grid-template-columns: repeat(2, 1fr); }
  .prf-chart-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .prf-charts-grid { grid-template-columns: 1fr; }
  .prf-chart-wide { grid-column: span 1; }
}



/* ════════════════════════════════════════════════════════════════
   CAMPAIGN RESULTS PAGE — #page-campaign-results
   ════════════════════════════════════════════════════════════════ */
/* Flex-sizing fix generalized to `.app > .page.active` in the app-shell
   section (styles.css ~24114) -- covers this page and every other route
   using the same direct-.app-child pattern, not just this one. */
#page-campaign-results { overflow-y: auto; }

.cgr-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

/* Back bar */
.cgr-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
/* Wins over body.dark-mode .cgr-back's own !important display rule
   (needed for its sticky/blur chrome) -- see _showResultsPage/_cgrShowChrome.
   Needs the ID, not just a second class: body.dark-mode .cgr-back is
   (0,2,1) specificity (element+2 classes) which beats a same-!important
   (0,2,0) two-class rule regardless of source order; #cgrBackBar makes
   this unambiguously win. */
#cgrBackBar.cgr-back-hidden { display: none !important; }
.cgr-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.cgr-back-btn:hover { color: rgba(255,255,255,.7); }
.cgr-back-actions { display: flex; gap: 10px; }
.cgr-action-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cgr-action-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.cgr-action-btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #0a0a0a;
  font-weight: 600;
}
.cgr-action-btn-primary:hover { background: var(--gm); color: #0a0a0a; }

/* ══════════════════════════════════════════════════════════════════
   Campaign blueprint — the "building" view shown while a campaign
   generates. Deliberately committed to one dark aesthetic regardless of
   theme (same precedent as the ad-workspace's own dark commitment) — a
   premium AI dev-tool surface, not a spinner-and-checklist loading
   screen. Driven by _cgrBuildStart in app.html.
   ══════════════════════════════════════════════════════════════════ */
.cgr-build {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 68vh;
  padding: 60px 40px;
}
.cgr-build-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.cgr-build-status::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 9px;
  vertical-align: middle;
  animation: cgrBuildPulseDot 1.6s ease-in-out infinite;
}
@keyframes cgrBuildPulseDot { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

.cgr-build-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  min-height: 500px;
  background: #08080a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 40px 48px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.cgr-build-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 55% 40% at 50% 0%, color-mix(in srgb, var(--green) 7%, transparent), transparent 70%);
  pointer-events: none;
  opacity: .6;
  transition: opacity .6s ease;
}
.cgr-build-glow-flash { animation: cgrBuildFlash 1.1s ease; }
@keyframes cgrBuildFlash {
  0%   { opacity: .6; }
  30%  { opacity: 1; background: radial-gradient(ellipse 60% 45% at 50% 0%, color-mix(in srgb, var(--green) 16%, transparent), transparent 72%); }
  100% { opacity: .6; }
}

.cgr-build-lines {
  position: relative;
  z-index: 1;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

/* One line of the nested campaign{} object -- see _cgrBlLine in app.html.
   The border-left/margin pair (rather than an absolutely-positioned bar)
   is what lets .cgr-bl-line-active show a left accent without disturbing
   the per-depth padding-left indentation below. */
.cgr-bl-line {
  position: relative;
  min-height: 1.75em;
  margin-left: -12px;
  padding-left: 12px;
  border-left: 2px solid transparent;
  border-radius: 3px;
  transition: border-color .3s ease, background .3s ease;
  white-space: nowrap;
}
.cgr-bl-blank { min-height: 1.75em; }
.cgr-bl-d1 { padding-left: calc(12px + 1.6em); }
.cgr-bl-d2 { padding-left: calc(12px + 3.2em); }

/* Active/unresolved line -- a faint green wash + left accent, the "AI is
   still working on this one" signal. Removed the instant a field resolves
   (see _cgrBlFieldDone). */
.cgr-bl-line-active {
  border-left-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 6%, transparent), transparent 65%);
}

.cgr-bl-brace { color: rgba(255,255,255,.5); }
.cgr-bl-key   { color: rgba(255,255,255,.42); }
.cgr-bl-punct { color: rgba(255,255,255,.22); }
.cgr-bl-str   { color: rgba(255,255,255,.22); }
.cgr-bl-value { font-weight: 600; transition: color .3s ease; }
.cgr-bl-value-active {
  color: color-mix(in srgb, var(--green) 78%, white 8%);
  animation: cgrBlActivePulse 1.4s ease-in-out infinite;
}
@keyframes cgrBlActivePulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.cgr-bl-value-done  { color: var(--green); opacity: 1; animation: none; }
.cgr-bl-value-error { color: rgba(248,113,113,.85); opacity: 1; animation: none; }

.cgr-bl-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  margin-left: 1px;
  background: color-mix(in srgb, var(--green) 55%, transparent);
  vertical-align: text-bottom;
  animation: cgrBlCursorBlink .9s steps(1) infinite;
}
@keyframes cgrBlCursorBlink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .cgr-build { padding: 40px 20px; min-height: auto; }
  .cgr-build-card { padding: 30px 24px; min-height: 380px; }
  .cgr-build-lines { max-width: 100%; white-space: normal; }
  .cgr-bl-line { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .cgr-build-status::before, .cgr-build-glow-flash, .cgr-bl-value-active, .cgr-bl-cursor {
    animation: none !important;
  }
  .cgr-bl-value-active { opacity: 1; }
}

/* Header */
.cgr-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cgr-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 10px;
}
.cgr-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.7px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cgr-prompt-echo {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  font-style: italic;
}
.cgr-hdr-meta {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.cgr-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.cgr-meta-lbl { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; }
.cgr-meta-val { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); }

/* Section layout */
.cgr-section {
  margin-bottom: 56px;
}
.cgr-section-hd {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cgr-section-num {
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--green) 70%, transparent);
  letter-spacing: .08em;
  margin-top: 3px;
  min-width: 24px;
}
.cgr-section-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.cgr-section-sub   { font-size: 13px; color: rgba(255,255,255,.35); margin-top: 3px; }

/* Strategy grid */
.cgr-strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.cgr-strat-block {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 16px;
}
.cgr-strat-lbl { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.cgr-strat-val { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; }

/* Tag rows */
.cgr-tags-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cgr-tags-lbl { font-size: 11px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.cgr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cgr-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
}
.cgr-tag-red   { background: rgba(248,113,113,.08); color: rgba(248,113,113,.85); border-color: rgba(248,113,113,.2); }
.cgr-tag-green { background: rgba(74,222,128,.08);  color: rgba(74,222,128,.9);   border-color: rgba(74,222,128,.2); }
.cgr-tag-blue  { background: rgba(96,165,250,.08);  color: rgba(96,165,250,.85);  border-color: rgba(96,165,250,.2); }

/* Concept tabs */
.cgr-concept-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.cgr-ctab {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 180px;
  text-align: left;
}
.cgr-ctab:hover { background: rgba(255,255,255,.07); }
.cgr-ctab-angle { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.cgr-ctab-name  { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }

/* Concept panels */
.cgr-cpanel-hidden { display: none; }
.cgr-cpanel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cgr-cpanel-left, .cgr-cpanel-right {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cgr-cpanel-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 9px;
  align-self: flex-start;
}
.cgr-cpanel-hook { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.4px; line-height: 1.25; }
.cgr-cpanel-field { display: flex; flex-direction: column; gap: 4px; }
.cgr-cpanel-lbl { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; }
.cgr-cpanel-val { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.55; }
.cgr-cpanel-headline { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.cgr-cpanel-cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--green);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: .02em;
  margin-top: auto;
}
.cgr-cpanel-chips { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.cgr-chip-group { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cgr-chip-lbl { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; width: 100%; }
.cgr-chip { font-size: 11px; padding: 3px 8px; border-radius: 20px; border: 1px solid; }
.cgr-chip-g { background: rgba(74,222,128,.08); color: rgba(74,222,128,.85); border-color: rgba(74,222,128,.2); }
.cgr-chip-r { background: rgba(248,113,113,.08); color: rgba(248,113,113,.85); border-color: rgba(248,113,113,.2); }
.cgr-chip-b { background: rgba(96,165,250,.08); color: rgba(96,165,250,.85); border-color: rgba(96,165,250,.2); }
.cgr-chip-p { background: rgba(168,85,247,.08); color: rgba(168,85,247,.85); border-color: rgba(168,85,247,.2); }

/* Platform tabs */
.cgr-plat-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.cgr-plat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.cgr-plat-tab:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.cgr-plat-tab.active { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green); }

/* Asset blocks */
.cgr-plat-panel { display: flex; flex-direction: column; gap: 16px; }
.cgr-asset-block {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 18px 20px;
}
.cgr-asset-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cgr-asset-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); }
.cgr-asset-count { font-size: 11px; color: rgba(255,255,255,.25); }
.cgr-asset-badge { font-size: 10px; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent); border-radius: 5px; padding: 2px 7px; font-weight: 600; letter-spacing: .05em; }
.cgr-asset-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cgr-headlines-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.cgr-hl-chip {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: all .15s;
}
.cgr-hl-chip:hover { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green); }

.cgr-descriptions { display: flex; flex-direction: column; gap: 8px; }
.cgr-desc-item {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
  line-height: 1.5;
}
.cgr-desc-item:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }

.cgr-kw-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cgr-kw-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: all .15s;
}
.cgr-kw-chip:hover { background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 25%, transparent); color: color-mix(in srgb, var(--green) 85%, transparent); }

.cgr-prose { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.65; }
.cgr-prose-lg { font-size: 14px; }
.cgr-prose-bold { font-size: 16px; font-weight: 700; color: #fff; }
.cgr-list-items { display: flex; flex-direction: column; gap: 7px; }
.cgr-list-item {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding: 8px 12px;
  background: rgba(255,255,255,.025);
  border-left: 2px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}
.cgr-script {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  white-space: pre-wrap;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

/* Visual concepts */
.cgr-visual-grid { display: flex; flex-direction: column; gap: 16px; }
.cgr-vis-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
}
.cgr-vis-hd {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cgr-vis-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 9px;
  margin-bottom: 10px;
}
.cgr-vis-concept { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.5; }
.cgr-vis-dir { display: flex; flex-wrap: wrap; gap: 0; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.05); }
.cgr-vis-dir-row { width: 33.333%; padding: 7px 0; display: flex; flex-direction: column; gap: 3px; }
.cgr-vis-dir-lbl { font-size: 10px; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .06em; }
.cgr-vis-dir-val { font-size: 12px; color: rgba(255,255,255,.6); }
.cgr-vis-prompts { padding: 18px 22px; }
.cgr-vis-prompts-hd { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.cgr-vis-prompt {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.cgr-vis-prompt:last-child { margin-bottom: 0; }
.cgr-vis-prompt:hover { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.cgr-vis-prompt-n { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--green) 60%, transparent); min-width: 14px; margin-top: 2px; }
.cgr-vis-prompt-txt { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* Performance prediction */
.cgr-perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cgr-perf-scores {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cgr-score-row { display: flex; align-items: center; justify-content: space-between; }
.cgr-score-lbl { font-size: 12px; color: rgba(255,255,255,.4); min-width: 130px; }
.cgr-score-ctr { font-size: 28px; font-weight: 800; color: var(--green); letter-spacing: -.5px; }
.cgr-score-bar-row { display: flex; align-items: center; gap: 12px; }
.cgr-score-track { flex: 1; height: 5px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.cgr-score-fill { height: 100%; border-radius: 3px; transition: width .8s cubic-bezier(.25,.46,.45,.94); }
.cgr-fill-green  { background: #4ade80; }
.cgr-fill-blue   { background: #60a5fa; }
.cgr-fill-lime   { background: var(--green); }
.cgr-score-num { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.cgr-perf-explain {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cgr-perf-potential { display: flex; align-items: center; justify-content: space-between; }
.cgr-perf-lbl { font-size: 12px; color: rgba(255,255,255,.35); }
.cgr-perf-potential-val {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.cgr-pot-high { background: rgba(74,222,128,.12); color: #4ade80; }
.cgr-pot-med  { background: rgba(251,191,36,.12);  color: #fbbf24; }
.cgr-pot-low  { background: rgba(248,113,113,.12); color: #f87171; }
.cgr-perf-text { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; }

/* Error state */
.cgr-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  gap: 16px;
  text-align: center;
}
.cgr-error-ico { font-size: 32px; }
.cgr-error-title { font-size: 18px; font-weight: 700; color: #fff; }
.cgr-error-sub { font-size: 13px; color: rgba(255,255,255,.4); max-width: 360px; }
.cgr-debug-msg {
  background: rgba(255,60,60,.08);
  border: 1px solid rgba(255,60,60,.22);
  border-radius: 8px;
  color: #ff7a7a;
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 16px;
  text-align: left;
  max-width: 520px;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .cgr-wrap { padding: 24px 20px 60px; }
  .cgr-strategy-grid { grid-template-columns: 1fr 1fr; }
  .cgr-tags-row { grid-template-columns: 1fr; }
  .cgr-cpanel-inner { grid-template-columns: 1fr; }
  .cgr-perf-grid { grid-template-columns: 1fr; }
  .cgr-concept-tabs { flex-wrap: wrap; }
  .cgr-asset-row-2 { grid-template-columns: 1fr; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   OVERVIEW v4 — AI-FIRST REDESIGN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ov4 {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* â”€â”€ HERO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov4-hero {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px 56px;
}

.ov4-hero-inner {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ov4-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 26px;
}

.ov4-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 55%, transparent);
  flex-shrink: 0;
}

.ov4-headline {
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}

.ov4-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  margin: 0 0 22px;
  max-width: 480px;
}

.ov4-delivers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 3px;
  margin-bottom: 38px;
}

.ov4-deliver {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255,255,255,.3);
}

.ov4-deliver-sep {
  font-size: 11px;
  color: rgba(255,255,255,.15);
}

/* â”€â”€ INPUT BOX â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov4-input-wrap {
  width: 100%;
  background: rgba(255,255,255,.042);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 18px 18px 13px;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}

.ov4-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  background: rgba(255,255,255,.055);
}

.ov4-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255,255,255,.88);
  font-family: inherit;
  min-height: 64px;
  display: block;
  box-sizing: border-box;
}

.ov4-input::placeholder {
  color: rgba(255,255,255,.22);
}

.ov4-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.065);
  flex-wrap: wrap;
}

.ov4-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

.ov4-hint {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  color: rgba(255,255,255,.45);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
  white-space: nowrap;
}

.ov4-hint:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.18);
}

.ov4-input-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ov4-kbd {
  font-size: 10.5px;
  color: rgba(255,255,255,.2);
  white-space: nowrap;
}

.ov4-generate {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #0a0f00;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 17px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.ov4-generate:hover { background: var(--gm); }
.ov4-generate:active { transform: scale(.97); }

/* â”€â”€ SECTIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov4-section {
  padding: 0 40px 56px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.ov4-section-last { padding-bottom: 88px; }

.ov4-sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.ov4-sh-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ov4-sh-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: -.01em;
}

.ov4-sh-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,.28);
}

.ov4-sh-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .15s;
  white-space: nowrap;
}

.ov4-sh-btn:hover { color: rgba(255,255,255,.65); }

.ov4-ai-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  border-radius: 4px;
  padding: 2px 6px;
  align-self: center;
}

/* â”€â”€ FEATURED CAMPAIGNS GALLERY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov4-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ov4-fc {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}

.ov4-fc:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}

.ov4-fc-vis {
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.ov4-fc-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.ov4-fc-info {
  padding: 10px 12px 12px;
}

.ov4-fc-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov4-fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ov4-fc-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.ov4-pb {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ov4-pb-google { background: rgba(66,133,244,.16); color: #7aadff; }
.ov4-pb-meta   { background: rgba(24,119,242,.16); color: #6da8ff; }
.ov4-pb-tiktok { background: rgba(255,0,80,.14);   color: #ff6b9d; }

.ov4-fc-perf {
  font-size: 10px;
  font-weight: 600;
  color: color-mix(in srgb, var(--green) 65%, transparent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* â”€â”€ RECENT CAMPAIGNS — EMPTY STATE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov4-empty {
  padding: 28px 24px;
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  text-align: center;
}

.ov4-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  margin-bottom: 5px;
}

.ov4-empty-sub {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.65;
}

/* â”€â”€ AI OPPORTUNITIES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov4-opps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ov4-opp {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s, border-color .15s;
  width: 100%;
}

.ov4-opp:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.13);
}

.ov4-opp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ov4-dot-green { background: #4ade80; }
.ov4-dot-warn  { background: #facc15; }
.ov4-dot-red   { background: #f87171; }
.ov4-dot-blue  { background: #60a5fa; }

.ov4-opp-text {
  font-size: 12.5px;
  color: rgba(255,255,255,.52);
  flex: 1;
}

.ov4-opp-arr {
  font-size: 12px;
  color: rgba(255,255,255,.18);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.ov4-opp:hover .ov4-opp-arr {
  color: rgba(255,255,255,.48);
  transform: translateX(2px);
}

.ov4-opp.orv-rec-ghost {
  opacity: .35;
  pointer-events: none;
}

.ov4-opp-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--green) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: color-mix(in srgb, var(--green) 55%, transparent);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background .15s, color .15s;
  box-sizing: border-box;
}

.ov4-opp-connect:hover {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
}

/* â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  .ov4-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .ov4-hero {
    min-height: auto;
    padding: 56px 28px 48px;
  }
}

@media (max-width: 600px) {
  .ov4-headline { font-size: 36px; }
  .ov4-gallery { grid-template-columns: 1fr; }
  .ov4-section { padding-left: 20px; padding-right: 20px; }
  .ov4-hero { padding-left: 20px; padding-right: 20px; }
  .ov4-input-footer { flex-direction: column; align-items: stretch; }
  .ov4-input-right { justify-content: flex-end; }
  .ov4-kbd { display: none; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LANDING PAGE HERO v2 — AI-FIRST REDESIGN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Override existing hero section */
#ov-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  /* safe center: on short/mobile viewports the hero's stacked content
     (headline + subhead + input + hint pills) can be taller than the
     available height. Plain `center` would then center-overflow and clip
     the top of the content out of view/reach; `safe center` falls back to
     start-alignment only in that overflow case, so the top of the hero is
     always fully visible instead of being cut off. No visible change when
     content fits (the common/desktop case) — same centering as before. */
  align-items: safe center;
  justify-content: center;
  overflow: hidden;
  background: #090c10;
  padding: 0;
}

/* Background layer */
.lp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Paints the same grid pattern as #lp-stage directly and opaquely,
     rather than relying on transparency to let #lp-stage's own grid
     show through several empty layers (.lp-hero-bg > .lp-hero-glow /
     .lp-hero-grid, both long since display:none). That multi-layer
     transparent stack was the actual source of the soft green-tinted
     "glow" that kept appearing behind the headline — confirmed by
     bisection (opacity:0 on .lp-hero eliminated it; individually
     hiding its children did not), consistent with gradient dithering
     being visibly amplified by the extra transparent compositing
     layers. Same pattern, same color, just painted once, opaquely. */
  background-color: #07070A;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
}

.lp-hero-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 120%);
  height: 600px;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--green) 6.5%, transparent) 0%,
    color-mix(in srgb, var(--green) 2.5%, transparent) 40%,
    transparent 70%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  /* Redesign v2 — subtle background movement per the request: a slow,
     barely-perceptible drift + breathe, not an obvious moving blob. */
  .lp-hero-glow { animation: ovHeroGlowDrift 14s ease-in-out infinite; }
}
@keyframes ovHeroGlowDrift {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  50%      { transform: translateX(-52%) translateY(-14px) scale(1.05); opacity: .85; }
}

.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
/* This layer duplicates #lp-stage's own global grid (which already paints
   uniformly behind every section, hero included) but with a radial mask
   on top — the mask brightened the grid toward the center, which is
   exactly the soft "glow" that was visible behind the headline. Hidden
   entirely so the hero shows only the one shared, uniform grid — no
   second layer, no vignette, nothing that could read as a glow. */
.lp-hero-grid { display: none !important; }

/* Premium Visual Experience Rebuild — hero field (see index.html's
   .lp-hero-field comment for the full rationale). Base rule below is the
   unconditional FINAL state: every tag at rest, every line fully drawn.
   The scatter->settle / draw-in animation is added only under
   prefers-reduced-motion: no-preference, so a reduced-motion visitor
   never sees anything but the finished, legible field. */
.lp-hero-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lp-hf-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  opacity: .58;
}
.lp-hf-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.32); flex: 0 0 auto; }
.lp-hf-key { color: rgba(182,255,59,.66); }
.lp-hf-key .lp-hf-dot { background: var(--green, #B6FF3B); }
.lp-hf-line { display: inline-block; height: 1px; width: 30px; flex: 0 0 auto; }
.lp-hf-line-r { background: linear-gradient(90deg, rgba(182,255,59,.42), transparent); transform-origin: left center; }
.lp-hf-line-l { background: linear-gradient(270deg, rgba(182,255,59,.42), transparent); transform-origin: right center; }
@media (prefers-reduced-motion: no-preference) {
  .lp-hf-tag { animation: lpHfSettle .9s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
  .lp-hf-line { animation: lpHfDraw .7s cubic-bezier(.5,0,.2,1) both; animation-delay: calc(var(--d, 0s) + .32s); }
}
@keyframes lpHfSettle {
  from { opacity: 0; transform: translate(var(--sx,0), var(--sy,0)) rotate(var(--sr,0deg)); }
  to   { opacity: .58; transform: translate(0,0) rotate(0deg); }
}
@keyframes lpHfDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* Desktop-only flourish, deliberately. Measured directly against the
   real rendered headline at 1024/1280/1366/768/390px: the headline is a
   large display type spanning nearly the full viewport width below
   ~1400px, which leaves no genuine side margin for these tags at any
   width that also fits the subhead/prompt/platform-pill column below
   it without visual collision (confirmed by measuring both boxes at
   each width, not guessed). Rather than force a cramped, collision-prone
   fit, the field is a wide-desktop-only cinematic touch; the headline,
   prompt and CTA are the whole hero everywhere else — exactly the
   "desktop cinematic, mobile simplified" split the brief itself asks
   for, not a responsiveness gap. */
@media (max-width: 1400px) {
  .lp-hero-field { display: none; }
}

/* Flex container */
.lp-hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: safe center; /* see #ov-hero above — same overflow-clip guard */
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 112px 40px 80px;
  box-sizing: border-box;
}

/* Content column */
.lp-hero-inner {
  width: 100%;
  max-width: 900px; /* Redesign: was 760px */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Eyebrow */
.lp-hero-eyebrow {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.38) !important;
  margin-bottom: 28px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.lp-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 65%, transparent);
  flex-shrink: 0;
}

/* Headline */
#ov-hero .ov-h1 {
  font-size: clamp(52px, 7vw, 84px) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -.032em !important;
  color: #fff !important;
  margin: 0 0 20px !important;
  text-wrap: balance;
}

/* Subheadline */
#ov-hero .ov-hero-desc {
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,.46) !important;
  margin: 0 0 22px !important;
  max-width: 520px;
}

/* Deliverables pills row */
.lp-hero-delivers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  margin-bottom: 40px;
}

.lp-hero-delivers span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.28);
}

.lp-del-sep {
  color: rgba(255,255,255,.14) !important;
}

/* â”€â”€ MAIN INPUT BOX â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp-hero-input-wrap {
  width: 100%;
  background: rgba(255,255,255,.044);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 20px 20px 14px;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
  margin-bottom: 28px;
}

.lp-hero-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  background: rgba(255,255,255,.058);
}

.lp-hero-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  font-family: inherit;
  min-height: 74px;
  display: block;
  box-sizing: border-box;
}

.lp-hero-input::placeholder {
  color: rgba(255,255,255,.2);
}

.lp-hero-input-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Redesign: was space-between — the example-category hints that used to sit on the left are gone */
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: none; /* Polish: input box is one continuous surface, no center divider */
  flex-wrap: wrap;
}

.lp-hero-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.lp-hero-hint {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  color: rgba(255,255,255,.44);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 11px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
  white-space: nowrap;
}

.lp-hero-hint:hover {
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.2);
}

.lp-hero-input-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lp-hero-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #0a0f00;
  border: none;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.lp-hero-btn:hover {
  background: var(--gm);
  box-shadow: 0 0 22px color-mix(in srgb, var(--green) 32%, transparent);
}

.lp-hero-btn:active { transform: scale(.97); }

/* Shake animation for empty submit */
@keyframes lp-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.lp-hero-input-shake {
  animation: lp-shake 0.35s ease;
}

/* Platform pills row */
.lp-hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Marketing/Pricing Redesign — hero secondary CTA */
.lp-hero-secondary-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}
.lp-hero-secondary-cta:hover { color: var(--green); }

/* â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 760px) {
  .lp-hero {
    padding: 96px 20px 60px;
  }
  #ov-hero .ov-h1 {
    font-size: 44px !important;
  }
  .lp-hero-input-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-hero-input-right {
    justify-content: flex-end;
  }
  .lp-hero-glow {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #ov-hero .ov-h1 { font-size: 38px !important; }
  .lp-hero { padding: 88px 16px 56px; }
}

/* ═══════════════════════════════════════════════════════════
   OVERVIEW PROMPT — TOOL BUTTONS + ASSETS STRIP
   ═══════════════════════════════════════════════════════════ */

.ov3-footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.ov3-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 20px;
  color: rgba(0,0,0,.55);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform var(--orv-t-fast);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.ov3-tool-btn:hover {
  background: rgba(0,0,0,.06);
  color: var(--charcoal, #18181A);
  border-color: rgba(0,0,0,.18);
  transform: translateY(var(--orv-lift-sm));
}
/* Oriven 1.0 (V10 light-mode fix) — was dark-only (no light base, no
   body.dark-mode gate at all), invisible/inconsistent in light mode;
   same defect class fixed in .orv-hub-tab/.prf-ptab etc. two turns ago. */
body.dark-mode .ov3-tool-btn { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.44); }
body.dark-mode .ov3-tool-btn:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.ov3-tool-btn-active {
  background: color-mix(in srgb, var(--green) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 35%, transparent) !important;
  color: var(--green-text) !important;
}
body.dark-mode .ov3-tool-btn-active { color: var(--green) !important; }
.ov3-tool-btn-active:hover {
  background: color-mix(in srgb, var(--green) 15%, transparent) !important;
}

/* ── Create URL Workflows (Final Create Enhancement pass) — Your Page /
   Reference Ad input row + result chip. Same compact visual language as
   Research's own URL-attach control, but theme-aware (light default +
   body.dark-mode override) like every other .ov3-tool-btn/.cr2-* control
   in this composer, rather than Research's .rsc-url-* classes, which are
   hardcoded white-on-dark because Research's canvas is deliberately
   always-dark regardless of site theme (.rsc-canvas) -- Create's composer
   is not. ── */
.cr2-url-input-row { display: flex; gap: 8px; margin-top: 10px; }
.cr2-url-input {
  min-width: 220px; flex: 1; background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.12);
  border-radius: 9px; padding: 8px 12px; font-size: 12.5px; color: var(--charcoal, #18181A);
  font-family: inherit; transition: border-color .15s ease;
}
.cr2-url-input::placeholder { color: rgba(0,0,0,.32); }
.cr2-url-input:focus { outline: none; border-color: var(--green); }
body.dark-mode .cr2-url-input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.92); }
body.dark-mode .cr2-url-input::placeholder { color: rgba(255,255,255,.32); }
.cr2-url-add-btn {
  font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 700; color: #0E0E10;
  background: var(--green); border: none; border-radius: 9px; padding: 0 14px;
  transition: opacity .15s ease;
}
.cr2-url-add-btn:hover { opacity: .88; }
.cr2-url-add-btn:disabled { opacity: .5; cursor: default; }
.cr2-url-error { font-size: 11.5px; color: #dc2626; margin: 6px 0 0; }
body.dark-mode .cr2-url-error { color: #f87171; }

.cr2-url-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cr2-url-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--charcoal, #18181A);
  background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.1); border-radius: 100px; padding: 4px 6px 4px 12px;
}
body.dark-mode .cr2-url-chip { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.cr2-url-chip-domain { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr2-url-chip-remove {
  font-family: inherit; cursor: pointer; font-size: 14px; line-height: 1; color: rgba(0,0,0,.45);
  background: rgba(0,0,0,.06); border: none; border-radius: 50%; width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
body.dark-mode .cr2-url-chip-remove { color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.cr2-url-chip-remove:hover { background: rgba(255,80,80,.25); color: #fff; }
.cr2-url-chip-remove:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
@media (max-width: 640px) {
  .cr2-url-input-row { flex-direction: column; }
  .cr2-url-input { min-width: 0; }
  .cr2-url-add-btn { align-self: stretch; padding: 8px 14px; }
}

/* ── Ad → Your Brand (evolves the original Reference Ad URL chip into an
   explicit reference-analysis-adaptation workflow). Theme-aware (light
   default + body.dark-mode override), same restrained visual language as
   the rest of Create's composer -- flat surfaces, thin borders, the
   existing Electric Lime accent, no gradients, no glow, no particles. ── */
.cr2-ayb-panel {
  margin-top: 10px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.09); background: rgba(0,0,0,.02);
}
body.dark-mode .cr2-ayb-panel { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }

.cr2-ayb-desc { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: rgba(0,0,0,.55); max-width: 46em; }
body.dark-mode .cr2-ayb-desc { color: rgba(255,255,255,.5); }

.cr2-ayb-method { display: inline-flex; align-items: center; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 3px; gap: 2px; margin-bottom: 10px; }
body.dark-mode .cr2-ayb-method { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.cr2-ayb-method-btn {
  padding: 5px 13px; font-size: 12px; font-weight: 500; color: rgba(0,0,0,.5);
  background: transparent; border: none; border-radius: 6px; cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s; white-space: nowrap; font-family: inherit;
}
.cr2-ayb-method-btn:hover { color: var(--charcoal, #18181A); background: rgba(0,0,0,.04); }
.cr2-ayb-method-btn.active { color: var(--charcoal, #18181A); font-weight: 600; background: rgba(0,0,0,.08); box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--green) 55%, transparent); }
body.dark-mode .cr2-ayb-method-btn { color: rgba(255,255,255,.5); }
body.dark-mode .cr2-ayb-method-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
body.dark-mode .cr2-ayb-method-btn.active { color: #fff; background: rgba(255,255,255,.12); }

.cr2-ayb-upload-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr2-ayb-upload-label { cursor: pointer; display: inline-flex; align-items: center; }
.cr2-ayb-filename { font-size: 12px; color: rgba(0,0,0,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
body.dark-mode .cr2-ayb-filename { color: rgba(255,255,255,.5); }

.cr2-ayb-loading { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--green-text, #4c7a00); }
body.dark-mode .cr2-ayb-loading { color: var(--green); }

/* Stage indicator — REFERENCE → ANALYZE → YOUR BRAND. Text/dot based, no
   fake percentages, no looping animation; a plain state readout that
   only ever appears once a real analysis has actually completed. */
.cr2-ayb-stages { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.cr2-ayb-stage {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; color: rgba(0,0,0,.4); background: rgba(0,0,0,.05);
}
.cr2-ayb-stage-done { color: var(--green-text, #4c7a00); background: color-mix(in srgb, var(--green) 14%, transparent); }
.cr2-ayb-stage-active { color: #0E0E10; background: var(--green); }
.cr2-ayb-stage-arrow { color: rgba(0,0,0,.25); font-size: 11px; }
body.dark-mode .cr2-ayb-stage { color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
body.dark-mode .cr2-ayb-stage-done { color: var(--green); background: color-mix(in srgb, var(--green) 16%, transparent); }
/* Bug found during visual verification: the generic body.dark-mode
   .cr2-ayb-stage rule above has higher specificity than the theme-
   independent base .cr2-ayb-stage-active rule (0,1,0), so in dark mode it
   was silently winning and flattening the "Your Brand" active stage pill
   back to the plain neutral look, identical to an unstyled stage. This
   explicit override restores the intended solid-lime active treatment in
   dark mode (same colors as the light-mode base rule — deliberately
   theme-independent, matching how .ov3-tool-btn-active's solid states
   are handled elsewhere on this page). */
body.dark-mode .cr2-ayb-stage-active { color: #0E0E10; background: var(--green); }
body.dark-mode .cr2-ayb-stage-arrow { color: rgba(255,255,255,.25); }

/* Extracted principles — each a labeled checkbox row so the user can
   deselect what they don't want carried forward (opt-out, all on by
   default). Deselected rows dim, never disappear, so the choice stays
   visible and reversible. */
.cr2-ayb-principles { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.cr2-ayb-principle-row {
  display: flex; align-items: baseline; gap: 8px; padding: 6px 4px; border-radius: 7px;
  cursor: pointer; transition: background .15s, opacity .15s;
}
.cr2-ayb-principle-row:hover { background: rgba(0,0,0,.03); }
body.dark-mode .cr2-ayb-principle-row:hover { background: rgba(255,255,255,.04); }
.cr2-ayb-principle-row input[type="checkbox"] { flex-shrink: 0; accent-color: var(--green); width: 14px; height: 14px; margin-top: 2px; cursor: pointer; }
.cr2-ayb-principle-off { opacity: .42; }
.cr2-ayb-principle-label { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: rgba(0,0,0,.45); min-width: 108px; text-transform: uppercase; letter-spacing: .02em; }
body.dark-mode .cr2-ayb-principle-label { color: rgba(255,255,255,.42); }
.cr2-ayb-principle-val { font-size: 13px; color: var(--charcoal, #18181A); line-height: 1.4; }
body.dark-mode .cr2-ayb-principle-val { color: rgba(255,255,255,.88); }

/* Adapt-for-your-brand mini grid — read-only, real ORIVEN context only. */
.cr2-ayb-adapt { margin-bottom: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }
body.dark-mode .cr2-ayb-adapt { border-top-color: rgba(255,255,255,.09); }
.cr2-ayb-adapt-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(0,0,0,.4); margin-bottom: 8px; }
body.dark-mode .cr2-ayb-adapt-title { color: rgba(255,255,255,.4); }
.cr2-ayb-adapt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; }
.cr2-ayb-adapt-row { display: flex; flex-direction: column; gap: 1px; }
.cr2-ayb-adapt-lbl { font-size: 10.5px; font-weight: 600; color: rgba(0,0,0,.4); }
body.dark-mode .cr2-ayb-adapt-lbl { color: rgba(255,255,255,.4); }
.cr2-ayb-adapt-val { font-size: 12.5px; color: var(--charcoal, #18181A); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dark-mode .cr2-ayb-adapt-val { color: rgba(255,255,255,.85); }
.cr2-ayb-adapt-empty { color: rgba(0,0,0,.32); font-style: italic; }
body.dark-mode .cr2-ayb-adapt-empty { color: rgba(255,255,255,.32); }

.cr2-ayb-notes-wrap { margin-bottom: 14px; }
.cr2-ayb-notes-label { display: block; font-size: 11.5px; font-weight: 600; color: rgba(0,0,0,.55); margin-bottom: 5px; }
body.dark-mode .cr2-ayb-notes-label { color: rgba(255,255,255,.55); }
.cr2-ayb-notes {
  width: 100%; min-height: 46px; resize: vertical; font-family: inherit; font-size: 12.5px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.02);
  color: var(--charcoal, #18181A); box-sizing: border-box;
}
.cr2-ayb-notes::placeholder { color: rgba(0,0,0,.32); }
.cr2-ayb-notes:focus { outline: none; border-color: var(--green); }
body.dark-mode .cr2-ayb-notes { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.92); }
body.dark-mode .cr2-ayb-notes::placeholder { color: rgba(255,255,255,.3); }

.cr2-ayb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cr2-ayb-confirm-btn {
  font-family: inherit; cursor: pointer; font-size: 13px; font-weight: 700; color: #0E0E10;
  background: var(--green); border: none; border-radius: 9px; padding: 9px 18px;
  transition: opacity .15s, transform .15s;
}
.cr2-ayb-confirm-btn:hover { opacity: .9; transform: translateY(-1px); }
.cr2-ayb-discard-btn {
  font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: rgba(0,0,0,.5);
  background: transparent; border: 1px solid rgba(0,0,0,.12); border-radius: 9px; padding: 8px 14px;
  transition: color .15s, border-color .15s;
}
.cr2-ayb-discard-btn:hover { color: var(--charcoal, #18181A); border-color: rgba(0,0,0,.25); }
body.dark-mode .cr2-ayb-discard-btn { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.14); }
body.dark-mode .cr2-ayb-discard-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.cr2-ayb-confirmed { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .cr2-ayb-confirm-btn, .cr2-ayb-principle-row, .cr2-ayb-panel { transition: none !important; }
  .cr2-ayb-confirm-btn:hover { transform: none; }
}

@media (max-width: 640px) {
  .cr2-ayb-panel { padding: 12px; }
  .cr2-ayb-principle-row { flex-direction: column; gap: 2px; }
  .cr2-ayb-principle-label { min-width: 0; }
  .cr2-ayb-adapt-grid { grid-template-columns: 1fr 1fr; }
  .cr2-ayb-actions { flex-direction: column; align-items: stretch; }
  .cr2-ayb-confirm-btn, .cr2-ayb-discard-btn { text-align: center; }
}

/* Green dot for active Brand Brain */
.ov3-brain-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px color-mix(in srgb, var(--green) 70%, transparent);
}

/* Asset count badge */
.ov3-asset-count {
  background: var(--green);
  color: #0a0f00;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  min-width: 16px;
  text-align: center;
}

/* Product images strip */
.ov3-assets-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}
body.dark-mode .ov3-assets-strip { border-bottom-color: rgba(255,255,255,.07); }
/* Attach Product's strip gets a distinct accent (vs Attach Image's plain
   thumbnails) so it's visually obvious these are reference material, not
   the finished ad creative -- reuses the existing accent color, not a new
   arbitrary one. */
.ov3-assets-strip-product .ov3-asset-thumb { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.ov3-asset-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.ov3-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ov3-asset-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  border: none;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity .15s;
}
.ov3-asset-thumb:hover .ov3-asset-rm { opacity: 1; }
.ov3-asset-add {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px dashed rgba(255,255,255,.2);
  color: rgba(255,255,255,.3);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.ov3-asset-add:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }


/* ═══════════════════════════════════════════════════════════
   BRAND BRAIN MODAL
   ═══════════════════════════════════════════════════════════ */

.bbm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.bbm-panel {
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  background: #111318;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
}

/* Header */
.bbm-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.bbm-hd-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bbm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.bbm-hd-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.bbm-hd-sub {
  font-size: 12px;
  color: rgba(255,255,255,.36);
  margin-top: 2px;
}
.bbm-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.bbm-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Scrollable body */
.bbm-body {
  overflow-y: auto;
  padding: 22px 24px;
  flex: 1;
}
.bbm-body::-webkit-scrollbar { width: 4px; }
.bbm-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

/* Grid layout */
.bbm-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bbm-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bbm-row-2 {
  flex-direction: row;
  gap: 14px;
}
.bbm-row-2 .bbm-field { flex: 1; min-width: 0; }

/* Field */
.bbm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bbm-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.bbm-lbl-hint {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.28);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.bbm-input,
.bbm-textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.88);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  padding: 10px 13px;
  box-sizing: border-box;
  resize: none;
  outline: none;
  transition: border-color .15s, background .15s;
}
.bbm-input:focus,
.bbm-textarea:focus {
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  background: rgba(255,255,255,.07);
}
.bbm-input::placeholder,
.bbm-textarea::placeholder { color: rgba(255,255,255,.2); }
.bbm-textarea-sm { font-size: 12.5px; }

/* Footer */
.bbm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  gap: 12px;
}
.bbm-footer-left { flex: 1; }
.bbm-footer-right { display: flex; align-items: center; gap: 8px; }
.bbm-status {
  font-size: 12px;
  font-weight: 500;
  min-height: 16px;
}
.bbm-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: rgba(255,255,255,.44);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bbm-btn-ghost:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.bbm-btn-save {
  background: var(--green);
  border: none;
  border-radius: 9px;
  color: #0a0f00;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: -.01em;
}
.bbm-btn-save:hover { background: var(--gm); box-shadow: 0 0 18px color-mix(in srgb, var(--green) 28%, transparent); }
.bbm-btn-save:active { transform: scale(.97); }
.bbm-btn-save:disabled { opacity: .6; cursor: not-allowed; transform: none; }

@media (max-width: 580px) {
  .bbm-panel { border-radius: 14px; }
  .bbm-row-2 { flex-direction: column; }
  .bbm-hd, .bbm-body, .bbm-footer { padding-left: 16px; padding-right: 16px; }
}


/* ═══════════════════════════════════════════════════════════
   CAMPAIGN RESULTS — SECTION 06: GENERATED AD CREATIVES
   ═══════════════════════════════════════════════════════════ */

.cgr-creatives-section .cgr-section-hd {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.cgr-creatives-pill {
  margin-left: auto;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  flex-shrink: 0;
  align-self: center;
}
.cgr-creatives-pill-loading {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: color-mix(in srgb, var(--green) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  animation: cgr-pill-pulse 1.4s ease-in-out infinite;
}
.cgr-creatives-pill-done {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
@keyframes cgr-pill-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* Cards grid */
.cgr-creatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cgr-creative-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .2s, transform .2s;
}
.cgr-creative-card:hover {
  border-color: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

/* Skeleton loading state */
.cgr-creative-skel-card {
  background: rgba(255,255,255,.03);
}
.cgr-creative-skel-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: cgr-skel-shine 1.6s ease-in-out infinite;
}
@keyframes cgr-skel-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loaded image */
.cgr-creative-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}
.cgr-creative-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.cgr-creative-card:hover .cgr-creative-img { transform: scale(1.03); }

/* Card info area */
.cgr-creative-card-body {
  padding: 12px 14px 14px;
}
.cgr-creative-ref {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
/* PMax asset-variant ratio label (e.g. "· 1.91:1") -- lighter weight than
   the main ref label so the aspect ratio reads as metadata, not a title. */
.cgr-creative-ratio { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .8; }
.cgr-creative-gen-label {
  font-size: 12px;
  color: rgba(255,255,255,.28);
  animation: cgr-pill-pulse 1.4s ease-in-out infinite;
}

/* Action buttons row */
.cgr-creative-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cgr-crv-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: rgba(255,255,255,.55);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.cgr-crv-btn:hover {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
}

/* Error state */
.cgr-creative-err-card {
  min-height: 120px;
  display: flex;
  align-items: center;
}
.cgr-creative-err-msg {
  font-size: 11.5px;
  color: rgba(255,100,100,.6);
  margin-bottom: 10px;
  line-height: 1.4;
}



/* â•”â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•—
   â•‘  ORIVEN V2 — COMPLETE VISUAL REDESIGN                          â•‘
   â•‘  AI Campaign Operating System                                   â•‘
   â•šâ•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ V2 TOKENS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode {
  --bg:    #070707 !important;
  --bg2:   #0f0f0f !important;
  --bg3:   #181818 !important;
  --surface: #0b0b0b !important;
  --sf2:   #111111 !important;
  --border: rgba(255,255,255,.06) !important;
  --b2:    rgba(255,255,255,.10) !important;
  --charcoal: #f2f2f2 !important;
  --c2: rgba(255,255,255,.75) !important;
  --muted: rgba(255,255,255,.38) !important;
  --m2:    rgba(255,255,255,.22) !important;
  --sh:    0 1px 3px rgba(0,0,0,.5) !important;
  --shm:   0 2px 12px rgba(0,0,0,.6), 0 8px 32px rgba(0,0,0,.4) !important;
  --shl:   0 16px 56px rgba(0,0,0,.7) !important;
}

/* â”€â”€â”€ FONT OVERRIDE — kill serif everywhere â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body,
.modal-ttl, .glov h3, .logo-name, .dash-headline, .cgr-title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
}

/* â”€â”€â”€ GLOBAL SURFACE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode {
  background: #070707 !important;
}

/* â”€â”€â”€ SCROLLBARS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode ::-webkit-scrollbar-track { background: transparent; }
body.dark-mode ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* ROOT CAUSE of "sidebar width never visibly changes": this compound
   selector (body.dark-mode .orv-sb) has higher specificity than the plain
   .orv-sb rule above, so its own !important width (200px, then 176px in
   the "V2 NAV ADJUSTMENTS" block further below) silently won over every
   previous width edit whenever the app was in dark mode -- completely
   independent of what the base rule said. Width aligned to the shared
   280px target. Background is near-black and only subtly lighter than
   .mc's own near-black (#070707) -- deliberately close, not a strong
   color contrast; the border below is what actually delineates the two. */
body.dark-mode .orv-sb {
  background: #0B0B0C !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  width: 280px !important;
  min-width: 280px !important;
}

body.dark-mode .orv-sb-logo {
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  padding: 14px 12px 12px !important;
}
body.dark-mode .orv-sb-logo-img {
  width: 40px !important; height: 40px !important;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--green) 40%, transparent));
}
body.dark-mode .orv-sb-logo-name {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
  color: #fff !important;
  text-transform: uppercase !important;
}

body.dark-mode .orv-ni {
  color: rgba(255,255,255,.32) !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 10px !important;
  gap: 10px !important;
  transition: background var(--orv-t, .16s), color var(--orv-t, .16s) !important;
  margin-bottom: 1px !important;
}
body.dark-mode .orv-ni:hover {
  background: color-mix(in srgb, var(--green) 9%, transparent) !important;
  color: rgba(255,255,255,.75) !important;
}
body.dark-mode .orv-ni.orv-active {
  background: color-mix(in srgb, var(--green) 12%, transparent) !important;
  color: var(--green) !important;
  font-weight: 600 !important;
}
body.dark-mode .orv-ni.orv-active svg {
  stroke: var(--green) !important;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--green) 50%, transparent));
}
body.dark-mode .orv-ni svg {
  width: 15px !important; height: 15px !important;
  stroke-width: 1.6 !important;
  transition: opacity var(--orv-t, .16s), transform var(--orv-t, .16s) !important;
}
/* Navbar icon right-shift fix (UX polish pass): this rule used to read
   `transform: translateX(1.5px)` -- a leftover hover-nudge affordance
   from before the per-icon Icon Motion System (Create/Research/Launch/
   Campaigns/Autopilot/Business, further up this file) existed. Each of
   those now plays its own one-shot keyframe `animation` on hover, and a
   CSS animation always outranks a plain declaration WHILE it plays --
   but none of them set `animation-fill-mode: forwards`, so the instant
   each animation finishes (while the cursor is very likely still over
   the ~15px icon), the element's `transform` falls back to whatever the
   normal cascade says for `:hover` -- which was this rule, snapping
   every icon 1.5px right for the rest of the hover. That snap is
   exactly the reported "icon shifts right after the animation runs"
   bug. Settings was never affected only because its own higher-
   specificity `#orvNavSettingsBtn:hover svg { transform: rotate(18deg) }`
   rule already out-ranks this one; Add Platforms was never affected
   because its icon isn't an <svg> at all. Removed rather than
   compensated for -- there is no icon left that still needs a bare
   hover nudge now that every icon has its own real motion. */

body.dark-mode .orv-sb-bottom {
  border-top: 1px solid rgba(255,255,255,.05) !important;
}
body.dark-mode .orv-sb-user {
  border-radius: 10px !important;
  padding: 8px 10px !important;
  cursor: default !important;
}
body.dark-mode .orv-sb-user:hover {
  background: color-mix(in srgb, var(--green) 10%, transparent) !important;
}
body.dark-mode .orv-sb-avatar {
  width: 28px !important; height: 28px !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--green) 12%, transparent) !important;
  color: var(--green) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
}
body.dark-mode .orv-sb-user-name {
  font-size: 12px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.8) !important;
}
body.dark-mode .orv-sb-user-plan {
  font-size: 10px !important; color: rgba(255,255,255,.28) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MAIN CONTENT AREA V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.dark-mode .mc {
  background: #070707 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   OVERVIEW / CREATE PAGE V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.dark-mode .ov3 {
  background: #070707 !important;
}

body.dark-mode .ov3-hero {
  padding: 72px 48px 48px !important;
  position: relative !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
}
body.dark-mode .ov3-hero::before {
  content: '' !important;
  position: absolute !important;
  top: -80px !important; left: 50% !important;
  transform: translateX(-50%) !important;
  width: 700px !important; height: 500px !important;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--green) 5%, transparent) 0%, transparent 65%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body.dark-mode .ov3-greeting {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.28) !important;
  letter-spacing: .02em !important;
  margin-bottom: 20px !important;
  position: relative !important; z-index: 1 !important;
}

body.dark-mode .ov3-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: color-mix(in srgb, var(--green) 6%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--green) 14%, transparent) !important;
  color: color-mix(in srgb, var(--green) 85%, transparent) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  margin-bottom: 22px !important;
  position: relative !important; z-index: 1 !important;
}
body.dark-mode .ov3-eyebrow-dot {
  width: 6px !important; height: 6px !important;
  background: var(--green) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 80%, transparent) !important;
  animation: v2-dot-pulse 2s ease-in-out infinite !important;
  flex-shrink: 0 !important;
}
@keyframes v2-dot-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px color-mix(in srgb, var(--green) 80%, transparent); }
  50%      { opacity: .5; box-shadow: 0 0 14px color-mix(in srgb, var(--green) 30%, transparent); }
}

body.dark-mode .ov3-headline {
  font-size: clamp(30px, 3.8vw, 50px) !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  line-height: 1.08 !important;
  color: #fff !important;
  font-family: 'Geist', system-ui, sans-serif !important;
  margin-bottom: 16px !important;
  position: relative !important; z-index: 1 !important;
}

body.dark-mode .ov3-hero-sub {
  font-size: 15px !important;
  color: rgba(255,255,255,.35) !important;
  line-height: 1.7 !important;
  max-width: 500px !important;
  margin-bottom: 32px !important;
  position: relative !important; z-index: 1 !important;
}

/* â”€â”€â”€ PROMPT BOX V2 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .ov3-prompt-box {
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  max-width: 720px !important;
  transition: border-color .2s, box-shadow .2s !important;
  box-shadow: 0 4px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04) !important;
  position: relative !important; z-index: 1 !important;
}
body.dark-mode .ov3-prompt-box:focus-within {
  border-color: color-mix(in srgb, var(--green) 22%, transparent) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--green) 8%, transparent), inset 0 0 80px color-mix(in srgb, var(--green) 1.5%, transparent) !important;
}

body.dark-mode .ov3-prompt {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  padding: 20px 22px 14px !important;
  resize: none !important;
  min-height: 88px !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .ov3-prompt::placeholder {
  color: rgba(255,255,255,.18) !important;
}

body.dark-mode .ov3-prompt-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px 14px !important;
  border-top: 1px solid rgba(255,255,255,.05) !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.dark-mode .ov3-footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

body.dark-mode .ov3-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 10px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
  color: rgba(255,255,255,.38) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s, color .15s !important;
  white-space: nowrap !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .ov3-tool-btn:hover {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.65) !important;
}
body.dark-mode .ov3-tool-btn-active,
body.dark-mode .ov3-tool-btn.ov3-tool-btn-active {
  border-color: color-mix(in srgb, var(--green) 28%, transparent) !important;
  color: var(--green) !important;
  background: color-mix(in srgb, var(--green) 7%, transparent) !important;
}
body.dark-mode .ov3-brain-active {
  width: 6px !important; height: 6px !important;
  border-radius: 50% !important;
  background: var(--green) !important;
  box-shadow: 0 0 6px color-mix(in srgb, var(--green) 90%, transparent) !important;
  flex-shrink: 0 !important;
}
body.dark-mode .ov3-asset-count {
  background: color-mix(in srgb, var(--green) 14%, transparent) !important;
  color: var(--green) !important;
  font-size: 10px !important; font-weight: 700 !important;
  border-radius: 10px !important; padding: 1px 6px !important;
}

/* â”€â”€â”€ PLATFORM SELECTOR V2 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ov3-plat-select {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  flex-wrap: wrap !important;
}
.ov3-plat-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 10px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: transparent !important;
  color: rgba(255,255,255,.28) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important;
  white-space: nowrap !important;
}
.ov3-plat-pill:hover {
  background: rgba(255,255,255,.05) !important;
  color: rgba(255,255,255,.55) !important;
  border-color: rgba(255,255,255,.11) !important;
}
.ov3-plat-pill-active {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.13) !important;
  color: rgba(255,255,255,.82) !important;
  font-weight: 600 !important;
}

body.dark-mode .ov3-generate-btn {
  background: var(--green) !important;
  color: #080808 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  gap: 7px !important;
  transition: background .15s, transform .1s, box-shadow .15s !important;
  white-space: nowrap !important;
}
body.dark-mode .ov3-generate-btn:hover {
  background: var(--gm) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--green) 28%, transparent) !important;
}

/* â”€â”€â”€ ASSET STRIP V2 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .ov3-assets-strip {
  padding: 10px 14px 0 !important;
  gap: 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
}
body.dark-mode .ov3-asset-thumb {
  width: 48px !important; height: 48px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  object-fit: cover !important;
}

/* â”€â”€â”€ OVERVIEW SECTIONS V2 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .ov3-section {
  padding: 0 48px 36px !important;
  border-top: 1px solid rgba(255,255,255,.04) !important;
}
body.dark-mode .ov3-section-last { padding-bottom: 60px !important; }

body.dark-mode .ov3-sh {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  padding-top: 28px !important;
}
body.dark-mode .ov3-sh-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.25) !important;
}
body.dark-mode .ov3-sh-btn {
  font-size: 12px !important; color: color-mix(in srgb, var(--green) 60%, transparent) !important;
  background: none !important; border: none !important;
  cursor: pointer !important; font-weight: 500 !important;
  margin-left: auto !important; transition: color .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .ov3-sh-btn:hover { color: var(--green) !important; }

body.dark-mode .ov3-empty {
  text-align: center !important;
  padding: 36px 20px !important;
  border: 1px dashed rgba(255,255,255,.07) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.015) !important;
}
body.dark-mode .ov3-empty-ico {
  width: 44px !important; height: 44px !important;
  background: color-mix(in srgb, var(--green) 7%, transparent) !important;
  border-radius: 12px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; margin: 0 auto 14px !important;
  color: color-mix(in srgb, var(--green) 70%, transparent) !important;
}
body.dark-mode .ov3-empty-title {
  font-size: 14px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.45) !important; margin-bottom: 6px !important;
}
body.dark-mode .ov3-empty-sub {
  font-size: 13px !important; color: rgba(255,255,255,.22) !important;
  line-height: 1.6 !important; max-width: 320px !important; margin: 0 auto !important;
}

body.dark-mode .ov3-insights {
  gap: 5px !important; display: flex !important; flex-direction: column !important;
}
body.dark-mode .ov3-insight {
  display: flex !important; align-items: center !important; gap: 10px !important;
  padding: 10px 14px !important; border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  background: rgba(255,255,255,.02) !important;
  color: rgba(255,255,255,.5) !important; font-size: 13px !important;
  cursor: pointer !important; transition: background .15s, border-color .15s !important;
  text-align: left !important; width: 100% !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .ov3-insight:hover {
  background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.75) !important;
}
body.dark-mode .ov3-ins-dot { width: 7px !important; height: 7px !important; border-radius: 50% !important; flex-shrink: 0 !important; }
body.dark-mode .ov3-dot-green { background: var(--green) !important; box-shadow: 0 0 5px color-mix(in srgb, var(--green) 70%, transparent) !important; }
body.dark-mode .ov3-dot-warn  { background: #FBBF24 !important; }
body.dark-mode .ov3-dot-red   { background: #F87171 !important; }
body.dark-mode .ov3-dot-blue  { background: #60A5FA !important; }
body.dark-mode .ov3-ins-arrow { margin-left: auto !important; color: rgba(255,255,255,.18) !important; }
body.dark-mode .ov3-ins-connect {
  display: flex !important; align-items: center !important; gap: 8px !important;
  padding: 10px 14px !important; border-radius: 10px !important;
  border: 1px dashed color-mix(in srgb, var(--green) 12%, transparent) !important;
  background: color-mix(in srgb, var(--green) 2.5%, transparent) !important;
  color: color-mix(in srgb, var(--green) 45%, transparent) !important; font-size: 12px !important; font-weight: 500 !important;
  cursor: pointer !important; width: 100% !important;
  transition: background .15s, color .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .ov3-ins-connect:hover {
  background: color-mix(in srgb, var(--green) 6%, transparent) !important; color: var(--green) !important;
}

body.dark-mode .ov3-plats-row {
  display: flex !important; gap: 10px !important; flex-wrap: wrap !important;
}
body.dark-mode .ov3-plat-chip {
  display: flex !important; align-items: center !important; gap: 8px !important;
  padding: 10px 14px !important; border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.025) !important;
  cursor: pointer !important; transition: background .15s, border-color .15s !important;
  flex: 1 !important; min-width: 155px !important;
}
body.dark-mode .ov3-plat-chip:hover {
  background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important;
}
body.dark-mode .ov3-plat-name {
  font-size: 13px !important; font-weight: 500 !important; color: rgba(255,255,255,.5) !important;
}
body.dark-mode .ov3-plat-stat {
  font-size: 11px !important; color: rgba(255,255,255,.22) !important; margin-left: auto !important;
}
body.dark-mode .orv-platform-dot { width: 6px !important; height: 6px !important; border-radius: 50% !important; flex-shrink: 0 !important; }
body.dark-mode .orv-platform-dot.disconnected { background: rgba(255,255,255,.14) !important; }
body.dark-mode .orv-platform-dot.connected    { background: var(--green) !important; box-shadow: 0 0 5px color-mix(in srgb, var(--green) 60%, transparent) !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAMPAIGNS PAGE V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.dark-mode .camp-hub {
  /* Global Design System — was 48px bottom padding, the only page whose
     padding changed between light/dark; matched to the shared value so
     switching themes never shifts layout, only colours. */
  padding: var(--orv-content-pad-top) var(--orv-content-pad-x) var(--orv-content-pad-bottom) !important;
  background: #070707 !important;
  min-height: 100% !important;
}
body.dark-mode .camp-hub-hdr {
  display: flex !important; align-items: flex-start !important;
  justify-content: space-between !important;
  margin-bottom: var(--orv-title-gap) !important;
  border-bottom: none !important;
}
body.dark-mode .camp-hub-title {
  font-size: 22px !important; font-weight: 800 !important;
  color: #fff !important; letter-spacing: -.03em !important;
  font-family: 'Geist', system-ui, sans-serif !important; margin-bottom: 5px !important;
}
body.dark-mode .camp-hub-sub {
  font-size: 13px !important; color: rgba(255,255,255,.28) !important;
}
body.dark-mode .camp-new-btn {
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  background: var(--green) !important; color: #070707 !important;
  font-size: 13px !important; font-weight: 700 !important;
  padding: 9px 18px !important; border-radius: 10px !important; border: none !important;
  cursor: pointer !important; transition: background .15s, box-shadow .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important; white-space: nowrap !important;
}
body.dark-mode .camp-new-btn:hover {
  background: var(--gm) !important; box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 22%, transparent) !important;
}
body.dark-mode .camp-new-btn-lg { padding: 11px 24px !important; font-size: 14px !important; }

body.dark-mode .clib-bar {
  display: flex !important; align-items: center !important;
  gap: 12px !important; margin-bottom: 24px !important; flex-wrap: wrap !important;
}
body.dark-mode .clib-tabs {
  display: flex !important; gap: 3px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important; padding: 4px !important;
}
body.dark-mode .clib-tab {
  padding: 7px 14px !important; border-radius: 7px !important;
  font-size: 12.5px !important; font-weight: 500 !important;
  color: rgba(255,255,255,.3) !important; border: none !important;
  background: transparent !important; cursor: pointer !important;
  transition: background .15s, color .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important; white-space: nowrap !important;
}
body.dark-mode .clib-tab:hover { color: rgba(255,255,255,.6) !important; }
body.dark-mode .clib-tab.clib-tab-on {
  background: rgba(255,255,255,.08) !important; color: #fff !important; font-weight: 600 !important;
}
body.dark-mode .clib-search-wrap {
  display: flex !important; align-items: center !important; gap: 8px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 9px !important; padding: 7px 12px !important;
  flex: 1 !important; min-width: 180px !important; max-width: 300px !important;
}
body.dark-mode .clib-search-ico { color: rgba(255,255,255,.22) !important; flex-shrink: 0 !important; }
body.dark-mode .clib-search {
  background: transparent !important; border: none !important; outline: none !important;
  color: rgba(255,255,255,.72) !important; font-size: 13px !important;
  font-family: 'Geist', system-ui, sans-serif !important; width: 100% !important;
}
body.dark-mode .clib-search::placeholder { color: rgba(255,255,255,.18) !important; }

body.dark-mode .camp-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
  gap: 14px !important;
}
body.dark-mode .camp-hub-sect-hd {
  font-size: 10.5px !important; font-weight: 600 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; color: rgba(255,255,255,.2) !important;
  margin-bottom: 14px !important;
}
body.dark-mode .camp-card {
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 14px !important; padding: 18px !important;
  transition: border-color .2s, transform .2s, box-shadow .2s !important;
  cursor: pointer !important;
}
body.dark-mode .camp-card:hover {
  border-color: rgba(255,255,255,.13) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.4) !important;
}
body.dark-mode .camp-card-name {
  font-size: 14px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.82) !important; margin-bottom: 6px !important; line-height: 1.4 !important;
}
body.dark-mode .camp-card-meta {
  font-size: 12px !important; color: rgba(255,255,255,.28) !important;
  display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important;
}
body.dark-mode .camp-hub-empty {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  text-align: center !important; padding: 80px 32px !important; min-height: 400px !important;
}
body.dark-mode .camp-hub-empty-ico {
  width: 60px !important; height: 60px !important;
  background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 16px !important; display: flex !important;
  align-items: center !important; justify-content: center !important;
  color: rgba(255,255,255,.18) !important; margin-bottom: 20px !important;
}
body.dark-mode .camp-hub-empty-title {
  font-size: 18px !important; font-weight: 700 !important;
  color: rgba(255,255,255,.5) !important; margin-bottom: 10px !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .camp-hub-empty-sub {
  font-size: 14px !important; color: rgba(255,255,255,.22) !important;
  line-height: 1.7 !important; max-width: 380px !important; margin-bottom: 28px !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAMPAIGN RESULTS V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.dark-mode .cgr-wrap {
  background: #070707 !important; padding: 0 0 60px !important; min-height: 100% !important;
}
body.dark-mode .cgr-back {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; padding: 18px 40px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  background: rgba(7,7,7,.9) !important; position: sticky !important;
  top: 0 !important; z-index: 10 !important;
  backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
}
body.dark-mode .cgr-back-btn {
  display: flex !important; align-items: center !important; gap: 7px !important;
  color: rgba(255,255,255,.35) !important; font-size: 13px !important; font-weight: 500 !important;
  background: none !important; border: none !important; cursor: pointer !important;
  transition: color .15s !important; font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr-back-btn:hover { color: rgba(255,255,255,.7) !important; }
body.dark-mode .cgr-back-actions { display: flex !important; gap: 8px !important; }
body.dark-mode .cgr-action-btn {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  padding: 7px 14px !important; border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,.45) !important; font-size: 12px !important; font-weight: 500 !important;
  cursor: pointer !important; transition: background .15s, color .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr-action-btn:hover { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.8) !important; }
body.dark-mode .cgr-action-btn-primary {
  background: color-mix(in srgb, var(--green) 9%, transparent) !important; border-color: color-mix(in srgb, var(--green) 18%, transparent) !important;
  color: color-mix(in srgb, var(--green) 85%, transparent) !important;
}
body.dark-mode .cgr-action-btn-primary:hover { background: color-mix(in srgb, var(--green) 14%, transparent) !important; color: var(--green) !important; }

/* .cgr-build is deliberately committed to one dark aesthetic (see its
   own rules above) — no body.dark-mode variant needed. Only the
   completion hide-toggle still needs to win regardless of theme. */
.cgr-loading--done { display: none !important; }

body.dark-mode .cgr-hdr {
  padding: 40px 40px 28px !important; display: flex !important;
  align-items: flex-start !important; justify-content: space-between !important;
  flex-wrap: wrap !important; gap: 20px !important;
}
body.dark-mode .cgr-hdr-left { flex: 1 !important; }
body.dark-mode .cgr-hdr-right { display: flex !important; align-items: center !important; gap: 14px !important; }
body.dark-mode .cgr-badge {
  display: inline-flex !important; align-items: center !important;
  padding: 4px 10px !important; border-radius: 6px !important;
  font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .08em !important;
  text-transform: uppercase !important;
  background: color-mix(in srgb, var(--green) 9%, transparent) !important; color: color-mix(in srgb, var(--green) 85%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent) !important; margin-bottom: 12px !important;
}
body.dark-mode .cgr-title {
  font-size: 26px !important; font-weight: 800 !important;
  color: #fff !important; letter-spacing: -.025em !important; line-height: 1.2 !important;
  margin-bottom: 8px !important; font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr-prompt-echo { font-size: 13px !important; color: rgba(255,255,255,.28) !important; }
body.dark-mode .cgr-meta-item { display: flex !important; flex-direction: column !important; gap: 3px !important; }
body.dark-mode .cgr-meta-lbl {
  font-size: 10px !important; font-weight: 600 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; color: rgba(255,255,255,.22) !important;
}
body.dark-mode .cgr-meta-val { font-size: 13px !important; font-weight: 600 !important; color: rgba(255,255,255,.65) !important; }
body.dark-mode .cgr-publish-btn {
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  background: var(--green) !important; color: #080808 !important; font-size: 13px !important;
  font-weight: 700 !important; padding: 9px 18px !important; border-radius: 10px !important;
  border: none !important; cursor: pointer !important;
  transition: background .15s, box-shadow .15s !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr-publish-btn:hover {
  background: var(--gm) !important; box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 28%, transparent) !important;
}

body.dark-mode .cgr-section {
  padding: 0 40px 36px !important; border-top: 1px solid rgba(255,255,255,.04) !important;
}
body.dark-mode .cgr-section-hd {
  display: flex !important; align-items: center !important; gap: 16px !important;
  padding-top: 32px !important; margin-bottom: 20px !important;
}
body.dark-mode .cgr-section-num {
  font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .1em !important;
  color: rgba(255,255,255,.16) !important; min-width: 24px !important;
}
body.dark-mode .cgr-section-title {
  font-size: 15px !important; font-weight: 700 !important; color: rgba(255,255,255,.82) !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr-section-sub { font-size: 12px !important; color: rgba(255,255,255,.26) !important; margin-top: 2px !important; }
body.dark-mode .cgr-strategy-grid {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 10px !important;
}
body.dark-mode .cgr-strat-block {
  background: rgba(255,255,255,.025) !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 11px !important; padding: 14px 16px !important;
}
body.dark-mode .cgr-strat-lbl {
  font-size: 10px !important; font-weight: 600 !important; letter-spacing: .06em !important;
  text-transform: uppercase !important; color: rgba(255,255,255,.22) !important; margin-bottom: 6px !important;
}
body.dark-mode .cgr-strat-val {
  font-size: 13.5px !important; font-weight: 500 !important; color: rgba(255,255,255,.7) !important; line-height: 1.5 !important;
}

body.dark-mode .cgr-error { padding: 60px 40px !important; text-align: center !important; }
body.dark-mode .cgr-debug-msg {
  font-size: 11px !important; color: rgba(255,100,100,.6) !important;
  background: rgba(255,50,50,.05) !important; border: 1px solid rgba(255,50,50,.1) !important;
  border-radius: 8px !important; padding: 12px 16px !important;
  max-width: 600px !important; margin: 16px auto !important; text-align: left !important;
  word-break: break-all !important; white-space: pre-wrap !important; line-height: 1.6 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CGR2 — CAMPAIGN RESULTS V2
   Order: Hero → Creatives → Forecast → Copy → Audience → Tech
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────── */
body.dark-mode .cgr2-hero {
  display: flex !important; align-items: flex-start !important;
  justify-content: space-between !important; gap: 32px !important;
  padding: 44px 40px 40px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  flex-wrap: wrap !important;
}
body.dark-mode .cgr2-hero-body { flex: 1 1 0 !important; min-width: 0 !important; }
body.dark-mode .cgr2-hero-eyebrow {
  display: flex !important; align-items: center !important; gap: 8px !important;
  margin-bottom: 16px !important;
}
body.dark-mode .cgr2-plat-badge {
  display: inline-flex !important; align-items: center !important;
  padding: 3px 8px !important; border-radius: 5px !important;
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .08em !important; text-transform: uppercase !important;
  background: color-mix(in srgb, var(--green) 9%, transparent) !important; color: color-mix(in srgb, var(--green) 85%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent) !important;
}
body.dark-mode .cgr2-hero-sep { color: rgba(255,255,255,.15) !important; font-size: 13px !important; }
body.dark-mode .cgr2-launch-tag {
  font-size: 11px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.35) !important; letter-spacing: .02em !important;
}
body.dark-mode .cgr2-hero-name {
  font-size: 30px !important; font-weight: 800 !important;
  color: #fff !important; letter-spacing: -.03em !important;
  line-height: 1.15 !important; margin: 0 0 10px !important;
  font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr2-hero-prompt {
  font-size: 13px !important; color: rgba(255,255,255,.24) !important;
  margin: 0 0 18px !important; line-height: 1.5 !important; max-width: 560px !important;
}
body.dark-mode .cgr2-hero-signals {
  display: flex !important; flex-wrap: wrap !important; gap: 6px !important;
}
body.dark-mode .cgr2-signal {
  display: inline-flex !important; align-items: center !important;
  padding: 4px 10px !important; border-radius: 100px !important;
  font-size: 11px !important; font-weight: 600 !important;
  background: rgba(255,255,255,.05) !important;
  color: rgba(255,255,255,.5) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}
body.dark-mode .cgr2-signal-hi {
  background: color-mix(in srgb, var(--green) 7%, transparent) !important;
  color: color-mix(in srgb, var(--green) 85%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 15%, transparent) !important;
}
body.dark-mode .cgr2-signal-dim {
  background: transparent !important;
  color: rgba(255,255,255,.3) !important;
  border-color: rgba(255,255,255,.06) !important;
}

/* Hero publish actions */
body.dark-mode .cgr2-hero-actions {
  flex: 0 0 auto !important; display: flex !important; flex-direction: column !important;
  gap: 8px !important; min-width: 190px !important; width: 190px !important;
}
body.dark-mode .cgr2-publish-btns { display: flex !important; flex-direction: column !important; gap: 8px !important; }
body.dark-mode .cgr2-pub-btn {
  display: block !important; width: 100% !important; box-sizing: border-box !important;
  padding: 11px 18px !important; border-radius: 10px !important;
  font-size: 13px !important; font-weight: 700 !important; letter-spacing: .01em !important;
  cursor: pointer !important; border: none !important; text-align: center !important;
  transition: opacity .15s, transform .1s !important;
  font-family: 'Geist', system-ui, sans-serif !important; line-height: 1 !important;
}
body.dark-mode .cgr2-pub-btn:hover:not(:disabled) { opacity: .86 !important; transform: translateY(-1px) !important; }
body.dark-mode .cgr2-pub-google { background: #4285F4 !important; color: #fff !important; }
body.dark-mode .cgr2-pub-meta   { background: #1877F2 !important; color: #fff !important; }
body.dark-mode .cgr2-pub-tiktok { background: #000 !important; color: #25F4EE !important; border: 1px solid #25F4EE !important; }
body.dark-mode .cgr2-pub-connect {
  background: rgba(255,255,255,.04) !important; color: rgba(255,255,255,.42) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
body.dark-mode .cgr2-pub-soon {
  background: transparent !important; color: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.05) !important; cursor: not-allowed !important;
  font-weight: 500 !important;
}

/* ── Creatives wrap ──────────────────────────────────────────────── */
body.dark-mode .cgr2-creatives-wrap {
  padding: 32px 40px 36px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
body.dark-mode .cgr2-creatives-hd {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; margin-bottom: 20px !important;
}

/* ── Shared eyebrow label ─────────────────────────────────────────── */
body.dark-mode .cgr2-section-eyebrow {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .1em !important; text-transform: uppercase !important;
  color: rgba(255,255,255,.28) !important; display: block !important;
  margin-bottom: 20px !important;
}
body.dark-mode .cgr2-creatives-hd .cgr2-section-eyebrow { margin-bottom: 0 !important; }

/* Generating pill */
body.dark-mode .cgr2-gen-pill {
  font-size: 10.5px !important; font-weight: 600 !important;
  padding: 4px 10px !important; border-radius: 100px !important;
  background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.42) !important;
}
body.dark-mode .cgr2-gen-pill.done {
  background: color-mix(in srgb, var(--green) 8%, transparent) !important; color: color-mix(in srgb, var(--green) 80%, transparent) !important;
}

/* ── Content sections ─────────────────────────────────────────────── */
body.dark-mode .cgr2-section {
  padding: 32px 40px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}

/* Performance forecast */
body.dark-mode .cgr2-perf-row {
  display: flex !important; gap: 12px !important; flex-wrap: wrap !important;
  margin-bottom: 16px !important;
}
body.dark-mode .cgr2-perf-card {
  padding: 18px 22px !important; border-radius: 12px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important; min-width: 130px !important;
}
body.dark-mode .cgr2-perf-num {
  font-size: 24px !important; font-weight: 800 !important;
  color: rgba(255,255,255,.9) !important; letter-spacing: -.02em !important;
  margin-bottom: 4px !important; font-family: 'Geist', system-ui, sans-serif !important;
}
body.dark-mode .cgr2-perf-desc {
  font-size: 10.5px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.28) !important; letter-spacing: .05em !important;
  text-transform: uppercase !important;
}
body.dark-mode .cgr2-perf-pot-high   .cgr2-perf-num { color: var(--green) !important; }
body.dark-mode .cgr2-perf-pot-medium .cgr2-perf-num { color: #FFD166 !important; }
body.dark-mode .cgr2-perf-pot-low    .cgr2-perf-num { color: #FF6B6B !important; }
body.dark-mode .cgr2-perf-explain {
  font-size: 13px !important; color: rgba(255,255,255,.42) !important;
  line-height: 1.65 !important; margin: 0 !important;
}

/* Subsections within copy */
body.dark-mode .cgr2-sub { margin-bottom: 28px !important; }
body.dark-mode .cgr2-sub:last-child { margin-bottom: 0 !important; }
body.dark-mode .cgr2-sub-hd {
  font-size: 12px !important; font-weight: 700 !important;
  color: rgba(255,255,255,.5) !important; margin-bottom: 10px !important;
  display: flex !important; align-items: center !important; gap: 7px !important;
}
body.dark-mode .cgr2-count {
  font-size: 10px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.25) !important; background: rgba(255,255,255,.05) !important;
  padding: 1px 6px !important; border-radius: 100px !important;
}

/* Chip grid */
body.dark-mode .cgr2-chip-grid {
  display: flex !important; flex-wrap: wrap !important; gap: 6px !important;
}
body.dark-mode .cgr2-chip {
  display: inline-flex !important; align-items: center !important;
  padding: 5px 11px !important; border-radius: 7px !important;
  font-size: 12.5px !important; font-weight: 500 !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.68) !important; line-height: 1.3 !important;
}
body.dark-mode .cgr2-chip-copy { cursor: pointer !important; }
body.dark-mode .cgr2-chip-copy:hover {
  background: color-mix(in srgb, var(--green) 7%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 16%, transparent) !important;
  color: color-mix(in srgb, var(--green) 90%, transparent) !important;
}
body.dark-mode .cgr2-chip-neg {
  background: rgba(255,80,80,.05) !important;
  border-color: rgba(255,80,80,.1) !important;
  color: rgba(255,130,130,.65) !important;
}

/* Copy list */
body.dark-mode .cgr2-copy-list { display: flex !important; flex-direction: column !important; gap: 6px !important; }
body.dark-mode .cgr2-copy-item {
  padding: 11px 14px !important; border-radius: 8px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.055) !important;
  font-size: 13px !important; color: rgba(255,255,255,.7) !important;
  line-height: 1.55 !important; cursor: pointer !important;
  transition: background .12s, border-color .12s !important;
}
body.dark-mode .cgr2-copy-item:hover {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.1) !important;
}
body.dark-mode .cgr2-copy-hero {
  font-size: 14px !important; line-height: 1.6 !important; padding: 14px 16px !important;
}

/* Field rows (label + value inline) */
body.dark-mode .cgr2-fl-row {
  display: flex !important; align-items: flex-start !important; gap: 14px !important;
  padding: 10px 0 !important; border-bottom: 1px solid rgba(255,255,255,.04) !important;
}
body.dark-mode .cgr2-fl-row:last-child { border-bottom: none !important; }
body.dark-mode .cgr2-fl {
  font-size: 10px !important; font-weight: 700 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; color: rgba(255,255,255,.22) !important;
  min-width: 78px !important; padding-top: 3px !important; flex-shrink: 0 !important;
}
body.dark-mode .cgr2-fv {
  font-size: 13px !important; color: rgba(255,255,255,.68) !important; line-height: 1.5 !important;
}

/* Hook card (TikTok) */
body.dark-mode .cgr2-hook-card {
  padding: 16px 20px !important; border-radius: 10px !important;
  background: color-mix(in srgb, var(--green) 4%, transparent) !important; border: 1px solid color-mix(in srgb, var(--green) 10%, transparent) !important;
  font-size: 15px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.85) !important; line-height: 1.5 !important; cursor: pointer !important;
}
body.dark-mode .cgr2-hook-card:hover { background: color-mix(in srgb, var(--green) 7%, transparent) !important; }

/* Script block */
body.dark-mode .cgr2-script {
  padding: 14px 16px !important; border-radius: 8px !important;
  background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.055) !important;
  font-size: 12.5px !important; color: rgba(255,255,255,.58) !important;
  line-height: 1.7 !important; white-space: pre-wrap !important; cursor: pointer !important;
  font-family: 'Geist Mono', 'Fira Code', 'Consolas', monospace !important;
}

/* CTA pill */
body.dark-mode .cgr2-cta-pill {
  display: inline-flex !important; align-items: center !important;
  padding: 7px 16px !important; border-radius: 100px !important;
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important;
  font-size: 13px !important; font-weight: 700 !important;
  color: rgba(255,255,255,.72) !important; letter-spacing: .02em !important;
}

/* Concept cards */
body.dark-mode .cgr2-concept-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 10px !important;
}
body.dark-mode .cgr2-concept {
  display: flex !important; border-radius: 10px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.065) !important; overflow: hidden !important;
}
body.dark-mode .cgr2-concept-stripe { width: 3px !important; flex-shrink: 0 !important; }
body.dark-mode .cgr2-concept-inner { padding: 14px 16px !important; flex: 1 !important; min-width: 0 !important; }
body.dark-mode .cgr2-concept-angle {
  font-size: 12px !important; font-weight: 700 !important;
  color: rgba(255,255,255,.8) !important; margin-bottom: 6px !important;
}
body.dark-mode .cgr2-concept-hook {
  font-size: 12px !important; color: rgba(255,255,255,.4) !important;
  line-height: 1.5 !important; margin-bottom: 8px !important; font-style: italic !important;
}
body.dark-mode .cgr2-concept-row {
  display: flex !important; gap: 8px !important; align-items: flex-start !important;
  padding-top: 7px !important; border-top: 1px solid rgba(255,255,255,.05) !important;
  margin-top: 7px !important;
}

/* Audience & Strategy grid */
body.dark-mode .cgr2-strat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 10px !important;
}
body.dark-mode .cgr2-strat-item {
  padding: 14px 16px !important; border-radius: 10px !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.055) !important;
}
body.dark-mode .cgr2-strat-lbl {
  font-size: 10px !important; font-weight: 600 !important;
  letter-spacing: .07em !important; text-transform: uppercase !important;
  color: rgba(255,255,255,.26) !important; margin-bottom: 6px !important;
}
body.dark-mode .cgr2-strat-val {
  font-size: 13px !important; color: rgba(255,255,255,.7) !important;
  font-weight: 500 !important; line-height: 1.5 !important;
}

/* ── Collapsible (Technical / Creative Directions) ───────────────── */
body.dark-mode .cgr2-collapsible {
  margin: 0 40px 32px !important; border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.06) !important; overflow: hidden !important;
}
body.dark-mode .cgr2-col-trigger {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; width: 100% !important;
  padding: 13px 18px !important; background: rgba(255,255,255,.025) !important;
  border: none !important; cursor: pointer !important; text-align: left !important;
  transition: background .12s !important;
}
body.dark-mode .cgr2-col-trigger:hover { background: rgba(255,255,255,.04) !important; }
body.dark-mode .cgr2-col-title {
  font-size: 12px !important; font-weight: 700 !important;
  color: rgba(255,255,255,.42) !important; letter-spacing: .04em !important;
}
body.dark-mode .cgr2-col-chevron {
  color: rgba(255,255,255,.22) !important; transition: transform .2s !important; flex-shrink: 0 !important;
}
body.dark-mode .cgr2-collapsible.open .cgr2-col-chevron { transform: rotate(180deg) !important; }
body.dark-mode .cgr2-col-body { display: none !important; padding: 18px !important; border-top: 1px solid rgba(255,255,255,.05) !important; }
body.dark-mode .cgr2-collapsible.open .cgr2-col-body { display: block !important; }

/* Tech groups inside collapsible */
body.dark-mode .cgr2-tech-group { margin-bottom: 16px !important; }
body.dark-mode .cgr2-tech-group:last-child { margin-bottom: 0 !important; }
body.dark-mode .cgr2-tech-lbl {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .07em !important; text-transform: uppercase !important;
  color: rgba(255,255,255,.28) !important; margin-bottom: 8px !important;
}
body.dark-mode .cgr2-tech-chips { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; }
body.dark-mode .cgr2-tech-block { margin-bottom: 14px !important; }
body.dark-mode .cgr2-tech-block:last-child { margin-bottom: 0 !important; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body.dark-mode .cgr2-hero { padding: 28px 20px 28px !important; flex-direction: column !important; }
  body.dark-mode .cgr2-hero-name { font-size: 24px !important; }
  body.dark-mode .cgr2-hero-actions { min-width: auto !important; width: 100% !important; }
  body.dark-mode .cgr2-creatives-wrap { padding: 24px 20px !important; }
  body.dark-mode .cgr2-section { padding: 24px 20px !important; }
  body.dark-mode .cgr2-collapsible { margin: 0 20px 24px !important; }
  body.dark-mode .cgr2-strat-grid { grid-template-columns: 1fr !important; }
  body.dark-mode .cgr2-concept-grid { grid-template-columns: 1fr !important; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL ELEMENTS V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.dark-mode .btn-p {
  background: var(--green) !important; color: #080808 !important;
  font-weight: 700 !important; border: none !important;
  transition: background .15s, transform .1s, box-shadow .15s !important;
}
body.dark-mode .btn-p:hover {
  background: var(--gm) !important; transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 22%, transparent) !important;
}
body.dark-mode .btn-g {
  background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.5) !important;
}
body.dark-mode .btn-g:hover { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.75) !important; }

body.dark-mode .inp {
  background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.09) !important;
  color: rgba(255,255,255,.8) !important; border-radius: 9px !important;
}
body.dark-mode .inp:focus {
  border-color: color-mix(in srgb, var(--green) 28%, transparent) !important; background: rgba(255,255,255,.05) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 9%, transparent) !important;
}
body.dark-mode .inp::placeholder { color: rgba(255,255,255,.18) !important; }
body.dark-mode .lbl { color: rgba(255,255,255,.38) !important; font-weight: 500 !important; }

body.dark-mode .mbk { background: rgba(0,0,0,.78) !important; }
body.dark-mode .modal {
  background: #0e0e0e !important; border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 18px !important; box-shadow: 0 24px 80px rgba(0,0,0,.85) !important;
}
body.dark-mode .modal-ttl { font-size: 17px !important; font-weight: 700 !important; color: #fff !important; }
body.dark-mode .modal-sub { color: rgba(255,255,255,.28) !important; }

body.dark-mode .toast {
  background: #161616 !important; color: rgba(255,255,255,.8) !important;
  border: 1px solid rgba(255,255,255,.1) !important; border-radius: 11px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.65) !important;
}
body.dark-mode .toast.ok {
  background: color-mix(in srgb, var(--green) 10%, transparent) !important; color: var(--green) !important;
  border-color: color-mix(in srgb, var(--green) 22%, transparent) !important;
}

/* Brand Brain modal V2 */
body.dark-mode .bbm-overlay { background: rgba(0,0,0,.8) !important; backdrop-filter: blur(8px) !important; }
body.dark-mode .bbm-panel {
  background: #0e0e0e !important; border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 20px !important; box-shadow: 0 32px 80px rgba(0,0,0,.9) !important;
}
body.dark-mode .bbm-hd { border-bottom: 1px solid rgba(255,255,255,.06) !important; }
body.dark-mode .bbm-input, body.dark-mode .bbm-textarea {
  background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.09) !important;
  color: rgba(255,255,255,.8) !important; border-radius: 9px !important;
}
body.dark-mode .bbm-input:focus, body.dark-mode .bbm-textarea:focus {
  border-color: color-mix(in srgb, var(--green) 28%, transparent) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 9%, transparent) !important;
}
body.dark-mode .bbm-btn-save {
  background: var(--green) !important; color: #080808 !important; font-weight: 700 !important; border: none !important;
  transition: background .15s, box-shadow .15s !important;
}
body.dark-mode .bbm-btn-save:hover { background: var(--gm) !important; box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 28%, transparent) !important; }
body.dark-mode .bbm-btn-ghost {
  background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.09) !important;
  color: rgba(255,255,255,.38) !important;
}
body.dark-mode .bbm-btn-ghost:hover { background: rgba(255,255,255,.07) !important; }

/* Platform badge pills */
.ov3-pb { display: inline-flex !important; align-items: center !important; padding: 2px 7px !important; border-radius: 4px !important; font-size: 10.5px !important; font-weight: 600 !important; }
.ov3-pb-google { background: rgba(66,133,244,.12) !important; color: #4285F4 !important; }
.ov3-pb-meta   { background: rgba(24,119,242,.12) !important; color: #1877F2 !important; }
.ov3-pb-tiktok { background: rgba(255,255,255,.07) !important; color: rgba(255,255,255,.45) !important; }

/* Auth overlay */
body.dark-mode #authOverlay { background: #070707 !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V2 ANIMATIONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes v2-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes v2-fade-up  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Premium Motion System — page switches fade+settle instead of an instant
   cut, so moving between workspaces reads as one application, not
   separate pages loading. Kept intentionally light (opacity + 4px) so it
   never feels like "loading". */
.page.active { animation: orvPageIn var(--orv-t-slow, 220ms cubic-bezier(.22,.61,.36,1)) both; }
@keyframes orvPageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
body.dark-mode .ov3-hero > * { animation: v2-fade-up .38s cubic-bezier(.22,1,.36,1) both; }
body.dark-mode .ov3-hero > *:nth-child(1) { animation-delay: .04s; }
body.dark-mode .ov3-hero > *:nth-child(2) { animation-delay: .09s; }
body.dark-mode .ov3-hero > *:nth-child(3) { animation-delay: .13s; }
body.dark-mode .ov3-hero > *:nth-child(4) { animation-delay: .17s; }
body.dark-mode .ov3-hero > *:nth-child(5) { animation-delay: .21s; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE V2
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {
  body.dark-mode .ov3-hero { padding: 40px 24px 32px !important; }
  body.dark-mode .ov3-section { padding: 0 24px 28px !important; }
  body.dark-mode .camp-hub { padding: 28px 24px 40px !important; }
  body.dark-mode .cgr-hdr { padding: 24px 24px 20px !important; }
  body.dark-mode .cgr-back { padding: 14px 24px !important; }
  body.dark-mode .cgr-section { padding: 0 24px 28px !important; }
  body.dark-mode .ov3-prompt-box { max-width: 100% !important; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V2 PLATFORM RESULT RENDERERS  (#cgrPlatformContent)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Strategy metadata strip */
body.dark-mode .v2res-strategy-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 24px !important;
  padding: 14px 20px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 10px !important;
  margin-bottom: 20px !important;
}
body.dark-mode .v2res-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 120px !important;
}
body.dark-mode .v2res-field-lbl {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.35) !important;
}
body.dark-mode .v2res-field-val {
  font-size: 13px !important;
  color: rgba(255,255,255,.75) !important;
  font-weight: 500 !important;
}

/* Content sections */
body.dark-mode .v2res-section {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}
body.dark-mode .v2res-section-hd {
  padding: 14px 18px 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
body.dark-mode .v2res-section-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.5) !important;
}
body.dark-mode .v2res-section-body {
  padding: 14px 18px !important;
}

/* Headline chips (copyable) */
body.dark-mode .v2res-hl-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
body.dark-mode .v2res-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 12px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.8) !important;
  line-height: 1.3 !important;
  transition: background .15s, border-color .15s !important;
}
body.dark-mode .v2res-chip.v2res-copy {
  cursor: pointer !important;
}
body.dark-mode .v2res-chip.v2res-copy:hover {
  background: color-mix(in srgb, var(--green) 7%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 18%, transparent) !important;
  color: var(--green) !important;
}
body.dark-mode .v2res-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* Description items */
body.dark-mode .v2res-desc-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
body.dark-mode .v2res-desc-item {
  padding: 10px 14px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,.75) !important;
  cursor: pointer !important;
  transition: background .15s !important;
}
body.dark-mode .v2res-desc-item:hover {
  background: color-mix(in srgb, var(--green) 5%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 12%, transparent) !important;
}

/* Extension groups */
body.dark-mode .v2res-ext-group {
  margin-bottom: 14px !important;
}
body.dark-mode .v2res-ext-group:last-child {
  margin-bottom: 0 !important;
}
body.dark-mode .v2res-ext-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.35) !important;
  margin-bottom: 8px !important;
}

/* List items (carousel / image concepts) */
body.dark-mode .v2res-list-item {
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.7) !important;
  border-left: 2px solid color-mix(in srgb, var(--green) 25%, transparent) !important;
  margin-bottom: 6px !important;
  background: rgba(255,255,255,.02) !important;
  border-radius: 0 6px 6px 0 !important;
}

/* Concept cards */
body.dark-mode .v2res-concept-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
body.dark-mode .v2res-concept-card {
  padding: 14px 16px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  transition: border-color .2s !important;
}
body.dark-mode .v2res-concept-card:hover {
  border-color: color-mix(in srgb, var(--green) 15%, transparent) !important;
}
body.dark-mode .v2res-concept-hd {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}
body.dark-mode .v2res-concept-angle {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  padding: 3px 9px !important;
  border-radius: 5px !important;
  background: color-mix(in srgb, var(--cc, var(--green)) 10%, transparent) !important;
  color: var(--cc, var(--green)) !important;
  border: 1px solid color-mix(in srgb, var(--cc, var(--green)) 25%, transparent) !important;
}
body.dark-mode .v2res-concept-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.7) !important;
}
body.dark-mode .v2res-concept-hook {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.9) !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

/* Text blocks */
body.dark-mode .v2res-text-block {
  margin-bottom: 12px !important;
}
body.dark-mode .v2res-text-block:last-child {
  margin-bottom: 0 !important;
}
body.dark-mode .v2res-text-val {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,.75) !important;
  padding: 10px 12px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background .15s !important;
  white-space: pre-wrap !important;
}
body.dark-mode .v2res-text-val:hover {
  background: color-mix(in srgb, var(--green) 5%, transparent) !important;
  border-color: color-mix(in srgb, var(--green) 10%, transparent) !important;
}

/* TikTok hook */
body.dark-mode .v2res-hook-section {
  border-color: color-mix(in srgb, var(--green) 15%, transparent) !important;
}
body.dark-mode .v2res-hook-text {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #fff !important;
  padding: 16px 18px !important;
  cursor: pointer !important;
  transition: color .15s !important;
}
body.dark-mode .v2res-hook-text:hover {
  color: var(--green) !important;
}

/* TikTok script */
body.dark-mode .v2res-script {
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,.75) !important;
  padding: 14px 18px !important;
  white-space: pre-wrap !important;
  cursor: pointer !important;
}

/* CTA pill */
body.dark-mode .v2res-cta-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 18px !important;
  background: color-mix(in srgb, var(--green) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent) !important;
  border-radius: 100px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--green) !important;
  letter-spacing: .02em !important;
}

/* Performance forecast */
body.dark-mode .v2res-perf-row {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 12px !important;
}
body.dark-mode .v2res-perf-card {
  padding: 12px 16px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  min-width: 120px !important;
  text-align: center !important;
}
body.dark-mode .v2res-perf-val {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}
body.dark-mode .v2res-perf-val.v2res-pot-high   { color: var(--green) !important; }
body.dark-mode .v2res-perf-val.v2res-pot-medium  { color: #FFD166 !important; }
body.dark-mode .v2res-perf-val.v2res-pot-low     { color: #FF6B6B !important; }
body.dark-mode .v2res-perf-lbl {
  font-size: 11px !important;
  color: rgba(255,255,255,.4) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  font-weight: 600 !important;
}
body.dark-mode .v2res-perf-explain {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,.5) !important;
}

/* Empty state */
body.dark-mode .v2res-empty {
  color: rgba(255,255,255,.3) !important;
  font-size: 13px !important;
  font-style: italic !important;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V2 NAV ADJUSTMENTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Sidebar: compact width â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Was a separate "compact width" experiment (176px), silently overriding
   every later width change to .orv-sb whenever dark mode was active (see
   the root-cause comment on the earlier body.dark-mode .orv-sb rule).
   Aligned to the shared 280px width used everywhere else. */
body.dark-mode .orv-sb {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
}

/* â”€â”€ Logo: larger, more prominent â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .orv-sb-logo {
  padding: 14px 12px 12px !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
body.dark-mode .orv-sb-logo-img {
  width: 40px !important;
  height: 40px !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--green) 45%, transparent)) !important;
  border-radius: 7px !important;
}
body.dark-mode .orv-sb-logo-name {
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  color: #fff !important;
}

/* â”€â”€ Nav items: tighter padding for compact feel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .orv-sb-nav {
  padding: 10px 8px !important;
}
body.dark-mode .orv-ni {
  padding: 7px 9px !important;
  font-size: 12.5px !important;
  gap: 9px !important;
  border-radius: 7px !important;
}
body.dark-mode .orv-ni svg {
  width: 14px !important;
  height: 14px !important;
}

/* â”€â”€ Content centering â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .ov3-hero {
  max-width: 800px !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 80px 48px 48px !important;
}
body.dark-mode .ov3-hero-sub {
  margin-left: auto !important;
  margin-right: auto !important;
}
body.dark-mode .ov3-prompt-box {
  margin-left: auto !important;
  margin-right: auto !important;
}
body.dark-mode .ov3-plat-select {
  display: flex !important;
  align-items: center !important;
}

/* Sections below hero also centered */
body.dark-mode .ov3-section {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BRAND BRAIN — bb-* component system
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Page layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* ── Business Consolidation — Brand section light-mode base rules
   (auto-generated mirror of the dark-mode-only rules above, reviewed by hand) ── */
.bb-empty-orb {
  width: 72px;
  height: 72px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.bb-empty-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.bb-empty-title em {
  font-style: normal;
  color: var(--green-text);
}
.bb-empty-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 36px;
}
.bb-empty-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bb-btn-primary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--green);
  color: #0A0A0A;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.bb-btn-ghost {
  padding: 10px 18px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 8px;
  cursor: pointer;
}
.bb-btn-ghost:hover {
  border-color: rgba(0,0,0,0.14);
  color: var(--charcoal);
}
.bb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 40px 0;
  gap: 24px;
}
.bb-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.bb-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.14);
  flex-shrink: 0;
  display: inline-block;
}
.bb-eyebrow-dot.active {
  background: var(--green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 60%, transparent);
}
.bb-brand-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.bb-brand-tagline {
  font-size: 14px;
  color: var(--muted);
}
.bb-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 28px;
}
.bb-act-btn {
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.bb-act-btn:hover {
  color: var(--charcoal);
  border-color: rgba(0,0,0,0.14);
}
.bb-act-primary {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--green-text);
  border-color: color-mix(in srgb, var(--green) 22%, transparent);
}
.bb-act-primary:hover {
  background: color-mix(in srgb, var(--green) 15%, transparent);
}
.bb-tab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.098);
  overflow-x: auto;
  scrollbar-width: none;
}
.bb-tab-bar::-webkit-scrollbar {
  display: none;
}
.bb-tab {
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  border-radius: 0;
  transition: color .15s;
}
.bb-tab:hover {
  color: var(--c2);
}
.bb-tab.active {
  color: var(--charcoal);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.bb-pane {
  display: none;
  flex-direction: column;
  gap: 32px;
  padding: 32px 40px 60px;
}
.bb-pane.active {
  display: flex;
}
.bb-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* No breakpoint existed for this at all (confirmed by direct grep before
   this fix) -- 3 fixed columns would just keep shrinking indefinitely.
   !important: body.dark-mode .bb-stat-grid sets grid-template-columns
   unconditionally (no media query) with !important -- a plain rule here
   would be defeated by it in dark mode. */
@media (max-width: 900px) { .bb-stat-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .bb-stat-grid { grid-template-columns: 1fr !important; } }
.bb-stat-card {
  background: rgba(0,0,0,0.056);
  border: 1px solid rgba(0,0,0,0.112);
  border-radius: 12px;
  padding: 22px 22px 18px;
}
.bb-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,.35);
  margin-bottom: 10px;
}
.bb-stat-val {
  font-size: 34px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.bb-score-track {
  height: 3px;
  background: rgba(0,0,0,0.14);
  border-radius: 99px;
  margin-bottom: 10px;
  overflow: hidden;
}
.bb-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-text), var(--green));
  border-radius: 99px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.bb-stat-msg {
  font-size: 12px;
  color: rgba(0,0,0,.35);
  line-height: 1.4;
}
.bb-quick-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bb-quick-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(0,0,0,0.056);
  border: 1px solid rgba(0,0,0,0.126);
  border-radius: 8px;
  color: var(--c2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.bb-quick-btn:hover {
  background: rgba(0,0,0,0.112);
  color: var(--charcoal);
  border-color: rgba(0,0,0,0.14);
}
.bb-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bb-section-hd {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.35);
}
.bb-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* No breakpoint existed for this at all (confirmed by direct grep before
   this fix). !important for the same reason as .bb-stat-grid above --
   body.dark-mode .bb-card-row sets this unconditionally with !important. */
@media (max-width: 640px) { .bb-card-row { grid-template-columns: 1fr !important; } }
.bb-identity-card {
  padding: 20px 22px;
  background: rgba(0,0,0,0.056);
  border: 1px solid rgba(0,0,0,0.098);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bb-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.35);
}
.bb-mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.bb-mood-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.14);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.bb-mood-add:hover {
  border-color: rgba(0,0,0,0.14);
  color: var(--c2);
}
.bb-assets-preview {
  min-height: 60px;
  color: rgba(0,0,0,.35);
  font-size: 13px;
}
.bcp-statement,
.bcp-statement-card {
  color: var(--c2);
}
.bcp-audience-text {
  color: var(--c2);
}
.bcp-visual-desc {
  color: var(--c2);
}
.bcp-quote {
  color: var(--charcoal);
  border-left-color: color-mix(in srgb, var(--green) 40%, transparent);
}
.bcp-empty-field {
  color: rgba(0,0,0,.35);
}
.bcp-color-chip {
  border-color: rgba(0,0,0,0.14);
}
.bcp-color-meta {
  background: rgba(0,0,0,0.056);
}
.bcp-color-role {
  color: var(--c2);
}
.bcp-color-exp {
  color: var(--muted);
}
.bcp-typo-card {
  background: rgba(0,0,0,0.056);
  border-color: rgba(0,0,0,0.112);
}
.bcp-typo-role {
  color: rgba(0,0,0,.35);
}
.bcp-typo-sample {
  color: var(--charcoal);
}
.bcp-typo-name {
  color: var(--charcoal);
}
.bcp-typo-reason {
  color: var(--muted);
}
.bcp-tone-card {
  background: rgba(0,0,0,0.056);
  border-color: rgba(0,0,0,0.112);
  border-left-color: color-mix(in srgb, var(--green) 45%, transparent);
}
.bcp-audience-card {
  border-color: rgba(0,0,0,0.112);
}
.bcp-statement-card {
  border-color: rgba(0,0,0,0.112);
  background: rgba(0,0,0,0.056);
}
.bb-logo-single {
  max-width: 220px;
}
.bcp-logo-empty {
  background: rgba(0,0,0,0.042);
  border: 1px dashed rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.bcp-logo-empty-msg {
  color: var(--c2);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.bcp-logo-empty-sub {
  color: rgba(0,0,0,.35);
  font-size: 12px;
  margin-bottom: 16px;
}
.bcp-logo-empty-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Structural show/hide — these had NO light-mode base at all before, so
   the Brand section didn't just look wrong, it didn't function: every
   pane rendered simultaneously and the empty-state never actually hid. */
.bb-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 48px 60px;
  max-width: 520px;
  margin: 0 auto;
}
.bb-empty-state.bb-show { display: flex; }
.bb-hub {
  display: none;
  flex-direction: column;
  min-height: 100%;
}
.bb-hub.bb-show { display: flex; }

/* Neutralize the old full-viewport-column assumptions now that this
   content lives inside a normal tab panel, not a top-level .page. */
#bizPanelBrand .bb-scroll { height: auto; overflow: visible; }
#bizPanelBrand .bb-tab-bar { padding-left: 0; padding-right: 0; }
#bizPanelBrand .bb-pane { padding-left: 0; padding-right: 0; }
#bizPanelBrand .bb-head { padding-left: 0; padding-right: 0; padding-top: 0; }

body.dark-mode #page-studio {
  position: relative !important;
  overflow: hidden !important;
  background: #0D0D0D !important;
}

body.dark-mode .bb-scroll {
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* â”€â”€ Empty state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 100px 48px 60px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

body.dark-mode .bb-empty-orb {
  width: 72px !important;
  height: 72px !important;
  background: color-mix(in srgb, var(--green) 8%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 28px !important;
  flex-shrink: 0 !important;
}

body.dark-mode .bb-empty-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.02em !important;
}
body.dark-mode .bb-empty-title em {
  font-style: normal !important;
  color: var(--green) !important;
}

body.dark-mode .bb-empty-sub {
  font-size: 14px !important;
  color: rgba(255,255,255,.45) !important;
  line-height: 1.6 !important;
  margin-bottom: 36px !important;
}

body.dark-mode .bb-empty-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}

body.dark-mode .bb-btn-primary {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 10px 20px !important;
  background: var(--green) !important;
  color: #0A0A0A !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

body.dark-mode .bb-btn-ghost {
  padding: 10px 18px !important;
  background: transparent !important;
  color: rgba(255,255,255,.5) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}
body.dark-mode .bb-btn-ghost:hover {
  border-color: rgba(255,255,255,.25) !important;
  color: rgba(255,255,255,.8) !important;
}

/* â”€â”€ Brand Brain hub â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-hub {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
}

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 36px 40px 0 !important;
  gap: 24px !important;
}

body.dark-mode .bb-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.35) !important;
  margin-bottom: 10px !important;
}

body.dark-mode .bb-eyebrow-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.2) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
body.dark-mode .bb-eyebrow-dot.active {
  background: var(--green) !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 60%, transparent) !important;
}

body.dark-mode .bb-brand-name {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
}

body.dark-mode .bb-brand-tagline {
  font-size: 14px !important;
  color: rgba(255,255,255,.4) !important;
}

body.dark-mode .bb-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  padding-top: 28px !important;
}

body.dark-mode .bb-act-btn {
  padding: 7px 14px !important;
  background: transparent !important;
  color: rgba(255,255,255,.5) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
body.dark-mode .bb-act-btn:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
}
body.dark-mode .bb-act-primary {
  background: color-mix(in srgb, var(--green) 8%, transparent) !important;
  color: var(--green) !important;
  border-color: color-mix(in srgb, var(--green) 22%, transparent) !important;
}
body.dark-mode .bb-act-primary:hover {
  background: color-mix(in srgb, var(--green) 15%, transparent) !important;
}

/* â”€â”€ Tab bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-tab-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 20px 40px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
body.dark-mode .bb-tab-bar::-webkit-scrollbar { display: none !important; }

body.dark-mode .bb-tab {
  padding: 8px 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.38) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin-bottom: -1px !important;
  border-radius: 0 !important;
  transition: color .15s !important;
}
body.dark-mode .bb-tab:hover { color: rgba(255,255,255,.7) !important; }
body.dark-mode .bb-tab.active {
  color: #fff !important;
  border-bottom-color: var(--green) !important;
  font-weight: 600 !important;
}

/* â”€â”€ Tab panes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-pane {
  display: none !important;
  flex-direction: column !important;
  gap: 32px !important;
  padding: 32px 40px 60px !important;
}
body.dark-mode .bb-pane.active {
  display: flex !important;
}

/* â”€â”€ Stat grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

body.dark-mode .bb-stat-card {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  padding: 22px 22px 18px !important;
}

body.dark-mode .bb-stat-lbl {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.32) !important;
  margin-bottom: 10px !important;
}

body.dark-mode .bb-stat-val {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  margin-bottom: 12px !important;
}

body.dark-mode .bb-score-track {
  height: 3px !important;
  background: rgba(255,255,255,.1) !important;
  border-radius: 99px !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}
body.dark-mode .bb-score-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--green-text), var(--green)) !important;
  border-radius: 99px !important;
  transition: width .8s cubic-bezier(.4,0,.2,1) !important;
}

body.dark-mode .bb-stat-msg {
  font-size: 12px !important;
  color: rgba(255,255,255,.3) !important;
  line-height: 1.4 !important;
}

/* â”€â”€ Quick actions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-quick-row {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body.dark-mode .bb-quick-btn {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 16px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,.6) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all .15s !important;
}
body.dark-mode .bb-quick-btn:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* â”€â”€ Sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.dark-mode .bb-section-hd {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.28) !important;
}

/* â”€â”€ Identity: mission/vision cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-card-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

body.dark-mode .bb-identity-card {
  padding: 20px 22px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body.dark-mode .bb-card-eyebrow {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.28) !important;
}

/* â”€â”€ Visuals: moodboard â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-mood-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

body.dark-mode .bb-mood-add {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  background: transparent !important;
  border: 1px dashed rgba(255,255,255,.15) !important;
  border-radius: 7px !important;
  color: rgba(255,255,255,.35) !important;
  font-size: 12px !important;
  cursor: pointer !important;
}
body.dark-mode .bb-mood-add:hover {
  border-color: rgba(255,255,255,.3) !important;
  color: rgba(255,255,255,.6) !important;
}

/* â”€â”€ Assets preview â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bb-assets-preview {
  min-height: 60px !important;
  color: rgba(255,255,255,.25) !important;
  font-size: 13px !important;
}

/* â”€â”€ Override existing bcp-* in dark context â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.dark-mode .bcp-statement,
body.dark-mode .bcp-statement-card { color: rgba(255,255,255,.75) !important; }
body.dark-mode .bcp-audience-text  { color: rgba(255,255,255,.75) !important; }
body.dark-mode .bcp-visual-desc    { color: rgba(255,255,255,.75) !important; }
body.dark-mode .bcp-quote {
  color: rgba(255,255,255,.8) !important;
  border-left-color: color-mix(in srgb, var(--green) 40%, transparent) !important;
}
body.dark-mode .bcp-empty-field { color: rgba(255,255,255,.3) !important; }

/* ── Brand Brain: dark-mode overrides for bcp-* containers ── */
body.dark-mode .bcp-color-chip { border-color: rgba(255,255,255,.1) !important; }
body.dark-mode .bcp-color-meta { background: rgba(255,255,255,.04) !important; }
body.dark-mode .bcp-color-role { color: rgba(255,255,255,.75) !important; }
body.dark-mode .bcp-color-exp  { color: rgba(255,255,255,.4) !important; }
body.dark-mode .bcp-typo-card  { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; }
body.dark-mode .bcp-typo-role  { color: rgba(255,255,255,.3) !important; }
body.dark-mode .bcp-typo-sample { color: rgba(255,255,255,.85) !important; }
body.dark-mode .bcp-typo-name   { color: rgba(255,255,255,.8) !important; }
body.dark-mode .bcp-typo-reason { color: rgba(255,255,255,.4) !important; }
body.dark-mode .bcp-tone-card   { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; border-left-color: color-mix(in srgb, var(--green) 45%, transparent) !important; }
body.dark-mode .bcp-audience-card { border-color: rgba(255,255,255,.08) !important; }
body.dark-mode .bcp-statement-card { border-color: rgba(255,255,255,.08) !important; background: rgba(255,255,255,.04) !important; }

/* ══════════════════════════════════════════════════════════
   BRAND BRAIN REFINEMENT — fix grid whitespace + visibility
   ══════════════════════════════════════════════════════════ */

/* Fix: override the 1fr 280px two-column grid (insights panel removed) */
body.dark-mode #page-studio.active {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

/* Brand Brain show/hide via class toggle (avoids !important conflicts) */
body.dark-mode .bb-empty-state {
  display: none !important;
}
body.dark-mode .bb-empty-state.bb-show {
  display: flex !important;
}
body.dark-mode .bb-hub {
  display: none !important;
}
body.dark-mode .bb-hub.bb-show {
  display: flex !important;
}

/* Single logo card — constrained width */
body.dark-mode .bb-logo-single {
  max-width: 220px !important;
}

/* Ensure bcp-logo-empty has dark treatment */
body.dark-mode .bcp-logo-empty {
  background: rgba(255,255,255,.03) !important;
  border: 1px dashed rgba(255,255,255,.1) !important;
  border-radius: 12px !important;
  padding: 28px 24px !important;
  text-align: center !important;
}
body.dark-mode .bcp-logo-empty-msg { color: rgba(255,255,255,.6) !important; font-weight: 600 !important; font-size: 13px !important; margin-bottom: 6px !important; }
body.dark-mode .bcp-logo-empty-sub { color: rgba(255,255,255,.3) !important; font-size: 12px !important; margin-bottom: 16px !important; }
body.dark-mode .bcp-logo-empty-actions { display: flex !important; gap: 8px !important; justify-content: center !important; }

/* ══════════════════════════════════════════════════════════
   CREATE PAGE — Content Mode Selector + Results
   ══════════════════════════════════════════════════════════ */

/* ── Mode segmented selector ─────────────────────────────── */
/* Oriven 1.0 (V10 light-mode fix) — this segmented control had ONLY a
   body.dark-mode rule, zero light-mode base at all (fully unstyled native
   buttons in light mode). Added a real light base; dark-mode block below
   is unchanged from before. */
.ov3-mode-seg {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.ov3-mode-btn {
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,.5);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--orv-t-fast), background var(--orv-t-fast), box-shadow var(--orv-t-fast), transform var(--orv-t-fast);
  white-space: nowrap;
  font-family: inherit;
}
.ov3-mode-btn:hover { color: var(--charcoal, #18181A); background: rgba(0,0,0,.04); transform: translateY(var(--orv-lift-sm)); }
.ov3-mode-btn.active { color: var(--charcoal, #18181A); font-weight: 600; background: rgba(0,0,0,.08); }
/* Create Micro-Interaction pass — a whisper of the product accent on the
   selected state (spec 12: "border settles into lime, very soft inner
   tint"), restrained enough to keep the segmented control's existing
   white/neutral selected look intact rather than recoloring it. */
.ov3-mode-btn.active { box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--green) 55%, transparent); }

body.dark-mode .ov3-mode-seg {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}
body.dark-mode .ov3-mode-btn {
  color: rgba(255,255,255,.45) !important;
}
body.dark-mode .ov3-mode-btn:hover {
  color: rgba(255,255,255,.75) !important;
  background: rgba(255,255,255,.05) !important;
}
body.dark-mode .ov3-mode-btn.active {
  color: #fff !important;
  font-weight: 600 !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--green) 60%, transparent) !important;
}

/* ── Brand Identity toggle: compact sliding-pill switch ──────────
   Replaces the old .ov3-mode-seg/.ov3-mode-btn markup for this one
   control (Brand Identity restyle). That shared class is display:flex
   with no set width, so as a full-width row's only child it stretched
   edge-to-edge with both labels crammed on the left. This component is
   deliberately fixed-width/inline so it always reads as a real toggle,
   never as a giant box, regardless of the row around it.
   Structure: a fixed track with a sliding accent thumb behind whichever
   label is active; the two labels are real <button>s covering their own
   half each, so clicking either one, tabbing, and Enter/Space all just
   work as native button behavior -- no extra "click the track" handler
   is needed since the buttons already cover 100% of the track. */
.bi-toggle {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 124px;
  height: 30px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}
.bi-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--green, #B7FF2A);
  box-shadow: 0 1px 5px rgba(183,255,42,.4);
  transform: translateX(0%);
  z-index: 0;
  pointer-events: none;
}
.bi-toggle[data-state="off"] .bi-toggle-thumb {
  transform: translateX(100%);
  background: rgba(0,0,0,.16);
  box-shadow: none;
}
/* Click-triggered slide: a brief squash/stretch on the way across gives
   the motion a slightly dynamic, non-linear feel rather than an instant
   horizontal jump, then settles cleanly into the resting position defined
   above. Re-added via JS on every click so repeated same-side clicks and
   fast back-and-forth toggling always replay it. */
@keyframes biThumbSlideOn {
  0%   { transform: translateX(100%) scale(1,1); }
  50%  { transform: translateX(32%) scale(1.12,.82); }
  100% { transform: translateX(0%) scale(1,1); }
}
@keyframes biThumbSlideOff {
  0%   { transform: translateX(0%) scale(1,1); }
  50%  { transform: translateX(68%) scale(1.12,.82); }
  100% { transform: translateX(100%) scale(1,1); }
}
.bi-toggle-thumb.bi-anim-on  { animation: biThumbSlideOn .32s cubic-bezier(.3,.7,.35,1.15) both; }
.bi-toggle-thumb.bi-anim-off { animation: biThumbSlideOff .32s cubic-bezier(.3,.7,.35,1.15) both; }
@media (prefers-reduced-motion: reduce) {
  .bi-toggle-thumb, .bi-toggle-thumb.bi-anim-on, .bi-toggle-thumb.bi-anim-off { animation: none !important; transition: transform .12s linear; }
}

.bi-toggle-lbl {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .02em;
  color: rgba(0,0,0,.42);
  cursor: pointer;
  border-radius: 999px;
  transition: color .18s ease;
}
.bi-toggle-lbl:hover { color: rgba(0,0,0,.65); }
.bi-toggle-lbl.active { color: var(--charcoal, #18181A); }
.bi-toggle-lbl:focus-visible {
  outline: 2px solid var(--green, #B7FF2A);
  outline-offset: 2px;
}

body.dark-mode .bi-toggle {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}
body.dark-mode .bi-toggle[data-state="off"] .bi-toggle-thumb {
  background: rgba(255,255,255,.18) !important;
}
body.dark-mode .bi-toggle-lbl { color: rgba(255,255,255,.45) !important; }
body.dark-mode .bi-toggle-lbl:hover { color: rgba(255,255,255,.75) !important; }
body.dark-mode .bi-toggle-lbl.active { color: #0A0A0A !important; }
body.dark-mode .bi-toggle-lbl:focus-visible { outline-color: var(--green, #B7FF2A) !important; }

@media (max-width: 640px) {
  .bi-toggle { width: 112px; height: 28px; }
  .bi-toggle-lbl { font-size: 10.5px; }
}

/* ── Generation results container ────────────────────────── */
body.dark-mode .ov3-gen-results {
  margin-top: 20px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

body.dark-mode .ov3-gen-res-hd {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

body.dark-mode .ov3-gen-res-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.3) !important;
}

body.dark-mode .ov3-gen-res-regen {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.45) !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  cursor: pointer !important;
}
body.dark-mode .ov3-gen-res-regen:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
}

/* ── Image grid ──────────────────────────────────────────── */
body.dark-mode .ov3-img-grid {
  padding: 18px !important;
}

body.dark-mode .ov3-img-card {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}

body.dark-mode .ov3-img-thumb {
  width: 100% !important;
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  cursor: zoom-in !important;
  max-height: 480px !important;
}

body.dark-mode .ov3-img-card-footer {
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body.dark-mode .ov3-img-card-prompt {
  font-size: 12px !important;
  color: rgba(255,255,255,.35) !important;
  line-height: 1.5 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.dark-mode .ov3-img-card-btns {
  display: flex !important;
  gap: 8px !important;
}

body.dark-mode .ov3-img-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s !important;
}
body.dark-mode .ov3-img-action-btn:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
}

/* ── Video player ────────────────────────────────────────── */
body.dark-mode .ov3-vid-wrap {
  padding: 18px !important;
}

body.dark-mode .ov3-vid-player {
  width: 100% !important;
  max-height: 480px !important;
  border-radius: 8px !important;
  display: block !important;
  background: #000 !important;
}

/* ── Loading / error states ──────────────────────────────── */
body.dark-mode .ov3-gen-loading {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 24px 18px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.4) !important;
}

body.dark-mode .ov3-gen-spinner {
  width: 16px !important;
  height: 16px !important;
  border: 2px solid rgba(255,255,255,.12) !important;
  border-top-color: color-mix(in srgb, var(--green) 80%, transparent) !important;
  border-radius: 50% !important;
  animation: ov3Spin .7s linear infinite !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

@keyframes ov3Spin {
  to { transform: rotate(360deg); }
}

body.dark-mode .ov3-gen-error {
  padding: 20px 18px !important;
  font-size: 13px !important;
  color: rgba(255,120,100,.8) !important;
}

/* ======================================================
   CAMPAIGN STATUS SYSTEM + PUBLISH BUTTONS
   ====================================================== */

body.dark-mode .clib-status-generated     { background: color-mix(in srgb, var(--green) 12%, transparent) !important; color: var(--green) !important; border-color: color-mix(in srgb, var(--green) 25%, transparent) !important; }
body.dark-mode .clib-status-ready         { background: rgba(99,179,237,.12) !important; color: #63B3ED !important; border-color: rgba(99,179,237,.25) !important; }
body.dark-mode .clib-status-publishing    { background: rgba(251,191,36,.12) !important; color: #fbbf24 !important; border-color: rgba(251,191,36,.25) !important; }
body.dark-mode .clib-status-published     { background: rgba(72,187,120,.12) !important; color: #68D391 !important; border-color: rgba(72,187,120,.25) !important; }
body.dark-mode .clib-status-paused        { background: rgba(251,191,36,.12) !important; color: #eab308 !important; border-color: rgba(251,191,36,.25) !important; }
body.dark-mode .clib-status-failed        { background: rgba(248,113,113,.12) !important; color: #f87171 !important; border-color: rgba(248,113,113,.25) !important; }

body.dark-mode .camp-card-meta { display: flex !important; align-items: center !important; gap: 6px !important; margin-bottom: 10px !important; }
body.dark-mode .camp-card-creative-tag { font-size: 10px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: rgba(255,255,255,.35) !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 4px !important; padding: 2px 7px !important; }
body.dark-mode .camp-card-plat { display: flex !important; align-items: center !important; gap: 5px !important; margin-bottom: 6px !important; }
body.dark-mode .camp-card-plat-name { font-size: 12px !important; color: rgba(255,255,255,.45) !important; }
body.dark-mode .camp-card-goal { font-size: 11px !important; color: rgba(255,255,255,.28) !important; }
body.dark-mode .camp-card-actions { display: flex !important; align-items: center !important; gap: 6px !important; margin-top: 10px !important; padding-top: 10px !important; border-top: 1px solid rgba(255,255,255,.06) !important; }

body.dark-mode .cgr-saved-badge { display: inline-flex !important; align-items: center !important; gap: 6px !important; font-size: 11px !important; font-weight: 600 !important; color: var(--green) !important; background: color-mix(in srgb, var(--green) 8%, transparent) !important; border: 1px solid color-mix(in srgb, var(--green) 20%, transparent) !important; border-radius: 6px !important; padding: 4px 10px !important; }
body.dark-mode .cgr-meta-row { display: flex !important; gap: 20px !important; margin-bottom: 16px !important; }
body.dark-mode .cgr-publish-section { display: flex !important; flex-direction: column !important; gap: 8px !important; }
body.dark-mode .cgr-publish-lbl { font-size: 10px !important; font-weight: 700 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: rgba(255,255,255,.28) !important; }
body.dark-mode .cgr-publish-btns { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }

body.dark-mode .cgr-pub-btn { padding: 8px 16px !important; font-size: 12px !important; font-weight: 600 !important; border: none !important; border-radius: 7px !important; cursor: pointer !important; white-space: nowrap !important; transition: all .15s !important; }
body.dark-mode .cgr-pub-google { background: rgba(66,133,244,.15) !important; color: #7BAFF5 !important; border: 1px solid rgba(66,133,244,.3) !important; }
body.dark-mode .cgr-pub-google:hover { background: rgba(66,133,244,.25) !important; color: #fff !important; }
body.dark-mode .cgr-pub-meta { background: rgba(24,119,242,.15) !important; color: #63A4F8 !important; border: 1px solid rgba(24,119,242,.3) !important; }
body.dark-mode .cgr-pub-meta:hover { background: rgba(24,119,242,.25) !important; color: #fff !important; }
body.dark-mode .cgr-pub-tiktok { background: rgba(37,244,238,.12) !important; color: #25F4EE !important; border: 1px solid rgba(37,244,238,.3) !important; }
body.dark-mode .cgr-pub-tiktok:hover { background: rgba(37,244,238,.22) !important; color: #fff !important; }
body.dark-mode .cgr-pub-disabled { background: rgba(255,255,255,.04) !important; color: rgba(255,255,255,.3) !important; border: 1px solid rgba(255,255,255,.08) !important; cursor: default !important; }
body.dark-mode .cgr-vid-thumb { width: 100% !important; max-height: 280px !important; object-fit: cover !important; display: block !important; background: #000 !important; }

/* ======================================================
   CAMPAIGN DETAIL VIEW (cgr-det-*)
   ====================================================== */

body.dark-mode .cgr-det { padding: 0 !important; }
body.dark-mode .cgr-det-head { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; gap: 24px !important; padding: 28px 28px 24px !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
body.dark-mode .cgr-det-name { font-size: 22px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: -0.02em !important; margin: 10px 0 8px !important; }
body.dark-mode .cgr-det-meta { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; margin-bottom: 6px !important; }
body.dark-mode .cgr-det-tag { font-size: 11px !important; color: rgba(255,255,255,.4) !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 4px !important; padding: 2px 8px !important; }
body.dark-mode .cgr-det-date { font-size: 11px !important; color: rgba(255,255,255,.25) !important; margin-top: 4px !important; }
body.dark-mode .cgr-det-pub-wrap { display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 8px !important; }
body.dark-mode .cgr-det-pub-done { font-size: 12px !important; font-weight: 600 !important; color: #68D391 !important; background: rgba(72,187,120,.1) !important; border: 1px solid rgba(72,187,120,.25) !important; border-radius: 6px !important; padding: 5px 12px !important; }
body.dark-mode .cgr-det-stats { display: flex !important; gap: 0 !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
body.dark-mode .cgr-det-stat { flex: 1 !important; padding: 16px 20px !important; border-right: 1px solid rgba(255,255,255,.07) !important; }
body.dark-mode .cgr-det-stat:last-child { border-right: none !important; }
body.dark-mode .cgr-det-stat-lbl { font-size: 10px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: rgba(255,255,255,.28) !important; margin-bottom: 6px !important; }
body.dark-mode .cgr-det-stat-val { font-size: 13px !important; color: rgba(255,255,255,.75) !important; line-height: 1.4 !important; }

body.dark-mode .cgr-det-tabs { display: flex !important; padding: 0 20px !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
body.dark-mode .cgr-det-tab { padding: 12px 14px !important; font-size: 13px !important; font-weight: 500 !important; color: rgba(255,255,255,.38) !important; background: transparent !important; border: none !important; border-bottom: 2px solid transparent !important; cursor: pointer !important; margin-bottom: -1px !important; transition: color .15s !important; }
body.dark-mode .cgr-det-tab:hover { color: rgba(255,255,255,.65) !important; }
body.dark-mode .cgr-det-tab.active { color: #fff !important; border-bottom-color: var(--green) !important; font-weight: 600 !important; }

body.dark-mode .cgr-det-pane { display: none !important; flex-direction: column !important; gap: 0 !important; padding: 20px !important; }
body.dark-mode .cgr-det-pane.active { display: flex !important; }

/* Copy All (Ad → Your Brand pass — general Details-view improvement, not
   scoped to the reference workflow) — matches the surrounding .cgr-det-*
   family's existing dark-mode-only convention (this whole panel has no
   light-mode base at all yet; a pre-existing gap, not something this
   pass introduces or expands). */
body.dark-mode .cgr-det-copyall-btn {
  font-family: inherit !important; cursor: pointer !important; font-size: 12px !important; font-weight: 700 !important;
  color: #0E0E10 !important; background: var(--green) !important; border: none !important; border-radius: 8px !important;
  padding: 7px 14px !important; margin-bottom: 14px !important; transition: opacity .15s !important;
}
body.dark-mode .cgr-det-copyall-btn:hover { opacity: .88 !important; }

body.dark-mode .cgr-det-section { border-bottom: 1px solid rgba(255,255,255,.06) !important; padding: 16px 0 !important; }
body.dark-mode .cgr-det-section:first-child { padding-top: 0 !important; }
body.dark-mode .cgr-det-section:last-child { border-bottom: none !important; }
body.dark-mode .cgr-det-section-hd { font-size: 10px !important; font-weight: 700 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: rgba(255,255,255,.28) !important; margin-bottom: 10px !important; }
body.dark-mode .cgr-det-section-body { display: flex !important; flex-direction: column !important; gap: 6px !important; }

body.dark-mode .cgr-det-chip-row { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
body.dark-mode .cgr-det-chip { display: inline-flex !important; padding: 5px 11px !important; background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 6px !important; font-size: 12px !important; color: rgba(255,255,255,.75) !important; }
body.dark-mode .cgr-det-chip-neg { background: rgba(255,80,80,.06) !important; border-color: rgba(255,80,80,.18) !important; color: rgba(255,120,100,.85) !important; }
body.dark-mode .cgr-det-copy { cursor: pointer !important; }
body.dark-mode .cgr-det-copy:hover { background: color-mix(in srgb, var(--green) 7%, transparent) !important; border-color: color-mix(in srgb, var(--green) 20%, transparent) !important; color: #fff !important; }

body.dark-mode .cgr-det-list { display: flex !important; flex-direction: column !important; gap: 4px !important; }
body.dark-mode .cgr-det-list-item { padding: 8px 12px !important; background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 6px !important; font-size: 13px !important; color: rgba(255,255,255,.75) !important; line-height: 1.5 !important; }
body.dark-mode .cgr-det-audience-block { font-size: 13px !important; color: rgba(255,255,255,.7) !important; line-height: 1.6 !important; padding: 10px 12px !important; background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 8px !important; }
body.dark-mode .cgr-det-script { font-family: inherit !important; font-size: 12.5px !important; color: rgba(255,255,255,.7) !important; line-height: 1.7 !important; padding: 14px 16px !important; background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 8px !important; white-space: pre-wrap !important; word-break: break-word !important; }
body.dark-mode .cgr-det-empty { font-size: 13px !important; color: rgba(255,255,255,.28) !important; padding: 12px 0 !important; }
body.dark-mode .cgr-det-creatives-info { font-size: 13px !important; color: rgba(255,255,255,.35) !important; line-height: 1.6 !important; padding: 8px 0 !important; }

/* ══════════════════════════════════════════════════════════
   BRAND BRAIN — INLINE EDIT UI
   ══════════════════════════════════════════════════════════ */

/* Section header row with title + edit/regen actions */
.bb-section-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bb-card-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}
.bb-sec-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.bb-sec-edit-btn,
.bb-sec-regen-btn {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid;
  transition: all .12s;
  white-space: nowrap;
}
.bb-sec-edit-btn {
  background: transparent;
  border-color: var(--border, rgba(0,0,0,.12));
  color: var(--muted, rgba(0,0,0,.4));
}
.bb-sec-edit-btn:hover { background: var(--bg2); color: var(--charcoal); }
.bb-sec-regen-btn {
  background: transparent;
  border-color: transparent;
  color: var(--muted, rgba(0,0,0,.3));
}
.bb-sec-regen-btn:hover { color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); background: color-mix(in srgb, var(--green) 6%, transparent); }

/* Inline edit textarea */
.bb-edit-area {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  background: transparent;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  color: inherit;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.bb-edit-area:focus { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 12%, transparent); }

/* Save / Cancel row */
.bb-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.bb-edit-save,
.bb-edit-cancel {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid;
  transition: all .12s;
}
.bb-edit-save {
  background: var(--green);
  border-color: var(--green);
  color: #0A0A0A;
}
.bb-edit-save:hover { background: var(--gm); }
.bb-edit-cancel {
  background: transparent;
  border-color: rgba(0,0,0,.15);
  color: rgba(0,0,0,.45);
}
.bb-edit-cancel:hover { background: rgba(0,0,0,.04); color: rgba(0,0,0,.7); }

/* ── Dark mode overrides ── */
body.dark-mode .bb-section-hd-row { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; }
body.dark-mode .bb-card-eyebrow-row { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; }
body.dark-mode .bb-sec-actions { display: flex !important; align-items: center !important; gap: 4px !important; flex-shrink: 0 !important; }
body.dark-mode .bb-sec-edit-btn {
  padding: 3px 9px !important; font-size: 11px !important; font-weight: 500 !important;
  border-radius: 5px !important; cursor: pointer !important; border: 1px solid rgba(255,255,255,.12) !important;
  background: transparent !important; color: rgba(255,255,255,.35) !important; transition: all .12s !important;
}
body.dark-mode .bb-sec-edit-btn:hover { background: rgba(255,255,255,.07) !important; color: rgba(255,255,255,.75) !important; border-color: rgba(255,255,255,.2) !important; }
body.dark-mode .bb-sec-regen-btn {
  padding: 3px 9px !important; font-size: 11px !important; font-weight: 500 !important;
  border-radius: 5px !important; cursor: pointer !important; border: 1px solid transparent !important;
  background: transparent !important; color: rgba(255,255,255,.28) !important; transition: all .12s !important;
}
body.dark-mode .bb-sec-regen-btn:hover { color: var(--green) !important; border-color: color-mix(in srgb, var(--green) 30%, transparent) !important; background: color-mix(in srgb, var(--green) 6%, transparent) !important; }
body.dark-mode .bb-edit-area {
  width: 100% !important; min-height: 90px !important; padding: 10px 12px !important;
  font-family: 'Geist',system-ui,-apple-system,sans-serif !important;
  font-size: 13.5px !important; line-height: 1.6 !important;
  background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important; color: rgba(255,255,255,.8) !important;
  resize: vertical !important; outline: none !important; box-sizing: border-box !important;
}
body.dark-mode .bb-edit-area:focus { border-color: color-mix(in srgb, var(--green) 60%, transparent) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 10%, transparent) !important; }
body.dark-mode .bb-edit-actions { display: flex !important; gap: 6px !important; margin-top: 8px !important; }
body.dark-mode .bb-edit-save {
  padding: 5px 14px !important; font-size: 12px !important; font-weight: 600 !important;
  border-radius: 6px !important; cursor: pointer !important; transition: all .12s !important;
  background: var(--green) !important; border: 1px solid var(--green) !important; color: #0A0A0A !important;
}
body.dark-mode .bb-edit-save:hover { background: var(--gm) !important; }
body.dark-mode .bb-edit-cancel {
  padding: 5px 14px !important; font-size: 12px !important; font-weight: 600 !important;
  border-radius: 6px !important; cursor: pointer !important; transition: all .12s !important;
  background: transparent !important; border: 1px solid rgba(255,255,255,.12) !important; color: rgba(255,255,255,.35) !important;
}
body.dark-mode .bb-edit-cancel:hover { background: rgba(255,255,255,.05) !important; color: rgba(255,255,255,.65) !important; }

/* ══════════════════════════════════════════════════════════
   SETTINGS — SUBSCRIPTION TWO-CARD LAYOUT
   ══════════════════════════════════════════════════════════ */

.sub-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Shared card shell */
.sub-plan-card,
.sub-usage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.sub-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .55;
  margin-bottom: 8px;
}

/* Plan name + price */
.sub-plan-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.04em;
  margin-bottom: 4px;
}
.sub-plan-price { margin-bottom: 8px; }
.sub-price-num { font-size: 28px; font-weight: 800; color: var(--charcoal); letter-spacing: -.04em; }
.sub-price-per { font-size: 13px; color: var(--muted); margin-left: 3px; }
.sub-price-cs  { font-size: 16px; font-weight: 600; color: var(--charcoal); }
.sub-renewal   { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* Features list */
.sub-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sub-features li {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}
.sub-features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Plan action buttons */
.sub-plan-actions { display: flex; flex-direction: column; gap: 8px; }
.sub-cancel-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  opacity: .6;
  text-decoration: underline;
  transition: opacity .15s;
}
.sub-cancel-link:hover { opacity: 1; }

/* Pending notice */
.sub-pending-notice {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.sub-undo-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  cursor: pointer;
  color: var(--muted);
  margin-left: 4px;
  transition: all .12s;
}
.sub-undo-btn:hover { background: var(--bg2); color: var(--charcoal); }

/* Usage rows */
.sub-usage-list { display: flex; flex-direction: column; gap: 0; }
.sub-usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sub-usage-row:last-child { border-bottom: none; }
.sub-usage-lbl { font-size: 13px; color: var(--charcoal); }
.sub-usage-right { text-align: right; }
.sub-usage-val { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.sub-usage-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── Credit usage bar ─────────────────────────────────────────── */
.sub-credit-hd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sub-credit-hd-lbl { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.sub-credit-hd-val { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sub-credit-bar-track { height: 8px; border-radius: 5px; background: var(--bg2, rgba(0,0,0,.06)); overflow: hidden; margin: 8px 0 6px; }
.sub-credit-bar-fill { height: 100%; border-radius: 5px; background: var(--green); transition: width .3s ease; }
.sub-credit-hd-sub { font-size: 12px; color: var(--muted); }
.sub-usage-unavailable { font-size: 13px; color: var(--muted); padding: 6px 0; }
body.dark-mode .sub-credit-bar-track { background: rgba(255,255,255,.07); }

/* ── Dark mode overrides ── */
body.dark-mode .sub-plan-card,
body.dark-mode .sub-usage-card {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
}
body.dark-mode .sub-card-eyebrow { color: rgba(255,255,255,.28) !important; opacity: 1 !important; }
body.dark-mode .sub-plan-name { color: #fff !important; }
body.dark-mode .sub-price-num { color: #fff !important; }
body.dark-mode .sub-price-per { color: rgba(255,255,255,.35) !important; }
body.dark-mode .sub-price-cs  { color: rgba(255,255,255,.8) !important; }
body.dark-mode .sub-renewal   { color: rgba(255,255,255,.3) !important; }
body.dark-mode .sub-features li { color: rgba(255,255,255,.5) !important; }
body.dark-mode .sub-features li::before { background: var(--green) !important; }
body.dark-mode .sub-cancel-link { color: rgba(255,255,255,.3) !important; }
body.dark-mode .sub-cancel-link:hover { opacity: 1 !important; color: rgba(255,255,255,.6) !important; }
body.dark-mode .sub-pending-notice { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.5) !important; }
body.dark-mode .sub-undo-btn { border-color: rgba(255,255,255,.12) !important; color: rgba(255,255,255,.4) !important; }
body.dark-mode .sub-undo-btn:hover { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.75) !important; }
body.dark-mode .sub-usage-row { border-bottom-color: rgba(255,255,255,.06) !important; }
body.dark-mode .sub-usage-lbl { color: rgba(255,255,255,.6) !important; }
body.dark-mode .sub-usage-val { color: rgba(255,255,255,.85) !important; }
body.dark-mode .sub-usage-sub { color: rgba(255,255,255,.28) !important; }
body.dark-mode .sub-two-col { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; align-items: start !important; }

/* Settings nav — dark overrides for cleaner look */
body.dark-mode .se-nav {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 12px !important;
  padding: 10px !important;
}
body.dark-mode .se-nav-label {
  font-size: 9px !important; font-weight: 700 !important; letter-spacing: .1em !important;
  text-transform: uppercase !important; color: rgba(255,255,255,.22) !important;
  padding: 4px 8px 5px !important; cursor: default !important;
}
body.dark-mode .snav-item {
  padding: 7px 10px !important; border-radius: 7px !important; font-size: 12.5px !important;
  color: rgba(255,255,255,.45) !important; cursor: pointer !important; margin-bottom: 1px !important;
}
body.dark-mode .snav-item:hover { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.8) !important; }
body.dark-mode .snav-item.active { background: color-mix(in srgb, var(--green) 10%, transparent) !important; color: var(--green) !important; font-weight: 600 !important; }
body.dark-mode .se-nav-group+.se-nav-group { border-top-color: rgba(255,255,255,.05) !important; }

/* Settings panel header */
body.dark-mode .se-panel-hd { border-bottom-color: rgba(255,255,255,.06) !important; }
body.dark-mode .se-panel-title { color: #fff !important; }
body.dark-mode .se-panel-sub { color: rgba(255,255,255,.4) !important; }

/* Settings card title + help in dark */
body.dark-mode .se-card-title { color: rgba(255,255,255,.85) !important; }
body.dark-mode .se-card-help { color: rgba(255,255,255,.38) !important; }

/* Responsive — stack on small screens */
@media (max-width: 600px) {
  .sub-two-col { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════
   SETTINGS MODAL (smd-*)
   ════════════════════════════════════════════════════════════════ */
.smd-modal{width:960px;height:700px;max-width:calc(100vw - 32px);max-height:calc(100vh - 48px);padding:0;display:flex;flex-direction:column;overflow:hidden;border-radius:14px}
.smd-hd{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);flex-shrink:0}
.smd-hd-title{font-family:'Geist',system-ui,-apple-system,sans-serif;font-size:13px;font-weight:600;color:var(--charcoal);letter-spacing:-.01em}
.smd-close-btn{width:26px;height:26px;border-radius:6px;border:none;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s,color .15s}
.smd-close-btn:hover{background:rgba(0,0,0,.05);color:var(--charcoal)}
.smd-body{display:flex;flex:1;overflow:hidden;min-height:0}
.smd-nav{width:148px;flex-shrink:0;border-right:1px solid var(--border);padding:10px 8px;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
.smd-ni{display:block;width:100%;text-align:left;padding:7px 10px;border-radius:7px;border:none;background:transparent;font-family:'Geist',system-ui,-apple-system,sans-serif;font-size:13px;font-weight:400;color:var(--muted);cursor:pointer;transition:background .12s,color .12s;letter-spacing:-.01em}
.smd-ni:hover{background:rgba(0,0,0,.04);color:var(--charcoal)}
.smd-ni.active{background:var(--glt);color:var(--charcoal);font-weight:500}
.smd-content{flex:1;overflow-y:auto;padding:16px 26px 20px;min-width:0}
.smd-panel{display:none}.smd-panel.active{display:block}
.smd-panel-hd{margin-bottom:18px}
.smd-panel-title{font-family:'Geist',system-ui,-apple-system,sans-serif;font-size:15px;font-weight:700;color:var(--charcoal);letter-spacing:-.03em}
.smd-section{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--border)}
.smd-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.smd-field-lbl{font-size:13px;font-weight:500;color:var(--charcoal);margin-bottom:3px}
.smd-field-help{font-size:12px;color:var(--muted);line-height:1.5}
.smd-field-val{font-size:13px;color:var(--charcoal);padding:8px 11px;background:var(--sf2);border:1px solid var(--border);border-radius:7px;word-break:break-all;margin-top:8px}
.smd-input-row{display:flex;gap:8px;align-items:center;margin-top:10px}
.smd-input-row .inp{flex:1}

/* Theme picker */
.smd-theme-row{display:flex;gap:10px;margin-top:12px}
.smd-theme-opt{flex:1;cursor:pointer;border-radius:9px;border:2px solid var(--border);padding:10px 8px 8px;text-align:center;transition:border-color .15s;user-select:none}
.smd-theme-opt:hover{border-color:var(--gm)}
.smd-theme-opt.active{border-color:var(--green)}
.smd-theme-prev{height:50px;border-radius:5px;overflow:hidden;display:flex;margin-bottom:7px}
.smd-theme-lt{background:#F0EEEB}
.smd-theme-dk{background:#141414}
.smd-theme-sys{background:linear-gradient(90deg,#F0EEEB 50%,#141414 50%)}
.smd-tp-sb{width:30%;background:#D8D4CE}
.smd-tp-sb-dk{background:#252525}
.smd-tp-main{flex:1;padding:5px;display:flex;flex-direction:column;gap:3px}
.smd-tp-card{flex:1;background:#fff;border-radius:2px}
.smd-tp-card-dk{background:#2a2a2a}
.smd-theme-lbl{font-size:11px;font-weight:500;color:var(--muted);letter-spacing:.01em}
.smd-theme-opt.active .smd-theme-lbl{color:var(--charcoal)}

/* Notification rows */
.smd-tgl-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--border)}
.smd-tgl-row:last-child{border-bottom:none;padding-bottom:0}
.smd-tgl-lbl{font-size:13px;font-weight:500;color:var(--charcoal);margin-bottom:2px}
.smd-tgl-sub{font-size:12px;color:var(--muted)}

/* Danger Zone */
.smd-danger-zone{margin-top:24px;border:1px solid rgba(239,68,68,.2);border-radius:10px;padding:16px 18px;background:rgba(239,68,68,.02)}
.smd-danger-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:#ef4444;margin-bottom:10px;opacity:.75}
.smd-danger-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid rgba(239,68,68,.1)}
.smd-danger-row-last{border-bottom:none;padding-bottom:0}
.smd-danger-btn{flex-shrink:0;padding:7px 14px;border-radius:7px;font-size:12px;font-weight:500;font-family:'Geist',system-ui,sans-serif;border:1px solid var(--border);background:transparent;color:var(--charcoal);cursor:pointer;transition:background .12s;white-space:nowrap}
.smd-danger-btn:hover{background:rgba(0,0,0,.05)}
.smd-danger-btn-del{border-color:rgba(239,68,68,.35);color:#ef4444}
.smd-danger-btn-del:hover{background:rgba(239,68,68,.07)}

/* Dark mode overrides */
body.dark-mode .smd-close-btn:hover{background:rgba(255,255,255,.07) !important}
body.dark-mode .smd-ni:hover{background:rgba(255,255,255,.06) !important}
body.dark-mode .smd-field-val{background:rgba(255,255,255,.04) !important}
body.dark-mode .smd-danger-zone{background:rgba(239,68,68,.04) !important}
body.dark-mode .smd-danger-btn:hover{background:rgba(255,255,255,.06) !important}
body.dark-mode .smd-danger-btn-del:hover{background:rgba(239,68,68,.1) !important}

/* Responsive */
@media (max-width: 900px){
  /* Tablet: adaptive width — previously jumped straight from the 960x700
     desktop size to the 600px bottom sheet with nothing in between. */
  .smd-modal{width:min(720px, calc(100vw - 48px));height:min(640px, calc(100vh - 64px))}
}
@media (max-width: 600px){
  .smd-modal{width:100%;height:88vh;max-height:88vh;border-radius:12px 12px 0 0;align-self:flex-end;margin-bottom:0}
  /* Previously .smd-nav{display:none} with no replacement — that hid the
     tab strip entirely, leaving 5 of 6 Settings panels unreachable on any
     <=600px viewport (confirmed by direct read before this fix). Convert
     to a horizontal-scroll strip instead, same pattern already proven at
     .bb-tab-bar (styles.css, Brand tab): overflow-x:auto, hidden scrollbar. */
  .smd-body{flex-direction:column}
  .smd-nav{
    width:100%; flex-direction:row; overflow-x:auto; overflow-y:hidden;
    scrollbar-width:none; border-right:none; border-bottom:1px solid var(--border);
    padding:8px 10px; gap:4px;
  }
  .smd-nav::-webkit-scrollbar{display:none}
  .smd-ni{flex-shrink:0; white-space:nowrap}
  .smd-content{padding:16px 18px 28px}
}


/* ── Subscription: Plan Comparison Grid (Free, Starter, Creator, Professional) ── */
.sub-plans-sep{height:1px;background:var(--border);margin:14px 0 10px}
.sub-plans-hd{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);margin-bottom:8px;opacity:.65}
.sub-plans-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.sub-pcard{border:1px solid var(--border);border-radius:10px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.sub-pcard-active{border-color:var(--green);background:var(--glt)}
.sub-pcard-badge{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;height:16px;display:flex;align-items:center}
.sub-pcard-badge-cur{color:var(--green)}
.sub-pcard-badge-pop{color:var(--muted);opacity:.6}
.sub-pcard-badge-gap{height:16px}
.sub-pcard-name{font-size:14px;font-weight:700;color:var(--charcoal);letter-spacing:-.03em;line-height:1}
.sub-pcard-price{font-size:18px;font-weight:800;color:var(--charcoal);letter-spacing:-.04em;line-height:1}
.sub-pcard-price-cs{font-size:13px;font-weight:600;letter-spacing:0}
.sub-pcard-per{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}
.sub-pcard-feats{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;flex:1}
.sub-pcard-feats li{font-size:11px;color:var(--muted);padding-left:10px;position:relative;line-height:1.4}
.sub-pcard-feats li::before{content:'';position:absolute;left:0;top:5px;width:4px;height:4px;border-radius:50%;background:var(--muted);opacity:.45}
.sub-pcard-agency-desc{font-size:11px;color:var(--muted);line-height:1.5;flex:1}
.sub-pcard-btn{display:block;width:100%;padding:7px 8px;border-radius:7px;font-size:12px;font-weight:500;font-family:'Geist',system-ui,sans-serif;cursor:pointer;text-align:center;transition:opacity .12s,background .12s;border:1px solid var(--border);background:transparent;color:var(--charcoal);text-decoration:none;margin-top:auto}
.sub-pcard-btn:hover:not(:disabled){background:rgba(0,0,0,.04)}
.sub-pcard-btn-up{background:var(--green);border-color:var(--green);color:var(--green-deep)}
.sub-pcard-btn-up:hover:not(:disabled){opacity:.88}
.sub-pcard-btn-cur{color:var(--muted);cursor:default;opacity:.6}
.sub-pcard-btn-outline{color:var(--charcoal)}
.sub-pcard-btn:disabled{cursor:default;opacity:.5}

body.dark-mode .sub-pcard-btn:hover:not(:disabled){background:rgba(255,255,255,.06) !important}
body.dark-mode .sub-pcard-btn-up:hover:not(:disabled){background:var(--green) !important;opacity:.88}

/* Settings → Plan: the access card and the five period plans (plans.js). */
.sub-plans-grid.sub-plans-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.sub-access-name{font-size:16px;font-weight:700;color:var(--charcoal);letter-spacing:-.02em;margin-top:6px}
.sub-access-kind{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0;margin-left:4px}
.sub-access-text{font-size:12.5px;line-height:1.55;color:var(--muted);margin:8px 0 10px;max-width:640px}
@media(max-width:960px){.sub-plans-grid.sub-plans-five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.sub-plans-grid{grid-template-columns:1fr 1fr}.sub-plans-grid.sub-plans-five{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.sub-plans-grid,.sub-plans-grid.sub-plans-five{grid-template-columns:1fr}}

/* ── Ads Manager – Live Campaigns Section ──────────────────────────── */
.adm-live-loading { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.4); padding: 12px 0; }
.adm-live-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: rgba(99,179,237,.12); color: #63B3ED; border: 1px solid rgba(99,179,237,.2); white-space: nowrap; }
.adm-live-table thead th:nth-child(3),
.adm-live-table thead th:nth-child(4) { display: none; }
@media (min-width: 700px) {
  .adm-live-table thead th:nth-child(3),
  .adm-live-table thead th:nth-child(4) { display: table-cell; }
}
.adm-live-obj   { font-size: 12px; color: rgba(255,255,255,.45); }
.adm-live-budget { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); }
.adm-live-date  { font-size: 12px; color: rgba(255,255,255,.35); white-space: nowrap; }

/* Live campaign status badges */
.adm-live-status { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; }
.adm-live-active  { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.22); }
.adm-live-paused  { background: rgba(251,191,36,.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.adm-live-arch    { background: rgba(255,255,255,.06); color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.1); }

/* Campaign ID sub-text */
.adm-camp-id { font-size: 10px; color: var(--muted, rgba(0,0,0,.3)); font-family: monospace; margin-top: 1px; }
body.dark-mode .adm-camp-id { color: rgba(255,255,255,.2); }

/* Refresh + Edit action buttons */
.adm-act-edit    { background: rgba(0,0,0,.045); color: var(--charcoal, rgba(0,0,0,.6)); border-color: var(--border, rgba(0,0,0,.12)); }
.adm-act-edit:hover { background: rgba(0,0,0,.08); }
.adm-act-refresh { background: transparent; color: var(--muted, rgba(0,0,0,.35)); border-color: var(--border, rgba(0,0,0,.12)); font-size: 14px; line-height: 1; padding: 3px 8px; }
.adm-act-refresh:hover { color: var(--charcoal, rgba(0,0,0,.7)); background: rgba(0,0,0,.05); }
body.dark-mode .adm-act-edit    { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.12); }
body.dark-mode .adm-act-edit:hover { background: rgba(255,255,255,.12); }
body.dark-mode .adm-act-refresh { color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.1); }
body.dark-mode .adm-act-refresh:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }

/* ── Edit Campaign Modal ────────────────────────────────────────────── */
.adm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.adm-modal { background: #1c1c1e; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; width: 100%; max-width: 420px; margin: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.adm-modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.adm-modal-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.9); }
.adm-modal-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.35); padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: color .12s; }
.adm-modal-close:hover { color: rgba(255,255,255,.7); }
.adm-modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.adm-modal-field { display: flex; flex-direction: column; gap: 6px; }
.adm-modal-lbl { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .03em; }
.adm-modal-inp { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: rgba(255,255,255,.9); outline: none; box-sizing: border-box; transition: border-color .12s; }
.adm-modal-inp:focus { border-color: rgba(129,140,248,.5); }
.adm-budget-row { display: flex; align-items: center; gap: 0; }
.adm-budget-cur { font-size: 13px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-right: none; border-radius: 8px 0 0 8px; padding: 9px 10px; line-height: 1; }
.adm-budget-inp { border-radius: 0 !important; border-left: none !important; border-right: none !important; flex: 1; min-width: 0; }
.adm-budget-day { font-size: 12px; color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-left: none; border-radius: 0 8px 8px 0; padding: 9px 10px; white-space: nowrap; line-height: 1; }
.adm-modal-err { font-size: 12px; color: #f87171; padding: 6px 10px; background: rgba(248,113,113,.08); border-radius: 6px; border: 1px solid rgba(248,113,113,.15); }
.adm-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.adm-modal-cancel { font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.5); cursor: pointer; transition: background .12s, color .12s; }
.adm-modal-cancel:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.adm-modal-save { font-size: 13px; font-weight: 600; padding: 7px 20px; border-radius: 8px; border: none; background: var(--green); color: #000; cursor: pointer; transition: background .12s; }
.adm-modal-save:hover { background: var(--gm); }
.adm-modal-save:disabled { opacity: .55; cursor: default; }

/* ── Ads Manager – Extended Status Badges ───────────────────────────── */
.adm-live-deleted      { background: rgba(248,113,113,.08); color: rgba(248,113,113,.6); border: 1px solid rgba(248,113,113,.15); }
.adm-live-review       { background: rgba(99,179,237,.1);   color: #63B3ED; border: 1px solid rgba(99,179,237,.2); }
.adm-live-disapproved  { background: rgba(251,146,60,.1);   color: #fb923c; border: 1px solid rgba(251,146,60,.2); }
.adm-live-payment-err  { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.22); }

/* ── Row selection ──────────────────────────────────────────────────── */
.adm-th-check { width: 36px; padding-left: 10px !important; }
.adm-row-check { width: 14px; height: 14px; accent-color: var(--green); cursor: pointer; }
.adm-row-sel { background: color-mix(in srgb, var(--green) 4%, transparent) !important; }
.adm-live-table thead th:first-child { width: 36px; }

/* ── Delete Confirmation Modal ──────────────────────────────────────── */
.adm-delete-modal { max-width: 380px; }
.adm-delete-warn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.15); border-radius: 8px; font-size: 13px; color: #f87171; }
.adm-delete-detail { margin-top: 14px; }
.adm-delete-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.adm-delete-id { font-size: 11px; color: rgba(255,255,255,.3); font-family: monospace; margin-top: 3px; }
.adm-modal-del-confirm { font-size: 13px; font-weight: 600; padding: 7px 20px; border-radius: 8px; border: none; background: #ef4444; color: #fff; cursor: pointer; transition: background .12s; }
.adm-modal-del-confirm:hover { background: #dc2626; }
.adm-modal-del-confirm:disabled { opacity: .55; cursor: default; }

/* ── Campaign Details Panel ─────────────────────────────────────────── */
.adm-camp-panel { position: fixed; inset: 0; z-index: 900; display: flex; justify-content: flex-end; pointer-events: none; }
.adm-camp-panel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); pointer-events: all; }
.adm-camp-panel-inner { position: relative; width: 340px; max-width: 90vw; background: #1c1c1e; border-left: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; pointer-events: all; overflow: hidden; }
.adm-camp-panel-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 20px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.adm-camp-panel-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.9); line-height: 1.35; flex: 1; word-break: break-word; }
.adm-camp-panel-body { flex: 1; overflow-y: auto; padding: 4px 0; }
.adm-panel-row { display: flex; flex-direction: column; gap: 4px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.04); }
.adm-panel-lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); letter-spacing: .04em; text-transform: uppercase; }
.adm-panel-val { font-size: 13px; color: rgba(255,255,255,.8); }
.adm-panel-id { font-family: monospace; font-size: 12px; color: rgba(255,255,255,.4); }
.adm-camp-panel-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.adm-panel-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.adm-panel-btn { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 7px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); cursor: pointer; transition: background .12s, color .12s; }
.adm-panel-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.adm-panel-btn.adm-act-pause  { background: rgba(251,191,36,.1);  color: #fbbf24; border-color: rgba(251,191,36,.2); }
.adm-panel-btn.adm-act-resume { background: rgba(99,179,237,.1);  color: #63B3ED; border-color: rgba(99,179,237,.2); }
.adm-panel-btn.adm-act-edit   { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.12); }
.adm-panel-btn.adm-act-del-panel { color: #f87171; border-color: rgba(248,113,113,.2); background: rgba(248,113,113,.08); }
.adm-panel-btn.adm-act-del-panel:hover { background: rgba(248,113,113,.16); }

/* ── Bulk action bar ────────────────────────────────────────────────── */
.adm-bulk-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #1c1c1e; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 16px; box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 800; white-space: nowrap; }
.adm-bulk-count { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }
.adm-bulk-del { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 7px; border: 1px solid rgba(248,113,113,.2); background: rgba(248,113,113,.1); color: #f87171; cursor: pointer; transition: background .12s; display: flex; align-items: center; gap: 5px; }
.adm-bulk-del:hover { background: rgba(248,113,113,.2); }
.adm-bulk-del:disabled { opacity: .5; cursor: default; }
.adm-bulk-cancel { font-size: 12px; padding: 6px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.4); cursor: pointer; }
.adm-bulk-cancel:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }

/* ── Toast notifications ────────────────────────────────────────────── */
.adm-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(12px); padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .25s, transform .25s; z-index: 1100; pointer-events: none; white-space: nowrap; }
.adm-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.adm-toast-ok  { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.adm-toast-err { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.2); }

/* ======================================================================
   CREATE PAGE - AI Input
====================================================================== */
.aic-outer { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 60px); padding: 40px 20px; box-sizing: border-box; }
.aic-center { width: 100%; max-width: 600px; }
.aic-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 28px; }
.aic-brand svg { opacity: .5; }
.aic-h1 { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.aic-sub { font-size: 15px; color: rgba(255,255,255,.4); margin: 0 0 28px; line-height: 1.55; }
.aic-input-wrap { background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.aic-input-wrap:focus-within { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.aic-textarea { display: block; width: 100%; min-height: 100px; padding: 16px 18px 10px; font-size: 15px; font-family: Geist, system-ui, sans-serif; color: rgba(255,255,255,.9); background: transparent; border: none; outline: none; resize: none; line-height: 1.6; box-sizing: border-box; }
.aic-textarea::placeholder { color: rgba(255,255,255,.2); }
.aic-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.aic-hint { font-size: 11px; color: rgba(255,255,255,.18); }
.aic-gen-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; background: var(--green); color: #0a0a0a; font-size: 13px; font-weight: 700; border: none; cursor: pointer; transition: opacity .12s, transform .1s; font-family: Geist, system-ui, sans-serif; }
.aic-gen-btn:hover { opacity: .88; transform: translateY(-1px); }
.aic-gen-btn:disabled { opacity: .4; cursor: default; transform: none; }
.aic-examples { margin-top: 22px; }
.aic-ex-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.18); margin-bottom: 10px; }
.aic-ex-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.aic-ex-pill { padding: 7px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: rgba(255,255,255,.4); font-size: 12px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; font-family: Geist, system-ui, sans-serif; text-align: left; }
.aic-ex-pill:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.14); }

/* ======================================================================
   CREATE PAGE v2  (.cr2-*)
====================================================================== */
.cr2-wrap {
  /* Creative Stage pass — widened from 820px (a single-column composer
     width) to the SAME wide-workspace token Campaigns/Business/Research
     already use (--camp-content-maxw, 1440px), now that the page holds
     a real two-part workspace (composer + Creative Stage) instead of one
     centered form. Final Visual Polish pass — gap tightened from 28px to
     22px (spec 6: "slightly reduce unused vertical gap") now that the
     workspace row's own top border (below) does the visual work of
     separating header from workspace, so the whitespace alone no longer
     has to. */
  max-width: var(--camp-content-maxw);
  margin: 0 auto;
  padding: 32px 28px 60px;
  display: flex;
  flex-direction: column;
  /* Create Density Correction pass — 22px -> 16px. */
  gap: 16px;
}

/* ── Creative Stage workspace row (Creative Stage pass) ──────────────────
   The composer (.cr2-box, unchanged internally) and the real Creative
   Stage (#cr2Stage) as two parts of one system: shared alignment, one
   gap value, same border treatment/radius, sitting on the SAME ambient
   background from the previous pass (which stays secondary — it's
   z-index:0 behind this whole row, never the row's own background).
   Final Visual Polish pass — a faint top border, exactly the width of the
   workspace itself (not the full viewport), gives the header a literal
   seam connecting it to the workspace below (spec 6: "reduce floating-
   page-title feeling... visually bind business context to the
   workspace") without turning the header into a card of its own. */
/* Layout Fix pass — reverted to align-items: flex-start (was stretch).
   Stretch forced .cr2-box to match .cr2-stage's own naturally taller
   height (the Stage's fixed-aspect preview frame + metadata rows are
   simply taller content than the composer's collapsed control list), and
   the composer had nothing real to fill that forced height with — the
   previous pass's margin-top:auto on .cr2-gen-row (below) then consumed
   the whole difference as one giant blank area above the CTA, which read
   as an obvious layout bug rather than a considered composition. Each
   panel now sizes to its own real content; visual coherence between them
   comes from sharing the same border/radius/surface treatment (already
   true — see .cr2-box/.cr2-stage) and top alignment, not from forcing
   equal height artificially. At <=1280px this row already switches to
   flex-direction:column (below), where align-items governs width, not
   height, so stacked layouts are unaffected either way. */
.cr2-workspace-row {
  display: flex; align-items: flex-start; gap: 28px; width: 100%;
  /* Create Density Correction pass — 20px -> 14px. */
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
body:not(.dark-mode) .cr2-workspace-row { border-top-color: rgba(0,0,0,.07); }
.cr2-workspace-row > .cr2-box { flex: 1 1 560px; min-width: 0; max-width: 640px; }

/* ── Creative Stage ────────────────────────────────────────────────────
   Same visual family as .cr2-box (border/radius/surface), rebuilt in
   full by _cr2RenderStage() on every real selection/attach/brand change
   (app.html). Everything inside is either: (a) real user-provided
   material (an attached image/product, a real logo/brand colors), (b) a
   real readout of the user's own configuration (platform/mode/goal/
   type/structure tags), or (c) honest neutral tooling geometry,
   aria-hidden, never presented as content.

   Final Visual Polish pass — the Stage previously read as "one big empty
   box, then some text below" because nothing distinguished the PREVIEW
   SURFACE (the frame) from CONTEXTUAL METADATA (provider/brief/structure)
   from BRAND CONTEXT (name/colors). Three structural additions below fix
   that without adding a single card or any fabricated content:
     .cr2-stage-head   — a restrained eyebrow, same label language as the
                         composer's own .cr2-goal-label, so the two panels
                         visibly read as one system.
     .cr2-stage-frame-tag — an honest format badge pinned to the canvas
                         corner (an artboard label, not creative content).
     .cr2-stage-meta   — wraps everything below the frame behind one clear
                         divider (preview surface vs. context), with its
                         own tighter internal rhythm and a second divider
                         specifically between campaign context and brand
                         context (see .cr2-stage-meta-brand below). */
.cr2-stage {
  flex: 1 1 420px; min-width: 300px;
  display: flex; flex-direction: column;
  /* Create Density Correction pass — 14px -> 12px. */
  gap: 12px;
  border: 1.5px solid var(--border, #e5e7eb); border-radius: 16px;
  background: var(--surface, #fff);
  padding: 20px;
  transition: border-color .2s ease, opacity .18s ease;
}
body.dark-mode .cr2-stage { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.1); }

.cr2-stage-head { display: flex; align-items: center; justify-content: space-between; }
.cr2-stage-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted, #888);
}

/* Frame — the dominant element: either the user's real attached image,
   or honest neutral format geometry. Fixed aspect ratio so the stage's
   overall height stays stable as the user switches selections (no
   layout jump each time _cr2RenderStage rebuilds it). */
.cr2-stage-frame {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  /* Create Density Correction pass — 4/3 -> 3/2. Still a genuinely
     photographic image-ad proportion, just a bit shorter; this is the
     single largest lever in the Stage's overall height. Mobile/tablet
     keep their own separate aspect-ratio overrides below, unaffected. */
  aspect-ratio: 3 / 2;
}
body:not(.dark-mode) .cr2-stage-frame { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
.cr2-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr2-stage-frame-svg { width: 96px; height: 96px; opacity: .8; }
.cr2-stage-frame-rect { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
body:not(.dark-mode) .cr2-stage-frame-rect { stroke: rgba(0,0,0,.14); }
.cr2-stage-frame-corner { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; opacity: .55; }
/* Rule-of-thirds center guides (empty image/video states only, per spec
   3 — "possible structural elements: center alignment marks, restrained
   grid/guides"). Honest tooling geometry, aria-hidden, never shown once a
   real image is attached. */
.cr2-stage-frame-guide { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; stroke-dasharray: 2 3; }
body:not(.dark-mode) .cr2-stage-frame-guide { stroke: rgba(0,0,0,.1); }
.cr2-stage-frame-icon, .cr2-stage-frame-icon-circle { fill: rgba(255,255,255,.16); }
body:not(.dark-mode) .cr2-stage-frame-icon, body:not(.dark-mode) .cr2-stage-frame-icon-circle { fill: rgba(0,0,0,.16); }
.cr2-stage-frame-ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
body:not(.dark-mode) .cr2-stage-frame-ring { stroke: rgba(0,0,0,.14); }
.cr2-stage-frame-label { font-size: 11.5px; color: var(--muted, #888); text-align: center; padding: 0 16px; }

/* Final Create Fix pass (spec 2) — Video gets a genuinely different frame
   geometry (16:9, a real "video player" proportion) instead of sharing
   image's 4:3 shape, plus a restrained timeline track. The track/playhead/
   ticks are pure structural chrome (spec: no fabricated duration/progress/
   thumbnail) — the playhead always sits at the track's own start, the
   track is never "filled" to imply elapsed time, and no time label is
   ever rendered. */
.cr2-stage-frame-video { aspect-ratio: 16 / 9; }
/* The video diagram carries more real structural detail (play glyph +
   timeline track + ticks) than the plain image icon, so it needs more
   room to stay legible -- sized to its own 16:9 viewBox rather than
   image's fixed 96x96 square (unchanged, per spec: preserve image). */
.cr2-stage-frame-svg-video { width: 220px; height: 123.75px; }
.cr2-stage-frame-track { fill: rgba(255,255,255,.09); }
body:not(.dark-mode) .cr2-stage-frame-track { fill: rgba(0,0,0,.09); }
.cr2-stage-frame-playhead { fill: var(--green); opacity: .75; }
.cr2-stage-frame-tick { stroke: rgba(255,255,255,.14); stroke-width: 1.5; stroke-linecap: round; }
body:not(.dark-mode) .cr2-stage-frame-tick { stroke: rgba(0,0,0,.14); }

/* Format badge — an artboard-style corner label (honest structural
   metadata: "what format am I previewing", spec 1), present on every
   frame state including a real attached image, never creative content. */
.cr2-stage-frame-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted, #888);
  background: rgba(20,20,20,.55); border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px; padding: 3px 6px;
  backdrop-filter: blur(2px);
}
body:not(.dark-mode) .cr2-stage-frame-tag { background: rgba(255,255,255,.72); border-color: rgba(0,0,0,.1); }

/* Search — genuinely different structure from the image frame (Google
   Search creative is text, not a picture slot). Labeled ad-anatomy slots
   (Final URL / Headline / Description) instead of generic skeleton bars —
   honest structural labels per spec 2, never real or fake ad copy. */
.cr2-stage-frame-search { align-items: stretch; padding: 26px 24px 0; }
.cr2-stage-search-mock { display: flex; flex-direction: column; gap: 11px; width: 100%; max-width: 340px; margin: 0 auto; }
.cr2-stage-search-slot { display: flex; align-items: center; gap: 10px; }
.cr2-stage-search-cap {
  flex: 0 0 66px; text-align: right;
  font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 55%, var(--muted, #888));
}
.cr2-stage-search-bar { flex: 1 1 auto; height: 9px; border-radius: 5px; background: rgba(255,255,255,.08); }
body:not(.dark-mode) .cr2-stage-search-bar { background: rgba(0,0,0,.08); }
.cr2-stage-search-bar-head { height: 12px; background: rgba(255,255,255,.16); }
body:not(.dark-mode) .cr2-stage-search-bar-head { background: rgba(0,0,0,.16); }
.cr2-stage-search-bar-url { background: color-mix(in srgb, var(--green) 40%, transparent); max-width: 150px; }

/* ── Metadata zone — everything that is NOT the preview surface ───────
   One clear divider separates it from the frame above; a second,
   lighter one further down separates "campaign context" (provider/
   brief/structure) from "brand context" (name/colors), per spec 1's
   explicit ask that the two read as distinguishable groups. */
.cr2-stage-meta {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
body:not(.dark-mode) .cr2-stage-meta { border-top-color: rgba(0,0,0,.07); }
.cr2-stage-meta-campaign { display: flex; flex-direction: column; gap: 10px; }

/* Provider identity row — the exact same real icon the platform pill uses. */
.cr2-stage-provider { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fg, #111); }
.cr2-stage-provider svg { flex-shrink: 0; }
/* Real provider identity accent (spec: "provider colors for provider
   identity") — a single restrained top border on the Stage itself, the
   same real brand colors already used in the platform pill icons above
   (Meta #1877F2, Pinterest #E60023). Google's own mark has no single
   representative color (a 4-color logo), and TikTok's is functionally
   black/white, so both stay on the neutral lime/border treatment rather
   than forcing an arbitrary single accent that isn't genuinely "Google"
   or "TikTok" branding. */
.cr2-stage:has(.cr2-stage-provider-meta) { border-top: 2px solid #1877F2; }
.cr2-stage:has(.cr2-stage-provider-pinterest) { border-top: 2px solid #E60023; }

/* Active brief — a real readout of the user's own configuration, not generated content. */
.cr2-stage-brief { display: flex; flex-wrap: wrap; gap: 6px; }
.cr2-stage-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: var(--muted, #888); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px; padding: 3px 7px;
}
body:not(.dark-mode) .cr2-stage-tag { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); }
.cr2-stage-struct { font-size: 11.5px; color: var(--muted, #888); }

/* Brand Identity — only ever real name/colors/logo. Its own divider (not
   just a shared gap) marks the "brand context" boundary called out in
   spec 1, distinguishing it from the campaign-context group above. */
.cr2-stage-meta-brand { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
body:not(.dark-mode) .cr2-stage-meta-brand { border-top-color: rgba(0,0,0,.06); }
/* Ad → Your Brand status — same divider convention as the brand-context
   boundary above; only ever rendered once a real reference analysis has
   been confirmed (see _cr2RenderStage). Reuses .cr2-ayb-stage* verbatim
   from the composer panel so this reads as one continuous moment. */
.cr2-stage-meta-ref { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 6px; }
body:not(.dark-mode) .cr2-stage-meta-ref { border-top-color: rgba(0,0,0,.06); }
.cr2-stage-meta-ref .cr2-ayb-stages { margin-bottom: 0; }
.cr2-stage-ref-note { font-size: 11px; color: var(--muted, #888); }
.cr2-stage-brand { display: flex; align-items: center; gap: 8px; }
.cr2-stage-brand-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cr2-stage-brand-name { font-size: 12px; font-weight: 600; color: var(--fg, #111); }
.cr2-stage-brand-swatches { display: flex; gap: 4px; margin-left: auto; }
.cr2-stage-swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.cr2-stage-brand-empty { font-size: 11.5px; color: var(--muted, #888); font-style: italic; }

/* Attached product reference — context only, visually secondary. */
.cr2-stage-product { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted, #888); }
.cr2-stage-product img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

/* Recent real creative — small, secondary, read-only. */
.cr2-stage-shelf { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
body:not(.dark-mode) .cr2-stage-shelf { border-top-color: rgba(0,0,0,.06); }
.cr2-stage-shelf-label { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #888); margin-bottom: 8px; }
.cr2-stage-shelf-row { display: flex; gap: 6px; }
.cr2-stage-shelf-thumb { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; border: 1px solid rgba(255,255,255,.08); }

/* Transitions kept short (150-300ms) per spec — real state changes, not
   ambient motion, so these are NOT gated behind reduced-motion (the same
   treatment this codebase already gives ordinary hover/selection
   transitions elsewhere). A brief content crossfade (_cr2RenderStage,
   app.html) uses this same .cr2-stage opacity transition so switching
   platform/mode/goal/type reads as the Stage visibly responding rather
   than an instant hard swap — still well under the 150-300ms ceiling. */
.cr2-stage-frame, .cr2-stage-img { transition: opacity .2s ease; }

/* Stacks only where composer (min ~520px) + Stage (~400px) genuinely no
   longer fit side by side. Was 1280px, which stacked them on 1280px laptops
   (1148px of content) and pushed the Stage ~650px down the page. */
@media (max-width: 1180px) {
  .cr2-workspace-row { flex-direction: column; }
  /* flex: none overrides the desktop-only "flex: 1 1 560px" (.cr2-box's
     rule above, meant as a WIDTH basis for the row-direction desktop
     layout). Once .cr2-workspace-row switches to flex-direction:column
     here, that same "560px" is silently reinterpreted as a HEIGHT basis
     on the main (vertical) axis instead -- and because .cr2-box also has
     overflow:hidden (for its border-radius, unrelated to this), flexbox's
     "automatic minimum size" rule lets the browser actually shrink the
     box below its real content height rather than preserving it. Found
     via live measurement: .cr2-box's rendered height was capped at
     exactly 560px whenever its real content (e.g. Meta + a Goal selected,
     which adds the Meta Objective section) needed more, silently clipping
     Campaign Structure and Build Campaign below that point on every
     viewport ≤1280px -- unreachable by any scroll, since the clip happens
     one level inside the page's own scroll container. flex:none restores
     natural content-based sizing. */
  .cr2-workspace-row > .cr2-box { flex: none; max-width: none; width: 100%; }
  .cr2-stage { width: 100%; }
  .cr2-stage-frame { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .cr2-stage { padding: 16px; }
  .cr2-stage-frame { aspect-ratio: 4 / 3; }
}
/* Oriven 1.0 (V10) — Launch fits one viewport now (headline+prompt only);
   centering it vertically reads as a deliberately calm, framed
   composition instead of "content ran out, empty space below." */
/* Scoped to .active — #page-create alone would out-specificity .page{display:none}
   and stay visible even when another page is the active one. */
#page-create.active {
  /* Fills its real container (.mc, the app's scroll area) instead of
     calc(100vh - 56px): that subtracted a 56px top bar the app no longer has,
     so the page (and its ambient background, ::before/::after) stopped 56px
     short of the window and .mc's darker background showed as a black band
     along the bottom. Taller content still grows and scrolls in .mc. */
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Create Density Correction pass — root cause of the unnecessary
     page-level scroll: the ambient glow layer below (#page-create.active
     ::before) is deliberately oversized (inset:-10%, "let the gradient
     breathe past the edges") so its own soft radial falloff never shows
     a hard boundary. That 10% bleed is real overflow content as far as
     .mc's scrollable-area calculation is concerned, even though it's
     purely decorative, pointer-events:none, and — since #page-create
     already fills .mc's full width/height — entirely off-screen/
     inaccessible either way. Confirmed via direct measurement: at a
     900px-tall viewport, #page-create's own scrollHeight was 990px
     (exactly the 10% bleed, 90px) while its tallest REAL descendant
     never exceeded 900px. overflow:hidden here clips only that
     inaccessible decorative bleed -- the glow's appearance within the
     actually-visible area is completely unchanged, since horizontal
     bleed was already being clipped upstream (.mc/body overflow-x:hidden)
     without any visible seam, and vertical bleed was always below the
     fold. */
  overflow: hidden;
}
#page-create .cr2-wrap { padding-top: 0; padding-bottom: 0; position: relative; z-index: 1; }
/* Creative Stage pass — the SAME real bug the pre-existing mobile fix
   further below (max-width:768px) already documents and fixes, now also
   reachable at this width: once the composer + Stage stack into one
   column (see .cr2-workspace-row's own max-width:1280px breakpoint),
   real content height comfortably exceeds the viewport, and Chromium's
   flexbox centering above (align-items/justify-content:center) clips
   the "before" side of an overflowing centered child — unreachable even
   by scrolling, not just visually cut off. Confirmed via a real
   Playwright measurement: the platform-pill row rendered at a negative
   viewport Y with no way to scroll to it. Top-anchoring removes the
   clipping entirely. Placed here (immediately after the base rule,
   rather than inside .cr2-workspace-row's own media block further down)
   so normal CSS source-order cascade — not !important — is what makes
   it win, the same mechanism the existing 768px fix already relies on. */
@media (max-width: 1280px) {
  #page-create.active { align-items: flex-start; justify-content: flex-start; }
}

/* ── Living Ambient Background (Create Micro-Interaction pass) ───────────
   Dark-mode only — light mode's Create page is a warm off-white (--bg),
   not the "large black background" this pass is about. Two pseudo-
   elements on #page-create itself (never .mc, which is shared by every
   other page): ::before is the soft lime ambient glow (the ONLY color
   layer — reuses var(--green), no new accent), ::after is a static,
   near-imperceptible depth/vignette layer that keeps the black from
   reading as a flat #000 fill. Both sit at z-index:0, behind .cr2-wrap
   (z-index:1 above), pointer-events:none, and never touch text contrast.

   Intensity is driven by ONE custom property, --cr2-glow (0..1-ish),
   read by ::before's opacity — every state below (idle/focus/active-
   typing/selection-pulse/build) just changes this single number via
   cascade, so there is one real source of truth instead of four
   independently-tuned opacity rules that could drift out of sync. */
body.dark-mode #page-create.active {
  --cr2-glow: 0.5;   /* idle baseline — see the state rules below */
  --cr2-mx: 0px; --cr2-my: 0px; /* mouse parallax offset, JS-driven (app.html, the ambient-parallax IIFE right before _cr2Plat) */
}
body.dark-mode #page-create.active::before {
  content: ''; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--green) 10%, transparent), transparent 72%);
  background-repeat: no-repeat;
  background-position: calc(50% + var(--cr2-mx)) calc(42% + var(--cr2-my));
  background-size: 85% 85%;
  opacity: calc(var(--cr2-glow) * 0.16);
  filter: blur(40px);
  transition: opacity .5s ease, background-position .4s ease;
  will-change: opacity;
}
/* Static depth/vignette + extremely faint grain — ::after, never moves,
   never reacts to state (texture only, not a signal). A tiled 64×64 SVG
   turbulence data-URI at ~2% opacity is cheap (one small repeating
   raster, no per-frame cost) and reads as "not a flat fill" without
   looking like visible noise. */
body.dark-mode #page-create.active::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255,255,255,.025), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  opacity: .9;
}

/* Slow organic drift — one real cycle, ~40s, moving the glow's own
   background-position within the oversized -10% inset box (never the
   transform, which is reserved for mouse parallax so the two never
   fight each other). Amplitude is a handful of percent — "the user
   should not immediately think the background is animated." */
@media (prefers-reduced-motion: no-preference) {
  body.dark-mode #page-create.active::before { animation: cr2GlowDrift 42s ease-in-out infinite; }
}
@keyframes cr2GlowDrift {
  0%   { background-position: calc(50% + var(--cr2-mx)) calc(42% + var(--cr2-my)); }
  33%  { background-position: calc(46% + var(--cr2-mx)) calc(46% + var(--cr2-my)); }
  66%  { background-position: calc(53% + var(--cr2-mx)) calc(39% + var(--cr2-my)); }
  100% { background-position: calc(50% + var(--cr2-mx)) calc(42% + var(--cr2-my)); }
}

/* State hierarchy (Interaction Hierarchy, spec 20) — each rule just
   adjusts --cr2-glow: idle 0.5 -> prompt focus (no text yet) 0.62 ->
   active typing (has real text, spec 15: "idle -> active... slightly
   stronger ambient depth") 0.72 -> brief selection pulse 0.85 -> Build
   Campaign activated 1.15. Pure CSS :has() for focus/typing (already an
   established technique in this file — see
   .biz-hero-icon-wrap:has(:focus-visible) etc.), so no JS is needed just
   to know the prompt is focused or has real content.
   NOTE on ordering: focus and "has text" are not mutually exclusive
   (typing requires focus) — :has(#aicInput:not(:placeholder-shown))
   is the more specific selector (an #id + pseudo-class argument beats a
   plain class + pseudo-class argument), so it always wins over the
   focus-only rule regardless of source order whenever both are true.
   The values below are chosen to match that real cascade behavior
   (typing's value is the larger one) rather than fighting it. */
body.dark-mode #page-create.active:has(.cr2-box:focus-within) { --cr2-glow: 0.62; }
body.dark-mode #page-create.active:has(#aicInput:not(:placeholder-shown)) { --cr2-glow: 0.72; }
/* Selection changes (spec 12/13) — a brief, real pulse toggled by JS at
   the exact moment an existing onclick handler fires (_cr2AmbientPulse),
   never a permanent elevated state, since "Sales" staying selected isn't
   itself an ongoing event. !important here is deliberate, not a
   specificity shortcut avoided elsewhere in this pass: :has(#aicInput...)
   above unavoidably carries a real #id inside its argument (it has to,
   to target the real textarea), which quietly out-specifies a plain
   class selector regardless of source order — so a JS-triggered pulse
   or Build state would otherwise lose to "the user has typed text" even
   though both are real and the pulse/build should read as MORE present,
   per the interaction hierarchy (spec 20: selection = medium, Build =
   high, both above plain active-typing). */
body.dark-mode #page-create.active.cr2-ambient-pulse { --cr2-glow: 0.85 !important; }
/* Build Campaign activated / the real synchronous window before this
   page navigates away (spec 16/17) — set by _aicSetGeneratingBtn, the
   exact real generation-lifecycle hook; cleared by _aicRestoreGenerateBtn
   (the real error/timeout path) so the background is never left in a
   falsely "something is happening" state once generation genuinely
   stopped happening on THIS page. */
body.dark-mode #page-create.active.cr2-ambient-build {
  --cr2-glow: 1.15 !important;
}
body.dark-mode #page-create.active.cr2-ambient-build::before {
  background-size: 70% 70%;
  filter: blur(34px);
}
@media (prefers-reduced-motion: no-preference) {
  body.dark-mode #page-create.active.cr2-ambient-build::before { transition: opacity .6s ease, background-size .6s ease, filter .6s ease; }
}

@media (prefers-reduced-motion: reduce) {
  body.dark-mode #page-create.active::before { animation: none; transition: opacity .25s ease; }
  /* Discrete states (focus/typing/pulse/build) stay — they're real state,
     not decoration — only the continuous drift/parallax is removed. */
}

/* Mobile — keep the (cheap) CSS drift, drop the oversized -10% inset
   blur radius slightly so it doesn't read as a giant halo on a narrow
   viewport; pointer parallax is simply never wired up on touch devices
   (matchMedia hover:hover + pointer:fine guard in the parallax IIFE,
   app.html) rather than disabled here, since --cr2-mx/--cr2-my stay at
   their default 0px either way. */
@media (max-width: 640px) {
  body.dark-mode #page-create.active::before { inset: -4%; background-size: 130% 130%; }
}

/* Mobile bug fix (responsive-only pass, not a redesign): on desktop the
   content is shorter than the viewport, so centering it is harmless. On
   mobile the goal grid/structure cards stack into extra height and the
   composer genuinely exceeds the viewport — Chromium's flexbox centering
   then clips the "before" side of an overflowing centered child, and
   that clipped portion (the hero + platform pills) is NOT reachable by
   scrolling at all, not even a jump-to-top: .cr2-wrap's real rect sits
   at a permanently negative top regardless of scrollTop. align-items:
   flex-start below removes the clipping (confirmed: normal top-anchored
   flow, everything scrollable). Separately, #page-create .cr2-wrap's
   unconditional padding-top:0 two lines up (ID+class specificity) was
   silently beating the *already-existing* 64px mobile hamburger-
   clearance rules elsewhere in this file (originally written for this
   exact page, just never actually winning) — restoring it here lets the
   platform-pill row clear the fixed hamburger instead of sitting
   underneath it. */
@media (max-width: 768px) {
  #page-create.active { align-items: flex-start; justify-content: flex-start; }
  #page-create .cr2-wrap { padding-top: 64px; }
}

/* Final Visual Polish pass — a second, independent mobile scroll bug found
   while re-verifying reachability (Meta + a Campaign Goal selected, which
   adds the Meta Objective section's extra height): an unrelated legacy rule,
   #page-create{height:100%} (this file, the old "5-screen guided experience"
   block), still applies unconditionally at every width. Combined with the
   .page{overflow-x:hidden} rule two mobile breakpoints up, CSS's own spec
   rule kicks in ("if only overflow-x is non-visible, overflow-y computes to
   auto") and turns #page-create into ITS OWN capped, internally-scrolling
   box instead of simply overflowing into .mc's real scrollbar the way every
   other page does. Confirmed live: even scrolling #page-create itself to its
   internal max left Build Campaign's real rect below the viewport,
   permanently unreachable by either scroll container. height:auto
   (#page-create.active already out-specifies the unconditional height:100%
   rule via its extra .active class) removes the artificial cap so content
   simply flows into .mc, the same pattern the rest of the app already uses;
   overflow-y:visible removes the implicit "auto" outcome so there is only
   ever one real scroll container on this page again. */
@media (max-width: 768px) {
  #page-create.active { height: auto; overflow-y: visible; }
}

/* Height-aware compaction — Responsive Layout Audit pass. Real laptop
   browser windows are frequently 700-820px tall (external-monitor/large-
   desktop testing never surfaces this). At those heights the existing
   responsive behavior above is WIDTH-only (.cr2-workspace-row only
   stacks below 1280px width, ~line 41098), so a wide-but-short laptop
   window stays in the two-column composer+Stage layout, where
   .cr2-stage-frame's aspect-ratio(3/2) sizing (driven by its ~600px
   column width, not the viewport) alone can produce a frame taller than
   the whole available height once .cr2-wrap's padding, .cr2-hero and the
   workspace-row gap are added on top of it. #page-create already has a
   safe internal-scroll fallback for whatever doesn't fit (confirmed
   above), so nothing becomes truly inaccessible either way — this
   reduces how OFTEN that fallback is needed, per the same density-
   reduction direction the earlier "Create Density Correction pass"
   already established, just extended to be viewport-height-aware
   instead of one fixed set of values for every height. clamp() keeps a
   real minimum and preserves the original values once there's height to
   spare, rather than one flat override. */
@media (min-width: 769px) and (max-height: 820px) {
  .cr2-wrap { padding: clamp(16px, 3vh, 32px) 28px clamp(20px, 4vh, 60px); gap: 12px; }
  .cr2-hero { padding: 4px 0 2px; }
  .cr2-workspace-row { gap: 20px; padding-top: 10px; }
  .cr2-stage-frame { max-height: 34vh; }
}
@media (min-width: 769px) and (max-height: 700px) {
  .cr2-wrap { padding: clamp(12px, 2vh, 20px) 28px clamp(16px, 3vh, 32px); }
  .cr2-stage-frame { max-height: 28vh; }
}

/* Hero */
.cr2-hero { text-align: center; padding: 8px 0 4px; }

/* Oriven 1.0 (V11) — "Current Business" widget: real, clickable context
   instead of technical "X enabled" badges. */
.cr2-biz-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.orv-biz-lbl { font-size: 12.5px; color: var(--muted, rgba(0,0,0,.45)); }
.orv-biz-sep { color: var(--muted, rgba(0,0,0,.25)); font-size: 12px; }
.orv-biz-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal, #18181A);
  background: none;
  border: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--green) 50%, transparent);
  padding: 0 1px 1px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.orv-biz-chip:hover { color: var(--green-text); border-bottom-color: var(--green-text); }
body.dark-mode .orv-biz-chip { color: #fff; }
body.dark-mode .orv-biz-chip:hover { color: var(--green); border-bottom-color: var(--green); }
.orv-biz-setup {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted, rgba(0,0,0,.5));
  background: none; border: 1px dashed var(--border, rgba(0,0,0,.15));
  border-radius: 100px; padding: 5px 12px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.orv-biz-setup:hover { color: var(--green-text); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
body.dark-mode .orv-biz-setup:hover { color: var(--green); }
.cr2-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent, #6366f1);
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.cr2-h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--fg, #111);
  margin: 0 0 10px;
  text-wrap: balance;
}
.cr2-sub {
  font-size: 14px;
  color: var(--muted, #888);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Platform selector */
.cr2-plats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cr2-plats-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #888);
  margin-right: 4px;
}
/* Oriven 1.0 (V8) — Launch status pills */
.cr2-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cr2-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500;
  color: var(--muted, rgba(0,0,0,.55));
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  border-radius: 100px;
  padding: 4px 10px 4px 8px;
  opacity: 0;
  animation: cr2StatusIn .4s cubic-bezier(.22,.61,.36,1) forwards;
}
.cr2-status-row .cr2-status-pill:nth-child(1) { animation-delay: .05s; }
.cr2-status-row .cr2-status-pill:nth-child(2) { animation-delay: .12s; }
.cr2-status-row .cr2-status-pill:nth-child(3) { animation-delay: .19s; }
@keyframes cr2StatusIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.cr2-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-text); flex-shrink: 0; }
body.dark-mode .cr2-status-dot { background: var(--green); }
@media (prefers-reduced-motion: reduce) { .cr2-status-pill { animation: none; opacity: 1; } }
.cr2-pp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #888);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform var(--orv-t-fast);
  font-family: inherit;
  white-space: nowrap;
}
.cr2-pp:hover { border-color: var(--green); color: var(--green); transform: translateY(var(--orv-lift-sm)); }
.cr2-pp.cr2-pp-on {
  border-color: var(--green);
  background: var(--glt);
  color: var(--green);
}
.cr2-pp.cr2-pp-coming {
  opacity: .48;
  cursor: default;
  pointer-events: none;
}
.cr2-cs-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--glt);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Prompt box */
.cr2-box {
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: var(--surface, #fff);
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
  /* Final Create Fix pass — display:flex/column lets .cr2-box-foot (below)
     absorb the extra height .cr2-workspace-row's align-items:stretch may
     give this box, instead of the textarea/asset strips stretching in
     unwanted ways (they keep their natural size; only box-foot grows). */
  display: flex;
  flex-direction: column;
  /* Final Visual Correction pass — caps the whole panel to a height that
     fits inside the viewport even at 1280x800, regardless of how much
     Advanced Settings content is expanded below. Without this, an
     expanded .cr2-advanced-group could grow .cr2-box-foot (flex:1 1 auto)
     past the visible viewport, pushing .cr2-gen-row (the Build Campaign
     CTA) below the fold or, combined with #page-create.active's flex
     vertical-centering, off the "before" side entirely. .cr2-box-foot
     below becomes the internal scroll region that absorbs any overflow
     this max-height creates; the textarea/asset strips above it keep
     their natural size since only box-foot is flex:1 1 auto. */
  max-height: calc(100vh - 230px);
}
.cr2-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 10%, transparent), 0 2px 16px color-mix(in srgb, var(--green) 6%, transparent);
}
.cr2-ta {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px 8px;
  border: none;
  outline: none;
  resize: none;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--fg, #111);
  background: transparent;
  /* Create Density Correction pass — 90px -> 76px. Still comfortably
     fits the placeholder's two-line example prompt; the composer's own
     height was never meant to be set by this alone (real content/goal
     selections dominate), so this is a restrained trim, not a cramped one. */
  min-height: 76px;
}
.cr2-ta::placeholder { color: var(--muted, #aaa); }
.cr2-box-foot {
  display: flex;
  /* Micro-Polish pass — was flex-wrap:wrap with every section forced to
     flex-basis:100% (a column layout faked with wrapping rows). Real
     flex-direction:column instead. align-items:stretch (the flex-
     direction:column default) keeps every row full-width, replacing the
     old per-row flex-basis:100%/width:100% declarations (now redundant
     but harmless). */
  flex-direction: column;
  flex: 1 1 auto;
  padding: 10px 14px 12px;
  /* Layout Fix pass — 8px -> 14px. Now that .cr2-box sizes to its own
     real content (.cr2-workspace-row is align-items:flex-start, not
     stretch — see above), there's no artificial leftover height to fill,
     so this gap is free to be a genuinely comfortable rhythm between
     control groups (spec: "allow Campaign Goal cards to breathe... give
     Brand Identity appropriate spacing") rather than staying tight to
     leave room for a forced spacer that no longer exists. */
  gap: 14px;
  border-top: 1px solid var(--border, rgba(0,0,0,.06));
  /* Final Visual Correction pass — pairs with .cr2-box's new max-height:
     once this footer's natural content (goal/brand/advanced settings)
     exceeds the space .cr2-box has left after the textarea, THIS region
     scrolls internally rather than growing the whole panel past the
     viewport. min-height:0 is required for a flex:1 1 auto child to be
     allowed to shrink below its content size in the first place. */
  overflow-y: auto;
  min-height: 0;
}
body.dark-mode .cr2-box-foot { border-top-color: rgba(255,255,255,.06); }
/* Oriven 1.0 (V10) — Generation Options live inside the prompt footer now,
   grouped left; Generate stays right, same "one intelligent workspace"
   composition modern AI products use. */
.cr2-foot-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  /* Micro-Polish pass — flex:1 (flex-grow:1, flex-basis:0%) meant "grow to
     share the row horizontally with the Generate button" back when both
     lived in the same flex-wrap ROW; in .cr2-box-foot's new
     flex-direction:column, flex-basis:0% is on the now-vertical main
     axis, so this was growing to eat leftover HEIGHT too — the other
     contributor (along with the other rows' old flex-basis:100%) to the
     margin-top:auto spacer below never getting real leftover space to
     consume. flex-shrink:0 keeps this row at its natural height instead. */
  flex-shrink: 0;
  min-width: 0;
}
.cr2-foot-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cr2-foot-divider {
  width: 1px;
  height: 20px;
  background: var(--border, rgba(0,0,0,.1));
  flex-shrink: 0;
}
body.dark-mode .cr2-foot-divider { background: rgba(255,255,255,.1); }
.cr2-kbhint {
  font-size: 11px;
  color: var(--muted, #aaa);
  font-family: inherit;
}
.cr2-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--green) 20%, transparent);
  white-space: nowrap;
}
.cr2-gen-btn svg { transition: transform .18s; }
.cr2-gen-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 4px 18px color-mix(in srgb, var(--green) 28%, transparent); }
.cr2-gen-btn:hover svg { transform: translateX(3px); }
/* Oriven 1.0 (V9) — tactile pressed state ("like pressing a physical
   button, not exaggerated"): quick scale-down + shadow collapse on click. */
.cr2-gen-btn:active { transform: translateY(0) scale(.97); box-shadow: 0 1px 6px color-mix(in srgb, var(--green) 25%, transparent); transition: transform .08s, box-shadow .08s; }
.cr2-gen-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
/* Create Micro-Interaction pass — the generating-state spinner
   (_aicSetGeneratingBtn, app.html) sets its animation as an INLINE style,
   so overriding it under reduced motion genuinely needs !important here;
   the "Generating…" text label already carries the same information, so
   nothing is lost when the spin itself stops. */
@media (prefers-reduced-motion: reduce) {
  #aicGenBtn svg { animation: none !important; }
}

/* Mobile: .cr2-box-foot's align-items:center vertically centers the Generate
   button against .cr2-foot-controls' FULL height once the platform pills
   wrap onto 2-3 lines at narrow widths — visually overlapping the button on
   top of the wrapped pills. Stack into full-width rows instead (also
   satisfies "Generate button full width" from spec). */
@media (max-width: 480px) {
  .cr2-box-foot { flex-direction: column; align-items: stretch; }
  .cr2-gen-btn { width: 100%; justify-content: center; }
}

/* Campaign Goal — required step, right after platform selection.
   flex-basis:100% inside .cr2-box-foot's flex row puts it on its own full
   line between the controls row and the Generate button, the same
   full-width-row behavior .cr2-box-foot already uses on mobile. */
/* Micro-Polish pass — flex-basis:100% meant "100% WIDTH" back when
   .cr2-box-foot was a flex-wrap ROW (each section forced onto its own
   full-width wrapped line); now that .cr2-box-foot is a real
   flex-direction:column (see .cr2-box-foot above), the SAME property on
   the same MAIN axis means "100% HEIGHT" instead — every section was
   fighting the others for the container's full height, which is exactly
   what was swallowing the space .cr2-gen-row's margin-top:auto needed to
   push the CTA to the bottom. width:100% is also redundant now (columns
   stretch full-width by default). flex-shrink:0 keeps this row at its
   natural content height rather than shrinking. */
.cr2-goal-section { flex-shrink: 0; order: 2; }
.cr2-goal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted, #888);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr2-goal-required {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--glt);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 5px;
}
.cr2-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Layout Fix pass — 8px -> 10px, letting the Campaign Goal cards breathe
     a bit more now that the panel isn't fighting for tight density to
     leave room for a forced bottom spacer. */
  gap: 10px;
}
.cr2-goal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  /* Layout Fix pass — 12/12/11 -> 14/13/13, letting the primary Campaign
     Goal cards breathe a little more (spec: "allow Campaign Goal cards
     to breathe"). The de-emphasized reuse inside Advanced Settings
     (.cr2-advanced-group .cr2-goal-card below) keeps its own smaller,
     intentionally-secondary padding, untouched. */
  padding: 14px 13px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s, transform .12s cubic-bezier(.22,.61,.36,1);
}
.cr2-goal-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--green) 12%, transparent);
}
.cr2-goal-card:active { transform: translateY(-1px) scale(.98); }
.cr2-goal-card.cr2-goal-card-on {
  border-color: var(--green);
  background: var(--glt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent), 0 4px 20px color-mix(in srgb, var(--green) 18%, transparent);
}
.cr2-goal-card.cr2-goal-card-disabled { opacity: .4; cursor: not-allowed; }
.cr2-goal-card.cr2-goal-card-disabled:hover { transform: none; }
/* Missing-selection nudge (parallels .cr2-box's own focus/error treatment) */
.cr2-goal-section.cr2-goal-missing .cr2-goal-grid { animation: cr2GoalShake .4s; }

/* Campaign Structure (Launch) — honest static note, shown for platforms/
   campaign types with no real multi-group backend support (Google Demand
   Gen / Performance Max). Meta, TikTok, and Google Search get the real
   interactive .cst2-struct-* cards below instead. */
.cr2-struct-note { font-size: 12px; line-height: 1.5; color: var(--muted, #888); margin-top: 4px; max-width: 560px; }

/* ── Campaign Structure Engine — premium expand cards ─────────────────────
   Two cards side by side (stack on mobile), each a green/black "active
   control" pill that expands into a 1-5 pip selector. Only one card open
   at a time (avoids overlap / layout collisions between the two). */
.cst2-struct-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cst2-struct-card {
  flex: 1 1 220px; min-width: 200px;
  background: var(--surface, #fff); border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cst2-struct-card.cst2-struct-open { border-color: var(--green); box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 20%, transparent); }
.cst2-struct-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border: none; cursor: pointer; font-family: inherit;
  background: var(--green); color: #000;
  transition: transform .15s cubic-bezier(.22,.61,.36,1), opacity .15s ease;
}
.cst2-struct-head:hover { opacity: .92; }
.cst2-struct-head:active { transform: scale(.99); }
.cst2-struct-label { font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.cst2-struct-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cst2-struct-hint { padding: 7px 16px; font-size: 11px; font-weight: 600; color: var(--muted, #888); background: var(--surface, #fff); }
.cst2-struct-open .cst2-struct-hint { display: none; }

/* Expand/collapse — height+opacity+transform, 220ms, premium easing.
   Responsive Layout Audit pass — measured the real rendered height
   (pip row + selection note + padding) at 93px; the previous 120px was
   flagged in this same comment as "generous, not measured." On tight
   laptop-height viewports where #page-create's content already reaches
   the bottom of the available space (see the height-aware .cr2-wrap
   compaction above), that unmeasured 27px of slack was enough on its
   own to push Build Campaign below the fold when a structure card was
   opened. 100px keeps a small safety margin above the real 93px instead
   of an arbitrary generous guess. */
.cst2-struct-expand {
  max-height: 0; opacity: 0; transform: translateY(-4px) scale(.98);
  overflow: hidden; padding: 0 16px;
  transition: max-height .22s cubic-bezier(.22,.61,.36,1), opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1), padding .22s cubic-bezier(.22,.61,.36,1);
}
.cst2-struct-open .cst2-struct-expand {
  max-height: 100px; opacity: 1; transform: translateY(0) scale(1);
  padding: 14px 16px 16px;
}
.cst2-pip-row { display: flex; gap: 6px; }
.cst2-pip {
  flex: 1; font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 9px 0; border-radius: 9px; cursor: pointer;
  background: var(--bg2, rgba(0,0,0,.04)); color: var(--t1, #111);
  border: 1.5px solid var(--border, #e5e7eb);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.cst2-pip:hover { border-color: var(--green); }
.cst2-pip:active { transform: scale(.94); }
.cst2-pip-on { background: var(--green); color: #000; border-color: var(--green); }
.cst2-struct-sel-note { margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted, #888); }

.cst2-struct-total {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--muted, #888);
}
.cst2-struct-total-val {
  font-size: 15px; font-weight: 800; color: var(--t1, #111); font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .cst2-struct-card, .cst2-struct-head, .cst2-struct-expand, .cst2-pip { transition: none !important; }
}
@media (max-width: 600px) {
  .cst2-struct-row { flex-direction: column; }
  /* Final Visual Polish pass — the exact same bug class found and fixed in
     .cr2-workspace-row > .cr2-box above: "flex: 1 1 220px" (a WIDTH basis,
     meant for the row-direction desktop/tablet layout two cards wide) gets
     silently reinterpreted as a HEIGHT basis once this rule switches
     .cst2-struct-row to flex-direction:column, and .cst2-struct-card's own
     overflow:hidden lets the browser actually hold it open at 220px tall
     even though its real (collapsed) content is only ~75px — a large,
     unexplained empty gap under every Campaign Structure card on mobile.
     flex:none restores natural content-based height. */
  .cst2-struct-card { flex: none; min-width: 0; }
}

/* Existing-campaign editor navigator (Google/TikTok Preview stage) — real
   Ad Group → Ad breakdown, read-only (Meta's own dropdown selector,
   .cstAdSelectorBar, remains the only live-preview-switching navigator this
   phase — see final report). Never shows more groups/ads than
   pkg.campaignStructure actually contains. */
.cst-struct-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 14px; }
.cst-struct-nav-group {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 12px;
  border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 10px;
  background: rgba(255,255,255,.03); min-width: 120px;
}
.cst-struct-nav-group-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--green); text-transform: uppercase; }
.cst-struct-nav-ads { font-size: 11.5px; color: rgba(255,255,255,.55); }
@media (max-width: 600px) { .cst-struct-nav { padding: 0 16px 12px; } }
.cr2-goal-section.cr2-goal-missing .cr2-goal-card { border-color: rgba(248,113,113,.5); }
@keyframes cr2GoalShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.cr2-goal-icon { font-size: 18px; line-height: 1; }
.cr2-goal-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #111);
}
.cr2-goal-card.cr2-goal-card-on .cr2-goal-title { color: var(--green-text, var(--green)); }
.cr2-goal-desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted, #888);
}
@media (max-width: 640px) {
  .cr2-goal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .cr2-goal-grid { grid-template-columns: 1fr; }
}

/* Section label */
.cr2-sect-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #aaa);
  margin-bottom: 12px;
}

/* Example cards */
.cr2-ex-sect {}
.cr2-ex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cr2-ex-card {
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--surface, #fff);
  transition: border-color .18s, box-shadow .18s, background .18s, transform .18s cubic-bezier(.22,.61,.36,1);
  text-align: left;
}
.cr2-ex-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--green) 14%, transparent);
  background: color-mix(in srgb, var(--green) 2%, transparent);
  transform: translateY(-2px);
}
.cr2-ex-card:active { transform: translateY(-1px) scale(.99); }
.cr2-ex-plat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted, #999);
  margin-bottom: 6px;
}
.cr2-ex-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #111);
  margin-bottom: 4px;
  line-height: 1.3;
}
.cr2-ex-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cr2-ex-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--bg, #f5f5f5);
  color: var(--muted, #888);
  font-weight: 600;
}

/* Bottom row */
/* Oriven 1.0 (V9) — this only ever has one child (.cr2-recent-wrap); the
   old grid-template-columns: 1fr 280px reserved a whole empty 280px
   column no content ever used, contributing to "large empty voids" the
   spec flags directly. Simplified to a single block. */
.cr2-bottom { display: block; }

/* Recent creations */
.cr2-recent-wrap {}
.cr2-recent-list { display: flex; flex-direction: column; gap: 8px; }
.cr2-recent-empty {
  font-size: 13px;
  color: var(--muted, #aaa);
  padding: 24px 20px;
  text-align: center;
  background: rgba(0,0,0,.015);
  border: 1px dashed var(--border, rgba(0,0,0,.1));
  border-radius: 14px;
}
body.dark-mode .cr2-recent-empty { background: rgba(255,255,255,.02); }
.cr2-rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s cubic-bezier(.22,.61,.36,1);
}
.cr2-rec-item:hover { border-color: var(--green); box-shadow: 0 4px 14px color-mix(in srgb, var(--green) 12%, transparent); transform: translateY(-1px); }
.cr2-rec-plat {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cr2-rec-info { flex: 1; min-width: 0; }
.cr2-rec-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr2-rec-meta { font-size: 11px; color: var(--muted, #aaa); margin-top: 2px; }
.cr2-rec-open {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .14s;
}
.cr2-rec-item:hover .cr2-rec-open { opacity: 1; }

/* AI Tip card */
.cr2-tip-card {
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--surface, #fff);
}
.cr2-tip-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.cr2-tip-ico { font-size: 16px; line-height: 1; }
.cr2-tip-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted, #aaa);
}
.cr2-tip-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg, #333);
  margin: 0;
}

/* Dark mode */
body.dark-mode .cr2-h1 { color: #f0f0f0; }
body.dark-mode .cr2-sub { color: rgba(255,255,255,.45); }
body.dark-mode .cr2-brand-badge { background: color-mix(in srgb, var(--green) 7%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
body.dark-mode .cr2-pp { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
body.dark-mode .cr2-pp:hover { border-color: var(--green); color: var(--green); }
body.dark-mode .cr2-pp.cr2-pp-on { border-color: var(--green); background: var(--glt); color: var(--green); }
body.dark-mode .cr2-box { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
body.dark-mode .cr2-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 10%, transparent), 0 2px 16px color-mix(in srgb, var(--green) 6%, transparent);
}
body.dark-mode .cr2-ta { color: #f0f0f0; }
body.dark-mode .cr2-ta::placeholder { color: rgba(255,255,255,.25); }
body.dark-mode .cr2-kbhint { color: rgba(255,255,255,.25); }
body.dark-mode .cr2-gen-btn { background: var(--green); color: #000; box-shadow: 0 2px 12px color-mix(in srgb, var(--green) 25%, transparent); }
body.dark-mode .cr2-ex-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
body.dark-mode .cr2-ex-card:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .cr2-ex-title { color: #f0f0f0; }
body.dark-mode .cr2-ex-plat { color: rgba(255,255,255,.35); }
body.dark-mode .cr2-ex-tag { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); }
body.dark-mode .cr2-rec-item { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
body.dark-mode .cr2-rec-item:hover { border-color: var(--green); }
body.dark-mode .cr2-rec-name { color: #f0f0f0; }
body.dark-mode .cr2-rec-meta { color: rgba(255,255,255,.35); }
body.dark-mode .cr2-rec-plat { background: rgba(255,255,255,.06); }
body.dark-mode .cr2-rec-open { color: var(--green); }
body.dark-mode .cr2-tip-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
body.dark-mode .cr2-tip-body { color: rgba(255,255,255,.65); }
body.dark-mode .cr2-tip-lbl { color: rgba(255,255,255,.3); }
body.dark-mode .cr2-recent-empty { color: rgba(255,255,255,.3); }
body.dark-mode .cr2-sect-lbl { color: rgba(255,255,255,.25); }
body.dark-mode .cr2-plats-lbl { color: rgba(255,255,255,.3); }
body.dark-mode .cr2-goal-label { color: rgba(255,255,255,.4); }
body.dark-mode .cr2-goal-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
body.dark-mode .cr2-goal-card:hover { border-color: var(--green); }
body.dark-mode .cr2-goal-card.cr2-goal-card-on { border-color: var(--green); background: var(--glt); }
body.dark-mode .cr2-goal-title { color: #f0f0f0; }
body.dark-mode .cr2-goal-card.cr2-goal-card-on .cr2-goal-title { color: var(--green); }
body.dark-mode .cr2-goal-desc { color: rgba(255,255,255,.4); }
/* Creative Stage pass — .cr2-stage-provider/.cr2-stage-brand-name used
   var(--fg, #111) to match this file's existing .cr2-* light-mode-
   default pattern (e.g. .cr2-h1 above), which relies on a dark-mode
   override existing somewhere in this same block — real bug found via
   screenshot review: --fg is never defined anywhere in this stylesheet,
   so both fell back to the hardcoded #111 unconditionally, reading as
   near-invisible dark-on-dark text. Fixed the same way every other
   .cr2-* text color above is fixed. */
body.dark-mode .cr2-stage-provider { color: #f0f0f0; }
body.dark-mode .cr2-stage-brand-name { color: #f0f0f0; }

/* Responsive */
@media (max-width: 680px) {
  .cr2-wrap { padding: 20px 16px 40px; gap: 20px; }
  .cr2-h1 { font-size: 22px; }
  .cr2-ex-grid { grid-template-columns: 1fr; }
  .cr2-bottom { grid-template-columns: 1fr; }
  .cr2-kbhint { display: none; }
}

/* ======================================================================
   CAMPAIGN REVIEW - Tabbed layout
====================================================================== */
.crv-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 32px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.crv-topbar-left { flex: 1; min-width: 0; }
.crv-topbar-right { flex-shrink: 0; padding-top: 4px; }
.crv-topbar-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.crv-plat-badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(66,133,244,.15); color: #4285F4; border: 1px solid rgba(66,133,244,.25); }
.crv-plat-badge[data-plat=meta]   { background: rgba(24,119,242,.15); color: #1877F2; border-color: rgba(24,119,242,.25); }
.crv-plat-badge[data-plat=tiktok] { background: rgba(254,44,85,.1); color: #fe2c55; border-color: rgba(254,44,85,.22); }
.crv-ready-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 18%, transparent); }
.crv-camp-name { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.2; outline: none; display: block; border-bottom: 1px dashed transparent; transition: border-color .15s; cursor: text; word-break: break-word; }
.crv-camp-name:focus { border-bottom-color: color-mix(in srgb, var(--green) 40%, transparent); }
.crv-topbar-signals { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.crv-signal { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.07); }
.crv-signal-hi { background: rgba(99,179,237,.1); color: #63B3ED; border-color: rgba(99,179,237,.18); }
.crv-prompt-echo { font-size: 12px; color: rgba(255,255,255,.28); font-style: italic; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }
.crv-pub-btns-row { display: flex; flex-direction: column; gap: 7px; }
.crv-tabbar { padding: 0 32px; border-bottom: 1px solid rgba(255,255,255,.07); background: #09090b; position: sticky; top: 0; z-index: 20; }
.crv-tabs { display: flex; }
.crv-tab { padding: 11px 14px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.35); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color .12s, border-color .12s; font-family: Geist, system-ui, sans-serif; margin-bottom: -1px; }
.crv-tab:hover { color: rgba(255,255,255,.65); }
.crv-tab-active { color: #fff !important; border-bottom-color: var(--green) !important; }
.crv-layout { display: grid; grid-template-columns: 1fr 290px; gap: 0; align-items: start; }
.crv-main { padding: 24px 32px; min-width: 0; }
.crv-aside { padding: 24px 20px 24px 0; position: sticky; top: 46px; max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 860px) {
  .crv-layout { grid-template-columns: 1fr; }
  .crv-aside { padding: 0 24px 24px; position: static; max-height: none; }
  .crv-topbar { flex-direction: column; }
}
.crv-panel { display: none; }
.crv-panel-active { display: block; }
.crv-section { margin-bottom: 26px; }
.crv-section-hd { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.28); margin-bottom: 12px; }
.crv-fld { margin-bottom: 14px; }
.crv-fld-lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.32); letter-spacing: .02em; margin-bottom: 5px; display: block; }
.crv-inp { display: block; width: 100%; padding: 9px 11px; border-radius: 7px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); color: rgba(255,255,255,.85); font-size: 13px; font-family: Geist, system-ui, sans-serif; outline: none; box-sizing: border-box; transition: border-color .12s; line-height: 1.4; }
.crv-inp:focus { border-color: color-mix(in srgb, var(--green) 32%, transparent); }
.crv-inp[readonly] { color: rgba(255,255,255,.4); cursor: default; }
.crv-ta { min-height: 80px; resize: vertical; padding-top: 8px; padding-bottom: 8px; }
.crv-arr-wrap { display: flex; flex-direction: column; gap: 5px; }
.crv-arr-item { display: flex; align-items: center; gap: 5px; }
.crv-arr-item .crv-inp { flex: 1; }
.crv-arr-del { background: none; border: none; color: rgba(248,113,113,.45); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 3px; flex-shrink: 0; transition: color .1s; }
.crv-arr-del:hover { color: #f87171; }
.crv-char-count { font-size: 10px; color: rgba(255,255,255,.18); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.crv-char-warn { color: #fbbf24 !important; }
.crv-char-err  { color: #f87171 !important; }
.crv-arr-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 5px 10px; border-radius: 6px; border: 1px dashed rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.3); font-size: 11px; cursor: pointer; transition: color .12s, border-color .12s; font-family: Geist, system-ui, sans-serif; }
.crv-arr-add:hover { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.22); }
.crv-chip-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); }
.crv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 9px; border-radius: 12px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: 12px; }
.crv-chip-del { background: none; border: none; color: rgba(255,255,255,.28); cursor: pointer; font-size: 14px; padding: 0; line-height: 1; transition: color .1s; }
.crv-chip-del:hover { color: #f87171; }
.crv-chip-input { background: none; border: none; outline: none; color: rgba(255,255,255,.65); font-size: 12px; min-width: 70px; font-family: Geist, system-ui, sans-serif; }
.crv-chip-input::placeholder { color: rgba(255,255,255,.2); }
.crv-preview-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.crv-preview-hd { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.crv-preview-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.28); }
.crv-preview-body { padding: 14px; }
.crv-preview-placeholder { font-size: 12px; color: rgba(255,255,255,.18); text-align: center; padding: 18px 0; }
.crv-prev-google { font-family: Arial, sans-serif; }
.crv-prev-g-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--green-text); background: rgba(13,122,27,.12); border: 1px solid rgba(13,122,27,.3); border-radius: 3px; padding: 1px 5px; margin-bottom: 3px; }
.crv-prev-g-url { font-size: 13px; color: rgba(255,255,255,.38); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crv-prev-g-hl { font-size: 17px; color: #63B3ED; line-height: 1.3; margin-bottom: 5px; }
.crv-prev-g-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.45; }
.crv-prev-meta { border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.crv-prev-m-hd { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; }
.crv-prev-m-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #4285F4 0%, #1877F2 100%); flex-shrink: 0; }
.crv-prev-m-brand { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.2; }
.crv-prev-m-spon { font-size: 11px; color: rgba(255,255,255,.3); }
.crv-prev-m-body { padding: 0 10px 8px; font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.45; }
.crv-prev-m-img { height: 130px; background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.18); font-size: 11px; }
.crv-prev-m-ft { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: rgba(255,255,255,.03); gap: 8px; }
.crv-prev-m-hl2 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crv-prev-m-cta { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 5px; background: #1877F2; color: #fff; border: none; cursor: default; flex-shrink: 0; }
.crv-prev-tiktok { border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 9/14; position: relative; display: flex; align-items: flex-end; max-width: 200px; margin: 0 auto; }
.crv-prev-tt-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 100%); }
.crv-prev-tt-hook { position: relative; padding: 14px; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.crv-prev-tt-caption { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.7); margin-top: 5px; line-height: 1.4; }
.crv-recs-card { background: color-mix(in srgb, var(--green) 3%, transparent); border: 1px solid color-mix(in srgb, var(--green) 12%, transparent); border-radius: 12px; overflow: hidden; }
.crv-recs-hd { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid color-mix(in srgb, var(--green) 8%, transparent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--green) 60%, transparent); }
.crv-recs-list { padding: 4px 0; }
.crv-rec-item { display: flex; align-items: flex-start; gap: 8px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.45; }
.crv-rec-item:last-child { border-bottom: none; }
.crv-rec-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 5px; opacity: .7; }

/* ── Meta Campaign Studio ──────────────────────────────────────────── */
/* Preview-first workspace: three stages (Preview / Edit / Oriven Review),
   no dashboard-style tabs, no small sidebar preview -- the ad simulation
   is the hero, editing is one continuous page, review is a checklist. */
/* #cgmMetaScreen is an in-page block (inside the already-centered
   .cgr-wrap, max-width:1100px), not a modal -- no overlay/backdrop/fixed
   sizing. It fills the space .crv-tabbar + .crv-layout used to occupy. */
#cgmMetaScreen { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #1c1c1e; overflow: hidden; min-height: 78vh; display: flex; flex-direction: column; }

.cst-dirty { font-size: 12px; color: #fbbf24; }
.cst-saved { font-size: 12px; color: var(--green); }
.cst-btn { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; transition: opacity .12s, background .12s; }
.cst-btn-ghost { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.cst-btn-ghost:hover { background: rgba(255,255,255,.1); }
.cst-btn-primary { background: var(--green); color: #000; }
.cst-btn-primary:hover { opacity: .88; }
.cst-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.cst-btn-lg { font-size: 14px; padding: 12px 28px; border-radius: 10px; }
.cst-btn-sm { font-size: 12px; padding: 6px 12px; border-radius: 7px; margin-right: 8px; }
.cst-pmax-asset-preview { margin-top: 8px; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.cst-pmax-asset-preview img { width: 100%; height: 100%; object-fit: contain; background: rgba(255,255,255,.03); }
.cst-pmax-asset-preview-wide { width: 100%; max-width: 320px; height: 168px; }
.cst-pmax-asset-preview-wide img { object-fit: cover; }

/* Stage bar: the three Preview/Edit/Review states + compact ad selector +
   save controls. This replaces the old Copy/Audience/Creatives/Settings
   tab bar and the small right-side "Live Preview" card entirely. */
.cst-stagebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; flex-shrink: 0; }
.cst-stage-nav { display: flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 11px; }
.cst-stage-btn { font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 8px; border: none; background: transparent; color: rgba(255,255,255,.5); cursor: pointer; transition: background .12s, color .12s; }
.cst-stage-btn:hover { color: rgba(255,255,255,.8); }
.cst-stage-btn-active { background: #2c2c2e; color: #fff; }
.cst-ad-selector-bar { display: flex; align-items: center; gap: 8px; }
.cst-ad-selector-bar label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.35); }
.cst-sel { font-size: 12.5px; padding: 7px 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; max-width: 260px; }
.cst-save-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.cst-stage-body { flex: 1; min-height: 0; }
.cst-stage-panel { display: none; }
.cst-stage-panel-active { display: block; }

/* ── PREVIEW stage: the hero. Large, centered, immersive. ── */
.cst-stage-panel[data-stage="preview"] { padding: 32px 24px 56px; box-sizing: border-box; background: radial-gradient(ellipse at top, rgba(255,255,255,.025), transparent 60%); }
.cst-format-switcher { display: flex; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 10px; flex-shrink: 0; width: max-content; margin: 0 auto 28px; }
.cst-fmt-btn { font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 7px; border: none; background: transparent; color: rgba(255,255,255,.5); cursor: pointer; white-space: nowrap; }
.cst-fmt-btn-active { background: #2c2c2e; color: #fff; }
.cst-preview-stage { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; gap: 12px; }

/* Feed formats: large "device" card, capped so it stays readable on huge
   screens, generous enough to actually inspect the ad (spec: not a 250px
   sidebar card). A muted platform chrome bar + a faded "more content"
   footer sell the feeling of being inside a real, scrollable feed. */
.cst-mock-igfeed, .cst-mock-fbfeed { width: 100%; max-width: 470px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); font-family: -apple-system, Helvetica, Arial, sans-serif; }
.cst-platform-chrome { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.cst-platform-wordmark { font-size: 17px; font-weight: 700; color: #111; letter-spacing: -.02em; }
.cst-platform-icons { display: flex; gap: 14px; color: #222; font-size: 16px; }
.cst-ig-hd, .cst-fb-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.cst-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #6ea800); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #0a0a0a; flex-shrink: 0; }
.cst-ig-name, .cst-fb-name { font-size: 14px; font-weight: 600; color: #111; line-height: 1.25; }
.cst-ig-spon, .cst-fb-spon { font-size: 11.5px; color: #8a8a8a; }
.cst-dots { margin-left: auto; color: #444; font-size: 14px; letter-spacing: 1px; }
.cst-ig-img, .cst-fb-img { width: 100%; aspect-ratio: 1/1; background: #eee; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cst-fb-img { aspect-ratio: 1.91/1; }
.cst-ig-img img, .cst-fb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-img-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #aaa; font-size: 12px; }
.cst-ig-actions { display: flex; align-items: center; gap: 16px; padding: 11px 14px 5px; font-size: 21px; color: #222; }
.cst-ig-save { margin-left: auto; }
.cst-ig-body, .cst-fb-body { padding: 0 14px 12px; font-size: 14px; color: #222; line-height: 1.45; }
.cst-ig-body b, .cst-fb-body b { font-weight: 600; }
.cst-fb-body { padding-top: 2px; }
.cst-ig-cta-row, .cst-fb-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #f4f4f4; border-top: 1px solid #ececec; }
.cst-ig-domain, .cst-fb-domain { font-size: 11px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .02em; }
.cst-ig-headline, .cst-fb-headline { font-size: 14px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.cst-cta-btn { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 7px; background: #e4e6eb; color: #050505; border: none; flex-shrink: 0; cursor: default; }
.cst-fb-action-row { display: flex; align-items: center; justify-content: space-around; padding: 8px 4px; border-top: 1px solid #ececec; }
.cst-fb-action { font-size: 13px; color: #65676b; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.cst-feed-more { width: 100%; max-width: 470px; height: 64px; border-radius: 14px; background: linear-gradient(to bottom, rgba(255,255,255,.05), transparent); border: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.22); font-size: 11.5px; }

/* Story/Reels: full-screen vertical formats -- viewport-based, no scroll
   needed per spec, but enlarged well beyond a small sidebar thumbnail. */
.cst-mock-story, .cst-mock-reels { width: 300px; max-width: 82vw; aspect-ratio: 9/16; background: #000; border-radius: 26px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.55); border: 8px solid #0a0a0a; }
.cst-story-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.cst-story-bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); }
.cst-story-bar-fill { width: 40%; height: 100%; background: #fff; border-radius: 2px; }
.cst-story-hd { position: absolute; top: 22px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.cst-story-hd .cst-avatar { width: 28px; height: 28px; font-size: 11px; }
.cst-story-hd-name { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.cst-story-media { position: absolute; inset: 0; background: linear-gradient(160deg, #232326, #101012); display: flex; align-items: center; justify-content: center; }
.cst-story-media img, .cst-reels-media img { width: 100%; height: 100%; object-fit: cover; }
.cst-story-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); z-index: 2; }
.cst-story-fade-top { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); z-index: 2; }
.cst-story-foot { position: absolute; left: 16px; right: 16px; bottom: 22px; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.cst-story-text { font-size: 13.5px; color: #fff; line-height: 1.35; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cst-story-cta { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); border-radius: 20px; padding: 7px 16px; display: flex; align-items: center; gap: 5px; }

.cst-reels-media { position: absolute; inset: 0; background: linear-gradient(160deg, #1b1b1e, #0a0a0a); display: flex; align-items: center; justify-content: center; }
.cst-reels-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); z-index: 2; }
.cst-reels-rail { position: absolute; right: 12px; bottom: 84px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 17px; color: #fff; font-size: 18px; }
.cst-reels-rail span { font-size: 9px; font-weight: 600; margin-top: -8px; }
.cst-reels-foot { position: absolute; left: 16px; right: 64px; bottom: 22px; z-index: 3; display: flex; flex-direction: column; gap: 7px; }
.cst-reels-user { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cst-reels-caption { font-size: 12.5px; color: #fff; line-height: 1.35; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cst-reels-cta { align-self: flex-start; font-size: 12px; font-weight: 700; color: #000; background: #fff; border-radius: 7px; padding: 7px 14px; }
.cst-mock-note { font-size: 11px; color: rgba(255,255,255,.32); text-align: center; }

/* ── EDIT stage: one continuous page, collapsible sections instead of
   Copy/Audience/Creatives/Settings tabs. ── */
.cst-edit-wrap { max-width: 640px; margin: 0 auto; padding: 28px 24px 60px; display: flex; flex-direction: column; gap: 14px; }
.cst-sec { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.02); overflow: hidden; }
.cst-sec > summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #fff; }
.cst-sec > summary::-webkit-details-marker { display: none; }
.cst-sec-sub { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.35); margin-left: 8px; }
.cst-sec-chev { transition: transform .15s; color: rgba(255,255,255,.4); flex-shrink: 0; }
.cst-sec[open] > summary .cst-sec-chev { transform: rotate(90deg); }
.cst-sec-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.cst-fld { display: flex; flex-direction: column; gap: 6px; }
.cst-fld label { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.cst-fld-hint { font-size: 10.5px; color: rgba(255,255,255,.3); line-height: 1.4; }
.cst-fld-row { display: flex; gap: 12px; }
.cst-fld-row .cst-fld { flex: 1; min-width: 0; }
/* Google Ads Daily Budget -- currency selector + numeric-only amount input
   (replaces the old free-text "$20/day" field). Locked to the connected
   Google Ads account's own currency once known (Google Ads budgets are
   always denominated in the account's configured currency -- the selector
   is only freely choosable before an account is connected). */
.cst-budget-row { display: flex; gap: 8px; align-items: stretch; }
.cst-budget-currency { flex-shrink: 0; width: auto; max-width: 108px; }
.cst-budget-currency:disabled { opacity: .6; cursor: default; }
.cst-budget-amount-wrap { position: relative; flex: 1; min-width: 0; }
.cst-budget-symbol { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: rgba(255,255,255,.4); pointer-events: none; }
.cst-budget-amount { padding-left: 24px !important; }
.cst-fld-err { font-size: 11px; color: #f87171; margin-top: 5px; line-height: 1.4; }
.cst-fld-static { font-size: 13px; color: rgba(255,255,255,.75); padding: 9px 11px; border-radius: 7px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.cst-goal-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.65); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 6px 12px; align-self: flex-start; }
.cst-goal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
/* Placements segmented toggle (Final Polish) — same dark-studio palette
   as .cst-fld-static/.cst-goal-pill above (this panel is intentionally
   theme-independent, not light/dark aware), active state uses the brand
   accent so it reads clearly against the two-option row. */
.cst-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.cst-seg-btn {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px; padding: 8px 12px; cursor: pointer;
  font-family: inherit; transition: background .15s, color .15s, border-color .15s;
}
.cst-seg-btn:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.cst-seg-btn.cst-seg-btn-on { background: var(--green); color: var(--green-deep, #06210f); border-color: var(--green); }
.cst-creative-thumb { width: 100%; max-width: 220px; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; }
.cst-creative-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── ORIVEN REVIEW stage ── */
.cst-review-wrap { max-width: 640px; margin: 0 auto; padding: 28px 24px 30px; }
.cst-review-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cst-review-row:last-child { border-bottom: none; }
.cst-review-lbl { font-size: 12.5px; color: rgba(255,255,255,.45); }
.cst-review-val { font-size: 13px; font-weight: 600; color: #fff; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cst-review-val-warn { color: #fbbf24; }
.cst-review-sec-hd { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.35); margin: 22px 0 8px; }
.cst-review-sec-hd:first-child { margin-top: 0; }
.cst-check-list { display: flex; flex-direction: column; gap: 9px; }
.cst-check-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.75); }
.cst-check-ok { color: var(--green); flex-shrink: 0; }
.cst-check-warn-item { color: #fbbf24; }
.cst-check-warn-icon { color: #fbbf24; flex-shrink: 0; }
.cst-review-err { font-size: 12.5px; color: #f87171; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.18); border-radius: 8px; padding: 10px 12px; line-height: 1.45; margin-top: 6px; }
.cst-review-err-details { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.4); cursor: pointer; }
.cst-review-foot-inline { max-width: 640px; margin: 0 auto; padding: 0 24px 28px; display: flex; justify-content: flex-end; }

/* Responsive: tablet (~820px) and mobile (~390px) per QA matrix */
@media (max-width: 1024px) {
  .cst-mock-igfeed, .cst-mock-fbfeed, .cst-feed-more { max-width: 420px; }
}
@media (max-width: 600px) {
  #cgmMetaScreen { border-radius: 12px; min-height: 0; }
  .cst-stagebar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .cst-save-controls { margin-left: 0; flex-wrap: wrap; }
  .cst-save-controls .cst-btn { flex: 1 1 auto; min-width: 0; }
  .cst-stage-nav { width: 100%; justify-content: space-between; }
  .cst-stage-btn { flex: 1; padding: 9px 6px; text-align: center; }
  .cst-ad-selector-bar { width: 100%; }
  .cst-sel { max-width: none; flex: 1; }
  .cst-stage-panel[data-stage="preview"] { padding: 20px 12px 36px; }
  .cst-mock-igfeed, .cst-mock-fbfeed, .cst-feed-more { max-width: 100%; }
  .cst-mock-story, .cst-mock-reels { width: 220px; }
  .cst-edit-wrap, .cst-review-wrap, .cst-review-foot-inline { padding-left: 16px; padding-right: 16px; }
}

/* Light mode: the Studio is intentionally a fixed-dark tool surface (matches
   the existing Ads Manager modal/panel language, .adm-modal / .adm-camp-panel),
   independent of the site-wide light/dark toggle -- so no overrides needed
   here; verified not to visually clash when body.dark-mode is toggled. */

/* ── Google Ads Preview / Edit / Oriven Review ─────────────────────── */
/* Search-results simulation -- light chrome (matches how a real search
   page looks, same reasoning as Meta's light feed-card mocks), no format
   switcher needed since Google Search is the one placement this pipeline
   actually publishes to. */
.cst-mock-gsearch { width: 100%; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); font-family: arial, sans-serif; }
.cst-gs-searchbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #ececec; }
.cst-gs-logo { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.cst-gs-logo b:nth-child(1) { color: #4285F4; } .cst-gs-logo b:nth-child(2) { color: #EA4335; } .cst-gs-logo b:nth-child(3) { color: #FBBC05; } .cst-gs-logo b:nth-child(4) { color: #4285F4; } .cst-gs-logo b:nth-child(5) { color: #34A853; } .cst-gs-logo b:nth-child(6) { color: #EA4335; }
.cst-gs-query-pill { flex: 1; display: flex; align-items: center; gap: 8px; background: #f1f3f4; border-radius: 24px; padding: 9px 16px; font-size: 14px; color: #202124; }
.cst-gs-results { padding: 14px 18px 20px; }
.cst-gs-ad-block { padding: 10px 0 18px; border-bottom: 1px solid #f0f0f0; margin-bottom: 14px; }
.cst-gs-ad-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #1a1a1a; background: #fce8b2; border-radius: 3px; padding: 1px 5px; margin-right: 6px; }
.cst-gs-ad-url { font-size: 13px; color: #202124; margin: 4px 0 2px; display: flex; align-items: center; gap: 6px; }
.cst-gs-ad-favicon { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #6ea800); flex-shrink: 0; }
.cst-gs-ad-hl { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 2px 0 4px; }
.cst-gs-ad-desc { font-size: 14px; color: #4d5156; line-height: 1.55; }
.cst-gs-organic { padding: 14px 0; opacity: .35; }
.cst-gs-organic-url { font-size: 12.5px; color: #202124; margin-bottom: 3px; }
.cst-gs-organic-hl { font-size: 18px; color: #1a0dab; margin-bottom: 3px; }
.cst-gs-organic-desc { font-size: 13px; color: #4d5156; line-height: 1.5; }

/* ── Google multi-surface preview studio ── */
.cst-gsurf-nav { display: flex; flex-wrap: wrap; gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 10px; width: max-content; max-width: 100%; margin: 0 auto 18px; }
.cst-gsurf-btn { position: relative; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 7px; border: none; background: transparent; color: rgba(255,255,255,.5); cursor: pointer; white-space: nowrap; }
.cst-gsurf-btn-active { background: #2c2c2e; color: #fff; }
.cst-gsurf-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.cst-gsurf-dot-ready { background: var(--green); }
.cst-gsurf-dot-preview { background: #60a5fa; }
.cst-gsurf-dot-missing { background: #fbbf24; }
.cst-gsurf-status { display: flex; justify-content: center; margin-bottom: 20px; }
.cst-gsurf-status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid; }
.cst-gsurf-status-ready { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.cst-gsurf-status-preview { color: #60a5fa; border-color: rgba(96,165,250,.35); background: rgba(96,165,250,.08); }
.cst-gsurf-status-missing { color: #fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.cst-gsurf-subnav { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.cst-gsurf-sub-btn { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.5); cursor: pointer; }
.cst-gsurf-sub-btn-active { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }

/* Generic empty/unavailable-asset state used across every surface */
.cst-gsurf-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 24px; color: rgba(255,255,255,.4); text-align: center; max-width: 380px; margin: 0 auto; }
.cst-gsurf-empty svg { opacity: .5; }
.cst-gsurf-empty b { color: rgba(255,255,255,.65); font-size: 13px; }
.cst-gsurf-empty span { font-size: 12.5px; line-height: 1.5; }

/* Shopping */
.cst-mock-shopping { width: 100%; max-width: 320px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.cst-shop-img { width: 100%; aspect-ratio: 1/1; background: #f4f4f4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cst-shop-img img { width: 100%; height: 100%; object-fit: cover; }
.cst-shop-body { padding: 12px 14px 16px; }
.cst-shop-title { font-size: 13.5px; color: #202124; line-height: 1.4; margin-bottom: 6px; }
.cst-shop-store { font-size: 11.5px; color: #70757a; }

/* Display / Demand Gen banner */
.cst-mock-display { width: 100%; max-width: 460px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); font-family: arial, sans-serif; }
.cst-disp-img { width: 100%; aspect-ratio: 1.91/1; background: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cst-disp-img img { width: 100%; height: 100%; object-fit: contain; background: #fafafa; }
.cst-disp-body { padding: 14px 16px; }
.cst-disp-brand { font-size: 11px; font-weight: 700; color: #70757a; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cst-disp-hl { font-size: 16px; font-weight: 600; color: #202124; line-height: 1.3; margin-bottom: 4px; }
.cst-disp-desc { font-size: 13px; color: #4d5156; line-height: 1.5; margin-bottom: 10px; }
.cst-disp-cta { font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 6px; background: #1a73e8; color: #fff; border: none; }
.cst-disp-adtag { display: inline-block; font-size: 10px; font-weight: 700; color: #70757a; border: 1px solid #dadce0; border-radius: 3px; padding: 1px 5px; margin-bottom: 8px; }

/* Discover feed card */
.cst-mock-discover { width: 100%; max-width: 400px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); font-family: arial, sans-serif; }
.cst-disc-img { width: 100%; aspect-ratio: 16/9; background: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cst-disc-img img { width: 100%; height: 100%; object-fit: cover; }
.cst-disc-body { padding: 13px 15px 16px; }
.cst-disc-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cst-disc-sponsored { font-size: 11px; color: #70757a; }
.cst-disc-hl { font-size: 15.5px; font-weight: 600; color: #202124; line-height: 1.35; margin-bottom: 4px; }
.cst-disc-desc { font-size: 13px; color: #4d5156; line-height: 1.5; }

/* Maps */
.cst-mock-maps { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); background: #e8eaed; }
.cst-maps-canvas { position: relative; height: 200px; background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px); background-size: 18px 18px; background-color: #eef1f4; display: flex; align-items: center; justify-content: center; }
.cst-maps-pin { color: #ea4335; }
.cst-maps-body { background: #fff; padding: 16px; }

/* Gmail */
.cst-mock-gmail { width: 100%; max-width: 460px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); font-family: arial, sans-serif; }
.cst-gmail-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.cst-gmail-row:hover { background: #f8f9fa; }
.cst-gmail-tag { font-size: 10.5px; font-weight: 700; color: #1a73e8; border: 1px solid #1a73e8; border-radius: 3px; padding: 1px 6px; flex-shrink: 0; }
.cst-gmail-preview { flex: 1; min-width: 0; }
.cst-gmail-subject { font-size: 13.5px; color: #202124; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-gmail-snippet { font-size: 12.5px; color: #70757a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-gmail-expanded { border-top: 1px solid #ececec; padding: 16px; display: none; }
.cst-gmail-expanded.cst-gmail-open { display: block; }
.cst-gmail-exp-img { width: 100%; aspect-ratio: 1.91/1; background: #f0f0f0; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.cst-gmail-exp-img img { width: 100%; height: 100%; object-fit: contain; background: #fafafa; }

/* YouTube (video / image / shorts) */
.cst-mock-ytvideo { width: 100%; max-width: 560px; margin: 0 auto; background: #0f0f0f; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cst-yt-player { width: 100%; aspect-ratio: 16/9; background: #1a1a1a; display: flex; align-items: center; justify-content: center; position: relative; }
.cst-yt-body { padding: 14px 16px; }
.cst-yt-adtag { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.cst-yt-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.cst-yt-cta-row { display: flex; align-items: center; justify-content: space-between; }
.cst-yt-brand { font-size: 12.5px; color: rgba(255,255,255,.5); }
.cst-yt-cta { font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 18px; background: #fff; color: #0f0f0f; border: none; }

.cst-mock-ytimage { width: 100%; max-width: 460px; margin: 0 auto; background: #0f0f0f; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cst-yti-tag { padding: 10px 14px 0; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .04em; }
.cst-yti-img { width: 100%; aspect-ratio: 1.91/1; background: #1a1a1a; overflow: hidden; margin-top: 8px; }
.cst-yti-img img { width: 100%; height: 100%; object-fit: contain; }
.cst-yti-body { padding: 12px 14px 16px; }
.cst-yti-hl { font-size: 14.5px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cst-yti-desc { font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 10px; }

.cst-mock-ytshorts { width: 240px; max-width: 76vw; aspect-ratio: 9/16; background: #000; border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.55); border: 7px solid #0a0a0a; margin: 0 auto; }

/* Final Polish — real generated-video preview (YouTube "Video" mode),
   same dark-card language as .cst-mock-ytimage next to it. */
.cst-mock-ytvideo { width: 100%; max-width: 460px; margin: 0 auto; background: #0f0f0f; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 10px 14px 14px; }
.cst-ytvideo-player { width: 100%; aspect-ratio: 16/9; border-radius: 8px; background: #000; display: block; }

/* Performance Max overview grid */
.cst-pmax-intro { text-align: center; max-width: 480px; margin: 0 auto 24px; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.55; }
.cst-pmax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 720px; margin: 0 auto; }
.cst-pmax-card { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px 14px; background: rgba(255,255,255,.02); cursor: pointer; text-align: left; transition: background .12s, border-color .12s; }
.cst-pmax-card:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.cst-pmax-card-icon { font-size: 20px; margin-bottom: 8px; }
.cst-pmax-card-label { font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.cst-pmax-card-snippet { font-size: 11.5px; color: rgba(255,255,255,.4); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 600px) { .cst-pmax-grid { grid-template-columns: repeat(2, 1fr); } }
.cst-pmax-assetgroup { max-width: 480px; margin: 0 auto 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.cst-pmax-assetgroup b { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.cst-pmax-ag-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.75); padding: 5px 0; border-top: 1px solid rgba(255,255,255,.05); }
.cst-pmax-ag-row:first-of-type { border-top: none; }

/* Editable list rows (headlines / descriptions / keywords) */
.cst-list { display: flex; flex-direction: column; gap: 7px; }
.cst-list-row { display: flex; align-items: center; gap: 8px; }
.cst-list-row .crv-inp { flex: 1; }
.cst-list-remove { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); cursor: pointer; font-size: 14px; line-height: 1; }
.cst-list-remove:hover { background: rgba(248,113,113,.12); color: #f87171; border-color: rgba(248,113,113,.25); }
.cst-list-add { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 7px; border: 1px dashed rgba(255,255,255,.18); background: transparent; color: rgba(255,255,255,.55); cursor: pointer; }
.cst-list-add:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.cst-list-add:disabled { opacity: .35; cursor: not-allowed; }
.cst-char-count { font-size: 10.5px; color: rgba(255,255,255,.3); text-align: right; }

/* ── TikTok Ads Preview / Edit / Oriven Review ─────────────────────── */
.cst-mock-tiktok { width: 300px; max-width: 82vw; aspect-ratio: 9/16; background: #000; border-radius: 26px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.55); border: 8px solid #0a0a0a; margin: 0 auto; }
.cst-tt-top { position: absolute; top: 20px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 18px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); }
.cst-tt-top-active { color: #fff; }
.cst-tt-media { position: absolute; inset: 0; background: linear-gradient(160deg, #232326, #101012); display: flex; align-items: center; justify-content: center; }
.cst-tt-media img { width: 100%; height: 100%; object-fit: cover; }
.cst-tt-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); z-index: 2; }
.cst-tt-rail { position: absolute; right: 10px; bottom: 90px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 17px; color: #fff; font-size: 18px; }
.cst-tt-rail span { font-size: 8px; font-weight: 600; margin-top: -8px; }
.cst-tt-foot { position: absolute; left: 14px; right: 62px; bottom: 20px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.cst-tt-user { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cst-tt-sponsored { font-size: 10.5px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .04em; }
.cst-tt-caption { font-size: 12.5px; color: #fff; line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cst-tt-cta { align-self: flex-start; font-size: 12px; font-weight: 700; color: #000; background: #fff; border-radius: 6px; padding: 7px 14px; }
.cst-tt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.35); font-size: 12px; text-align: center; padding: 0 24px; }

/* ── V4 AI REVIEW ────────────────────────────────────────────────── */
.v4r-wrap { padding: 0 0 40px; display: flex; flex-direction: column; gap: 24px; }

/* Hero score */
.v4r-hero { display: flex; align-items: center; gap: 28px; padding: 28px 28px 24px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.v4r-ring-wrap { position: relative; flex-shrink: 0; }
.v4r-ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.v4r-score-num { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.v4r-score-denom { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }
.v4r-hero-body { flex: 1; min-width: 0; }
.v4r-hero-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.35); margin-bottom: 6px; }
.v4r-hero-grade { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.v4r-grade-a { color: #4ade80; }
.v4r-grade-b { color: var(--green); }
.v4r-grade-c { color: #fbbf24; }
.v4r-grade-d { color: #f87171; }
.v4r-hero-verdict { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.v4r-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.v4r-hero-btn { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; }
.v4r-hero-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.v4r-hero-btn-primary { background: var(--green); color: #000; border-color: transparent; }
.v4r-hero-btn-primary:hover { background: var(--gm); color: #000; }

/* Score breakdown */
.v4r-breakdown { padding: 20px 24px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
.v4r-sect-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.v4r-cats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 20px; }
.v4r-cat { }
.v4r-cat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.v4r-cat-name { font-size: 12px; color: rgba(255,255,255,.6); }
.v4r-cat-val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.v4r-val-hi { color: #4ade80; }
.v4r-val-md { color: var(--green); }
.v4r-val-lo { color: #fbbf24; }
.v4r-track { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.v4r-bar { height: 100%; border-radius: 2px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.v4r-bar-hi { background: #4ade80; }
.v4r-bar-md { background: var(--green); }
.v4r-bar-lo { background: #fbbf24; }

/* Strengths + Weaknesses */
.v4r-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v4r-sw-card { padding: 18px 20px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
.v4r-sw-hd { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.v4r-sw-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.v4r-dot-green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.5); }
.v4r-dot-amber { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,.4); }
.v4r-dot-blue  { background: #63B3ED; box-shadow: 0 0 6px rgba(99,179,237,.4); }
.v4r-sw-list { margin: 0; padding: 0 0 0 16px; list-style: disc; display: flex; flex-direction: column; gap: 7px; }
.v4r-sw-list li { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.4; }

/* Suggestions */
.v4r-sugg-sect { display: flex; flex-direction: column; gap: 8px; }
.v4r-sugg-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; cursor: pointer; transition: background .12s, border-color .12s; }
.v4r-sugg-item:hover { background: color-mix(in srgb, var(--green) 4%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.v4r-sugg-ico { font-size: 18px; flex-shrink: 0; }
.v4r-sugg-text { flex: 1; font-size: 13px; color: rgba(255,255,255,.7); }
.v4r-sugg-arr { color: rgba(255,255,255,.2); font-size: 14px; transition: color .12s, transform .12s; }
.v4r-sugg-item:hover .v4r-sugg-arr { color: var(--green); transform: translateX(3px); }

/* One-Click Actions */
.v4r-actions { }
.v4r-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v4r-act-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; cursor: pointer; transition: background .14s, border-color .14s, transform .12s; text-align: center; }
.v4r-act-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); transform: translateY(-1px); }
.v4r-act-ico { font-size: 20px; }
.v4r-act-lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .1px; line-height: 1.3; }
.v4r-act-btn:hover .v4r-act-lbl { color: rgba(255,255,255,.9); }

/* Light-mode V4 review */
body:not(.dark-mode) .v4r-hero { background: rgba(0,0,0,.025); border-color: rgba(0,0,0,.07); }
body:not(.dark-mode) .v4r-score-num { color: #18181a; }
body:not(.dark-mode) .v4r-hero-btn { background: rgba(0,0,0,.06); color: rgba(0,0,0,.6); border-color: rgba(0,0,0,.1); }
body:not(.dark-mode) .v4r-hero-btn:hover { background: rgba(0,0,0,.1); color: #18181a; }
body:not(.dark-mode) .v4r-hero-kicker,.body:not(.dark-mode) .v4r-hero-verdict { color: rgba(0,0,0,.4); }
body:not(.dark-mode) .v4r-breakdown,.body:not(.dark-mode) .v4r-sw-card { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
body:not(.dark-mode) .v4r-cat-name { color: rgba(0,0,0,.55); }
body:not(.dark-mode) .v4r-track { background: rgba(0,0,0,.07); }
body:not(.dark-mode) .v4r-sw-list li { color: rgba(0,0,0,.65); }
body:not(.dark-mode) .v4r-sugg-item { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
body:not(.dark-mode) .v4r-sugg-text { color: rgba(0,0,0,.65); }
body:not(.dark-mode) .v4r-act-btn { background: rgba(0,0,0,.025); border-color: rgba(0,0,0,.07); }
body:not(.dark-mode) .v4r-act-lbl { color: rgba(0,0,0,.55); }

/* AI Review tab icon alignment */
.crv-tab svg { vertical-align: middle; }

@media (max-width: 900px) {
  .v4r-cats-grid { grid-template-columns: 1fr 1fr; }
  .v4r-action-grid { grid-template-columns: repeat(3, 1fr); }
  .v4r-sw { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .v4r-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .v4r-cats-grid { grid-template-columns: 1fr; }
  .v4r-action-grid { grid-template-columns: repeat(2, 1fr); }
}

.crv-validation { margin: 0 32px 28px; padding: 14px 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.crv-val-hd { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.28); margin-bottom: 11px; }
.crv-val-items { display: flex; flex-direction: column; gap: 7px; }
.crv-val-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; }
.crv-val-ico { flex-shrink: 0; font-size: 12px; }
.crv-val-pass { color: rgba(255,255,255,.45); }
.crv-val-fail { color: #f87171; }
.crv-val-warn { color: #fbbf24; }

@keyframes aicSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* AI Note — shown below field when AI budget explanation is longer than clean value */
.crv-ai-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 5px; padding: 7px 10px; background: color-mix(in srgb, var(--green) 4%, transparent); border: 1px solid color-mix(in srgb, var(--green) 10%, transparent); border-radius: 6px; font-size: 11px; color: rgba(255,255,255,.38); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   V8 PHASE 2 — CREATIVE WORKSPACE (crws-*)
   Three-column layout: left context/history, center canvas/versions,
   right preview/score/director, bottom persistent chat dock.
   Reuses .oi-card/.ov3-*/.orv-ai-msg-*/.clib-status-* throughout —
   no duplicated component system.
   ══════════════════════════════════════════════════════════════ */
#page-creative-workspace { display: none; flex-direction: column; height: calc(100vh - 64px); }
#page-creative-workspace.active { display: flex; }

/* Compact page header — Studio previously had no title/purpose statement
   at all, unlike every other workspace; kept small since the 3-column
   layout below is the actual point of the page. */
.crws-hdr { padding: 14px 20px 0; flex-shrink: 0; }
.crws-hdr-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--charcoal, #18181A); margin: 0 0 2px; }
.crws-hdr-sub { font-size: 12px; color: var(--muted, rgba(0,0,0,.5)); margin: 0 0 12px; }

.crws-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 1px;
  background: var(--border);
  overflow: hidden;
}
.crws-col { background: var(--bg); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.crws-left { }
/* Bug fix (Intelligence + Studio Refinement sprint): #crwsBrainSummary
   ("Brand Knowledge Completeness") is the only place in the app that wraps
   .ov3-health-badge inside .ov3-insight — a shrink-to-fit, nowrap pill
   component designed for short one-line chips, never meant to contain a
   full health-score widget. In the 240px left column that fought the
   badge's own `width:100%` and pushed content past the card edge. Give it
   its own container behavior instead of the pill's. */
.crws-brain-summary.ov3-insight {
  display: block;
  width: 100%;
  white-space: normal;
  overflow: hidden;
  box-sizing: border-box;
}
.crws-center { padding: 0; display: flex; flex-direction: column; }
.crws-right { }
.crws-sect { display: flex; flex-direction: column; gap: 8px; }
.crws-sect-grow { flex: 1; min-height: 0; }
.crws-sect-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 1100px) {
  .crws-layout { grid-template-columns: 1fr; grid-auto-rows: min-content; overflow-y: auto; }
  .crws-col { overflow-y: visible; }
}

/* Search */
.crws-search-wrap { position: relative; }
.crws-search-inp { width: 100%; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--charcoal); box-sizing: border-box; }
.crws-search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); max-height: 320px; overflow-y: auto; }
.crws-search-item { padding: 8px 10px; font-size: 12.5px; cursor: pointer; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); }
.crws-search-item:last-child { border-bottom: none; }
.crws-search-item:hover { background: var(--bg2); }
.crws-search-type { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; flex-shrink: 0; }
.crws-search-empty { padding: 10px; font-size: 12px; color: var(--muted); }

/* Selects + pills */
/* Bug fix (Intelligence + Studio Refinement sprint) — Product selector was
   unreadable: background:transparent meant the native option-list popup
   fell back to whatever the browser/OS renders (often white), while the
   text color still followed the app's theme variable, so dark-mode's light
   text landed on that white popup. Explicit background + matching <option>
   colors fix both themes, same fix already applied to Campaigns' .prf-select. */
.crws-select { width: 100%; font-size: 12.5px; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--charcoal); box-sizing: border-box; }
.crws-select option { background: var(--surface); color: var(--charcoal); }
.crws-platform-pills, .crws-preview-tabs, .crws-preview-device-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.crws-pill { font-size: 11px; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: background .14s, color .14s; }
.crws-pill:hover { background: var(--bg2); }
.crws-pill-active { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--charcoal); border-color: color-mix(in srgb, var(--green) 30%, transparent); font-weight: 600; }

/* History list */
.crws-history-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.crws-hist-item { padding: 8px 9px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; transition: background .14s; }
.crws-hist-item:hover { background: var(--bg2); }
.crws-hist-kind { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.crws-hist-title { font-size: 12.5px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crws-hist-date { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Canvas (center) */
.crws-version-strip { display: flex; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--border); overflow-x: auto; flex-shrink: 0; }
.crws-version-chip { font-size: 11px; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.crws-version-active { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--charcoal); border-color: color-mix(in srgb, var(--green) 30%, transparent); font-weight: 600; }
.crws-canvas { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; display: flex; align-items: center; justify-content: center; }
.crws-empty { text-align: center; max-width: 320px; }
.crws-canvas-text { width: 100%; min-height: 240px; resize: vertical; font-size: 13.5px; line-height: 1.6; padding: 14px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--charcoal); font-family: inherit; box-sizing: border-box; }
.crws-canvas-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.crws-status-select { width: auto; min-width: 140px; margin-left: auto; }
.crws-status-badge { text-transform: capitalize; }

/* Live Preview frames */
.crws-preview-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: max-width .18s ease; margin: 0 auto; }
.crws-device-desktop .crws-preview-frame, .crws-preview-frame { max-width: 100%; }
.crws-device-tablet .crws-preview-frame { max-width: 420px; }
.crws-device-mobile .crws-preview-frame { max-width: 280px; }
#crwsPreviewFrame.crws-device-tablet { max-width: 420px; margin: 0 auto; }
#crwsPreviewFrame.crws-device-mobile { max-width: 280px; margin: 0 auto; }

.crws-pv-google { padding: 14px; font-family: arial, sans-serif; }
.crws-pv-g-ad { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: #616161; border-radius: 3px; padding: 0 4px; margin-bottom: 4px; }
.crws-pv-g-headline { font-size: 16px; color: #1a0dab; margin-bottom: 2px; }
.crws-pv-g-url { font-size: 12px; color: #006621; margin-bottom: 4px; }
.crws-pv-g-desc { font-size: 12.5px; color: #545454; line-height: 1.4; }

.crws-pv-meta { display: flex; flex-direction: column; }
.crws-pv-meta img { width: 100%; display: block; max-height: 260px; object-fit: cover; }
.crws-pv-img-ph { width: 100%; height: 200px; background: var(--bg2); }
.crws-pv-meta-body { padding: 10px 12px; }
.crws-pv-meta-headline { font-size: 13.5px; font-weight: 700; }
.crws-pv-meta-text { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.crws-pv-meta-cta { margin-top: 8px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--border); color: var(--charcoal); }

.crws-pv-tiktok { position: relative; aspect-ratio: 9/16; max-height: 420px; background: #000; overflow: hidden; }
.crws-pv-tiktok img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.crws-pv-tiktok-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.crws-pv-tiktok-hook { font-size: 13px; font-weight: 700; }
.crws-pv-tiktok-cta { margin-top: 8px; display: inline-block; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 20px; background: #fff; color: #000; }

.crws-pv-email-frame, .crws-pv-lp-frame { width: 100%; height: 420px; border: none; background: #fff; }

/* Compare modal */
.cmp-panel { max-width: 900px; }
.cmp-body { padding: 22px 24px 26px; overflow-y: auto; flex: 1; }

/* Chat dock (bottom) */
.crws-chat-dock { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; max-height: 220px; }
.crws-chat-feed { flex: 1; overflow-y: auto; padding: 10px 20px; display: flex; flex-direction: column; gap: 8px; }
.crws-chat-input-row { display: flex; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--border); }
.crws-chat-inp { flex: 1; font-size: 13px; padding: 9px 12px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--charcoal); }
.crws-chat-send { font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 20px; background: color-mix(in srgb, var(--green) 90%, transparent); border: none; color: #0a0a0a; cursor: pointer; }

body.dark-mode .crws-pv-google { background: #fff; } /* Google SERP stays light even in dark mode, matching reality */

/* ══════════════════════════════════════════════════════════════
   V9 — AUTOPILOT CENTER (ap-op-*)
   Reuses .asl-outer/.oi-card/.ov3-health-badge/.clib-status-*/.cf-panel
   throughout — no new visual system for this page.
   ══════════════════════════════════════════════════════════════ */
#page-autopilot { display: none; }
#page-autopilot.active { display: block; }
.ap-op-outer { max-width: var(--orv-content-maxw); margin: 0 auto; padding: var(--orv-content-pad-top) var(--orv-content-pad-x) var(--orv-content-pad-bottom); }
.ap-op-hdr { margin-bottom: var(--orv-title-gap); }
.ap-op-health-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.ap-op-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 1000px) { .ap-op-grid { grid-template-columns: 1fr; } }
.ap-op-col { display: flex; flex-direction: column; min-width: 0; }
.ap-op-sect-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ap-op-list { display: flex; flex-direction: column; gap: 8px; }

/* Autopilot Complete Redesign — Automation Builder. Deliberately plain
   form controls (dropdowns/inputs), never anything that reads as code —
   "almost like building a filter". Generous vertical rhythm per the
   "operational, not another dashboard" brief: breathing room is fine. */
.ap-builder { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ap-builder-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-builder-lbl { font-size: 12.5px; font-weight: 600; color: var(--charcoal, #18181A); min-width: 130px; flex-shrink: 0; }
body.dark-mode .ap-builder-lbl { color: var(--text, #e8e8e8); }
.ap-builder-rule { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-left: 144px; }
@media (max-width: 640px) { .ap-builder-rule { padding-left: 0; } }
.ap-builder-kw {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-text); background: color-mix(in srgb, var(--green) 12%, transparent); border-radius: 6px; padding: 4px 9px; flex-shrink: 0;
}
body.dark-mode .ap-builder-kw { color: var(--green); }
.ap-builder-inp { width: auto; flex: 1 1 160px; min-width: 120px; }
.ap-builder-preview {
  background: color-mix(in srgb, var(--green) 6%, transparent); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); border-radius: 12px;
  padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: var(--charcoal, #18181A);
}
body.dark-mode .ap-builder-preview { color: var(--text, #e8e8e8); background: color-mix(in srgb, var(--green) 5%, transparent); border-color: color-mix(in srgb, var(--green) 18%, transparent); }
.ap-builder-preview strong { color: var(--green-text); }
body.dark-mode .ap-builder-preview strong { color: var(--green); }

/* Autopilot Refinement / Experience Redesign — the Automation Builder
   wizard. A guided conversation, not a form: one question at a time,
   selectable cards instead of dropdowns, a live plain-English review
   instead of a technical rule. Kept visually distinct from Campaigns
   (analytical, data-dense) — Autopilot is operational, roomier, calmer. */
.ap-wiz { max-width: 640px; }
.ap-wiz-step {
  transition: opacity .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1);
  opacity: 1; transform: translateY(0);
}
.ap-wiz-step-entering { opacity: 0; transform: translateY(16px); }
.ap-wiz-step-leaving { opacity: 0; transform: translateY(-12px); }
.ap-wiz-q {
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--charcoal, #18181A); margin-bottom: 16px;
}
body.dark-mode .ap-wiz-q { color: var(--text, #e8e8e8); }

/* Collapsed recap chip for a completed step */
.ap-wiz-recap {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px;
  background: var(--bg, rgba(0,0,0,.02)); border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 10px;
  cursor: pointer; transition: opacity .3s ease, transform .3s ease, border-color .15s ease;
}
.ap-wiz-recap:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.ap-wiz-recap-enter { opacity: 0; transform: translateY(-8px); }
.ap-wiz-recap-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, rgba(0,0,0,.4)); flex-shrink: 0; }
.ap-wiz-recap-val { font-size: 13px; font-weight: 600; color: var(--charcoal, #18181A); flex: 1; }
body.dark-mode .ap-wiz-recap-val { color: var(--text, #e8e8e8); }
.ap-wiz-recap-edit { font-size: 11.5px; color: var(--green-text); font-weight: 600; }
body.dark-mode .ap-wiz-recap-edit { color: var(--green); }

/* Selectable cards — platform / campaign / metric / action. Premium but
   restrained motion: a small lift + scale on hover, a clear but calm
   selected state. Selected state always uses dark text on the light-green
   tint (never white-on-green — see Autopilot Refinement contrast audit). */
.ap-wiz-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-wiz-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 150px; flex: 1 1 150px; max-width: 220px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border, rgba(0,0,0,.09));
  background: var(--surface, #fff); cursor: pointer; text-align: left;
  transition: transform .16s cubic-bezier(.16,1,.3,1), box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.ap-wiz-card:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 8px 20px rgba(0,0,0,.07); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.ap-wiz-card-selected, .ap-wiz-card-selected:hover {
  background: color-mix(in srgb, var(--green) 10%, transparent); border-color: var(--green); box-shadow: 0 0 0 1px var(--green);
}
.ap-wiz-card-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.ap-wiz-card-title { font-size: 13.5px; font-weight: 700; color: var(--charcoal, #18181A); }
body.dark-mode .ap-wiz-card-title { color: var(--text, #e8e8e8); }
.ap-wiz-card-desc { font-size: 11.5px; color: var(--muted, rgba(0,0,0,.45)); line-height: 1.4; }
.ap-wiz-card-disabled { opacity: .4; cursor: not-allowed; }
.ap-wiz-card-disabled:hover { transform: none; box-shadow: none; border-color: var(--border, rgba(0,0,0,.09)); }

/* Inline detail row revealed after selecting a metric/action card
   (operator + value, or a budget percentage) */
.ap-wiz-detail {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border, rgba(0,0,0,.08));
}
.ap-wiz-detail-inp { width: auto; max-width: 110px; }
.ap-wiz-op-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-wiz-op-pill {
  font-size: 12px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border, rgba(0,0,0,.12));
  background: transparent; color: var(--muted, rgba(0,0,0,.5)); cursor: pointer; transition: background .14s, color .14s, border-color .14s;
}
.ap-wiz-op-pill:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.ap-wiz-op-pill-active { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--charcoal, #18181A); border-color: color-mix(in srgb, var(--green) 35%, transparent); font-weight: 600; }
body.dark-mode .ap-wiz-op-pill-active { color: var(--text, #e8e8e8); }

/* Step 5 — the AI summary card. The centrepiece of Review: one confident
   sentence, never JSON, never a technical rule dump. */
.ap-wiz-review-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 16px;
  background: color-mix(in srgb, var(--green) 7%, transparent); border: 1px solid color-mix(in srgb, var(--green) 24%, transparent);
}
body.dark-mode .ap-wiz-review-card { background: color-mix(in srgb, var(--green) 5%, transparent); border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.ap-wiz-review-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.ap-wiz-review-text { font-size: 14.5px; line-height: 1.7; color: var(--charcoal, #18181A); }
body.dark-mode .ap-wiz-review-text { color: var(--text, #e8e8e8); }
.ap-wiz-review-text strong { color: var(--green-text); }
body.dark-mode .ap-wiz-review-text strong { color: var(--green); }

/* Final builder step's action group — Create Automation (primary) / Test
   (secondary) / Start Over (tertiary/ghost), one visual row of real,
   equal-height buttons. Start Over gets auto left-margin so it reads as
   a distinct, lower-priority action ("leave this rule alone, start the
   flow over") rather than a third peer of equal weight to Save/Test. */
.ap-wiz-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ap-wiz-actions .oi-card-btn-ghost { margin-left: auto; }
@media (max-width: 480px) {
  /* Too narrow for the ghost button's auto-margin right-alignment to read
     as intentional -- stack it as a full-width row of its own instead of
     wrapping awkwardly next to Test. */
  .ap-wiz-actions { flex-direction: column; align-items: stretch; }
  .ap-wiz-actions .oi-card-btn-ghost { margin-left: 0; order: 3; }
}
.ap-wiz-test-hint { font-size: 11.5px; color: var(--muted, rgba(0,0,0,.45)); margin: 6px 0 0; }
.ap-wiz-mode-row { margin-top: 18px; }
.ap-wiz-mode-q { font-size: 12.5px; font-weight: 600; color: var(--charcoal, #18181A); margin-bottom: 8px; }
body.dark-mode .ap-wiz-mode-q { color: var(--text, #e8e8e8); }
.ap-wiz-mode-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-wiz-mode-card {
  font-size: 12.5px; font-weight: 600; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border, rgba(0,0,0,.09)); background: var(--surface, #fff);
  color: var(--charcoal, #18181A); cursor: pointer; transition: border-color .14s, background .14s, transform .14s;
}
body.dark-mode .ap-wiz-mode-card { color: var(--text, #e8e8e8); }
.ap-wiz-mode-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.ap-wiz-mode-card-selected { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

@media (max-width: 640px) {
  .ap-wiz-card { max-width: none; }
}

/* Active Automations — narrative "story" cards, not field dumps. */
.ap-story-card {
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border, rgba(0,0,0,.08));
  background: var(--surface, #fff); display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--orv-t, .16s), transform var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
}
.ap-story-card:hover { border-color: color-mix(in srgb, var(--green) 28%, var(--b2, rgba(0,0,0,.14))); box-shadow: 0 6px 16px rgba(0,0,0,.06), 0 0 0 1px color-mix(in srgb, var(--green) 8%, transparent); transform: translateY(var(--orv-lift)) scale(var(--orv-scale)); }
body.dark-mode .ap-story-card:hover { border-color: color-mix(in srgb, var(--green) 32%, rgba(255,255,255,.14)); box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent); }
.ap-story-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ap-story-title { font-size: 14px; font-weight: 700; color: var(--charcoal, #18181A); }
body.dark-mode .ap-story-title { color: var(--text, #e8e8e8); }
.ap-story-meta { font-size: 11.5px; color: var(--muted, rgba(0,0,0,.45)); margin-top: 2px; }
.ap-story-sentence { font-size: 13.5px; line-height: 1.6; color: var(--charcoal, #18181A); }
body.dark-mode .ap-story-sentence { color: rgba(255,255,255,.8); }
.ap-story-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border, rgba(0,0,0,.07)); }
.ap-story-lastrun { font-size: 11.5px; color: var(--muted, rgba(0,0,0,.45)); }
.ap-story-actions { display: flex; gap: 12px; }

/* Automation History — grouped by day, icon-led rows instead of raw records. */
.ap-hist-daygroup { margin-bottom: 16px; }
.ap-hist-daylbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, rgba(0,0,0,.4)); margin-bottom: 6px; }
.ap-hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 12.5px; color: var(--charcoal, #18181A); }
body.dark-mode .ap-hist-row { color: rgba(255,255,255,.82); }
.ap-hist-icon { flex-shrink: 0; width: 18px; text-align: center; color: var(--green-text); font-weight: 700; }
body.dark-mode .ap-hist-icon { color: var(--green); }

/* Empty state — one welcoming AI card, then example automations. */
/* Motion System — last remaining AI mascot removed; the floating
   assistant is Oriven's one AI personality. Plain, calm text only. */
.ap-empty-text { font-size: 13px; line-height: 1.6; color: var(--muted); }
body.dark-mode .ap-empty-text { color: rgba(255,255,255,.55); }
/* Empty automations state (UX Redesign sprint, spec 6) -- clean, centered,
   intentional, but deliberately NOT huge (no giant hero treatment). */
.ap-empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 48px 20px; max-width: 400px; margin: 0 auto; }
.ap-empty-state-title { font-size: 15px; font-weight: 700; color: var(--charcoal, #18181A); }
body.dark-mode .ap-empty-state-title { color: rgba(255,255,255,.92); }
.ap-empty-state .camp-new-btn { margin-top: 6px; }

/* Suggested Automations */
.ap-suggestion-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border, rgba(0,0,0,.08)); background: var(--surface, #fff); flex-wrap: wrap;
}
.ap-suggestion-emoji { font-size: 17px; flex-shrink: 0; }
.ap-suggestion-text { font-size: 13px; line-height: 1.5; color: var(--charcoal, #18181A); flex: 1 1 260px; }
body.dark-mode .ap-suggestion-text { color: var(--text, #e8e8e8); }

/* ════════════════════════════════════════════════════════════════
   AUTOPILOT — UX Redesign (rule list, not a dashboard). A deliberately
   narrower column than Campaigns' wide multi-chart workspace — this page
   is a focused, centered list of rules, so it uses the same standard
   content width every other single-column ORIVEN page uses instead of
   Campaigns' wide --camp-content-maxw.
   ════════════════════════════════════════════════════════════════ */
#page-autopilot .ap-op-outer { max-width: var(--orv-content-maxw); padding-top: 68px; }

/* ── Centered header (spec: same alignment philosophy as Campaigns'
   .camp-shell-hdr — title/subtitle/status/CTA centered relative to this
   page's own content column, not the browser viewport). Reuses
   .camp-shell-title/.camp-shell-sub for the title/subtitle typography;
   the rules below only add the extra centered-stack layout for the
   status pill, real connection/pending facts, and the CTA. ──────────── */
.ap-shell-hdr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; padding-top: 4px; }
.ap-shell-hdr .camp-shell-title { margin-bottom: 0; }
.ap-shell-hdr .camp-shell-sub { margin-bottom: 2px; }
.ap-shell-status-row { display: flex; justify-content: center; }
.ap-hero-status-sub { text-align: center; }
.ap-shell-facts { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: -2px 0 2px; }
.ap-shell-hdr .camp-new-btn-lg { margin-top: 6px; }

/* ── Hero (legacy left/right split header — retired by the classes
   above; left in place, unused, matching this file's convention for
   retired presentation code) ──────────────────────────────────────── */
.ap-hero-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: var(--orv-title-gap); }
.ap-hero-copy { max-width: 560px; }
.ap-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--green-text); margin-bottom: 10px; }
body.dark-mode .ap-eyebrow { color: var(--green); }
.ap-hero-headline { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--charcoal, #18181A); margin: 0 0 8px; }
body.dark-mode .ap-hero-headline { color: rgba(255,255,255,.95); }
.ap-hero-sub { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.ap-hero-status-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-hero-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; color: var(--green-text);
  background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  padding: 5px 11px; border-radius: 20px;
}
body.dark-mode .ap-hero-status-pill { color: var(--green); }
.ap-hero-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: apStatusDotPulse 2.4s ease-in-out infinite; }
@keyframes apStatusDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.ap-hero-fact { font-size: 12px; color: var(--muted); }
/* Real System Status variants (_apRenderSystemStatus, autopilot.js) --
   OFF is deliberately muted/neutral (nothing is happening, not an error),
   ARMED reuses the existing green pill exactly as before, AUTO adds an
   amber accent since it's the state where ORIVEN can act unattended and
   deserves to read as slightly more consequential, not identical to a
   passive "will just notify" state. */
.ap-hero-status-pill.ap-sys-off { color: var(--muted); background: var(--border, rgba(0,0,0,.06)); border-color: var(--border, rgba(0,0,0,.1)); }
.ap-hero-status-pill.ap-sys-off .ap-hero-status-dot { background: var(--muted); animation: none; }
.ap-hero-status-pill.ap-sys-auto { color: #8a5a00; background: rgba(245,166,35,.14); border-color: rgba(245,166,35,.3); }
body.dark-mode .ap-hero-status-pill.ap-sys-auto { color: #F5A623; }
.ap-hero-status-pill.ap-sys-auto .ap-hero-status-dot { background: #F5A623; }
.ap-hero-status-sub { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; max-width: 520px; line-height: 1.5; }
.ap-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.ap-hero-visual { color: rgba(255,255,255,.4); opacity: .85; }
body:not(.dark-mode) .ap-hero-visual { color: rgba(0,0,0,.32); opacity: 1; }
.ap-hero-flow-pulse { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--green) 70%, transparent)); }
@media (prefers-reduced-motion: reduce) { .ap-hero-flow-pulse animateMotion, .ap-hero-flow-pulse { animation: none !important; } }
@media (max-width: 900px) {
  .ap-hero-hdr { flex-direction: column; gap: 18px; }
  .ap-hero-right { align-items: flex-start; width: 100%; }
  .ap-hero-visual { display: none; }
}

/* ── Automation Engine — Trigger -> AI decision -> Action ─────────
   Always a near-black surface (matches Intelligence's hero precedent),
   with the SAME ambient box-shadow glow technique learned building
   Intelligence (a child ::before clipped by overflow:hidden cannot glow
   "around" the block; box-shadow on the element itself, unaffected by its
   own overflow:hidden, can) — kept a little stronger here per the brief
   ("mag een iets sterkere glow hebben"), still always secondary to the
   content. */
.ap-engine {
  position: relative; overflow: hidden;
  background: #0e0e10; border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 26px 28px;
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  box-shadow:
    0 20px 60px -28px rgba(0,0,0,.6),
    0 0 40px 0 color-mix(in srgb, var(--green) 16%, transparent),
    0 0 100px 0 color-mix(in srgb, var(--green) 8%, transparent);
  animation: apEngineGlowBreathe 5s ease-in-out infinite;
}
@keyframes apEngineGlowBreathe {
  0%, 100% { box-shadow: 0 20px 60px -28px rgba(0,0,0,.6), 0 0 40px 0 color-mix(in srgb, var(--green) 16%, transparent), 0 0 100px 0 color-mix(in srgb, var(--green) 8%, transparent); }
  50%      { box-shadow: 0 20px 60px -28px rgba(0,0,0,.6), 0 0 40px 0 color-mix(in srgb, var(--green) 11%, transparent), 0 0 100px 0 color-mix(in srgb, var(--green) 5%, transparent); }
}
.ap-engine-node {
  display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px; min-width: 140px;
  padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.ap-engine-node-lbl { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.ap-engine-node-val { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.92); }
.ap-engine-node-ai .ap-engine-node-lbl { color: color-mix(in srgb, var(--green) 70%, rgba(255,255,255,.4)); }
.ap-engine-node-action { background: color-mix(in srgb, var(--green) 9%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.ap-engine-node-action .ap-engine-node-lbl { color: var(--green); }
.ap-engine-node-action .ap-engine-node-val { color: var(--green); }
.ap-engine-connector { flex: 0 0 40px; height: 2px; margin: 0 4px; background: rgba(255,255,255,.12); position: relative; align-self: center; }
.ap-engine-connector-pulse {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px color-mix(in srgb, var(--green) 80%, transparent);
  animation: apConnectorPulse 2.6s ease-in-out infinite;
}
@keyframes apConnectorPulse { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@media (max-width: 780px) {
  .ap-engine { flex-direction: column; align-items: stretch; }
  .ap-engine-connector { width: 2px; height: 24px; flex: 0 0 24px; margin: 0 auto; }
  .ap-engine-connector-pulse { top: 0; left: 50%; margin-left: -4px; margin-top: 0; animation-name: apConnectorPulseV; }
  @keyframes apConnectorPulseV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .ap-engine { animation: none !important; }
  .ap-engine-connector-pulse { animation: none !important; opacity: .6 !important; }
}

/* ── Monitoring Sources ────────────────────────────────────────── */
.ap-sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .ap-sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ap-sources-grid { grid-template-columns: 1fr; } }
.ap-source-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border, rgba(0,0,0,.08)); background: var(--surface, #fff);
  cursor: pointer; font-family: inherit; transition: border-color .16s, background .16s, transform .16s;
}
.ap-source-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); background: color-mix(in srgb, var(--green) 4%, var(--surface)); }
body.dark-mode .ap-source-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark-mode .ap-source-card:hover { background: rgba(255,255,255,.05); border-color: color-mix(in srgb, var(--green) 40%, rgba(255,255,255,.14)); }
.ap-source-top { display: flex; align-items: center; gap: 8px; }
.ap-source-name { font-size: 13px; font-weight: 700; color: var(--charcoal, #18181A); }
body.dark-mode .ap-source-name { color: rgba(255,255,255,.92); }
.ap-source-body { font-size: 12px; color: var(--charcoal, #18181A); }
body.dark-mode .ap-source-body { color: rgba(255,255,255,.75); }
.ap-source-body-muted { color: var(--muted); }
.ap-sources-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px; }
.ap-sources-empty-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--green-text); margin-bottom: 10px; }
body.dark-mode .ap-sources-empty-title { color: var(--green); }
.ap-sources-empty-sub { font-size: 15px; font-weight: 700; color: var(--charcoal, #18181A); margin-bottom: 6px; }
body.dark-mode .ap-sources-empty-sub { color: rgba(255,255,255,.92); }
.ap-sources-empty-sub2 { font-size: 12.5px; color: var(--muted); max-width: 380px; line-height: 1.55; margin-bottom: 18px; }

/* ── Your Automations — a single, focused column of compact rows (UX
   Redesign sprint: "clean, compact card/row", not a multi-column
   dashboard grid). Narrower than the page's own content column so the
   list itself reads like a deliberate list, not a wide table. ──────── */
.ap-active-list { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; width: 100%; }
/* Builder-polish pass — the section title used the shared .ov3-sh's default
   left-aligned flex row, so it sat flush with the page's own wide padding
   while the actual content (.ap-active-list, .ov3-empty) is centered in a
   narrower 640px column, reading as visually disconnected. Scoped to this
   section only (other .ov3-sh headers elsewhere are unaffected) and matches
   .ap-active-list's own max-width so both share one central axis. */
#apActiveSection > .ov3-sh { max-width: 640px; margin-left: auto; margin-right: auto; justify-content: center; }
.ap-auto-card {
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border, rgba(0,0,0,.08)); background: var(--surface, #fff);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .16s, box-shadow .16s;
  cursor: pointer;
}
.ap-auto-card:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--border)); box-shadow: 0 6px 18px rgba(0,0,0,.06), 0 0 0 1px color-mix(in srgb, var(--green) 10%, transparent); }
body.dark-mode .ap-auto-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark-mode .ap-auto-card:hover { border-color: color-mix(in srgb, var(--green) 32%, rgba(255,255,255,.14)); box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent); }
.ap-auto-top { display: flex; align-items: center; gap: 8px; }
.ap-auto-icon { font-size: 13px; color: var(--green-text); flex-shrink: 0; }
body.dark-mode .ap-auto-icon { color: var(--green); }
.ap-auto-title { font-size: 14px; font-weight: 700; color: var(--charcoal, #18181A); }
body.dark-mode .ap-auto-title { color: rgba(255,255,255,.92); }
.ap-auto-meta { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.ap-auto-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .ap-auto-flow { background: rgba(255,255,255,.03); }
.ap-auto-flow-trigger { font-weight: 600; color: var(--charcoal, #18181A); }
body.dark-mode .ap-auto-flow-trigger { color: rgba(255,255,255,.85); }
.ap-auto-flow-arrow { color: var(--muted); }
.ap-auto-flow-action { font-weight: 700; color: var(--green-text); }
body.dark-mode .ap-auto-flow-action { color: var(--green); }

/* Zero-rule structural teaching template (Living Product pass) — echoes
   .ap-auto-flow's IF/THEN shape so the concept reads as "this is the kind
   of object a rule is", but deliberately never looks like a real,
   existing automation: dashed border (shared with .ov3-empty's own
   convention elsewhere in the app), muted/lighter placeholder text
   instead of the real card's bold charcoal/lime, no status dot, mode
   badge, toggle, or metadata line a genuine rule would have. */
.ap-auto-empty .ov3-empty-sub { margin-bottom: 6px; }
.ap-auto-empty-tmpl {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; padding: 10px 14px; border-radius: 10px;
  border: 1px dashed var(--border, rgba(0,0,0,.14));
  margin: 4px 0 14px; width: 100%; max-width: 420px;
}
body.dark-mode .ap-auto-empty-tmpl { border-color: rgba(255,255,255,.14); }
.ap-auto-empty-tmpl-kw { font-weight: 800; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.ap-auto-empty-tmpl-ph { font-style: italic; color: var(--muted); }

.ap-auto-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border, rgba(0,0,0,.07)); }
body.dark-mode .ap-auto-foot { border-top-color: rgba(255,255,255,.06); }
.ap-auto-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.ap-auto-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.ap-status-active .ap-auto-status-dot { background: var(--green); }
.ap-status-active { color: var(--green-text); }
body.dark-mode .ap-status-active { color: var(--green); }
.ap-status-approval .ap-auto-status-dot { background: #f59e0b; }
.ap-status-approval { color: #b45309; }
body.dark-mode .ap-status-approval { color: #fbbf24; }
/* PAUSED renders as a hollow ring (○) rather than a filled dot — a real,
   cheap visual echo of the spec's ●/○ MONITORING/PAUSED distinction, on
   top of the existing color + text-label difference (never color alone). */
.ap-status-paused .ap-auto-status-dot { background: transparent; border: 1.5px solid var(--muted); width: 5px; height: 5px; }
.ap-status-paused { color: var(--muted); }
.ap-status-failed .ap-auto-status-dot { background: #ef4444; }
.ap-status-failed { color: #dc2626; }
body.dark-mode .ap-status-failed { color: #f87171; }
.ap-auto-lastrun { font-size: 11.5px; color: var(--muted); }
/* Per-automation execution summary (_apExecutionSummary, autopilot.js) —
   "Never triggered" / "Last triggered · ..." / "Waiting for approval" /
   "Execution failed · ...". Reuses the exact .ap-status-* colors above
   (approval=amber, failed=red, active=green, paused/none=muted) so the
   whole page shares one consistent status-color vocabulary. */
.ap-auto-exec { font-size: 11.5px; font-weight: 600; }
.ap-auto-exec-sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.ap-exec-none { color: var(--muted); font-weight: 500; }

/* Mode badge -- ALERT ONLY / APPROVAL REQUIRED / AUTO EXECUTE
   (_apModeBadgeInfo, autopilot.js). Deliberately distinct visual weight:
   AUTO EXECUTE is the only mode where ORIVEN can touch a live campaign
   unattended, so it gets the same amber accent as the System Status
   AUTO-EXECUTE state -- a consistent "this one can act on its own"
   signal across the whole page, never just a color (the text label is
   always present too). */
.ap-modebadge { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.ap-modebadge-alert { background: var(--border, rgba(0,0,0,.06)); color: var(--muted); }
.ap-modebadge-approval { background: rgba(99,179,237,.14); color: #2b6cb0; }
body.dark-mode .ap-modebadge-approval { color: #63B3ED; }
.ap-modebadge-auto { background: rgba(245,166,35,.16); color: #8a5a00; }
body.dark-mode .ap-modebadge-auto { color: #F5A623; }

/* Pending-approval evidence + Simulation block (_apEvidenceLine/
   _apSimulationBlock, autopilot.js) -- the Control Room's core "informed
   decision, not a confirm dialog" surface. */
.ap-pending-evidence { font-size: 12px; color: var(--muted); }
.ap-sim-block { margin-top: 4px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--border, rgba(0,0,0,.15)); background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .ap-sim-block { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); }
.ap-sim-label { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.ap-sim-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ap-sim-target { color: var(--charcoal, #18181A); }
body.dark-mode .ap-sim-target { color: rgba(255,255,255,.9); }
.ap-sim-arrow { color: var(--muted); font-weight: 400; }
.ap-sim-newstate { color: var(--green-text); }
body.dark-mode .ap-sim-newstate { color: var(--green); }
.ap-sim-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.ap-sim-block-none { background: none; }

/* Rule Detail modal (apShowRuleDetail, autopilot.js) */
.ap-ruledetail-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.ap-rd-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--border, rgba(0,0,0,.07)); }
body.dark-mode .ap-rd-row { border-bottom-color: rgba(255,255,255,.07); }
.ap-rd-row:last-child { border-bottom: none; }
.ap-rd-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.ap-rd-value { font-size: 13px; color: var(--charcoal, #18181A); line-height: 1.5; }
body.dark-mode .ap-rd-value { color: rgba(255,255,255,.88); }
/* Relocated pending-approval block (evidence/simulation/Approve/Reject) —
   UX Redesign sprint, spec 1/11: execution info lives inside the
   automation's own detail view instead of a separate Activity page. */
.ap-rd-pending { padding: 4px 0 10px; }
.ap-rd-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; }
.ap-auto-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; margin-left: auto; }
.ap-auto-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ap-auto-toggle-track { width: 30px; height: 17px; border-radius: 10px; background: var(--border, rgba(0,0,0,.15)); position: relative; transition: background .16s; flex-shrink: 0; }
body.dark-mode .ap-auto-toggle-track { background: rgba(255,255,255,.14); }
.ap-auto-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ap-auto-toggle input:checked + .ap-auto-toggle-track { background: var(--green); }
.ap-auto-toggle input:checked + .ap-auto-toggle-track .ap-auto-toggle-thumb { transform: translateX(13px); }
.ap-auto-toggle input:focus-visible + .ap-auto-toggle-track { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── Autopilot Activity — timeline (was "Automation History") ─────── */
.ap-hist-daygroup { margin-bottom: 18px; }
.ap-hist-daylbl { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.ap-hist-daydot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ap-hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 12.5px; color: var(--charcoal, #18181A); border-bottom: 1px solid var(--border, rgba(0,0,0,.05)); }
.ap-hist-row:last-child { border-bottom: none; }
body.dark-mode .ap-hist-row { color: rgba(255,255,255,.82); border-bottom-color: rgba(255,255,255,.05); }
.ap-hist-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ap-hist-dot-done { background: var(--green); }
.ap-hist-dot-failed { background: #ef4444; }
.ap-hist-dot-neutral { background: var(--muted); }
.ap-hist-title { flex: 1; }
.ap-hist-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }

/* ── Activity filter pills ─────────────────────────────────────── */
.ap-activity-filters { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ap-af-pill {
  font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border, rgba(0,0,0,.1)); background: transparent; color: var(--muted); cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.ap-af-pill:hover { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); color: var(--charcoal, #18181A); }
body.dark-mode .ap-af-pill:hover { color: rgba(255,255,255,.85); }
.ap-af-pill-active { background: color-mix(in srgb, var(--green) 12%, transparent); border-color: var(--green); color: var(--green-text); }
body.dark-mode .ap-af-pill-active { color: var(--green); }

/* ── Compact settings link (retired: moved to the top-right gear button
   below, Autopilot Builder Fix sprint spec 6 -- left in place unused,
   matching this file's convention for retired presentation code) ────── */
.ap-settings-link-row { padding: 4px 0 40px; }
.ap-settings-link-btn {
  font-size: 12.5px; font-weight: 600; color: var(--muted); background: none;
  border: 1px solid var(--border, rgba(0,0,0,.1)); border-radius: 9px; padding: 8px 14px; cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.ap-settings-link-btn:hover { color: var(--charcoal, #18181A); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .ap-settings-link-btn { color: rgba(255,255,255,.5); }
body.dark-mode .ap-settings-link-btn:hover { color: rgba(255,255,255,.9); }

/* ── Header wrap + top-right Settings gear (Autopilot Builder Fix sprint,
   spec 6/7) -- position:relative purely so the gear can sit absolutely
   in the corner without disturbing the centered flex-column title/
   subtitle/status/CTA stack it wraps. A plain icon button, not a second
   CTA -- never competes visually with "+ Create Automation". ────────── */
.ap-shell-hdr-wrap { position: relative; }
.ap-settings-gear-btn {
  position: absolute; top: 2px; right: 0;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 15px; line-height: 1; color: var(--muted);
  background: none; border: 1px solid var(--border, rgba(0,0,0,.1)); cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.ap-settings-gear-btn:hover { color: var(--charcoal, #18181A); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); background: color-mix(in srgb, var(--green) 4%, transparent); }
body.dark-mode .ap-settings-gear-btn { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.12); }
body.dark-mode .ap-settings-gear-btn:hover { color: rgba(255,255,255,.9); }

/* ── Create Automation / Settings modals — reuse the exact same premium
   dark panel chrome Intelligence's Monitored Campaigns selector already
   established (.intel-mon-panel); .ap-modal-panel only adds the light-
   theme-appropriate content color overrides the RELOCATED sections (which
   carry their own light/dark-aware .ap-wiz-*, .ap-builder-* styles, meant
   for a normal page background, not this always-dark panel) need once
   they're moved inside it. The relocated sections' own redundant "Create
   Automation Builder"/"Automation Settings" .ov3-sh header is hidden here
   since the modal's own topbar title already says the same thing.
   REAL BUG FOUND AND FIXED (Autopilot Builder Fix sprint): this comment
   used to write those two class-name globs back-to-back with no
   separator between the trailing asterisk and the following slash --
   that pair is the literal CSS comment-close token, so .ap-modal-panel's
   own rule below was silently dropped the same way .intel-mon-panel's
   was (see that rule's comment above for the full mechanism). Its only
   declared property was max-width, so this half of the bug didn't affect
   opacity, but it was still genuinely dead code. */
.ap-modal-panel { max-width: 640px; }
.ap-builder-modal-panel { max-width: 680px; }
.ap-builder-modal-body, .ap-settings-modal-body { padding: 20px 24px 24px; overflow-y: auto; max-height: calc(90vh - 60px); }
.ap-builder-modal-body #apBuilderSection > .ov3-sh,
.ap-settings-modal-body #apSettingsSection > .ov3-sh { display: none; }
.ap-builder-modal-body .ap-wiz-q,
.ap-builder-modal-body .ap-wiz-recap-val,
.ap-builder-modal-body .ap-wiz-card-title,
.ap-builder-modal-body .ap-wiz-review-text,
.ap-settings-modal-body .ap-builder-lbl { color: rgba(255,255,255,.92) !important; }
.ap-builder-modal-body .ap-wiz-card-desc,
.ap-builder-modal-body .ap-wiz-recap-lbl { color: rgba(255,255,255,.4) !important; }
.ap-builder-modal-body .ap-wiz-card { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.1) !important; }
.ap-builder-modal-body .ap-wiz-recap { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.1) !important; }
.ap-builder-modal-body .ap-wiz-mode-card { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.85) !important; }
.ap-builder-modal-body .crws-select,
.ap-settings-modal-body .crws-select,
.ap-builder-modal-body input[type="text"],
.ap-builder-modal-body input[type="number"] {
  background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.14) !important; color: rgba(255,255,255,.9) !important;
}

/* ── Entrance animation — same split-trigger pattern as Intelligence
   (header/engine visible immediately; card lists stagger separately once
   their own real data has loaded), reusing the existing @keyframes
   intelFadeUp rather than a near-duplicate. ────────────────────────── */
.ap-anim-hdr, .ap-anim-hero { opacity: 0; }
.ap-anim-play .ap-anim-hdr  { animation: intelFadeUp .4s cubic-bezier(.22,1,.36,1) forwards; }
.ap-anim-play .ap-anim-hero { animation: intelFadeUp .5s cubic-bezier(.22,1,.36,1) .08s forwards; }
.ap-auto-card, .ap-hist-row { opacity: 0; }
.ap-anim-cards-apActiveList .ap-auto-card { animation: intelFadeUp .4s cubic-bezier(.22,1,.36,1) forwards; }
.ap-anim-cards-apHistoryList .ap-hist-row { animation: intelFadeUp .3s cubic-bezier(.22,1,.36,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .ap-anim-hdr, .ap-anim-hero, .ap-auto-card, .ap-hist-row { opacity: 1 !important; animation: none !important; transform: none !important; }
  .ap-hero-status-dot { animation: none !important; }
  .ap-source-card, .ap-auto-card, .ap-af-pill, .ap-settings-link-btn, .ap-auto-toggle-track, .ap-auto-toggle-thumb { transition: none !important; }
  .ap-source-card:hover, .ap-auto-card:hover { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   BUSINESS EXPERIENCE REDESIGN (Oriven 1.0) — Business Brain feels
   like teaching Oriven about the company, not filling in a form.
   Reuses .oi-card-btn / var(--surface) / var(--border) tokens already
   established elsewhere — no parallel design system.
   ════════════════════════════════════════════════════════════════ */

/* Business Final Polish — helper guidance as plain text, no mascot, no
   pill/card decoration. The AI already exists globally via the floating
   assistant; Business doesn't need to keep reintroducing it. */
.biz-ai-feedback {
  margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
  animation: bizFadeIn .3s ease;
}
body.dark-mode .biz-ai-feedback { color: rgba(255,255,255,.55); }
@keyframes bizFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Knowledge card grid (Company / Goals / Brand Voice) */
.biz-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.biz-card-grid .biz-kcard-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .biz-card-grid { grid-template-columns: 1fr; } }

.biz-kcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--orv-t, .16s), transform var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
  animation: bizFadeIn .35s ease;
}
.biz-kcard:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--b2)); box-shadow: 0 8px 20px rgba(0,0,0,.05), 0 0 0 1px color-mix(in srgb, var(--green) 10%, transparent); transform: translateY(var(--orv-lift)) scale(var(--orv-scale)); }
body.dark-mode .biz-kcard { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode .biz-kcard:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.14)); box-shadow: 0 8px 20px rgba(0,0,0,.28), 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent); }

.biz-kcard-hd { display: flex; align-items: center; gap: 9px; }
.biz-kcard-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-text);
}
body.dark-mode .biz-kcard-ico { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.biz-kcard-title { font-size: 14.5px; font-weight: 700; color: var(--charcoal); letter-spacing: -.01em; }
body.dark-mode .biz-kcard-title { color: rgba(255,255,255,.92); }
.biz-kcard-sub { font-size: 11.5px; color: var(--muted); margin: -8px 0 0; line-height: 1.5; }

.biz-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.biz-field-grid.biz-field-1col { grid-template-columns: 1fr; }
.biz-field {
  display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted);
}
.biz-field-wide { grid-column: 1 / -1; }
.biz-field input, .biz-field textarea {
  font-size: 12.5px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--sf2); color: var(--charcoal);
  font-family: inherit; transition: border-color var(--orv-t, .16s), background var(--orv-t, .16s), box-shadow var(--orv-t, .16s);
}
.biz-field input:focus, .biz-field textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--green) 55%, transparent); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
}
body.dark-mode .biz-field input, body.dark-mode .biz-field textarea {
  background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
}
body.dark-mode .biz-field input:focus, body.dark-mode .biz-field textarea:focus {
  border-color: color-mix(in srgb, var(--green) 45%, transparent); background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}
.biz-field textarea { resize: vertical; min-height: 52px; line-height: 1.5; }

.biz-kcard-foot { display: flex; gap: 8px; margin-top: 2px; }

/* Brand Voice chips */
.biz-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 100px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--sf2); color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.biz-chip:hover { border-color: var(--b2); color: var(--charcoal); transform: translateY(-1px); }
.biz-chip-on {
  background: var(--green); border-color: var(--green); color: #0A0A0A;
}
.biz-chip-on:hover { opacity: .88; transform: translateY(-1px); color: #0A0A0A; }
body.dark-mode .biz-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
body.dark-mode .biz-chip:hover { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.85); }
body.dark-mode .biz-chip-on { background: var(--green); border-color: var(--green); color: #0A0A0A; }
.biz-chip-x { font-size: 12px; line-height: 1; opacity: .7; }

/* Knowledge Completeness — motivational hero */
.biz-know-hero {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px;
}
body.dark-mode .biz-know-hero { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-know-num { font-size: 34px; font-weight: 800; color: var(--charcoal); letter-spacing: -.03em; flex-shrink: 0; }
body.dark-mode .biz-know-num { color: #fff; }
.biz-know-num span { font-size: 15px; font-weight: 600; color: var(--muted); }
.biz-know-body { display: flex; flex-direction: column; gap: 4px; }
.biz-know-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.biz-know-msg { font-size: 13px; line-height: 1.55; color: var(--charcoal); max-width: 560px; }
body.dark-mode .biz-know-msg { color: rgba(255,255,255,.8); }

.biz-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 8px; }
.biz-cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
body.dark-mode .biz-cat-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.biz-cat-name { font-size: 12px; font-weight: 600; color: var(--charcoal); }
body.dark-mode .biz-cat-name { color: rgba(255,255,255,.85); }
.biz-cat-pct { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.biz-cat-track { height: 5px; border-radius: 4px; background: rgba(0,0,0,.06); overflow: hidden; }
body.dark-mode .biz-cat-track { background: rgba(255,255,255,.08); }
.biz-cat-fill { height: 100%; border-radius: 4px; background: var(--green-text); transition: width .5s ease; }
.biz-cat-fill.biz-cat-hi { background: #4ade80; }
.biz-cat-fill.biz-cat-lo { background: #f59e0b; }
.biz-cat-fill.biz-cat-crit { background: #f87171; }
.biz-stat-tile-val { font-size: 15px; font-weight: 700; color: var(--charcoal); }
body.dark-mode .biz-stat-tile-val { color: rgba(255,255,255,.85); }

/* Product / Audience / Competitor visual cards */
.biz-vcard-list { display: flex; flex-direction: column; gap: 10px; }
/* Products — 3-column grid (Master Dashboard layout spec). Audiences/
   Competitors keep the vertical list; they carry many more tag rows and sit
   side-by-side in Market's own 2-column layout instead of a per-card grid. */
.biz-vcard-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 1024px) { .biz-vcard-grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .biz-vcard-grid3 { grid-template-columns: 1fr; } }
/* Market tab — Audience and Competitors as two side-by-side columns. */
.biz-market-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .biz-market-grid2 { grid-template-columns: 1fr; gap: 28px; } }
/* Memory — 2-column grid instead of one long vertical list. */
.biz-mem-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .biz-mem-grid2 { grid-template-columns: 1fr; } }
.biz-mem-grid2 > .biz-empty { grid-column: 1 / -1; }
.biz-vcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; transition: border-color var(--orv-t, .16s), box-shadow var(--orv-t, .16s), transform var(--orv-t, .16s);
  animation: bizFadeIn .35s ease;
}
.biz-vcard:hover { border-color: color-mix(in srgb, var(--green) 28%, var(--b2)); box-shadow: 0 6px 16px rgba(0,0,0,.06), 0 0 0 1px color-mix(in srgb, var(--green) 8%, transparent); transform: translateY(var(--orv-lift)) scale(var(--orv-scale)); }
body.dark-mode .biz-vcard { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode .biz-vcard:hover { border-color: color-mix(in srgb, var(--green) 32%, rgba(255,255,255,.14)); box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent); }

.biz-vcard-top { display: flex; align-items: center; gap: 12px; }
.biz-avatar {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #0A0A0A;
}
.biz-vcard-name { font-size: 14.5px; font-weight: 700; color: var(--charcoal); letter-spacing: -.01em; }
body.dark-mode .biz-vcard-name { color: rgba(255,255,255,.92); }
.biz-vcard-badge {
  font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 100px;
  background: rgba(0,0,0,.05); color: var(--muted); white-space: nowrap;
}
body.dark-mode .biz-vcard-badge { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
.biz-vcard-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.dark-mode .biz-vcard-meta { color: rgba(255,255,255,.45); }
.biz-vcard-actions { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }

.biz-vcard-edit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
body.dark-mode .biz-vcard-edit { border-top-color: rgba(255,255,255,.08); }

/* Fact chips + tags (Audience/Competitor visual grouping) */
.biz-fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; margin-top: 12px; }
.biz-fact-chip { background: rgba(0,0,0,.025); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
body.dark-mode .biz-fact-chip { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-fact-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.biz-fact-val { font-size: 12.5px; font-weight: 600; color: var(--charcoal); }
body.dark-mode .biz-fact-val { color: rgba(255,255,255,.85); }
.biz-tag-block { margin-top: 10px; }
.biz-tag-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.biz-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.biz-tag {
  font-size: 11.5px; padding: 4px 10px; border-radius: 100px;
  background: rgba(0,0,0,.04); color: var(--c2); border: 1px solid transparent;
}
body.dark-mode .biz-tag { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }

.biz-vcard-empty { font-size: 12.5px; color: var(--muted); font-style: italic; }

.biz-add-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 600; padding: 8px 15px; border-radius: 10px;
  border: 1px dashed var(--b2); background: transparent; color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.biz-add-btn:hover { border-color: rgba(120,175,20,.5); color: var(--green-text); background: color-mix(in srgb, var(--green) 5%, transparent); }
body.dark-mode .biz-add-btn { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.5); }
body.dark-mode .biz-add-btn:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); background: color-mix(in srgb, var(--green) 5%, transparent); }

/* Business Consolidation — Market tab (Audience + Competitors, one
   flowing section instead of two separate destinations). */
.biz-market-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.biz-add-btn-inline { margin-bottom: 0; padding: 6px 12px; font-size: 12px; }

/* Audience vs Competitor "add" button parity. Root cause of the visible
   size mismatch was NOT just differing CSS classes (those were already
   unified) -- it was (a) two different text sources depending on empty vs.
   populated state ("Add Audience" vs "Add an audience", different lengths)
   and (b) the empty state's own container (.biz-empty) capping itself at
   max-width:460px while the populated state's plain div had no such cap --
   so even with identical classes, an inline-flex content-hugging button
   still rendered at two different widths. Forcing both to width:100% of
   their (already-equal, 1fr 1fr) grid column, and removing the empty
   state's max-width within this context, makes them pixel-identical
   regardless of which state either column is in. Scoped to
   .biz-market-section so Memory's own empty-state button (a different
   class, .biz-empty-cta) is unaffected. */
.biz-market-section .biz-empty { max-width: none; align-items: stretch; }
.biz-market-section .biz-add-btn {
  width: 100%;
  justify-content: center;
  align-self: stretch;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════════════
   BUSINESS — Command Center redesign. Reuses every existing .biz-*/
   .oi-card/.ov3-* primitive and real data source (business/health,
   business/insights, business/validate, {platform}/status,
   business/memory) — this block is visual language + a few new
   sections (Connected Ecosystem, Intelligence Map descriptions/
   actions), not a parallel design system or new backend. ══════════ */

/* Shell — same content width/top padding Campaigns and Intelligence
   already use, so Business's title sits on the same gridline. Merged into
   this block (was its own standalone rule immediately above) after a live
   browser check found the standalone rule never made it into the parsed
   CSSOM — every rule around it parsed fine (confirmed via
   document.styleSheets[].cssRules), so rather than chase the one-off
   drop, the fix is written directly into a block already proven to load. */
#page-business-brain .orv-page-wrap { max-width: var(--camp-content-maxw); padding-top: 68px; }

/* Segmented nav — mirrors #orvHubTabsCampaigns' track treatment (same
   .orv-tab-row/.prf-ptab elements, scoped override only, so nothing
   else that uses .prf-ptab is touched) turning 7 loose pills into one
   dark, rounded, cohesive control. */
#page-business-brain .orv-tab-row {
  display: inline-flex; gap: 2px; margin-bottom: var(--orv-title-gap);
  background: rgba(0,0,0,.035); border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
#page-business-brain .orv-tab-row::-webkit-scrollbar { display: none; }
body.dark-mode #page-business-brain .orv-tab-row { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .prf-ptab {
  border-radius: 7px; border: 1px solid transparent; background: transparent; padding: 7px 15px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
#page-business-brain .prf-ptab:hover { background: color-mix(in srgb, var(--green) 8%, transparent); color: var(--charcoal, #18181A); }
#page-business-brain .prf-ptab.active {
  background: var(--green); color: #0B0B0C; border-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.18), 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent), 0 0 12px color-mix(in srgb, var(--green) 30%, transparent);
}
body.dark-mode #page-business-brain .prf-ptab { color: rgba(255,255,255,.45); }
body.dark-mode #page-business-brain .prf-ptab:hover { background: color-mix(in srgb, var(--green) 10%, transparent); color: #fff; }
body.dark-mode #page-business-brain .prf-ptab.active { background: var(--green); color: #0B0B0C; }
/* Segmented control shouldn't nudge neighbours like the loose pill row
   does elsewhere on this page's shared .orv-tab-row base rule. */
#page-business-brain .orv-tab-row > button,
#page-business-brain .orv-tab-row > button:hover,
#page-business-brain .orv-tab-row > button:hover + button,
#page-business-brain .orv-tab-row > button:has(+ button:hover) { transform: none; }

/* Overview section rhythm */
.biz-ov-section { margin-top: 28px; }
.biz-ov-section-last { margin-bottom: 8px; }
.biz-ov-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.biz-ov-sh-col { display: flex; flex-direction: column; gap: 3px; }
.biz-ov-sh-sub { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Business Intelligence hero — same box-shadow-breathing-glow technique
   proven on .intel-hero: an element's own box-shadow (spread 0, real px
   blur) radiates evenly around every edge and is never clipped by its
   own overflow:hidden, unlike a child ::before radial-gradient. Own
   keyframe (not a reuse of intelHeroGlowBreathe) so this page's timing
   can evolve independently, matching the precedent already set when
   Autopilot built its own apEngineGlowBreathe rather than importing
   Intelligence's. */
.biz-hero {
  position: relative; overflow: hidden;
  background: #0e0e10; border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 24px 26px; margin-bottom: 16px;
  box-shadow:
    0 20px 60px -28px rgba(0,0,0,.6),
    0 0 36px 0 color-mix(in srgb, var(--green) 13%, transparent),
    0 0 90px 0 color-mix(in srgb, var(--green) 6%, transparent);
  animation: bizHeroGlowBreathe 5.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .biz-hero { animation: none; } }
@keyframes bizHeroGlowBreathe {
  0%, 100% {
    box-shadow: 0 20px 60px -28px rgba(0,0,0,.6), 0 0 36px 0 color-mix(in srgb, var(--green) 13%, transparent), 0 0 90px 0 color-mix(in srgb, var(--green) 6%, transparent);
  }
  50% {
    box-shadow: 0 20px 60px -28px rgba(0,0,0,.6), 0 0 36px 0 color-mix(in srgb, var(--green) 9%, transparent), 0 0 90px 0 color-mix(in srgb, var(--green) 3%, transparent);
  }
}
.biz-hero-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.4); margin-bottom: 16px; position: relative; z-index: 1; }
.biz-hero-main { display: flex; align-items: center; gap: 26px; position: relative; z-index: 1; }
.biz-hero-score { display: flex; align-items: baseline; flex-shrink: 0; }
.biz-hero-num { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.biz-hero-max { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.35); margin-left: 2px; }
.biz-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.biz-hero-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.45); }
.biz-hero-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 420px; }
.biz-hero-fill { height: 100%; border-radius: 4px; background: var(--green); transition: width .8s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) { .biz-hero-fill { transition: none; } }
.biz-hero-msg { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.7); max-width: 520px; }
.biz-hero-side { flex-shrink: 0; text-align: right; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.1); }
.biz-hero-side-num { font-size: 19px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.biz-hero-side-lbl { font-size: 10.5px; color: rgba(255,255,255,.4); margin-top: 2px; }
@media (max-width: 720px) {
  .biz-hero-main { flex-wrap: wrap; }
  .biz-hero-side { border-left: none; padding-left: 0; text-align: left; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   BUSINESS REDESIGN v10 (Oriven 1.0) — "Business Wheel / Intelligence
   Core", final spacing/fit refinement pass. Same six-segment radial
   wheel concept as v9 (unchanged: six annular-sector SVG <path> wedges,
   single trig source of truth, tonal one-accent colour system,
   transparent-button-over-SVG interaction) — this pass fixes vertical
   fit and breathing room only:
   1) The wheel's own geometry gained wider angular gaps (4.5° half-gap,
      was 3°) and a bigger inner radius (36, was 32) for more separation
      between segments and more clearance around the core.
   2) The page-level vertical rhythm changes so the whole hero (heading +
      wheel) genuinely fits one viewport on desktop: the wrapper's
      generic 40/80px top/bottom padding is overridden (scoped to
      .biz-canvas-active only, so the six detail views underneath keep
      the normal site padding), the canvas becomes a real height:100%
      flex column with the heading pinned near the top and the wheel
      auto-margin-centred in whatever space remains below it, and the
      wheel's own size formula now also caps against vh (not just vw/px)
      so it can never outgrow the viewport's actual height. No
      overflow:hidden anywhere — this is a real layout fit, not a clip.
   3) Generate with AI / Remove no longer sit permanently below the
      wheel (that was the single biggest source of extra page height).
      They now live INSIDE the central circle as a hover/focus-reveal
      overlay, clipped to the circle, fully transparent to clicks except
      on their own two buttons (so clicking through empty overlay space
      still triggers the icon's existing upload handler underneath). A
      small always-visible "⋯" button gives touch/keyboard users a real
      :focus-within trigger for the same reveal, without being nested
      inside #bizHubIcon (so it can never accidentally fire the upload
      click). ═══════════════════════════════════════════════════════ */

/* The whole Business Hub — wheel overview AND all six detail panels — is
   deliberately always-dark regardless of the site's light/dark theme
   setting, painted full-bleed at the page level so it reads as one
   consistent, proprietary ORIVEN experience rather than snapping to the
   app's normal (often light-by-default) theme the moment a user leaves
   the wheel. Unconditional on #page-business-brain itself (not gated by
   .biz-canvas-active any more, which now only drives overview-specific
   LAYOUT below, not color). */
#page-business-brain {
  background: #0a0a0a;
  min-height: 100%;
}
#page-business-brain.biz-canvas-active {
  min-height: 100%;
}
/* Belt-and-suspenders for short panels (e.g. Competitors/Market with only
   one or two cards on a tall mobile viewport): #page-business-brain's own
   background can leave a gap below its content on some layouts, which
   would otherwise reveal .mc's background underneath — .mc is Business's
   SCROLL-CONTAINER ANCESTOR (not a descendant), so none of the scoped
   #page-business-brain rules above ever reach it. Painting .mc dark too,
   only while Business is the active page, guarantees there's never a
   light sliver behind short content. */
.mc:has(#page-business-brain.active) {
  background: #0a0a0a;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUSINESS HUB — always-dark, regardless of the site-wide light/dark theme
   setting. The whole Business page (wheel overview AND all six detail
   panels) is a deliberately dark, premium, ORIVEN-branded experience —
   generated by re-scoping the app's existing, already-shipped
   body.dark-mode design tokens and component overrides (biz, bb and con
   prefixed classes) to #page-business-brain unconditionally, so Business
   always renders with the exact same colors dark-mode users already see
   elsewhere — nothing invented, nothing duplicated by hand.
   ═══════════════════════════════════════════════════════════════════════ */
#page-business-brain {
  /* Re-resolves `color` at this element specifically. `color` is an
     inherited property, so any descendant that never sets its own color
     (plenty don't — e.g. plain <p> text with no matching CSS rule)
     inherits whatever `color` already computed to further up the tree —
     body's own `color: var(--charcoal)` had already resolved to the
     LIGHT value up there, and that resolved value flows straight down
     unchanged; redefining --charcoal below on its own doesn't reach
     those elements unless something actually re-references var() again
     on the way down. This does that once, right at the Business root. */
  color: var(--charcoal);
  /* --green/--gm/--glt/--gpale/--green-deep deliberately NOT redefined
     here — _applyAccent() (settings.js) sets those five as INLINE styles
     on <body> per the user's chosen personality/accent color, and a
     plain stylesheet rule on this descendant element would win over that
     inherited inline value regardless of specificity, permanently
     locking the whole Business Hub to default green and breaking live
     accent-color switching. Leaving them out lets the real accent value
     inherit through untouched, exactly like the wheel wedges already do. */
  --bg:#0A0A0A;
  --bg2:#1A1A1C;
  --bg3:#252528;
  --surface:#18181A;
  --sf2:#1F1F21;
  --charcoal:#F0F0F0;
  --c2:#D4D4D6;
  --muted:#8A8A8E;
  --m2:#636366;
  --border:#2C2C2E;
  --b2:#3A3A3C;
  --warn-bg:#2C2000;
  --warn-c:#FBBF24;
  --err-bg:#2C0A0A;
  --err-c:#F87171;
  /* Global Design System — --ap-text/--ap-muted (below) were declared
     dark-only under the "ap-" legacy design system (originally a
     dark-only redesign, predating the light/dark toggle) and never made
     theme-reactive, leaving page titles/subtitles/empty-states on
     Campaigns/Autopilot/Assets invisible-on-light. Preserving the exact
     existing values here so dark mode is pixel-identical; the :root
     defaults below now hold real light-mode values instead. */
  --ap-text:rgba(255,255,255,.88);
  --ap-muted:rgba(255,255,255,.35);
  /* --ap-bg3/--ap-border: same defect as --ap-text/--ap-muted above, found
     while redesigning Drafts — .camp-card (styles.css ~19756) reads these
     with !important, so the :root light-mode value below is what actually
     renders; restoring the original dark values here keeps dark mode
     pixel-identical. Confirmed by direct render: without this, Draft cards
     showed dark charcoal text (--ap-text's own light-mode fix) on top of
     an unconditionally-dark #1A1A1D background — invisible campaign names. */
  --ap-bg3:rgba(26,26,29,1);
  --ap-border:rgba(255,255,255,.08);
  /* --ap-bg/--ap-bg2: same defect as --ap-bg3/--ap-border above -- .app's
     own background (styles.css ~19532, plus .mc/.cws-main) painted these
     unconditionally dark in EVERY theme, never made light-mode-reactive.
     Root cause of the black "cutout" around .orv-sb's rounded top-right/
     bottom-right corners in light mode: .app sits directly behind the
     sidebar, so its always-dark background showed through the gap the
     border-radius carves out. Restoring the original dark values here;
     the :root defaults below now hold real light-mode values. */
  --ap-bg:rgba(9,9,11,1);
  --ap-bg2:rgba(17,17,19,1);
  --sh:0 1px 3px rgba(0,0,0,.3);
  --shm:0 2px 8px rgba(0,0,0,.4),0 4px 16px rgba(0,0,0,.3);
  --shl:0 8px 32px rgba(0,0,0,.5);
}
#page-business-brain .con-title { color: #fff; }
#page-business-brain .con-sub { color: rgba(255,255,255,.4); }
#page-business-brain .con-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
#page-business-brain .con-card:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.14)); box-shadow: 0 8px 20px rgba(0,0,0,.3), 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent); }
#page-business-brain .con-card-connected { border-color: rgba(74,222,128,.22); background: rgba(74,222,128,.025); }
#page-business-brain .con-logo-google { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
#page-business-brain .con-card-status { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
#page-business-brain .con-card-status.connected { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.2); color: #4ade80; }
#page-business-brain .con-dot-on { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.55); }
#page-business-brain .con-dot-off { background: rgba(255,255,255,.18); }
#page-business-brain .con-card-name { color: #fff; }
#page-business-brain .con-card-desc { color: rgba(255,255,255,.45); }
#page-business-brain .con-feat { color: rgba(255,255,255,.55); }
#page-business-brain .con-feat::before { background: color-mix(in srgb, var(--green) 55%, transparent); }
#page-business-brain .con-detail-row { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.06); }
#page-business-brain .con-detail-lbl { color: rgba(255,255,255,.4); }
#page-business-brain .con-detail-val { color: rgba(255,255,255,.55); }
#page-business-brain .con-btn-disconnect { color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
#page-business-brain .con-btn-disconnect:hover { color: #f87171; border-color: rgba(248,113,113,.28); background: rgba(248,113,113,.04); }
#page-business-brain .bb-scroll {
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#page-business-brain .bb-empty-orb {
  width: 72px !important;
  height: 72px !important;
  background: color-mix(in srgb, var(--green) 8%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 28px !important;
  flex-shrink: 0 !important;
}
#page-business-brain .bb-empty-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.02em !important;
}
#page-business-brain .bb-empty-title em {
  font-style: normal !important;
  color: var(--green) !important;
}
#page-business-brain .bb-empty-sub {
  font-size: 14px !important;
  color: rgba(255,255,255,.45) !important;
  line-height: 1.6 !important;
  margin-bottom: 36px !important;
}
#page-business-brain .bb-empty-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}
#page-business-brain .bb-btn-primary {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 10px 20px !important;
  background: var(--green) !important;
  color: #0A0A0A !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}
#page-business-brain .bb-btn-ghost {
  padding: 10px 18px !important;
  background: transparent !important;
  color: rgba(255,255,255,.5) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}
#page-business-brain .bb-btn-ghost:hover {
  border-color: rgba(255,255,255,.25) !important;
  color: rgba(255,255,255,.8) !important;
}
#page-business-brain .bb-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.35) !important;
  margin-bottom: 10px !important;
}
#page-business-brain .bb-eyebrow-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.2) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
#page-business-brain .bb-eyebrow-dot.active {
  background: var(--green) !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 60%, transparent) !important;
}
#page-business-brain .bb-brand-name {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
}
#page-business-brain .bb-brand-tagline {
  font-size: 14px !important;
  color: rgba(255,255,255,.4) !important;
}
#page-business-brain .bb-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  padding-top: 28px !important;
}
#page-business-brain .bb-act-btn {
  padding: 7px 14px !important;
  background: transparent !important;
  color: rgba(255,255,255,.5) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
#page-business-brain .bb-act-btn:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
}
#page-business-brain .bb-act-primary {
  background: color-mix(in srgb, var(--green) 8%, transparent) !important;
  color: var(--green) !important;
  border-color: color-mix(in srgb, var(--green) 22%, transparent) !important;
}
#page-business-brain .bb-act-primary:hover {
  background: color-mix(in srgb, var(--green) 15%, transparent) !important;
}
#page-business-brain .bb-tab-bar::-webkit-scrollbar { display: none !important; }
#page-business-brain .bb-tab {
  padding: 8px 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.38) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin-bottom: -1px !important;
  border-radius: 0 !important;
  transition: color .15s !important;
}
#page-business-brain .bb-tab:hover { color: rgba(255,255,255,.7) !important; }
#page-business-brain .bb-tab.active {
  color: #fff !important;
  border-bottom-color: var(--green) !important;
  font-weight: 600 !important;
}
#page-business-brain .bb-pane.active {
  display: flex !important;
}
#page-business-brain .bb-stat-card {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  padding: 22px 22px 18px !important;
}
#page-business-brain .bb-stat-lbl {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.32) !important;
  margin-bottom: 10px !important;
}
#page-business-brain .bb-stat-val {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  margin-bottom: 12px !important;
}
#page-business-brain .bb-score-track {
  height: 3px !important;
  background: rgba(255,255,255,.1) !important;
  border-radius: 99px !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}
#page-business-brain .bb-score-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--green-text), var(--green)) !important;
  border-radius: 99px !important;
  transition: width .8s cubic-bezier(.4,0,.2,1) !important;
}
#page-business-brain .bb-stat-msg {
  font-size: 12px !important;
  color: rgba(255,255,255,.3) !important;
  line-height: 1.4 !important;
}
#page-business-brain .bb-quick-btn {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 16px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,.6) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all .15s !important;
}
#page-business-brain .bb-quick-btn:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}
#page-business-brain .bb-section-hd {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.28) !important;
}
#page-business-brain .bb-identity-card {
  padding: 20px 22px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
#page-business-brain .bb-card-eyebrow {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.28) !important;
}
#page-business-brain .bb-mood-add {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  background: transparent !important;
  border: 1px dashed rgba(255,255,255,.15) !important;
  border-radius: 7px !important;
  color: rgba(255,255,255,.35) !important;
  font-size: 12px !important;
  cursor: pointer !important;
}
#page-business-brain .bb-mood-add:hover {
  border-color: rgba(255,255,255,.3) !important;
  color: rgba(255,255,255,.6) !important;
}
#page-business-brain .bb-empty-state.bb-show {
  display: flex !important;
}
#page-business-brain .bb-hub {
  display: none !important;
}
#page-business-brain .bb-hub.bb-show {
  display: flex !important;
}
#page-business-brain .bb-card-eyebrow-row { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; }
#page-business-brain .bb-sec-actions { display: flex !important; align-items: center !important; gap: 4px !important; flex-shrink: 0 !important; }
#page-business-brain .bb-sec-edit-btn {
  padding: 3px 9px !important; font-size: 11px !important; font-weight: 500 !important;
  border-radius: 5px !important; cursor: pointer !important; border: 1px solid rgba(255,255,255,.12) !important;
  background: transparent !important; color: rgba(255,255,255,.35) !important; transition: all .12s !important;
}
#page-business-brain .bb-sec-edit-btn:hover { background: rgba(255,255,255,.07) !important; color: rgba(255,255,255,.75) !important; border-color: rgba(255,255,255,.2) !important; }
#page-business-brain .bb-sec-regen-btn {
  padding: 3px 9px !important; font-size: 11px !important; font-weight: 500 !important;
  border-radius: 5px !important; cursor: pointer !important; border: 1px solid transparent !important;
  background: transparent !important; color: rgba(255,255,255,.28) !important; transition: all .12s !important;
}
#page-business-brain .bb-sec-regen-btn:hover { color: var(--green) !important; border-color: color-mix(in srgb, var(--green) 30%, transparent) !important; background: color-mix(in srgb, var(--green) 6%, transparent) !important; }
#page-business-brain .bb-edit-area {
  width: 100% !important; min-height: 90px !important; padding: 10px 12px !important;
  font-family: 'Geist',system-ui,-apple-system,sans-serif !important;
  font-size: 13.5px !important; line-height: 1.6 !important;
  background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important; color: rgba(255,255,255,.8) !important;
  resize: vertical !important; outline: none !important; box-sizing: border-box !important;
}
#page-business-brain .bb-edit-area:focus { border-color: color-mix(in srgb, var(--green) 60%, transparent) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 10%, transparent) !important; }
#page-business-brain .bb-edit-actions { display: flex !important; gap: 6px !important; margin-top: 8px !important; }
#page-business-brain .bb-edit-save {
  padding: 5px 14px !important; font-size: 12px !important; font-weight: 600 !important;
  border-radius: 6px !important; cursor: pointer !important; transition: all .12s !important;
  background: var(--green) !important; border: 1px solid var(--green) !important; color: #0A0A0A !important;
}
#page-business-brain .bb-edit-save:hover { background: var(--gm) !important; }
#page-business-brain .bb-edit-cancel {
  padding: 5px 14px !important; font-size: 12px !important; font-weight: 600 !important;
  border-radius: 6px !important; cursor: pointer !important; transition: all .12s !important;
  background: transparent !important; border: 1px solid rgba(255,255,255,.12) !important; color: rgba(255,255,255,.35) !important;
}
#page-business-brain .bb-edit-cancel:hover { background: rgba(255,255,255,.05) !important; color: rgba(255,255,255,.65) !important; }
#page-business-brain .biz-ai-feedback { color: rgba(255,255,255,.55); }
#page-business-brain .biz-kcard { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-kcard:hover { border-color: color-mix(in srgb, var(--green) 35%, rgba(255,255,255,.14)); box-shadow: 0 8px 20px rgba(0,0,0,.28), 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent); }
#page-business-brain .biz-kcard-ico { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
#page-business-brain .biz-kcard-title { color: rgba(255,255,255,.92); }
#page-business-brain .biz-field input,
#page-business-brain .biz-field textarea {
  background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
}
#page-business-brain .biz-field input:focus,
#page-business-brain .biz-field textarea:focus {
  border-color: color-mix(in srgb, var(--green) 45%, transparent); background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}
#page-business-brain .biz-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
#page-business-brain .biz-chip:hover { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.85); }
#page-business-brain .biz-chip-on { background: var(--green); border-color: var(--green); color: #0A0A0A; }
#page-business-brain .biz-know-hero { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-know-num { color: #fff; }
#page-business-brain .biz-know-msg { color: rgba(255,255,255,.8); }
#page-business-brain .biz-cat-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-cat-name { color: rgba(255,255,255,.85); }
#page-business-brain .biz-cat-track { background: rgba(255,255,255,.08); }
#page-business-brain .biz-stat-tile-val { color: rgba(255,255,255,.85); }
#page-business-brain .biz-vcard { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-vcard:hover { border-color: color-mix(in srgb, var(--green) 32%, rgba(255,255,255,.14)); box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent); }
#page-business-brain .biz-vcard-name { color: rgba(255,255,255,.92); }
#page-business-brain .biz-vcard-badge { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
#page-business-brain .biz-vcard-meta { color: rgba(255,255,255,.45); }
#page-business-brain .biz-vcard-edit { border-top-color: rgba(255,255,255,.08); }
#page-business-brain .biz-fact-chip { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-fact-val { color: rgba(255,255,255,.85); }
#page-business-brain .biz-tag { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
#page-business-brain .biz-add-btn { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.5); }
#page-business-brain .biz-add-btn:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); background: color-mix(in srgb, var(--green) 5%, transparent); }
#page-business-brain .biz-module-title { color: rgba(255,255,255,.94); }
#page-business-brain .biz-map-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-map-card:hover { border-color: color-mix(in srgb, var(--green) 30%, rgba(255,255,255,.14)); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
#page-business-brain .biz-map-card .biz-cat-pct { color: rgba(255,255,255,.94); }
#page-business-brain .biz-map-action { color: var(--green); }
#page-business-brain .biz-eco-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-eco-name { color: rgba(255,255,255,.9); }
#page-business-brain .biz-eco-dot-on { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.4); }
#page-business-brain .biz-eco-action:hover { color: #fff; }
#page-business-brain .biz-eco-action-primary { color: var(--green); }
#page-business-brain .biz-empty { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-empty-title { color: rgba(255,255,255,.92); }
#page-business-brain .biz-mem-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-mem-type { color: var(--green); }
#page-business-brain .biz-mem-content { color: rgba(255,255,255,.85); }
#page-business-brain .biz-mem-add-input { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
#page-business-brain .biz-profile-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
#page-business-brain .biz-profile-card-name { color: rgba(255,255,255,.94); }

/* Scoped override of the shared .orv-page-wrap's generic 40px/80px
   top/bottom padding — that padding alone was ~120px of the reason the
   hub didn't fit one viewport. Turning the wrapper into a real
   height:100vh flex column (matching .mc's own height:100vh) is what
   lets the canvas below genuinely fill — not just visually approximate
   — the remaining vertical space, so centring math is exact rather than
   eyeballed. No overflow:hidden: if content ever does exceed this
   (e.g. a very short viewport), .mc's existing overflow-y:auto simply
   scrolls, nothing is silently clipped. */
#page-business-brain.biz-canvas-active .orv-page-wrap-biz {
  height: 100vh;
  box-sizing: border-box;
  padding-top: 20px;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
}
/* #bizPanelOverview (not .biz-canvas) is the actual flex ITEM of the
   wrapper above — .biz-canvas is its grandchild-once-removed, so
   .biz-canvas's own flex:1 does nothing unless ITS direct parent is
   also stretched. Without this, #bizPanelOverview sizes to its content
   (just .biz-canvas's own height) and leaves the rest of the 100vh
   wrapper as dead space below, instead of handing that space down for
   the wheel to centre within. */
#page-business-brain.biz-canvas-active #bizPanelOverview {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
}

.biz-canvas {
  position: relative;
  flex: 1; min-height: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
}

/* ── One-Screen Business Intelligence Hub (v12) ──────────────────────
   Replaces the six-slice radial wheel as the primary Business UI (the
   wheel is retired per explicit direction — evaluated, not the desired
   final UX; the six detail panels it linked to are completely
   unchanged). Structure: heading (auto height) → Business Identity hero
   (auto height, flex-shrink:0) → a 2×2 grid of real-data summary cards
   (flex:1, min-height:0) — one flex column filling whatever height
   .orv-page-wrap-biz's existing height:100vh box hands #bizPanelOverview,
   so the whole thing fits one viewport with no page scroll, the same
   guarantee the wheel already had, just handed different content. ── */

/* ── Business Identity hero — the visual anchor. Horizontal: icon,
   name/meta/description, an understated "Edit business" action. Reuses
   #bizHubIcon/#bizHubIconActions/#bizHubIconError verbatim (same ids,
   same upload/generate JS) inside a smaller, non-absolute wrapper. ── */
.biz-hero {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 22px;
  width: 100%; max-width: 900px;
  padding: 18px 22px;
  border-radius: var(--rl, 14px);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
}
.biz-hero-icon-wrap {
  position: relative; flex-shrink: 0;
  width: clamp(64px, 8vh, 88px); aspect-ratio: 1/1;
}
.biz-icon-ambient {
  position: absolute; inset: -16%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 15%, transparent) 0%, transparent 70%);
  opacity: .75;
}
.biz-icon {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 55%, rgba(255,255,255,.03));
  border: 1.5px dashed rgba(255,255,255,.18);
  cursor: pointer; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.biz-hero-icon-wrap:hover .biz-icon,
.biz-hero-icon-wrap:has(:focus-visible) .biz-icon {
  border-color: color-mix(in srgb, var(--green) 32%, rgba(255,255,255,.28));
}
.biz-icon.biz-hub-icon-has-img { border-style: solid; border-color: rgba(255,255,255,.16); background: #030303; }
.biz-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; transition: opacity .22s ease; }
.biz-hero-icon-wrap:hover .biz-icon img,
.biz-hero-icon-wrap:has(:focus-visible) .biz-icon img { opacity: .32; }
.biz-icon-plus { font-size: 17px; font-weight: 300; color: rgba(255,255,255,.38); line-height: 1; }
.biz-icon-lbl { display: none; }
.biz-icon-overlay { display: none; }
.biz-icon.biz-hub-icon-loading { pointer-events: none; }
.biz-icon.biz-hub-icon-loading img { opacity: .35; }
.biz-icon.biz-hub-icon-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.2); border-top-color: rgba(255,255,255,.75); border-radius: 50%;
  animation: bizIconSpin .8s linear infinite;
}
@keyframes bizIconSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .biz-icon.biz-hub-icon-loading::after { animation-duration: 1.6s; } }
.biz-icon-actions, .biz-icon-error {
  position: absolute; inset: 0; z-index: 2; border-radius: 50%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6% 8%; text-align: center;
  pointer-events: none; opacity: 0; visibility: hidden; transform: scale(.95);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.biz-icon-actions { gap: 2px; background: rgba(6,6,6,.8); backdrop-filter: blur(1.5px); }
.biz-icon-error { gap: 0; background: rgba(24,6,6,.85); backdrop-filter: blur(1.5px); }
.biz-hero-icon-wrap:hover .biz-icon-actions, .biz-hero-icon-wrap:has(:focus-visible) .biz-icon-actions,
.biz-hero-icon-wrap:hover .biz-icon-error, .biz-hero-icon-wrap:has(:focus-visible) .biz-icon-error,
.biz-hero-icon-wrap:has(.biz-hub-icon-loading) .biz-icon-actions {
  opacity: 1; visibility: visible; transform: scale(1);
}
.biz-icon-link {
  pointer-events: auto; background: none; border: none; padding: 2px 3px;
  font-size: 8.5px; font-weight: 700; letter-spacing: -.005em; color: rgba(255,255,255,.86);
  cursor: pointer; transition: color .15s ease;
}
.biz-icon-link:hover, .biz-icon-link:focus-visible { color: var(--green); }
.biz-icon-link:disabled { color: rgba(255,255,255,.25); cursor: default; }
.biz-icon-sep { display: none; }
.biz-icon-loading-lbl { font-size: 8.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.biz-icon-error { font-size: 8px; font-weight: 500; color: rgba(255,150,130,.95); line-height: 1.3; }

.biz-hero-info { flex: 1; min-width: 0; }
.biz-hero-name { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-hero-meta { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-hero-meta-dot { margin: 0 6px; opacity: .5; }
.biz-hero-desc { margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.62); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-hero-edit {
  flex-shrink: 0; background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  padding: 7px 14px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.biz-hero-edit:hover, .biz-hero-edit:focus-visible { border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }

/* ── Summary card grid — Brand Identity / Business Context / Oriven
   Memory / Advertising Connections. flex:1 + min-height:0 so the grid
   (not fixed-height cards) absorbs whatever vertical space is actually
   left after the heading+hero, at any viewport height; each card's own
   body clips overflow rather than growing past its cell. ── */
.biz-ov2-grid {
  flex-shrink: 0; width: 100%; max-width: 900px;
  height: clamp(320px, 44vh, 460px);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.biz-ov2-card {
  /* min-width:0 is required here: this is a CSS grid item, and grid
     items default to min-width:auto — without this, a long unbreakable
     line deep inside (e.g. the business description in the Business
     Context card) refuses to shrink and forces its whole grid TRACK
     wider than 1fr, overflowing the card/grid/page horizontally. Same
     fix flex items need via min-width:0, just at the grid-item level. */
  min-width: 0; min-height: 0; display: flex; flex-direction: column;
  border-radius: var(--rl, 14px);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  padding: 14px 16px;
  transition: border-color .2s ease;
}
.biz-ov2-card:hover { border-color: color-mix(in srgb, var(--green) 22%, rgba(255,255,255,.1)); }
.biz-ov2-hd { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.biz-ov2-title { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.biz-ov2-action {
  background: none; border: none; padding: 0; margin: 0;
  font-size: 12px; font-weight: 600; color: var(--muted, rgba(255,255,255,.4));
  cursor: pointer; transition: color .15s ease;
}
.biz-ov2-action:hover, .biz-ov2-action:focus-visible { color: var(--green); }
.biz-ov2-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.biz-ov2-empty { font-size: 12.5px; color: rgba(255,255,255,.35); font-style: italic; }

/* Brand Identity card */
.biz-ov2-swatches { display: flex; gap: 6px; }
.biz-ov2-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); flex-shrink: 0; }
.biz-ov2-line { font-size: 13px; color: rgba(255,255,255,.75); }

/* Business Context card — three clickable summary rows */
.biz-ov2-context-body { justify-content: center; gap: 4px; }
.biz-ov2-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  width: 100%; background: none; border: none; border-top: 1px solid rgba(255,255,255,.06);
  padding: 12px 4px; margin: 0;
  cursor: pointer; text-align: left; border-radius: 4px;
}
.biz-ov2-row:first-child { border-top: none; }
.biz-ov2-row:hover, .biz-ov2-row:focus-visible { background: rgba(255,255,255,.03); }
.biz-ov2-row-label { flex-shrink: 0; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); }
.biz-ov2-row-value { flex: 1; min-width: 0; font-size: 12.5px; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.biz-ov2-row-empty { color: rgba(255,255,255,.35); font-style: italic; }

/* Oriven Memory card */
.biz-ov2-mem-item {
  font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.75);
  padding-left: 12px; position: relative;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.biz-ov2-mem-item::before { content: '"'; position: absolute; left: 0; color: rgba(255,255,255,.3); }

/* Advertising Connections card — compact 2×2/4-across platform grid */
.biz-ov2-connections-body { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 14px 14px; }
.biz-ov2-plat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: none; border: none; padding: 4px 0; margin: 0; cursor: pointer; text-align: left;
}
.biz-ov2-plat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: rgba(255,255,255,.8); }
.biz-ov2-plat-status { flex-shrink: 0; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); }
.biz-ov2-plat-connected { color: #4ade80; }

/* ── Heading block ── */
.biz-heading-block { flex-shrink: 0; text-align: center; max-width: 520px; }
.biz-heading { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 0 0 4px; }
.biz-sub { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.5); margin: 0; }

@media (max-width: 1024px) {
  #page-business-brain.biz-canvas-active .orv-page-wrap-biz { height: auto; min-height: 100vh; padding-top: 16px; padding-bottom: 10px; }
  .biz-canvas { gap: 14px; }
  .biz-heading { font-size: 24px; }
  .biz-hero { max-width: 100%; }
}

@media (max-width: 640px) {
  /* Mobile is the deliberate exception to the one-screen constraint
     (spec section 26) — a compact, usable STACKED composition, not the
     desktop grid shrunk blindly: hero stays a horizontal row (still
     compact), the four summary cards stack to one column so nothing is
     unreadably small, and the page scrolls normally beyond that. */
  #page-business-brain.biz-canvas-active .orv-page-wrap-biz { padding-top: 14px; padding-bottom: 14px; padding-left: 14px; padding-right: 14px; height: auto; min-height: 100vh; }
  .biz-canvas { gap: 12px; }
  .biz-heading { font-size: 21px; }
  .biz-sub { font-size: 12.5px; }
  .biz-hero { flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
  .biz-hero-edit { order: 3; width: 100%; text-align: center; }
  .biz-hero-icon-wrap { width: 56px; }
  .biz-ov2-grid { grid-template-columns: 1fr; grid-template-rows: none; flex: none; height: auto; gap: 10px; }
  .biz-ov2-card { height: auto; min-height: 0; }
  .biz-ov2-body { overflow: visible; }
  .biz-ov2-connections-body { grid-template-columns: 1fr; }
  .biz-ov2-mem-item { -webkit-line-clamp: 2; }
}


/* Module views (Your Brand / Brand Identity / Market / Competitors /
   Connections / Memory) — a plain back-link + optional contextual heading,
   consistent across all six so leaving the hub always feels like the same
   one gesture in reverse. */
.biz-module-hd { margin-bottom: 18px; }
.biz-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color .15s;
}
.biz-back-btn:hover { color: var(--green); }
.biz-module-title { font-size: 21px; font-weight: 800; color: var(--charcoal); letter-spacing: -.015em; margin: 0; }
body.dark-mode .biz-module-title { color: rgba(255,255,255,.94); }

/* Business Intelligence Map — same category cards as before, now with
   real hierarchy: description + a real next action per area instead of
   a flat percentage grid. */
.biz-map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1024px) { .biz-map-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .biz-map-grid { grid-template-columns: 1fr; } }
/* Master Dashboard Layout Pass — six distinct, substantial cards (not six
   tiny rows): real height (~200px) via generous padding + a large lead
   number, not fabricated content. */
.biz-map-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  animation: bizFadeIn .35s ease;
}
.biz-map-card:hover { border-color: color-mix(in srgb, var(--green) 26%, var(--b2)); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-2px); }
body.dark-mode .biz-map-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.dark-mode .biz-map-card:hover { border-color: color-mix(in srgb, var(--green) 30%, rgba(255,255,255,.14)); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.biz-map-card .biz-cat-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.biz-map-card .biz-cat-pct { font-size: 30px; font-weight: 800; color: var(--charcoal); letter-spacing: -.02em; }
body.dark-mode .biz-map-card .biz-cat-pct { color: rgba(255,255,255,.94); }
.biz-map-card .biz-cat-track { height: 6px; margin-top: 2px; }
.biz-map-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.biz-map-action {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--green-text);
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
}
.biz-map-action:hover { text-decoration: underline; }
body.dark-mode .biz-map-action { color: var(--green); }

/* Connected Ecosystem — same {platform}/status endpoints + platform
   icons as Connections/Autopilot; system-state rows, not a second
   connection UI. */
.biz-eco-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .biz-eco-row { grid-template-columns: 1fr; } }
.biz-eco-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .16s, box-shadow .16s;
  animation: bizFadeIn .35s ease;
}
.biz-eco-card:hover { border-color: color-mix(in srgb, var(--green) 22%, var(--b2)); }
body.dark-mode .biz-eco-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-eco-top { display: flex; align-items: center; gap: 8px; }
.biz-eco-name { font-size: 13px; font-weight: 700; color: var(--charcoal); }
body.dark-mode .biz-eco-name { color: rgba(255,255,255,.9); }
.biz-eco-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.biz-eco-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.biz-eco-dot-on  { background: #16a34a; box-shadow: 0 0 5px rgba(22,163,74,.4); }
body.dark-mode .biz-eco-dot-on { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.4); }
.biz-eco-dot-off { background: var(--b2); }
.biz-eco-action {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; padding: 0; cursor: pointer;
}
.biz-eco-action:hover { color: var(--charcoal); text-decoration: underline; }
body.dark-mode .biz-eco-action:hover { color: #fff; }
.biz-eco-action-primary { color: var(--green-text); }
body.dark-mode .biz-eco-action-primary { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .biz-vcard, .biz-map-card, .biz-eco-card, .biz-mem-card { animation: none !important; }
}

/* Business tab — company profile split into logical groups (Company /
   About / Goals) instead of one long stacked form; same fields, same
   BIZ_PROFILE_FIELDS, same bizSaveProfile(), just grouped. */
.biz-profile-groups { display: flex; flex-direction: column; gap: 16px; }
.biz-profile-kcard .biz-field-grid { margin-top: 2px; }

/* Products / Audiences / Competitors — premium empty state (never a
   giant blank area, never a bare "No data"): what's missing, why it
   matters, what to do next. */
.biz-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 30px; max-width: 460px;
}
body.dark-mode .biz-empty { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-empty-title { font-size: 15px; font-weight: 700; color: var(--charcoal); letter-spacing: -.01em; }
body.dark-mode .biz-empty-title { color: rgba(255,255,255,.92); }
.biz-empty-sub { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.biz-empty-cta {
  margin-top: 4px; font-size: 12.5px; font-weight: 700; padding: 9px 17px; border-radius: 10px;
  border: none; background: var(--green); color: #0B0B0C; cursor: pointer; transition: opacity .15s, transform .15s;
}
.biz-empty-cta:hover { opacity: .88; transform: translateY(-1px); }

/* Memory — compact learned-context cards */
.biz-mem-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 6px;
  animation: bizFadeIn .35s ease;
}
body.dark-mode .biz-mem-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-mem-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.biz-mem-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
body.dark-mode .biz-mem-type { color: var(--green); }
.biz-mem-content { font-size: 13px; line-height: 1.5; color: var(--charcoal); }
body.dark-mode .biz-mem-content { color: rgba(255,255,255,.85); }
.biz-mem-time { font-size: 10.5px; color: var(--muted); }
.biz-mem-add-input {
  width: 100%; min-height: 60px; font-size: 12.5px; font-family: inherit; line-height: 1.5;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--sf2); color: var(--charcoal);
  resize: vertical;
}
body.dark-mode .biz-mem-add-input { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.biz-mem-add-input:focus { outline: none; border-color: color-mix(in srgb, var(--green) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }

/* ══ Master Dashboard Layout Pass — content-width fix ═════════════════
   #page-business-brain .orv-page-wrap's max-width rule (originally
   written near the rest of the .biz-* block, ~line 39287) never made it
   into the browser's parsed CSSOM — confirmed via a live check of
   document.styleSheets[].cssRules: every rule immediately before and
   after it parsed correctly, but that one rule was silently absent,
   and the page was rendering at the generic 1040px (--orv-content-maxw)
   instead of the intended --camp-content-maxw. The identical selector
   placed here, at the end of the file, parses and applies correctly, so
   the real fix lives here instead of chasing the one-off drop further. */
#page-business-brain .orv-page-wrap { max-width: var(--camp-content-maxw); padding-top: 68px; }

/* Overview Row 3 — 7+5 composition: Business Profile (real cached
   profile data) + Connected Ecosystem, replacing the old full-width
   ecosystem-only row. */
.biz-ov-row-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; }
@media (max-width: 1024px) { .biz-ov-row-7-5 { grid-template-columns: 1fr; } }
.biz-ov-col7, .biz-ov-col5 { display: flex; flex-direction: column; min-width: 0; }
.biz-profile-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px;
  display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 220px;
}
body.dark-mode .biz-profile-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.biz-profile-card-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--charcoal); }
body.dark-mode .biz-profile-card-name { color: rgba(255,255,255,.94); }
.biz-profile-card-desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
/* Ecosystem cards stack vertically in the narrower 5-column slot instead
   of the 3-across row used when the section was full-width. */
.biz-eco-col { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.biz-eco-col .biz-eco-card { flex: 1; min-height: 60px; justify-content: center; }

/* Products — visual header band (real color-derived gradient, not a
   fabricated image) so 3-column product cards have real visual presence
   instead of reading as compact text rows. */
.biz-vcard-visual-card { padding: 0; overflow: hidden; }
.biz-vcard-visual-card .biz-vcard-top,
.biz-vcard-visual-card .biz-fact-grid,
.biz-vcard-visual-card .biz-tag-block,
.biz-vcard-visual-card .biz-vcard-empty,
.biz-vcard-visual-card .biz-vcard-edit { padding-left: 18px; padding-right: 18px; }
.biz-vcard-visual-card .biz-vcard-top { padding-top: 16px; }
.biz-vcard-visual-card .biz-vcard-empty,
.biz-vcard-visual-card .biz-vcard-edit { padding-bottom: 16px; }
.biz-vcard-visual { height: 96px; display: flex; align-items: center; justify-content: center; }
.biz-vcard-visual span { font-size: 28px; font-weight: 800; color: rgba(255,255,255,.85); letter-spacing: -.02em; }
.biz-vcard-visual-card .biz-vcard-top .biz-avatar { display: none; }

/* Memory — real card height instead of a compact row. */
.biz-mem-card { padding: 22px 24px; min-height: 170px; justify-content: space-between; }
.biz-mem-content { font-size: 13.5px; }

/* Autopilot Monitoring Sources — a bit more presence now that cards are
   wider; still compact by design (status + campaign count is genuinely
   all the real content there is). */
.ap-source-card { padding: 20px 20px; min-height: 130px; justify-content: space-between; }

/* ══ Final UI Alignment & Grid Polish ══════════════════════════════ */

/* Business → Brand left-edge fix. Root cause: body.dark-mode .bb-head /
   .bb-tab-bar / .bb-pane each carry `padding: ...40px... !important`
   (styles.css ~36142/36226/36259), which beats the existing page-scoped
   #bizPanelBrand .bb-head/.bb-tab-bar/.bb-pane { padding-left:0 } fix
   (not !important) regardless of specificity — so Brand Brain's content
   sat 40px further right than the rest of Business, but only in dark
   mode (light mode's base .bb-head/.bb-tab-bar/.bb-pane rules have no
   !important, so the page-scoped override already won there). These
   three rules re-zero left/right specifically for dark mode, at higher
   specificity AND !important, without touching top/bottom padding or
   any Brand Brain data/behavior. */
body.dark-mode #bizPanelBrand .bb-head { padding-left: 0 !important; padding-right: 0 !important; }
body.dark-mode #bizPanelBrand .bb-tab-bar { padding-left: 0 !important; padding-right: 0 !important; }
body.dark-mode #bizPanelBrand .bb-pane { padding-left: 0 !important; padding-right: 0 !important; }

/* Autopilot Active Automations grid override retired — .ap-active-list is
   now a single-column list (UX Redesign sprint, see the base rule near
   .ap-auto-card) so a column-count override no longer applies. */
.ap-sources-grid { gap: 12px; }

/* Business → Market — trailing "+ Add" action (replaces the removed
   section-header button that duplicated the empty-state CTA). Right-
   aligned below the list, only rendered once items exist (bizRenderList,
   app.html) — the empty state already carries its own single CTA. */
.biz-add-btn-trailing { margin-top: 12px; align-self: flex-end; }
.biz-vcard-list + .biz-add-btn-trailing { margin-top: 12px; }

/* ══ Navbar Redesign — command rail ════════════════════════════════
   Existing .orv-sb has THREE separate `width:280px !important` rules
   scattered across the file's history (base block, two dark-mode
   blocks). Rather than track all of them down, these overrides are
   appended here (verified-safe location this session — see the earlier
   Business/Autopilot content-width fixes for why) with matching
   !important + equal specificity, so they win purely on being last in
   source order. .mc (main content) is flex:1 in the same flex row, so
   narrowing .orv-sb hands the freed space to page content automatically
   — no separate content-width edit needed. */
.orv-sb {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  border-radius: 0 16px 16px 0 !important;
  border-right: 1px solid var(--b2, rgba(0,0,0,.1)) !important;
  box-shadow: 4px 0 24px -8px rgba(0,0,0,.12) !important;
  position: relative !important;
}
body.dark-mode .orv-sb {
  width: 220px !important;
  min-width: 220px !important;
  border-radius: 0 16px 16px 0 !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: 4px 0 28px -8px rgba(0,0,0,.5) !important;
}

/* Logo — more breathing room, still the same asset/markup. */
.orv-sb-logo { padding: 22px 18px 18px !important; gap: 12px !important; }

/* Nav items — trimmed a touch for the narrower rail; active state stays
   the existing subtle green-tint + left accent bar (already restrained,
   not rebuilt) rather than a filled pill. */
.orv-sb-nav { padding: 8px 10px !important; }
.orv-sb .orv-ni { padding: 9px 10px; gap: 10px; font-size: 13px; }

/* Platform shortcuts — belong visually to Campaigns: indented, smaller
   type, no icon/label size competing with the real nav items above. */
.orv-ni-plat-group { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 8px; padding-left: 14px; border-left: 1px solid var(--border, rgba(0,0,0,.08)); }
body.dark-mode .orv-ni-plat-group { border-left-color: rgba(255,255,255,.08); }
.orv-ni-plat {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 6px 8px; border-radius: 7px; border: none; background: none; cursor: pointer;
  font-size: 11.5px; font-weight: 500; color: var(--muted, rgba(0,0,0,.45));
  transition: background .12s, color .12s;
}
.orv-ni-plat:hover { background: color-mix(in srgb, var(--green) 7%, transparent); color: var(--charcoal, #18181A); }
body.dark-mode .orv-ni-plat:hover { color: rgba(255,255,255,.85); }
.orv-ni-plat-ico { width: 13px; height: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: .85; }
.orv-ni-plat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orv-ni-plat-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.orv-ni-plat-dot-on { background: #16a34a; box-shadow: 0 0 4px rgba(22,163,74,.5); }
body.dark-mode .orv-ni-plat-dot-on { background: #4ade80; box-shadow: 0 0 4px rgba(74,222,128,.5); }
.orv-ni-plat-dot-off { background: var(--b2, rgba(0,0,0,.18)); }
.orv-ni-plat-ext { font-size: 11px; color: var(--muted); flex-shrink: 0; opacity: .7; }

/* Mobile drawer reuses .orv-ni-plat-group/.orv-ni-plat as-is — slightly
   more vertical padding to match the drawer's own larger touch targets. */
.orv-mob-drawer .orv-ni-plat-group { margin-left: 10px; }
.orv-mob-drawer .orv-ni-plat { padding: 8px 10px; min-height: 36px; }

/* ══ Autopilot Alignment Pass ══════════════════════════════════════
   Same root cause already fixed for Intelligence (search this file for
   "#page-intelligence .ov3-section"): .ov3-section (shared by
   apEngineSection/apSourcesSection/apActiveSection/apHistorySection)
   carries its own 32px (48px dark) left/right padding on top of
   .ap-op-outer's own page padding, and in dark mode a separate
   "Sections below hero also centered" rule additionally applies
   max-width:800px + margin:0 auto !important. The Intelligence fix's own
   comment assumed Autopilot's copy of this padding was intentional and
   didn't need the same treatment — a live getBoundingClientRect check
   this pass proved that wrong: hero headline measured x=260 while every
   .ov3-section heading (Automation Engine/Monitoring Sources/Active
   Automations/History) measured x=292, a consistent 32px gap, and in
   dark mode the sections additionally self-centered at 800px regardless
   of the page's real content width. Neutralizing here, scoped to
   #page-autopilot only — .ov3-section's behavior on every other page
   (including Intelligence's own separate override) is untouched. */
#page-autopilot .ov3-section { padding-left: 0; padding-right: 0; }
body.dark-mode #page-autopilot .ov3-section { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ══ Design System Consistency Pass — canonical title/subtitle system ══
   Audit found the shared .orv-ph-title/.orv-ph-sub pair (used by
   Intelligence and Business's page headers, styles.css:25744/25753:
   22px/800/-.03em/1.2 line-height, 13px sub/1.5 line-height) is already
   the most widely-reused primary-title pattern in the app. Two real
   outliers found against it, fixed here rather than touched at their
   original definitions (avoids re-litigating every other rule already
   layered around them):
   - .ap-hero-headline (Autopilot's real title, "Let Oriven handle...")
     was 28px/-.02em — 6px larger than every other page's title, the
     single most visible inconsistency in the audit.
   - .ap-hero-sub was 14px/1.55 vs the canonical 13px/1.5.
   - .camp-shell-title (Campaigns) was already 22px but weight 700/
     letter-spacing -.02em vs canonical 800/-.03em.
   Not touched: .orv-greeting (Overview's own greeting, a different,
   deliberately larger component per section 35's "don't flatten good
   design that serves a different purpose"); section-heading labels
   (.ov3-sh-label, 10.5px/700/.08em) were already consistent everywhere
   they're used (Autopilot/Intelligence/Business) — no fix needed there. */
.ap-hero-headline { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.03em !important; line-height: 1.2 !important; }
.ap-hero-sub { font-size: 13px !important; line-height: 1.5 !important; }
.camp-shell-title { font-weight: 800 !important; letter-spacing: -.03em !important; line-height: 1.2 !important; }
.camp-shell-sub { line-height: 1.5 !important; }

/* ══ Page Header Alignment Fix ══════════════════════════════════════
   Live Campaigns / Drafts kept their real Refresh / +New Campaign
   actions after their redundant mode-line text was removed (the shared
   "Campaigns" title+subtitle in #orvHubTabsCampaigns already covers
   that copy) — right-align the surviving lone button instead of
   leaving it pinned left where the text used to start it off. */
.camp-mode-hdr-action-only { justify-content: flex-end; margin-bottom: 12px; }

/* Live Campaigns — Meta ad-set/ad drill-down (campaign detail panel).
   Appended at end of file per this codebase's established workaround for
   rules silently dropping from parsed CSSOM when inserted into dense
   original regions -- see prior fixes in this file for the same note. */
.adm-panel-adsets-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.adm-panel-adsets-hdr { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.adm-panel-adsets-loading, .adm-panel-adsets-empty { font-size: 12.5px; opacity: .55; padding: 6px 0; }
.adm-adset-row { border: 1px solid rgba(255,255,255,.08); border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.adm-adset-hd { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; font-size: 12.5px; }
.adm-adset-hd:hover { background: rgba(255,255,255,.04); }
.adm-adset-chevron { font-size: 10px; opacity: .6; width: 10px; flex-shrink: 0; }
.adm-adset-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-adset-status { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; }
.adm-adset-metric { font-variant-numeric: tabular-nums; opacity: .8; font-size: 12px; }
.adm-adset-ads { padding: 4px 10px 8px 28px; border-top: 1px solid rgba(255,255,255,.06); }
.adm-ad-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.adm-ad-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
body.dark-mode .adm-panel-adsets-wrap { border-top-color: rgba(255,255,255,.08); }

/* Launch — inline credit-cost indicator next to the Build Campaign button.
   Appended at end of file per this codebase's established workaround for
   rules silently dropping from parsed CSSOM when inserted into dense
   original regions -- see prior fixes in this file for the same note.

   Anchored bottom-right of the composer footer: .cr2-gen-row previously
   had no explicit `order`, so — sharing .cr2-box-foot's flex row with
   .cr2-foot-controls (also order:0) — it landed on the FIRST line next to
   the platform/attach-image controls, above the Campaign Goal/Objective/
   Structure sections (each order:2, forced onto their own full-width
   rows below it). order:3 + flex-basis:100% puts it on its own row after
   all of those instead; justify-content:flex-end keeps the cost text and
   button grouped together at the right edge rather than spread across
   the row. */
/* Micro-Polish pass — flex-basis:100% removed (see .cr2-goal-section's
   comment above): it would mean 100% HEIGHT in .cr2-box-foot's new
   column layout, directly fighting the margin-top:auto spacer below.
   flex-shrink:0 keeps this row's own natural height intact. */
.cr2-gen-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; flex-shrink: 0; order: 3; }
/* Layout Fix pass — margin-top:auto (previous pass) consumed whatever
   height .cr2-workspace-row's align-items:stretch forced onto .cr2-box
   beyond its own real content — once removed above (.cr2-workspace-row
   is flex-start now), .cr2-box has no artificial extra height left to
   push this row down into, so an auto top margin would just resolve to
   this row's own natural gap anyway. Replaced with a fixed, comfortable
   margin instead: a real, considered gap after Advanced Settings (part
   of "balanced composition," not a forced spacer chasing the panel's
   bottom edge). No black bar (see the .cr2-box-foot comment on
   .cr2-gen-row's background below): removed the previous pass's sticky
   "footer bar" treatment, which read as a visually separate black strip
   in dark mode because var(--surface) resolves to a flat #18181A there
   while .cr2-box's own real dark-mode background is the much more
   transparent rgba(255,255,255,.02) — the two never matched. This rule
   keeps position:sticky ONLY as a safety net for the rare case where
   Advanced Settings is expanded and .cr2-box-foot is actually scrolling
   (bottom:-12px keeps the CTA reachable then); its background exactly
   mirrors .cr2-box's real background in each theme (not the generic
   --surface token), and there's no border/z-index, so it has no visual
   identity of its own and reads as the same continuous panel surface. */
.cr2-gen-row {
  /* -14px/-12px (sides/bottom) extend the row to .cr2-box-foot's own
     padding edges so the sticky background below reaches flush to the
     panel's edges with no gap at the sides. */
  margin: 24px -14px -12px;
  position: sticky;
  bottom: -12px;
  padding: 10px 14px 12px;
  background: var(--surface, #fff);
}
body.dark-mode .cr2-gen-row { background: rgba(255,255,255,.02); }
/* Layout Fix pass — real, confirmed collision (verified via a live
   viewport probe scrolled to this row): the global fixed Oriven Chat
   launcher (.orv-ai-fab, bottom:16px/right:16px at this width, ~106px
   wide) sits at the exact same bottom-right corner the full-width Build
   Campaign button's right portion renders under at mobile widths. Same
   reserved-clearance pattern Launch's own launch bar already uses for
   this identical collision (.lw-launch-bar, max-width:900px,
   padding-right:84px) — 96px comfortably clears the launcher's real
   footprint plus a small gap. Placed after the base .cr2-gen-row rule
   above (not in that earlier @media(max-width:480px) block further up
   the file) so it isn't reset by that later shorthand `padding` — same
   source-order convention this file already documents repeatedly. */
@media (max-width: 480px) {
  .cr2-gen-row { padding-right: 112px; }
}
.cr2-gen-cost { font-size: 11.5px; opacity: .55; font-variant-numeric: tabular-nums; }

/* Team page redesign — canonical page-header rhythm + KPI row + project/
   member cards. Appended at end of file per this codebase's established
   workaround for rules silently dropping from parsed CSSOM when inserted
   into dense original regions (see prior fixes in this file). Overrides
   the original .tm-* block starting ~line 1376 without touching it, since
   team.js's render functions still emit the same class names — this only
   restyles the same DOM into a real dashboard layout. */

#page-team .tm-outer { padding-top: 68px; }

/* Header — matches .orv-ph-title's canonical size/weight/tracking exactly
   (22px/800/-.03em/1.2, inherits Geist) instead of the old oversized
   Instrument-Serif treatment; "One intelligence." keeps a green accent
   (same pattern used elsewhere, e.g. the paywall title) without the
   mismatched italic-serif combination. */
#page-team .tm-hdr { display: block; }
#page-team .tm-hdr-title {
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  line-height: 1.2 !important;
  margin: 0 0 5px !important;
}
#page-team .tm-hdr-title em { font-style: normal !important; color: var(--green) !important; }
#page-team .tm-hdr-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }

/* KPI row — three equal, aligned blocks (replaces the cramped right-aligned
   header stats). Real data only: Members/Intelligence/Workspace, same IDs
   team.js already writes into. */
#page-team .tm-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
#page-team .tm-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
#page-team .tm-kpi-lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#page-team .tm-kpi-val { font-family: inherit; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--charcoal); line-height: 1; }
#page-team .tm-kpi-val.tm-stat-status { font-size: 15px; font-weight: 700; color: var(--green); }

/* Active Projects — real 3-column grid on desktop, cards instead of rows.
   Same .tm-proj-row markup from _renderTeamProjects(), restacked vertically. */
#page-team .tm-proj-list { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 12px !important; }
#page-team .tm-proj-row {
  flex-direction: column !important; align-items: flex-start !important; gap: 10px !important;
  padding: 16px !important; min-height: 108px;
}
#page-team .tm-proj-row:hover { transform: translateY(-2px) !important; }
#page-team .tm-proj-name { white-space: normal; }
#page-team .tm-proj-bar-wrap { width: 100% !important; }
#page-team .tm-proj-empty { grid-column: 1 / -1; padding: 30px 20px; border: 1px dashed var(--border); border-radius: 14px; }

/* Team Members — cards instead of plain bottom-border rows, denser and
   more legible at a glance; same .tm-member-row markup from renderTeamPage(). */
#page-team .tm-member-row {
  border: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important;
  border-radius: 12px !important; padding: 11px 12px !important; margin-bottom: 8px;
  background: var(--bg);
}
#page-team .tm-member-row:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  #page-team .tm-proj-list { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 620px) {
  #page-team .tm-kpi-row { grid-template-columns: 1fr; }
  #page-team .tm-proj-list { grid-template-columns: 1fr !important; }
}

body.dark-mode #page-team .tm-kpi { background: var(--surface); border-color: var(--border); }
body.dark-mode #page-team .tm-member-row { background: var(--bg); border-color: var(--border); }

/* Team nav icon — subtle premium hover animation, two figures moving
   slightly toward each other. CSS-only, no icon replacement (same SVG
   paths, just transformed). Disabled entirely under prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .orv-ni[data-orv-page="team"] svg path:first-child { transition: transform .32s cubic-bezier(.22,1,.36,1); transform-origin: 60% 100%; }
  .orv-ni[data-orv-page="team"] svg circle { transition: transform .32s cubic-bezier(.22,1,.36,1); transform-origin: center; }
  .orv-ni[data-orv-page="team"] svg path:nth-child(3) { transition: transform .32s cubic-bezier(.22,1,.36,1) .04s; transform-origin: 40% 100%; }
  .orv-ni[data-orv-page="team"]:hover svg circle,
  .orv-ni[data-orv-page="team"].orv-active svg circle { transform: translateX(1.2px); }
  .orv-ni[data-orv-page="team"]:hover svg path:nth-child(3),
  .orv-ni[data-orv-page="team"].orv-active svg path:nth-child(3) { transform: translateX(-1.2px); }
}

/* Signup — First name / Last name split (was one "Full Name" field).
   Appended at end of file per this codebase's established workaround for
   rules silently dropping from parsed CSSOM when inserted into dense
   original regions. Desktop: side-by-side. Mobile: stacked (each .au-field
   inside already has its own margin-bottom, so stacking is automatic --
   only the desktop row layout needs an explicit rule).

   ROOT CAUSE of the inconsistent-spacing bug: the outer wrapper carries
   BOTH .au-field and .au-field-row (`<div class="au-field au-field-row">`).
   .au-field's base rule (line ~8140) sets flex-direction:column -- this
   rule never explicitly overrode it back to row, so the two name fields
   were silently stacking on desktop too instead of sitting side by side,
   producing First-name-gap + Last-name-gap + Email-gap (three stacked
   12px margins) where every other field pair only has one. Explicit
   `flex-direction: row` below is what actually makes this a row; without
   it, only `gap`/`margin-bottom` on a column layout would render, hence
   the doubled/uneven vertical spacing before Email. The outer row's own
   margin-bottom:0 (cancelling the inherited .au-field 12px on ITSELF)
   plus the inner children's own margin-bottom:12px (below) is what keeps
   the row-to-Email gap identical to every other field-to-field gap
   (12px), once the row is an actual row. */
.au-field-row { display: flex; flex-direction: row; gap: 12px; margin-bottom: 0; }
.au-field-row .au-field { flex: 1; min-width: 0; margin-bottom: 12px; }
@media (max-width: 480px) {
  .au-field-row { flex-direction: column; gap: 0; }
}

/* Team invite acceptance notice on the signup/login pages. Appended at
   end of file per this codebase's established safe-append convention. */

/* ══════════════════════════════════════════════════════════════════
   Sidebar Redesign — icon-only navigation rail
   Narrows the existing .orv-sb (last set to 220px by the "Navbar
   Redesign — command rail" block above) down to a compact ~76px icon
   rail: labels hidden, icons enlarged, hover tooltips added. Same
   append-at-end-of-file convention as that block and .au-invite-notice
   above — wins purely on being later in source order, matching
   specificity/!important, rather than hunting down every earlier .orv-sb
   rule. Every element/id/handler this reuses (.orv-ni, .orv-ni-plat,
   .orv-sb-user, #orvNavSettingsBtn, openSettingsModal(), _orvNav(),
   _orvPlatShortcutRow()) is untouched functionally — only presentation
   changes. The <=1024px hamburger+drawer breakpoint (.orv-sb{display:
   none!important}) is also untouched, so nothing below is scoped by a
   max-width query -- it only ever applies to the real desktop rail,
   exactly the "reuse the existing responsive behavior" the redesign
   asked for rather than inventing a third nav mode.
   ══════════════════════════════════════════════════════════════════ */

.orv-sb {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  align-items: center;
  /* .orv-sb's own overflow:hidden (base rule) exists so its rounded
     corners clip child backgrounds -- but that also clips the hover
     tooltips below, which must render OUTSIDE the rail's own box (to its
     right). Each interactive child already carries its own border-radius
     on hover/active (.orv-ni, .orv-ni-plat, .orv-sb-user), so none of them
     actually depend on the parent clipping for their own correctness --
     safe to open up. */
  overflow: visible !important;
}
body.dark-mode .orv-sb {
  width: 76px !important;
  min-width: 76px !important;
  overflow: visible !important;
}

/* Logo: icon-only already (the "Overview v2" block above hid
   .orv-sb-logo-name and set the image to 40px) -- bumped slightly larger
   per the redesign spec and centered now that there's no wordmark beside
   it to left-align against. */
.orv-sb-logo {
  justify-content: center !important;
  padding: 22px 0 16px !important;
}
.orv-sb-logo-img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
}

/* Nav rail: icons only, centered in fixed square slots. Scoped to
   `.orv-sb .orv-ni` (not bare `.orv-ni`) so the mobile drawer's own copy
   of these buttons -- a completely different element subtree under
   .orv-mob-drawer, already forcing its own labels visible via
   `.orv-mob-drawer .orv-ni .orv-ni-label{display:inline!important}` --
   is entirely unaffected; the drawer keeps its existing full-label list
   exactly as before. */
.orv-sb-nav {
  padding: 6px 10px !important;
  align-items: center;
  gap: 4px !important;
}
.orv-sb .orv-ni {
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 12px;
  flex-shrink: 0;
}
.orv-sb .orv-ni-label { display: none !important; }
.orv-sb .orv-ni svg { width: 20px !important; height: 20px !important; }
/* Active-state left accent bar (existing .orv-ni.orv-active::before) is
   kept as-is -- it still reads correctly flush against the rail's own
   left edge even with the icon now centered in a square slot rather than
   a full-width row. */

/* Intelligence's unread dot (already just a plain 7px dot, no text --
   see #orvIntelBadge above) repositioned from "end of the label row" (a
   row that no longer exists here) to a small corner badge on the icon
   itself, matching the platform connected-dot pattern below. */
.orv-sb .orv-ni #orvIntelBadge,
.orv-sb #orvIntelBadge {
  position: absolute;
  top: 6px;
  right: 8px;
  margin-left: 0;
}

/* Platform shortcuts (Google/Meta/TikTok): were an indented, bordered
   sub-list under Campaigns with visible names -- no room for that in a
   76px rail, so this becomes its own short icon-only column, same visual
   language/size family as the main nav icons just a touch smaller
   (matches the existing size hierarchy where these were already smaller
   than the primary nav). Connected indicator (.orv-ni-plat-dot) moves
   from an inline dot next to the name to a small corner badge on the
   icon, exactly like the Intelligence badge above -- so "if Google Ads is
   connected, the indicator stays visible" without any extra width. */
.orv-sb .orv-ni-plat-group {
  flex-direction: column;
  margin: 0 !important;
  padding-left: 0 !important;
  border-left: none !important;
  gap: 4px !important;
  align-items: center;
  width: 100%;
}
.orv-sb .orv-ni-plat {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0 !important;
  border-radius: 12px;
  position: relative;
  flex-shrink: 0;
}
.orv-sb .orv-ni-plat-name,
.orv-sb .orv-ni-plat-ext { display: none !important; }
.orv-sb .orv-ni-plat-ico { width: 18px !important; height: 18px !important; opacity: 1; }
.orv-sb .orv-ni-plat-dot {
  position: absolute;
  bottom: 5px;
  right: 7px;
  width: 6px !important;
  height: 6px !important;
  border: 1.5px solid var(--bg3, #E5DED4);
}
body.dark-mode .orv-sb .orv-ni-plat-dot { border-color: #17171A; }

/* Settings + workspace footer: same icon-only square as the main nav,
   workspace shrinks to avatar + a short truncated name (plan text is now
   tooltip-only, never shown permanently -- see the [data-tip] system
   below and the small JS addition that keeps its data-tip in sync with
   the existing name/plan sync). */
.orv-sb-bottom {
  padding: 8px 8px 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.orv-sb #orvNavSettingsBtn {
  width: 48px;
  height: 48px;
  justify-content: center;
  padding: 0 !important;
  border-radius: 12px;
}
.orv-sb #orvNavSettingsBtn svg { width: 20px !important; height: 20px !important; }

.orv-sb-user {
  flex-direction: column;
  gap: 3px;
  padding: 8px 2px !important;
  width: 100%;
  margin-top: 2px !important;
  border-radius: 12px;
  cursor: default;
}
.orv-sb-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.orv-sb-user-info { width: 100%; min-width: 0; text-align: center; }
.orv-sb-user-name {
  font-size: 10px !important;
  font-weight: 600;
  text-align: center;
  max-width: 68px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orv-sb-user-plan { display: none !important; }

/* ── Hover tooltip navigation ──────────────────────────────────────
   Applies to every [data-tip] element inside the rail (main nav icons,
   platform shortcuts, Settings, the workspace footer) -- one consistent
   system, not a per-item reimplementation.

   NOT a pure-CSS ::after/::before on the icon itself: .orv-sb-nav needs
   overflow-y:auto (so the list can still scroll if content ever exceeds
   the viewport height), and CSS overflow has a real, spec-defined
   limitation here -- when one axis is non-visible, the OTHER axis is
   forced to a non-visible value too, even if never explicitly set
   (confirmed live: .orv-sb-nav's overflow-x computes to `hidden` purely
   as a side effect of its own overflow-y:auto). A pseudo-element tooltip
   anchored inside that subtree gets silently clipped no matter what
   overflow value is put on .orv-sb itself. Instead, app.html's small
   [data-tip] hover listener renders ONE reusable .orv-rail-tip/
   .orv-rail-tip-arrow pair appended directly to <body> (outside every
   scrollable ancestor) and positions it via the hovered element's own
   getBoundingClientRect() -- same attribute-driven system, a rendering
   approach that actually works regardless of any ancestor's overflow.
   Dark, rounded card to the RIGHT of the icon, vertically centered on
   it, small arrow pointing back at the icon, fades in/out, and (being
   position:fixed, not part of any layout flow) can never shift or cover
   sibling sidebar items. */
.orv-rail-tip {
  position: fixed;
  display: none;
  background: #18181A;
  color: #fff;
  font-family: Geist, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 9310;
}
.orv-rail-tip-arrow {
  position: fixed;
  display: none;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #18181A;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 9310;
}
.orv-rail-tip.orv-rail-tip-show { opacity: 1; transform: translateX(0); }
.orv-rail-tip-arrow.orv-rail-tip-show { opacity: 1; transform: translateY(-50%) translateX(0); }
/* Light mode already reads correctly with the dark card above regardless
   of theme (a dark tooltip on a light page is the conventional, highest-
   contrast choice most SaaS rails use) -- dark mode below swaps to a
   light card instead, so it still stands out against the near-black
   dark-mode canvas rather than blending in. */
body.dark-mode .orv-rail-tip {
  background: #F2F2F0;
  color: #18181A;
  box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
}
body.dark-mode .orv-rail-tip-arrow { border-right-color: #F2F2F0; }
/* data-metric-tip variant (Customize Metrics info icons) can sit anywhere
   on the page, unlike the always-left sidebar -- when there's no room to
   the right, the JS positions the tip to the LEFT of the icon instead and
   toggles these two classes to flip the arrow's triangle to point right
   (back at the icon) instead of left. */
.orv-rail-tip-arrow-left {
  border-right: none;
  border-left: 6px solid #18181A;
}
body.dark-mode .orv-rail-tip-arrow-left { border-left-color: #F2F2F0; border-right-color: transparent; }

/* ── AI assistant header: notification bell docks left of the panel ──
   .orv-notif-bell is intentionally its own independent position:fixed
   element (see its original comment) and isn't a DOM sibling of
   .orv-ai-panel, so it can't react to the panel's own state via a CSS
   sibling selector -- orvOpenAi()/orvCloseAi() (app.html) now toggle a
   single `orv-ai-open` class on <body> for exactly this purpose. Without
   this, the bell stayed glued to the viewport's top-right corner overtop
   of the panel's own header controls whenever the panel opened. Values
   below position it just left of the panel's close button (16px header
   padding + 26px close-button width + 10px gap, matching the header's
   own internal gap between its controls) -- purely a position change, no
   DOM move, so orvToggleNotifications()/all notification logic and the
   panel's own close button are completely untouched. */
/* Floating Assistant pass — the panel no longer pushes/covers the main
   workspace on desktop (position:fixed, anchored bottom-right near its
   own trigger), so this repositioning is only still needed at the
   768px mobile cutover, where the panel genuinely goes edge-to-edge and
   would otherwise sit under the bell. */
@media (max-width: 768px) {
  body.orv-ai-open .orv-notif-bell {
    right: 52px;
    top: 12px; /* empirically verified against .orv-ai-panel-close's real rendered vertical center via Playwright, not hand-computed */
    transition: right .18s cubic-bezier(.22,.61,.36,1), top .18s cubic-bezier(.22,.61,.36,1);
  }
}

/* ══════════════════════════════════════════════════════════════════
   Sidebar Refinement — icon containers, App Launcher (9-dot)
   Follow-up to the redesign block above, same append-at-end convention.
   Three changes: (1) every .orv-ni gets a real resting-state container
   (background box, not just a hover tint) so it reads as an obviously
   clickable button; (2) Google/Meta/TikTok move out of the always-on
   rail into a compact "9 dots" App Launcher + popover, reusing
   .orv-ni-plat/_orvPlatShortcutRow's existing markup/handlers unchanged;
   (3) the active-state left accent bar is dropped in the compact rail in
   favor of the existing solid-fill .orv-active treatment, which already
   reads as "clearly stronger" once every icon has its own container to
   contrast against. .orv-sb .orv-ni-plat-group/.orv-ni-plat (the old
   inline-in-rail platform styling above) are now unused dead CSS -- left
   in place rather than hunted down, per this file's convention -- since
   app.html no longer renders #orvPlatShortcuts in the desktop rail.
   ══════════════════════════════════════════════════════════════════ */

/* ── Icon containers ───────────────────────────────────────────────
   Resting-state background (not just hover) so every icon "looks
   immediately obvious as clickable" per spec. Equal specificity to the
   earlier .orv-ni/.orv-ni:hover/.orv-ni.orv-active rules elsewhere in
   this file (two classes / two classes+pseudo) -- wins purely by being
   later in source order, exactly this file's established pattern. */
.orv-sb .orv-ni {
  background: rgba(0,0,0,.035);
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
body.dark-mode .orv-sb .orv-ni {
  background: rgba(255,255,255,.045);
}
.orv-sb .orv-ni:hover {
  background: color-mix(in srgb, var(--green) 14%, transparent) !important;
}
body.dark-mode .orv-sb .orv-ni:hover {
  /* !important: matches the earlier body.dark-mode .orv-ni:hover
     (line ~34130, itself !important), for the same reason as the active
     state above -- otherwise this loses despite later source order. */
  background: color-mix(in srgb, var(--green) 16%, transparent) !important;
}
/* Active state: the existing solid-fill .orv-ni.orv-active (light: solid
   lime + near-black icon; dark: tinted lime) already reads as "clearly
   stronger than a normal item" once it's sitting next to sibling icons
   that now have their own subtle resting containers -- boosted slightly
   further here for contrast against those containers, and a faint lift
   shadow added in light mode (kept intentionally small, not a "large
   shadow"). The left accent bar doesn't suit a centered icon square, so
   it's hidden in the compact rail; the fill itself is the indicator. */
/* Explicit !important here: an earlier block (body.dark-mode .orv-ni.orv-active,
   line ~34133) already uses !important, and without matching it here this
   override would silently lose to that earlier rule despite being later
   in source order and more specific -- !important always outranks
   specificity/order, so it has to be matched, not just out-specified. */
.orv-sb .orv-ni.orv-active {
  background: var(--green) !important;
  color: var(--green-deep) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
body.dark-mode .orv-sb .orv-ni.orv-active {
  background: color-mix(in srgb, var(--green) 22%, transparent) !important;
  color: var(--green) !important;
  box-shadow: none;
}
.orv-sb .orv-ni.orv-active::before { display: none; }
/* Icons bumped slightly larger, per spec, from the redesign block's 20px. */
.orv-sb .orv-ni svg { width: 21px !important; height: 21px !important; }

/* ── App Launcher trigger (9 dots) ─────────────────────────────────
   Same .orv-ni container/size/hover/active language as every other rail
   button -- the dot grid is just its glyph, so it never needs its own
   sizing rules beyond the glyph itself. */
/* Pixel-exact 3x3 grid -- deliberately NOT CSS grid with fractional (1fr)
   tracks: 16px / 3 columns with a gap doesn't divide evenly (10px content
   / 3 = 3.333px/track), which left row/column gaps a fraction of a pixel
   apart from each other after browser rounding -- close enough to be
   "even" numerically but inconsistent enough to visibly read as uneven at
   real screen density (the reported "top row sits closer than the bottom
   row" bug). Each dot is absolutely positioned at an exact integer pixel
   (0 / 6 / 12) instead, so the 3px gap between every adjacent dot -- both
   axes -- is provably identical, not just close. */
.orv-launcher-dots {
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.orv-launcher-dots i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transition: opacity .16s ease;
}
.orv-launcher-dots i:nth-child(1) { top: 0;   left: 0; }
.orv-launcher-dots i:nth-child(2) { top: 0;   left: 6px; }
.orv-launcher-dots i:nth-child(3) { top: 0;   left: 12px; }
.orv-launcher-dots i:nth-child(4) { top: 6px; left: 0; }
.orv-launcher-dots i:nth-child(5) { top: 6px; left: 6px; }
.orv-launcher-dots i:nth-child(6) { top: 6px; left: 12px; }
.orv-launcher-dots i:nth-child(7) { top: 12px; left: 0; }
.orv-launcher-dots i:nth-child(8) { top: 12px; left: 6px; }
.orv-launcher-dots i:nth-child(9) { top: 12px; left: 12px; }
.orv-sb .orv-launcher-btn:hover .orv-launcher-dots i,
.orv-sb .orv-launcher-btn.orv-launcher-open .orv-launcher-dots i { opacity: 1; }

/* Hover animation: all 9 dots converge to the exact button center, hold
   briefly, then return to their normal 3x3 positions -- once per hover,
   ~1.6s, not looped (default animation-iteration-count is 1, and 0%/100%
   are identical to the resting position, so the button is indistinguishable
   from "not animating" once it finishes, even while still hovered). Each
   dot's own translate distance (--ldx/--ldy) is set per nth-child below;
   the shared keyframes just reference those custom properties, so there's
   one @keyframes block instead of nine near-duplicates. Only runs under
   prefers-reduced-motion: no-preference -- reduced-motion users keep the
   plain static 3x3 icon (still gets the opacity emphasis above, which
   isn't movement). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes orv-launcher-converge {
    0%, 100% { transform: translate(0, 0); }
    45%, 55% { transform: translate(var(--ldx, 0), var(--ldy, 0)); }
  }
  .orv-sb .orv-launcher-btn:hover .orv-launcher-dots i {
    animation: orv-launcher-converge 1.6s cubic-bezier(.45, .05, .15, 1) 1;
  }
  /* Distance from each dot's own position to the grid's center (7.5,7.5) --
     corners move diagonally, edge-centers move along one axis, the middle
     dot is already at center so it doesn't move at all. */
  .orv-launcher-dots i:nth-child(1) { --ldx: 6px;  --ldy: 6px; }
  .orv-launcher-dots i:nth-child(2) { --ldx: 0px;  --ldy: 6px; }
  .orv-launcher-dots i:nth-child(3) { --ldx: -6px; --ldy: 6px; }
  .orv-launcher-dots i:nth-child(4) { --ldx: 6px;  --ldy: 0px; }
  .orv-launcher-dots i:nth-child(5) { --ldx: 0px;  --ldy: 0px; }
  .orv-launcher-dots i:nth-child(6) { --ldx: -6px; --ldy: 0px; }
  .orv-launcher-dots i:nth-child(7) { --ldx: 6px;  --ldy: -6px; }
  .orv-launcher-dots i:nth-child(8) { --ldx: 0px;  --ldy: -6px; }
  .orv-launcher-dots i:nth-child(9) { --ldx: -6px; --ldy: -6px; }
}
.orv-sb .orv-launcher-btn.orv-launcher-open {
  background: color-mix(in srgb, var(--green) 16%, transparent) !important;
  color: var(--green) !important;
}
body.dark-mode .orv-sb .orv-launcher-btn.orv-launcher-open {
  background: color-mix(in srgb, var(--green) 20%, transparent) !important;
  color: var(--green) !important;
}

/* Thin, subtle separator between the launcher and Settings/Workspace --
   deliberately short (not full-width) so it doesn't read as a heavy
   divider line. */
.orv-sb-sep {
  width: 30px;
  height: 1px;
  background: var(--border, rgba(0,0,0,.1));
  /* Micro-Polish pass — 10px -> 16px (was still reading as roughly the
     same rhythm as the six-module gap once combined with .orv-sb-nav's
     4px item gap; founder: "Home still feels slightly too close to the
     six product modules"). 4+16=20px on each side of the divider now,
     vs. the six modules' own untouched 4px mutual rhythm -- a real,
     deliberate step without turning the divider into a heavy line
     (still the same short 30px/1px hairline). Scoped to just this one
     element so the six modules' own tight compact rhythm is untouched. */
  margin: 16px 0;
  flex-shrink: 0;
}
body.dark-mode .orv-sb-sep { background: rgba(255,255,255,.09); }

/* ── App Launcher popover ──────────────────────────────────────────
   position:fixed, appended to <body> and positioned via JS
   getBoundingClientRect() -- same reasoning as .orv-rail-tip above (an
   in-flow popover here would inherit .orv-sb-nav's overflow-clipping
   side effect). Small "app switcher" card, not a full menu: compact
   width, rounded, theme-aware, soft shadow, quick fade+slide-in. Rows
   reuse .orv-ni-plat/_orvPlatShortcutRow's existing markup untouched --
   only sized up slightly for a comfortable popover (vs. the tiny indented
   sub-list it originally was), scoped narrowly enough (.orv-launcher-pop
   .orv-ni-plat, three classes deep) to safely out-specificity the older
   .orv-ni-plat rules regardless of source order. */
.orv-launcher-pop {
  position: fixed;
  display: none;
  min-width: 212px;
  max-width: 260px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16), 0 4px 14px rgba(0,0,0,.08);
  padding: 6px;
  opacity: 0;
  transform: translateX(-6px) scale(.98);
  transform-origin: left bottom;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9295;
}
body.dark-mode .orv-launcher-pop {
  background: #18181B;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 4px 14px rgba(0,0,0,.3);
}
.orv-launcher-pop.orv-launcher-pop-show { opacity: 1; transform: translateX(0) scale(1); }
.orv-launcher-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted, rgba(0,0,0,.4));
  padding: 6px 10px 5px;
}
body.dark-mode .orv-launcher-title { color: rgba(255,255,255,.35); }
.orv-launcher-empty { font-size: 12px; color: var(--muted, rgba(0,0,0,.45)); padding: 4px 10px 8px; }

.orv-launcher-pop .orv-ni-plat {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  gap: 10px;
  color: var(--charcoal, #18181A);
}
body.dark-mode .orv-launcher-pop .orv-ni-plat { color: rgba(255,255,255,.85); }
.orv-launcher-pop .orv-ni-plat:hover { background: color-mix(in srgb, var(--green) 9%, transparent); }
.orv-launcher-pop .orv-ni-plat-ico { width: 16px; height: 16px; opacity: 1; }
.orv-launcher-pop .orv-ni-plat-dot { width: 6px; height: 6px; }
.orv-launcher-pop .orv-ni-plat-ext { font-size: 12px; }

/* ── Logo: slightly larger, the rail's visual anchor ────────────────
   Bumped from the redesign block's 44px -- still an icon-scale image
   (not "oversized"), just enough bigger than the 48px nav icon slots
   (which hold ~21px glyphs) to read as the anchor above them, per spec.
   Same asset, same centering, same click behavior -- size only. */
.orv-sb-logo-img {
  width: 52px !important;
  height: 52px !important;
}

/* ── Workspace button: same button language as Settings ─────────────
   Now plain .orv-ni markup (see app.html) so it inherits identical
   dimensions/radius/hover/active treatment automatically -- no bespoke
   sizing rules needed here. Only the avatar glyph itself needs
   containing/centering; a long workspace name can never affect this
   because the name is no longer rendered in the DOM at all (it's tooltip
   text now), not merely hidden -- so there's nothing for a long string to
   push against. */
.orv-sb #orvSbWorkspace .orv-sb-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 11px;
  flex-shrink: 0;
}

/* ── Multi-line tooltip (workspace hover: name + plan) ───────────────
   The shared .orv-rail-tip is single-line/nowrap by design (regular nav
   tooltips like "Launch" should never wrap) -- this modifier, applied
   only when the tooltip text contains a newline (app.html's showTip()),
   switches it to a left-aligned, line-preserving block instead. Reuses
   the exact same element/positioning/theme system, not a second tooltip
   implementation. */
.orv-rail-tip.orv-rail-tip-multi {
  white-space: pre-line;
  text-align: left;
  line-height: 1.55;
  padding: 8px 13px;
}

/* ══════════════════════════════════════════════════════════════════
   Final Polish — Light-mode separator contrast
   .smd-section (Settings section dividers), .orv-ai-section-divider
   (AI panel section labels), .cr2-foot-divider (Launch platform/mode
   divider), and .orv-sb-sep (sidebar App Launcher separator) all
   currently resolve to var(--border) in light mode, which is #E0DAD1 --
   too close in luminance to the page background (--bg:#F6F3EE) to read
   as a visible line. Root cause confirmed: NOT a low-alpha rgba value
   (the rgba(...) after the comma in each var(--border, rgba(...)) is
   only a fallback that never actually applies, since --border is always
   defined) -- it's an opaque color with too little contrast against the
   background. Fixed here using --b2 (#CEC8BE light / already the
   "stronger border" variable elsewhere in this file), NOT by changing
   --border itself globally, which would ripple into every card/input
   border in the app well beyond what was asked. Dark mode is
   deliberately restated unchanged directly below each light-mode fix,
   not left to inherit, so it can never drift from its current
   appearance no matter what order these rules end up evaluated in.
   ══════════════════════════════════════════════════════════════════ */
.smd-section { border-bottom-color: var(--b2, #CEC8BE); }
body.dark-mode .smd-section { border-bottom-color: var(--border, #2C2C2E); }

.orv-ai-section-divider::before, .orv-ai-section-divider::after { background: var(--b2, #CEC8BE); }
body.dark-mode .orv-ai-section-divider::before, body.dark-mode .orv-ai-section-divider::after { background: rgba(255,255,255,.07); }

.cr2-foot-divider { background: var(--b2, #CEC8BE); }
body.dark-mode .cr2-foot-divider { background: rgba(255,255,255,.1); }

.orv-sb-sep { background: var(--b2, #CEC8BE); }
body.dark-mode .orv-sb-sep { background: rgba(255,255,255,.09); }

/* ── Platform pill selected-state contrast (Final Polish) ────────────
   .cr2-pp.cr2-pp-on (Launch's Google/Meta/TikTok platform selector) set
   both background AND text to var(--green) in light mode -- a light
   accent-tinted background (--glt) with same-hue text on top of it, which
   is genuinely low-contrast (worse the lighter/brighter the chosen accent
   is). --green-text already exists in this file specifically for "readable
   text on a var(--green)-tinted surface" (color-mix(var(--green) 55%,
   black)) and is exactly what .orv-ni.orv-active already uses correctly
   elsewhere for the same kind of tinted-background+text pairing -- this
   just brings the platform pill in line with that established pattern.
   Dark mode's existing rule (bright text on a dark tint) already has good
   contrast and is untouched. */
.cr2-pp.cr2-pp-on { color: var(--green-text); }

/* ══════════════════════════════════════════════════════════════════
   Final Polish — Create Campaign hierarchy pass
   The builder had five sibling .cr2-goal-section blocks (Campaign Goal,
   Brand Identity, Campaign Type, Meta Placements, Campaign Structure) all
   sharing identical spacing/typography/card weight -- nothing visually
   distinguished "primary decision" (Goal) from "advanced/platform-
   specific config" (Type/Placements/Structure), which is what actually
   read as cluttered, not the order itself (the order was already
   prompt -> platform/creative/attach -> goal -> brand -> type ->
   placements -> structure -> build, matching the requested flow). Fix is
   purely visual grouping/weight, appended per this file's convention --
   no control's behavior, id, or handler changed. */
/* Advanced settings toggle (Prompt-First pass) — theme-reactive sibling of
   the always-dark .mc-advanced-toggle (manual-campaign form); same visual
   idea (chevron + label, rotates on open) but built on var(--*) tokens
   since Create's composer follows the real site theme. */
.cr2-advanced-toggle-row {
  /* Micro-Polish pass — see .cr2-goal-section's comment above: flex-basis:
     100% now means 100% HEIGHT in .cr2-box-foot's column layout, not
     width; removed so this row stays its own natural height instead of
     absorbing the space meant for .cr2-gen-row's bottom-anchoring spacer. */
  flex-shrink: 0; order: 2;
  margin-top: 8px;
}
/* Layout Fix pass — was a bare text link (chevron + label, no container,
   no hover feedback beyond a text-color change) sitting under a thin
   top border, which read as "a forgotten link" rather than a real
   section of the panel (founder: "make the collapsed section feel
   intentional... read as an interactive expandable section"). Now a real
   bordered row matching the panel's own border-radius language, full
   width so the entire row (not just the text) is the click target and
   carries a clear hover state. */
.cr2-advanced-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  text-align: left;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
body.dark-mode .cr2-advanced-toggle { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.cr2-advanced-toggle:hover { color: var(--charcoal); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); background: color-mix(in srgb, var(--green) 5%, rgba(0,0,0,.02)); }
body.dark-mode .cr2-advanced-toggle:hover { color: rgba(255,255,255,.9); background: color-mix(in srgb, var(--green) 7%, rgba(255,255,255,.03)); }
.cr2-advanced-toggle svg { flex-shrink: 0; transition: transform .15s ease; }

.cr2-advanced-group {
  /* Micro-Polish pass — same flex-basis:100% fix as .cr2-goal-section/
     .cr2-advanced-toggle-row above (100% HEIGHT in the new column
     layout, not width); flex-shrink:0 keeps it at its real expanded
     content height so .cr2-box-foot's own overflow-y:auto (not this
     element stretching) is what handles any overflow. */
  flex-shrink: 0;
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
  padding-top: 4px;
}
/* Slightly tighter than the 10px gap between primary sections above --
   these three read as one related cluster, not three separate decisions. */
.cr2-advanced-group .cr2-goal-section { margin: 0; }
.cr2-advanced-group .cr2-goal-label {
  font-size: 10px;
  opacity: .8;
}
/* Create Simplification pass — Assets / Source & context / Campaign
   configuration subgroups inside Advanced Settings, each with a small
   uppercase label so the moved-in controls still read as organized
   rather than a flat dump. */
.cr2-adv-subgroup { display: flex; flex-direction: column; gap: 8px; }
.cr2-adv-subgroup + .cr2-adv-subgroup { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--b2, #CEC8BE); }
body.dark-mode .cr2-adv-subgroup + .cr2-adv-subgroup { border-top-color: rgba(255,255,255,.08); }
.cr2-adv-subgroup-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* De-emphasized card weight for Campaign Type specifically (the only
   .cr2-goal-card reuse inside this group) -- smaller padding, no hover-
   lift, quieter border -- so it reads as secondary to the Campaign Goal
   cards above rather than visually identical to them. */
.cr2-advanced-group .cr2-goal-card {
  padding: 9px 10px 8px;
  border-radius: 9px;
}
.cr2-advanced-group .cr2-goal-card:hover {
  transform: none;
  box-shadow: none;
}
.cr2-advanced-group .cr2-goal-card .cr2-goal-title { font-size: 12.5px; }
.cr2-advanced-group .cr2-goal-card .cr2-goal-desc { font-size: 10.5px; }

/* Primary cluster (Campaign Goal + Brand Identity) gets a tighter gap
   between the two than the space before/after the whole cluster, so they
   visually read together as "the decisions that shape this campaign"
   before the advanced-settings separator kicks in. */
#cr2BrandIdentitySection { margin-top: -2px; }

/* ══════════════════════════════════════════════════════════════════
   Final Polish — Sidebar Light/Dark geometry parity
   Root cause (confirmed via live getBoundingClientRect() measurement in
   both themes, not just reading the CSS): several sidebar geometry
   properties had a `body.dark-mode`-scoped rule left over from an OLDER
   pre-icon-rail-redesign block, at a DIFFERENT specificity than the
   newer unscoped rule that was meant to apply to both themes -- so per
   property, whichever rule wins the specificity+!important tie differs,
   and light/dark silently diverged:
     .orv-sb-logo-img   : dark 40x40  vs  light 52x52
     .orv-sb .orv-ni svg: dark 14x14  vs  light 21x21
     .orv-sb-logo padding/gap and .orv-sb-nav padding also differed
     .orv-sb-avatar     : dark 28x28  vs  light 24x24
   Per explicit instruction: dark mode's current rendered geometry is
   the source of truth; these rules bring light mode in line with it
   without changing dark mode's appearance at all. Anchored on
   #orvSidebar (an ID) so this can't be silently out-specified by a
   future body.dark-mode class-based rule the same way the previous
   ones were -- geometry now lives in exactly one place regardless of
   theme, only colors/borders/shadows are still meant to vary. */
#orvSidebar .orv-sb-logo-img { width: 40px !important; height: 40px !important; }
#orvSidebar .orv-sb-logo { padding: 14px 12px 12px !important; gap: 10px !important; }
#orvSidebar .orv-sb-nav { padding: 10px 8px !important; }
#orvSidebar .orv-ni svg { width: 14px !important; height: 14px !important; }
#orvSidebar .orv-sb-avatar { width: 28px !important; height: 28px !important; }

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v2 — Global landing-page wide-container system
   Placed at the very end of the file so it wins the cascade over every
   older per-section max-width rule it supersedes (900-1400px values
   scattered across the file), including a legacy !important nav rule
   left over from the old "scene stage" architecture (~line 14142,
   .lp-nav-inner { max-width:1100px !important }) that was silently
   capping the nav below the 1320px this file's earlier redesign pass
   intended — confirmed via computed-style inspection, not assumed.
   width: min(100% - gutters, 1800px), one formula, one source of
   truth, replacing the previous per-section 900-1400px patchwork so
   every landing section grows/shrinks together. */
/* ══════════════════════════════════════════════════════════════════
   ORIVEN BRAND SYSTEM — Final Brand, Visual System & Connected
   Advertising Experience Refinement pass. Fixed design tokens, exact
   values as specified. Scoped to the marketing/content pages
   (#view-landing plus the other public content views that share the
   same nav/footer chrome — /pricing, /about, /case-studies) rather than
   :root, deliberately: styles.css is shared by the whole authenticated
   app (app.html), which has its own established --green/Geist/
   Instrument-Serif system this pass is not rebuilding (spec: "For this
   marketing pass, do not rebuild the entire application"). Re-declaring
   --green at this narrower scope also normalizes it to the exact
   Electric Lime value everywhere marketing CSS already reads
   var(--green) — no need to touch every individual rule (spec: "If
   existing colors are close but not exact, normalize them"; the old
   #B7FF2A was already visually almost identical to #B6FF3B).
   ══════════════════════════════════════════════════════════════════ */
#view-landing, #view-pricing, #view-about, #view-case-studies {
  --green: #B6FF3B;              /* Electric Lime — normalizes the old #B7FF2A */
  --oriven-primary: #B6FF3B;     /* Electric Lime */
  --oriven-secondary: #080808;   /* Obsidian */
  --oriven-text-light: #FFFFFF;  /* Pure White */
  --oriven-text-dark: #171717;   /* Charcoal */
  --oriven-accent-dark: #26331A; /* Deep Moss */
  --oriven-accent-light: #F5F5F0;/* Snow */
}

/* "Fuuld" (spec's chosen ORIVEN display/headline typeface) is not an
   available font anywhere — not in this project, not on any font CDN.
   This @font-face is real and active, pointing at the expected local
   path; until the actual files are dropped in it simply 404s silently
   (font-display:swap keeps text visible in the Unbounded fallback the
   whole time — never invisible, never broken) and the font-family stack
   below picks it up automatically the moment the real files exist, with
   zero further code changes — same "drop the real asset in later"
   convention as every video/image placeholder elsewhere on this page. */
@font-face {
  font-family: 'Fuuld';
  /* The Fuuld files aren't in the project yet (assets/fonts/ is empty), so
     only a locally installed copy is used: no failing network requests.
     When the real files are added, restore:
     src: url('../assets/fonts/Fuuld-Bold.woff2') format('woff2'); */
  src: local('Fuuld Bold'), local('Fuuld-Bold');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
/* ORIVEN typography roles (spec: "FUULD = ORIVEN personality, INTER =
   ORIVEN product clarity"). .ov-font-display goes on large marketing
   headlines; body copy already reads Geist (the app-wide base font) via
   inheritance, which is visually close to Inter and left alone rather
   than swapped everywhere — .ov-font-body is available for spots that
   specifically want Inter's exact character. */
#view-landing, #view-pricing, #view-about, #view-case-studies {
  --font-display: 'Fuuld', 'Unbounded', 'Geist', sans-serif;
  --font-body: 'Inter', 'Geist', sans-serif;
}

:root { --lp-gutter: 64px; }
@media (max-width: 1280px) { :root { --lp-gutter: 48px; } }
@media (max-width: 900px)  { :root { --lp-gutter: 32px; } }
@media (max-width: 640px)  { :root { --lp-gutter: 20px; } }

/* Gutter now lives ONLY on the -inner containers below via width:min(),
   not split unpredictably between section padding and inner max-width
   (previously: some sections gutter'd via their own section-level
   padding, others via the inner container's padding — inconsistent and
   hard to extend, which is exactly what this system replaces). */
.ov-showcase-section, .ov-brands-section, .ov-pricing-section,
.ov-faq-section, .ov-reviews-section, .ov-footer, #ov-final,
.ov-wf-inner, .ov-sp-wrap, .lp-nav-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.lp-nav-inner,
.ov-wf-inner,
.ov-showcase-inner,
.ov-brands-inner,
.ov-reviews-inner,
.ov-pricing-inner,
.ov-faq-inner,
.ov-sp-wrap,
.ov-final-inner,
.ov-footer-inner {
  width: min(100% - (var(--lp-gutter) * 2), 1800px) !important;
  max-width: 1800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero: wider than before (was 900px) but intentionally narrower than
   the full 1800px system — a headline that wide would hurt readability.
   ~1200px keeps the prompt box "substantially wider" while the
   headline itself stays legible, per the request.
   .lp-hero itself also needed an override here, not just .lp-hero-inner
   — a legacy rule from the same dead "scene stage" architecture as the
   nav bug above (line ~13688: .lp-hero { max-width:860px !important })
   was silently capping the OUTER flex container, so widening the inner
   container's own max-width had no visible effect (its percentage math
   was resolving against that capped 860px parent, not the viewport).
   Confirmed via computed-style inspection (parent width was 860px
   regardless of the inner rule), same as the nav issue. */
.lp-hero {
  width: 100% !important;
  max-width: none !important;
}
.lp-hero-inner {
  /* Final Landing Page Storytelling pass — a touch wider (was 1200px)
     so the restored "Advertising is fragmented. Oriven fixes it." has
     more horizontal room, per spec: "the hero should feel wider... the
     headline should have enough horizontal room to breathe." */
  width: min(100% - (var(--lp-gutter) * 2), 1280px) !important;
  max-width: 1280px !important;
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v2 — Ad Examples: infinite two-row marquee wall
   Full-bleed (sits outside .ov-showcase-inner's gutter, spans the full
   zero-padding section width) for an immersive "wall of ads" feel,
   masked with edge fades rather than a hard clip. Each row's own
   overflow:hidden guarantees the page never gains horizontal scroll
   regardless of how many cards are rendered.
   ══════════════════════════════════════════════════════════════════ */
/* Horizontal clipping (needed so the infinite marquee track never causes
   page overflow) is intentionally kept separate from vertical space, at
   BOTH the outer wall and the individual row: a plain `overflow: hidden`
   here would also clip the few px a hovered card lifts upward by,
   cutting its top edge (border included) off mid-hover. overflow-x alone
   gives the marquee its clip while overflow-y: visible lets the hover
   lift render in full, with no separate accent line or overlay needed --
   the card is the only thing that ever moves, and it has room to. */
.ov-wall { position: relative; width: 100%; overflow-x: hidden; overflow-y: visible; padding: 8px 0; }
.ov-wall-row { display: flex; overflow-x: hidden; overflow-y: visible; width: 100%; }
.ov-wall-row + .ov-wall-row { margin-top: 20px; }
.ov-wall-track {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  padding: 0 10px;
  will-change: transform;
  transition: opacity .25s ease;
}
.ov-wall-fade .ov-wall-track { opacity: 0; }

/* Seamless infinite-conveyor architecture (Google/Meta marquee fix): the
   track holds N identical ".ov-wall-seq" copies (N computed in JS from
   the viewport, see ovBuildMarqueeTrack), each one full pass through the
   platform's card set. Sequences are plain flex items of the track, so
   the SAME 20px gap that separates cards inside a sequence also separates
   one sequence from the next -- there is no special "boundary" gap. The
   animation must move the track by exactly one sequence's true rendered
   width (measured in JS, including that trailing gap) or the loop point
   drifts by a fraction of a gap and produces a visible flash/gap -- a
   fixed -50% is only exact when the track holds precisely two copies of
   equal width, which this variable-copy-count architecture does not
   guarantee, so JS always sets --ov-seq-w explicitly. The 50% fallback
   below only covers the instant before that JS measurement runs. */
.ov-wall-seq { display: flex; gap: 20px; flex-shrink: 0; }

@media (prefers-reduced-motion: no-preference) {
  .ov-wall-row-1 .ov-wall-track { animation: ovWallSlide 46s linear infinite; }
  .ov-wall-row-2 .ov-wall-track { animation: ovWallSlide 52s linear infinite reverse; }
  /* Pause on hover/focus so a curious visitor can actually read a card
     instead of chasing a moving target -- scoped to the ROW being
     hovered only. This used to be scoped to the whole .ov-wall (both
     rows), so hovering a single top-row card also froze the bottom row
     (and vice versa); the two rows must stay fully independent. */
  .ov-wall-row:hover .ov-wall-track,
  .ov-wall-row:focus-within .ov-wall-track { animation-play-state: paused; }
}
@keyframes ovWallSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--ov-seq-w, 50%))); }
}

.ov-wall-card {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  height: 168px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.ov-wall-card:hover { transform: translateY(-6px); }
.ov-wall-card-google { border-color: rgba(251,188,5,.16); }
.ov-wall-card-google:hover { border-color: rgba(251,188,5,.45); }
.ov-wall-card-meta { border-color: rgba(8,102,255,.18); }
.ov-wall-card-meta:hover { border-color: rgba(8,102,255,.5); }
.ov-wall-card-tiktok { border-color: rgba(238,29,82,.18); }
.ov-wall-card-tiktok:hover { border-color: rgba(238,29,82,.5); }
.ov-wall-card-pinterest { border-color: rgba(230,0,35,.18); }
.ov-wall-card-pinterest:hover { border-color: rgba(230,0,35,.5); }

/* ── Ad-format surfaces — real platform chrome (badges, URL/handle,
   headline/description text), never a bare label. The image/video area
   (.ov-adx-media) is the only genuinely empty container: plain dark
   fill until a real asset lazy-loads in, never a fabricated picture. ── */
.ov-adx-media {
  background: rgba(255,255,255,.025);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ov-adx-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* TikTok Ads showcase pass — real <video> creatives (assets/ads/TA1.mp4 ...
   TA10.mp4), same fill/crop rule as every platform's <img>: object-fit:
   cover keeps each video's real aspect ratio intact (never stretched),
   cropping only what overflows the fixed card box. */
.ov-adx-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* Google Search Ad Card pass — every GA image sits inside its OWN
   complete Google-search-inspired ad card: a compact search bar, then
   Ad badge + domain + headline + description, then the creative itself
   as the dominant visual element. Ten of these repeat across the
   marquee (spec: "GOOGLE AD INTERFACE + GA1, GOOGLE AD INTERFACE + GA2,
   ..." — the unit being duplicated for the seamless loop is now the
   whole card, not the bare image). Restrained neutral/dark tones,
   Google's real "G" mark used once per card (recognizable, not a
   pixel-perfect clone), no other platform-brand colors introduced into
   the ORIVEN system. */
.ov-adx-gcard {
  display: flex; flex-direction: column;
  background: #0c0c10; padding: 10px 12px 0;
}
.ov-adx-gc-search {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 5px 10px; margin-bottom: 9px; flex-shrink: 0;
}
.ov-adx-gc-g { flex-shrink: 0; }
.ov-adx-gc-query { flex: 1; font-size: 10px; color: rgba(255,255,255,.68); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-adx-gc-ico { color: rgba(255,255,255,.32); flex-shrink: 0; }
.ov-adx-gc-meta { flex-shrink: 0; margin-bottom: 8px; }
.ov-adx-gc-top { display: flex; align-items: center; gap: 6px; font-size: 10px; margin-bottom: 3px; }
.ov-adx-gc-badge { border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: 0 4px; font-size: 8.5px; font-weight: 700; letter-spacing: .03em; color: rgba(255,255,255,.65); line-height: 1.5; }
.ov-adx-gc-domain { color: rgba(255,255,255,.5); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-adx-gc-headline { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 3px; }
.ov-adx-gc-desc { font-size: 10px; color: rgba(255,255,255,.48); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ov-adx-gc-media { flex: 1; min-height: 0; margin: 0 -12px; overflow: hidden; }
.ov-adx-gc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .ov-adx-gcard { padding: 8px 10px 0; }
  .ov-adx-gc-search { padding: 4px 9px; margin-bottom: 7px; }
  .ov-adx-gc-query { font-size: 9px; }
  .ov-adx-gc-meta { margin-bottom: 6px; }
  .ov-adx-gc-headline { font-size: 11px; }
  .ov-adx-gc-desc { display: none; }
  .ov-adx-gc-media { margin: 0 -10px; }
}

/* Meta — one dedicated per-card feed-ad unit per MA image (same "own ad
   card per creative" architecture as Google, distinct structure: avatar
   + advertiser name + Sponsored row, primary/secondary ad text, the
   dominant creative, then a CTA action bar below it -- reads as a social
   feed ad, not Google-with-a-different-logo). */
.ov-adx-mcard { display: flex; flex-direction: column; background: #0c0c10; padding: 10px 12px 0; }
.ov-adx-mc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-shrink: 0; }
.ov-adx-mc-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
}
.ov-adx-mc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ov-adx-mc-name { font-size: 11px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-adx-mc-sponsored { display: flex; align-items: center; gap: 3px; font-size: 9px; color: rgba(255,255,255,.45); }
.ov-adx-mc-sponsored svg { flex-shrink: 0; }
.ov-adx-mc-more { color: rgba(255,255,255,.32); flex-shrink: 0; }
.ov-adx-mc-text { font-size: 11px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 0; }
.ov-adx-mc-sub { font-size: 9.5px; color: rgba(255,255,255,.48); line-height: 1.3; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 0; }
.ov-adx-mc-media { flex: 1; min-height: 0; margin: 0 -12px; overflow: hidden; }
.ov-adx-mc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-adx-mc-cta {
  flex-shrink: 0; margin: 8px -12px 0; padding: 9px 12px; text-align: center;
  background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.1);
  font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .01em;
}

/* TikTok — full-bleed vertical video area with a bottom scrim
   (Sponsored badge, handle, short copy), the real vertical-video ad
   format rather than a landscape card. */
.ov-adx-tiktok { position: relative; }
.ov-adx-tiktok .ov-adx-media { position: absolute; inset: 0; }
.ov-adx-t-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,7,10,.85) 100%);
}
.ov-adx-t-badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.ov-adx-t-handle { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-adx-t-desc { font-size: 11px; color: rgba(255,255,255,.7); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pinterest — one dedicated per-card Pin unit per PA image (same "own ad
   card per creative" architecture as Google/Meta): the creative fills
   the dominant top area exactly like a real Pin, with a small Promoted
   badge overlaid on it (Pinterest's own red used ONLY as one small dot,
   never a full-red card), then a compact body -- avatar + advertiser,
   title, description, CTA -- below it. Image-first layout, distinct from
   Google/Meta's chrome-first cards, matching how a real Pin reads. */
.ov-adx-pcard { display: flex; flex-direction: column; background: #0c0c10; }
.ov-adx-pc-media { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ov-adx-pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-adx-pc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  display: flex; align-items: center; gap: 5px;
  background: rgba(8,8,8,.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 20px;
  padding: 4px 10px 4px 8px; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.ov-adx-pc-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #E60023; flex-shrink: 0; }
.ov-adx-pc-body { padding: 10px 12px; flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; }
.ov-adx-pc-head { display: flex; align-items: center; gap: 7px; }
.ov-adx-pc-avatar {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
}
.ov-adx-pc-name { font-size: 10.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-adx-pc-title { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.28; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-adx-pc-desc { font-size: 9.5px; color: rgba(255,255,255,.48); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ov-adx-pc-cta {
  align-self: flex-start; margin-top: 1px;
  background: var(--green); color: var(--oriven-text-dark, #171717);
  font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap;
}
@media (max-width: 640px) {
  .ov-adx-mcard { padding: 8px 10px 0; }
  .ov-adx-mc-sub { display: none; }
  .ov-adx-mc-cta { font-size: 9.5px; padding: 7px 10px; margin: 6px -10px 0; }
  .ov-adx-mc-media { margin: 0 -10px; }
  .ov-adx-t-scrim { padding: 20px 9px 9px; }
  .ov-adx-t-handle { font-size: 11px; }
  .ov-adx-t-desc { font-size: 10px; }
  .ov-adx-pc-body { padding: 8px 10px; gap: 4px; }
  .ov-adx-pc-title { font-size: 11px; }
  .ov-adx-pc-desc { display: none; }
  .ov-adx-pc-cta { font-size: 9px; padding: 4px 10px; }
}

.ov-wall::before, .ov-wall::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.ov-wall::before { left: 0; background: linear-gradient(90deg, #07070A, transparent); }
.ov-wall::after  { right: 0; background: linear-gradient(270deg, #07070A, transparent); }

/* Tab active-state platform tinting — used carefully (border/background
   tint only, not a full recolor) per the request. */
.ov-showcase-tab[data-platform="google"].ov-showcase-tab-active { border-color: rgba(251,188,5,.45); background: rgba(251,188,5,.07); }
.ov-showcase-tab[data-platform="meta"].ov-showcase-tab-active   { border-color: rgba(8,102,255,.45); background: rgba(8,102,255,.07); }
.ov-showcase-tab[data-platform="tiktok"].ov-showcase-tab-active { border-color: rgba(238,29,82,.45); background: rgba(238,29,82,.07); }
.ov-showcase-tab[data-platform="pinterest"].ov-showcase-tab-active { border-color: rgba(230,0,35,.45); background: rgba(230,0,35,.07); }

@media (max-width: 640px) {
  .ov-wall-card { width: 190px; height: 124px; }
  .ov-wall-row + .ov-wall-row { margin-top: 14px; }
  .ov-wall::before, .ov-wall::after { width: 60px; }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v3 — One continuous black environment + full-screen sections
   ══════════════════════════════════════════════════════════════════ */

/* ── One consistent background for the whole page ─────────────────
   #lp-stage wraps every landing section in normal flow, so painting
   the grid here (default background-attachment:scroll — the pattern
   is "printed" onto #lp-stage's own tall box once, top to bottom, and
   scrolls past naturally with it) gives one seamless texture behind
   every section instead of each section declaring its own color/
   gradient. Deliberately subtle: 2.2% white lines, no glow wash. */
#lp-stage {
  background-color: #07070A !important;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) !important;
  background-size: 56px 56px !important;
}

/* Every section becomes transparent so the one global background above
   shows through consistently — replaces the previous per-section
   background-color/gradient patchwork (including the pricing section's
   green-tinted gradient and the alternating .ov-wf-alt tint), which is
   exactly the "black -> grey -> green -> black" banding this removes.
   Final Marketing Website Polish pass — found the same banding bug
   reintroduced by every section added across the three most recent
   passes (.ov-statement-section, .ov-path-section, .ov-pillars-section,
   .ov-experience-section, .ov-pricing-link-band, and /pricing's own
   .ov-pricing-fold/.ov-sp-section): each declared its own flat
   background: #07070A, which is the same base color as the shared grid
   but paints OVER it, silently erasing the grid lines at every one of
   those section boundaries (confirmed via computed-style: these all
   returned solid rgb(7,7,10) instead of the transparent every correctly-
   behaving section already returns). Added below so the one shared grid
   shows through continuously across the whole homepage AND /pricing. */
/* Scoped to #view-landing only — #lp-stage (the element actually
   painting the shared grid) lives inside #view-landing, not around
   /pricing or any other sub-page, so only homepage sections need to go
   transparent here; /pricing keeps its own solid background untouched. */
/* .ov-story-section, .ov-reviews-section and .ov-pricing-link-band were
   removed from this list when those sections were cut from the
   homepage (social proof had no real data behind it; the pricing band
   was explicitly asked to be removed entirely).
   .ov-pricing-section stays — it's still used by /pricing, which is a
   separate destination outside #lp-stage's grid entirely and unaffected
   by this rule either way. */
#ov-hero, .ov-wf-section, .ov-wf-section.ov-wf-alt,
.ov-showcase-section, .ov-brands-section, .ov-social-proof,
.ov-pricing-section, #ov-final,
#view-landing .ov-statement-section, #view-landing .ov-path-section,
#view-landing .ov-pillars-section, #view-landing .ov-experience-section,
#view-landing .ov-faq-section {
  background: transparent !important;
}

/* The large green glow that used to wash the whole hero background —
   removed per spec; lime stays an accent (buttons, active states,
   small tasteful glows like #ov-final's), never a background wash. */
.lp-hero-glow { display: none !important; }

/* .lp-hero::before (~line 6208) is leftover decorative CSS from the
   original two-column grid hero (display:grid; grid-template-columns:
   1fr 1fr), superseded by the current flex-column hero built later in
   this file — never cleaned up when that redesign landed. An 800x600px
   radial gradient in the brand green, positioned with top:-20% (which
   resolves against the CURRENT hero's much taller height, ~-168px),
   pushing most of it up out of the hero entirely. .lp-hero-bg's own
   opaque layer normally hides the portion that overlaps the hero itself,
   but this pseudo-element's negative offset intentionally extends past
   the hero's own top edge into the transparent gap directly under the
   fixed nav (between the nav's bottom edge and where the hero's opaque
   background starts), where nothing was covering it — the visible
   result was a faint green/blue horizontal glow directly beneath the
   navbar. Confirmed via direct pixel sampling: fully gone once this is
   disabled, with the rest of the hero (grid pattern, headline, prompt
   box, everything .lp-hero-bg already covers) unchanged, at every
   viewport size tested. */
.lp-hero::before { display: none !important; }

/* ── Full-screen section rhythm ─────────────────────────────────────
   min-height: calc(100vh - navbar) rather than plain 100vh — sections
   live inside #view-landing, which is already offset below the fixed
   navbar (see the navbar/scroll-container fix), so this sizes each
   section to exactly the visible scrollable area per "screen", not a
   viewport-height box that would run 64px past it every time. */
#ov-hero, .ov-wf-section, .ov-showcase-section, .ov-brands-section,
.ov-social-proof, .ov-reviews-section, .ov-pricing-section,
.ov-faq-section, #ov-final {
  min-height: calc(100vh - var(--lp-nav-h)) !important;
}
.ov-wf-section, .ov-showcase-section, .ov-brands-section,
.ov-social-proof, .ov-reviews-section, .ov-pricing-section,
.ov-faq-section {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
/* Give the visual/product-UI column more room than a plain 50/50 split
   — it should read as a real product screenshot, not a card sharing
   space equally with the copy. Works for both normal and .ov-wf-inner-
   rev layouts since the visual is always DOM-second (grid column 2);
   -rev only flips which SIDE it displays on via direction:rtl. */
.ov-wf-inner { grid-template-columns: 1fr 1.15fr !important; }

/* Build/Publish/Scale run tighter than the other full-screen sections —
   their content is naturally more compact than Business's/the showcase's,
   so the full 100vh rhythm left a lot of empty black space above and
   below, especially around Build. ID selectors beat the class-based
   !important rule above regardless of source order, so only these three
   sections are affected — Business and everything else keep their
   existing height. Scoped to desktop only (min-width, mirroring the
   existing max-width:900px mobile reset below) so it can never outrank
   that reset's own min-height:auto at mobile widths -- an ID selector
   would otherwise win that fight by specificity regardless of media
   query, re-breaking the exact "size to content on mobile" behavior
   that reset exists for. */
@media (min-width: 901px) {
  #ov-build, #ov-publish, #ov-scale {
    min-height: calc(82vh - var(--lp-nav-h)) !important;
    padding: 64px 0 !important;
  }
}

/* Mobile: the one-screen-per-section rule is a desktop principle. Below
   this width, let sections size to their actual content instead of
   forcing a min-height that would otherwise pad short sections with
   dead space on a small screen. */
@media (max-width: 900px) {
  #ov-hero, .ov-wf-section, .ov-showcase-section, .ov-brands-section,
  .ov-social-proof, .ov-reviews-section, .ov-pricing-section,
  .ov-faq-section, #ov-final {
    min-height: auto !important;
  }
  .ov-wf-inner { grid-template-columns: 1fr !important; }
}

/* ── Hero: wide editorial headline, moderate description, compact
   product-interaction prompt field — three different widths on
   purpose, not one shared container width for everything. ── */
.lp-hero-inner {
  width: min(100% - (var(--lp-gutter) * 2), 1800px) !important;
  max-width: 1800px !important;
  gap: 28px;
}
.lp-hero-h1 {
  width: min(88vw, 1500px) !important;
  max-width: 1500px !important;
}
.lp-hero-sub {
  width: 100% !important;
  max-width: 820px !important;
}
.lp-hero-input-wrap {
  width: 100% !important;
  max-width: 760px !important;
}
@media (max-width: 900px) {
  .lp-hero-h1 { width: 100% !important; }
  .lp-hero-input-wrap { max-width: 100% !important; }
}

/* ── FAQ: centered heading above a centered accordion, both sharing the
   same column width (spec, Final Marketing Website Refinement pass:
   "The FAQ title and supporting description should be centered,
   aligned and balanced similarly to the actual FAQ content" — replaces
   the earlier left-heading/right-accordion split). */
.ov-faq-inner {
  display: block !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.ov-faq-head { margin-bottom: 48px; }
.ov-faq-head .ov-section-h,
.ov-faq-head .ov-section-sub { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.ov-faq-list { grid-template-columns: 1fr !important; column-gap: 0 !important; }

/* ── ORIVEN BRAND SYSTEM — typography roles (spec: "FUULD = ORIVEN
   personality, INTER = ORIVEN product clarity... Headlines should be
   large, heavy and visually confident"). !important because this file
   has repeatedly needed it for .lp-hero-h1/.ov-section-h specifically —
   several earlier passes documented computed-style fights they only won
   this way; verified the same is still true for font-family here before
   reaching for it. Scoped to marketing-page selectors only — body copy
   throughout the actual app (app.html) keeps its existing Geist/
   Instrument-Serif system untouched. ── */
.lp-hero-h1, .ov-section-h, .ov-statement-lead, .ov-final-h2,
.ov-exp-panel-h, .ov-wf-cell-title, .ov-ws-panel-title, .ov-frag-h {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
}
.lp-hero-sub, .ov-section-sub, .ov-path-desc, .ov-wf-cell-desc,
.ov-ws-panel-desc, .ov-faq-q, .ov-faq-a, .ov-frag-sub {
  font-family: var(--font-body) !important;
}

/* ── Intelligence/Autopilot/Business: substantially larger typography
   and product UI, not just a small block centered in a tall empty
   screen — making the SECTION full-height was only half the fix; the
   CONTENT itself needed to grow to actually fill it. ── */
.ov-wf-h2 {
  font-size: clamp(38px, 3.2vw, 54px) !important;
  margin-bottom: 22px !important;
}
.ov-wf-desc {
  font-size: 17px !important;
  max-width: 480px;
  margin-bottom: 32px !important;
}
.ov-wf-bullets { gap: 16px !important; margin-bottom: 40px !important; }
.ov-wf-bullets li { font-size: 15px !important; }

.ov-launch-mock, .ov-conn-workspace, .ov-an-mock { font-size: 1.15em; }
.ov-launch-mock {
  padding: 40px 40px !important;
  gap: 4px;
  min-height: 66vh !important;
  justify-content: center !important;
}
.ov-lm-step { padding: 20px 0 !important; }
.ov-lm-connector { height: 28px !important; }
.ov-an-kv { font-size: 28px !important; }
.ov-an-kpi { padding: 18px 0 !important; }
.ov-an-table-hdr, .ov-an-row { padding-top: 18px !important; padding-bottom: 18px !important; }
.ov-an-mock { min-height: 66vh !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
.ov-conn-cards, .ov-conn-ws-head { padding: 18px 22px !important; }
.ov-conn-name { font-size: 16px !important; }
.ov-conn-sub { font-size: 13px !important; }
.ov-conn-workspace { min-height: 66vh !important; justify-content: center !important; gap: 22px !important; }
.ov-conn-stat-val { font-size: 22px !important; }

/* Build / Publish / Scale mocks get a similar visual-weight boost to
   their siblings above, but a shorter min-height — their sections are
   already run tighter (see #ov-build/#ov-publish/#ov-scale) so forcing
   the same 66vh here would just recreate the empty space that reduction
   was meant to remove. */
.ov-build-mock, .ov-pub-mock, .ov-scale-mock { font-size: 1.15em; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; }
.ov-scale-mock { gap: 16px; }

@media (max-width: 900px) {
  .ov-wf-h2 { font-size: 30px !important; }
  .ov-launch-mock, .ov-conn-workspace, .ov-an-mock { font-size: 1em; min-height: auto !important; }
  .ov-launch-mock { padding: 22px 24px !important; }
  .ov-build-mock, .ov-pub-mock, .ov-scale-mock { font-size: 1em; min-height: auto !important; }
}

/* ── Larger ad-wall cards — the wall should visually dominate the
   showcase screen, not sit as a strip of small tiles. ── */
.ov-wall-card { width: 340px !important; height: 220px !important; }
@media (max-width: 900px) {
  .ov-wall-card { width: 260px !important; height: 168px !important; }
}
@media (max-width: 640px) {
  .ov-wall-card { width: 190px !important; height: 124px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v4 — Final polish: remove section dividers, grid sparks,
   replay-on-reenter for existing motion, no hero glow.
   ══════════════════════════════════════════════════════════════════ */

/* One continuous canvas — no visible seam between sections. These were
   the only four landing sections still drawing their own border as a
   separator (the footer's own top border is left alone: that's a real
   boundary between page content and the footer, not a divider between
   two "screens" of the same story). */
.ov-wf-section, .ov-showcase-section, .ov-brands-section, .ov-social-proof {
  border-bottom: none !important;
}

/* Hero glow — fully neutralized, not just hidden, so there's no residual
   paint/compositing cost from a display:none radial-gradient layer. */
.lp-hero-glow { display: none !important; background: none !important; }

/* ── Grid sparks — ambient energy traces along the background grid ──
   Spawned/removed by the JS in the script block near ovInitCountUp.
   transform + opacity only (no layout properties), small (4px) dot with
   a soft core-only glow, extremely slow (5s–8s, set per-spark via inline
   animation-duration in JS — a slow pulse travelling through the grid,
   not a moving particle), at most 2 concurrent — occasional, calm,
   technical, never neon. */
.ov-grid-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px; /* center on its left/top coordinate */
  border-radius: 50%;
  background: var(--green, #B7FF2A);
  box-shadow: 0 0 4px 1px rgba(182,255,59,.6), 0 0 9px 2px rgba(182,255,59,.16);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: transform, opacity;
}
.ov-grid-spark-h { animation: ovSparkTravelH 6.5s cubic-bezier(.4,0,.2,1) forwards; }
.ov-grid-spark-v { animation: ovSparkTravelV 6.5s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes ovSparkTravelH {
  0%   { opacity: 0;  transform: translateX(0) scale(.6); }
  14%  { opacity: 1;  transform: translateX(calc(var(--spark-dist) * .1)) scale(1); }
  80%  { opacity: .55; }
  100% { opacity: 0;  transform: translateX(var(--spark-dist)) scale(.7); }
}
@keyframes ovSparkTravelV {
  0%   { opacity: 0;  transform: translateY(0) scale(.6); }
  14%  { opacity: 1;  transform: translateY(calc(var(--spark-dist) * .1)) scale(1); }
  80%  { opacity: .55; }
  100% { opacity: 0;  transform: translateY(var(--spark-dist)) scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .ov-grid-spark { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v5 — Final polish pass 2
   ══════════════════════════════════════════════════════════════════ */

/* ── Every Brand: platform-color accents ─────────────────────────
   Cards stay dark; the Google/Meta/TikTok palette shows up only as a
   small icon tint, a hairline border, and a hover glow — never a full
   recolor of the card itself. */
.ov-brand-card.ov-brand-google .ov-brand-ico { background: rgba(251,188,5,.09); color: rgba(251,188,5,.9); }
.ov-brand-card.ov-brand-google { border-color: rgba(251,188,5,.13); }
.ov-brand-card.ov-brand-google:hover { border-color: rgba(251,188,5,.4); background: rgba(255,255,255,.045); }

.ov-brand-card.ov-brand-meta .ov-brand-ico { background: rgba(8,102,255,.1); color: rgba(64,140,255,.95); }
.ov-brand-card.ov-brand-meta { border-color: rgba(8,102,255,.14); }
.ov-brand-card.ov-brand-meta:hover { border-color: rgba(8,102,255,.42); background: rgba(255,255,255,.045); }

.ov-brand-card.ov-brand-tiktok .ov-brand-ico { background: rgba(238,29,82,.1); color: rgba(238,60,100,.95); }
.ov-brand-card.ov-brand-tiktok { border-color: rgba(238,29,82,.13); }
.ov-brand-card.ov-brand-tiktok:hover { border-color: rgba(238,29,82,.4); background: rgba(255,255,255,.045); }

/* ── Trusted section: abstract network visual, replaces the decorative
   per-stat glow. Thin lines + small dots, integrated with the global
   grid rather than a literal stock world map. */
.ov-sp-glow::before { content: none !important; animation: none !important; }

.ov-sp-network { width: 100%; max-width: 900px; margin: 0 auto 28px; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.ov-sp-network.ov-vis { opacity: .85; transform: translateY(0); }
.ov-sp-network svg { width: 100%; height: auto; display: block; }
.ov-sp-net-line { stroke: rgba(255,255,255,.09); stroke-width: 1; }
.ov-sp-net-line-dash { stroke: rgba(255,255,255,.055); stroke-dasharray: 3 6; }
.ov-sp-net-node { fill: rgba(255,255,255,.4); }
.ov-sp-net-node-pulse {
  fill: var(--green);
  transform-box: fill-box;
  transform-origin: center;
  animation: ovSpNodePulse 4.5s ease-in-out infinite;
}
@keyframes ovSpNodePulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.8); }
}
@media (prefers-reduced-motion: reduce) {
  .ov-sp-net-node-pulse { animation: none !important; opacity: .7; }
}
@media (max-width: 640px) {
  .ov-sp-network { margin-bottom: 20px; }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v6 — Final polish pass 3
   ══════════════════════════════════════════════════════════════════ */

/* ── Trusted section: heading promoted to the same scale as every other
   major section headline (reuses .ov-section-h directly, no separate
   font-size rule needed), stats as supporting content, large wireframe
   globe as the section's main visual, in that order. */
.ov-sp-stats { margin-top: 44px; }

/* ── Rotating world globe — real continent silhouettes rendered on canvas
   (see the "Rotating world globe" IIFE in the script block: orthographic
   projection + slow auto-rotation, real Natural-Earth-derived coastline
   data). This wrapper only handles the reveal transition and responsive
   sizing; all drawing happens in JS. */
.ov-globe {
  width: 100%;
  max-width: 620px;
  margin: 56px auto 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.ov-globe.ov-vis { opacity: 1; transform: translateY(0); }
#ov-globe-canvas { display: block; max-width: 100%; cursor: grab; }
@media (max-width: 640px) {
  .ov-globe { max-width: 320px; margin-top: 40px; }
}

/* Real-asset ad wall: platform-specific card sizing only. The old
   fabricated-ad-card renderer (.adv-* generated SVG creatives) is
   removed — ovRenderAdWall() now renders a real asset (or a clean
   labeled placeholder) into a plain .ov-wall-card, never invented ad
   content, so no per-platform inner-content styling is needed anymore. */
.ov-wall-card.ov-wall-card-tiktok {
  width: 200px !important;
  height: 356px !important;
  background: #000;
}
.ov-wall-card.ov-wall-card-pinterest {
  width: 210px !important;
  height: 330px !important;
  background: #0c0c10;
}
/* Google card is taller than the base tile — it needs room for the
   search bar + Ad meta block above the creative while still keeping
   the image the dominant visual element (per-image "own Google ad
   card" pass; each card duplicated per creative in the marquee, not
   one global search header). */
.ov-wall-card.ov-wall-card-google {
  width: 230px !important;
  height: 300px !important;
}
/* Meta card matches Google's footprint (search bar/meta block vs.
   avatar/text header, both feeding into a dominant image, plus Meta's
   own CTA action bar) so the two platforms sit at a consistent visual
   scale when switching tabs. */
.ov-wall-card.ov-wall-card-meta {
  width: 230px !important;
  height: 300px !important;
}

@media (max-width: 900px) {
  .ov-wall-card.ov-wall-card-tiktok { width: 158px !important; height: 281px !important; }
  .ov-wall-card.ov-wall-card-pinterest { width: 165px !important; height: 260px !important; }
  .ov-wall-card.ov-wall-card-google { width: 190px !important; height: 252px !important; }
  .ov-wall-card.ov-wall-card-meta { width: 190px !important; height: 252px !important; }
}
@media (max-width: 640px) {
  .ov-wall-card.ov-wall-card-tiktok { width: 128px !important; height: 227px !important; }
  .ov-wall-card.ov-wall-card-pinterest { width: 132px !important; height: 208px !important; }
  .ov-wall-card.ov-wall-card-google { width: 155px !important; height: 206px !important; }
  .ov-wall-card.ov-wall-card-meta { width: 155px !important; height: 206px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGN v10 — Autopilot workflow card: the timeline previously sat
   flush against the card's left edge, stretched to the full width of
   the (very wide, 1.15fr) visual column with nothing to its right —
   a large dead zone on wide screens. Merely centering a shrink-wrapped
   text column left the same problem in miniature (a narrow strip of
   text floating in empty space either side). Instead each step becomes
   a bordered row panel — reusing the exact neutral background/border
   values already used by .ov-launch-mock itself and by .ov-conn-card
   in the Business section below, so the panel genuinely fills a
   deliberate width instead of just adding invisible margin. Only
   layout changes here: no step text, no text/icon colors, no
   typography, no animation timing touched — the new background/border
   is copied verbatim from components already on this exact page.
   ══════════════════════════════════════════════════════════════════ */
.ov-lm-timeline {
  /* Sized relative to its own parent (never a fixed px that could exceed
     the card's actual available space) and capped so it doesn't stretch
     edge-to-edge on very wide cards. */
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.ov-lm-step {
  width: 100%;
  gap: 32px !important;
  padding: 18px 22px !important;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  box-sizing: border-box;
}
.ov-lm-num { width: 38px !important; height: 38px !important; font-size: 13px !important; }
.ov-lm-connector { margin-left: 41px !important; }
@media (max-width: 900px) {
  .ov-lm-step { gap: 18px !important; padding: 14px 16px !important; }
  .ov-lm-num { width: 30px !important; height: 30px !important; }
  .ov-lm-connector { margin-left: 31px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   AD EDITING WORKSPACE — the three-column conversational workspace
   (app.html#page-ad-workspace) that opens after a campaign package is
   generated. Follows the same light/body.dark-mode override convention
   as every other app.html component in this file (.orv-ai-*, .cr2-box)
   rather than a separate theme system — reuses --green/--border/
   --surface/--charcoal/--muted/--t, no new tokens invented.
   ══════════════════════════════════════════════════════════════════ */

#page-ad-workspace {
  background-image:
    linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 56px 56px;
}
body.dark-mode #page-ad-workspace {
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
}

/* .page{min-height:100%} (base rule) is a floor, not a ceiling -- with
   only that, a tall chat conversation grows the whole page instead of
   scrolling internally, and .mc (height:100vh;overflow-y:auto) ends up
   scrolling chat+preview+details as one blob. Pinning a firm height
   down the chain (#page-ad-workspace -> .aw-shell -> .aw-col) lets each
   column's own overflow:auto actually activate instead. */
#page-ad-workspace.active { height: 100%; overflow: hidden; }
.aw-shell { display: grid; grid-template-columns: 340px 1fr 320px; height: 100%; min-height: 0; align-items: stretch; }
.aw-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.aw-col-chat { border-right: 1px solid var(--border); }
.aw-col-details { border-left: 1px solid var(--border); }
body.dark-mode .aw-col-chat, body.dark-mode .aw-col-details { border-color: rgba(255,255,255,.08); }

/* ── Chat (left) ─────────────────────────────────────────────────── */
.aw-chat-head { flex-shrink: 0; padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
body.dark-mode .aw-chat-head { border-color: rgba(255,255,255,.08); }
.aw-chat-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--charcoal); }
body.dark-mode .aw-chat-title { color: rgba(255,255,255,.9); }
.aw-chat-status { font-size: 12px; color: var(--green); margin-top: 3px; font-weight: 600; }

.aw-chat-feed { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--b2) transparent; min-height: 0; }

.aw-msg { display: flex; flex-direction: column; gap: 4px; }
.aw-msg-user .aw-msg-bubble { align-self: flex-end; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--charcoal); border-radius: 12px 12px 3px 12px; }
body.dark-mode .aw-msg-user .aw-msg-bubble { color: rgba(255,255,255,.92); }
.aw-msg-ai .aw-msg-bubble { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 3px 12px 12px 12px; color: var(--charcoal); }
body.dark-mode .aw-msg-ai .aw-msg-bubble { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.aw-msg-bubble { padding: 9px 13px; font-size: 13px; line-height: 1.55; max-width: 90%; white-space: pre-wrap; }

.aw-chat-inputrow { flex-shrink: 0; display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); }
body.dark-mode .aw-chat-inputrow { border-color: rgba(255,255,255,.08); }
.aw-chat-input { flex: 1; font-size: 13px; padding: 9px 13px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--charcoal); outline: none; transition: border-color var(--t); }
.aw-chat-input:focus { border-color: var(--green); }
body.dark-mode .aw-chat-input { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.92); }
.aw-chat-send { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--green); color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity var(--t), transform var(--t); }
.aw-chat-send:hover { opacity: .88; transform: scale(1.03); }
.aw-chat-send:disabled { opacity: .5; cursor: default; transform: none; }

/* ── Preview (center) ────────────────────────────────────────────── */
.aw-preview-toolbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px 0; }
.aw-preview-platform { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
body.dark-mode .aw-preview-platform { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }
.aw-preview-platform[data-plat="google"] { color: #b8860b; border-color: rgba(251,188,5,.4); }
.aw-preview-platform[data-plat="meta"]   { color: #0866FF; border-color: rgba(8,102,255,.35); }
.aw-preview-platform[data-plat="tiktok"] { color: #EE1D52; border-color: rgba(238,29,82,.35); }
/* Labeled placement/preview-format switcher — replaces the old anonymous
   concept-variant dots. Same creative, different layout; switching is a
   pure client-side re-layout (see _awSwitchPlacement), never a network
   call or credit charge. */
.aw-placement-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
body.dark-mode .aw-placement-tabs { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.aw-placement-tab { font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; border: none; border-radius: 6px; padding: 5px 11px; cursor: pointer; transition: background var(--t), color var(--t); }
body.dark-mode .aw-placement-tab { color: rgba(255,255,255,.5); }
.aw-placement-tab:hover { color: var(--charcoal); }
body.dark-mode .aw-placement-tab:hover { color: rgba(255,255,255,.8); }
.aw-placement-tab-active { background: var(--green); color: #000 !important; }

.aw-preview-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px; opacity: 0; transform: translateY(6px) scale(.99); transition: opacity .32s ease, transform .32s ease; }
.aw-preview-stage.aw-stage-in { opacity: 1; transform: translateY(0) scale(1); }
.aw-preview-stage.aw-stage-out { opacity: 0; transform: translateY(-4px) scale(.99); transition: opacity .2s ease, transform .2s ease; }

/* The sizer is the persistent element whose width/height animate on
   placement switch (a real resize/morph, not just a crossfade) — its
   inner .aw-pv card always fills it exactly. Target sizes come from the
   AW_PLACEMENT_SIZE table in JS. ~380ms, matching the "300-500ms,
   restrained" ask alongside the stage's own opacity fade. */
.aw-pv-sizer { position: relative; max-width: 100%; border-radius: 16px; overflow: hidden; transition: width .38s cubic-bezier(.4,0,.2,1), height .38s cubic-bezier(.4,0,.2,1); }
.aw-pv { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; box-sizing: border-box; }

/* Google — search-ad style, text only (real Google Search ads have no image) */
.aw-pv-google { background: var(--surface); border: 1px solid var(--border); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
body.dark-mode .aw-pv-google { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.aw-pv-g-top { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 6px; }
.aw-pv-g-ad { border: 1px solid var(--muted); border-radius: 3px; padding: 0 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.aw-pv-g-dot { color: var(--muted); }
.aw-pv-g-url { color: var(--charcoal); }
body.dark-mode .aw-pv-g-url { color: rgba(255,255,255,.7); }
.aw-pv-g-headline { font-size: 19px; font-weight: 500; color: #1a0dab; line-height: 1.3; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.dark-mode .aw-pv-g-headline { color: #8ab4f8; }
.aw-pv-g-desc { font-size: 13.5px; color: var(--charcoal); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.dark-mode .aw-pv-g-desc { color: rgba(255,255,255,.68); }

/* Google — YouTube (video-thumbnail style) */
.aw-pv-g-yt { background: #0b0b0b; display: flex; flex-direction: column; }
.aw-pv-g-yt-visual { position: relative; flex: 1; min-height: 0; background: var(--bg2); }
.aw-pv-g-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1; }
.aw-pv-g-yt-badge { position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 4px; z-index: 1; }
.aw-pv-g-yt-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #181818; }
.aw-pv-g-yt-title { font-size: 12.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-pv-g-yt-cta { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 5px 11px; border-radius: 4px; }

/* Google — Display (banner-style, image-led) */
.aw-pv-g-disp { background: var(--bg2); }
.aw-pv-g-disp-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }
.aw-pv-g-disp-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; }
.aw-pv-g-disp-ad { display: inline-block; font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 4px; margin-bottom: 6px; }
.aw-pv-g-disp-headline { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-pv-g-disp-cta { font-size: 11.5px; font-weight: 700; color: #000; background: var(--green); padding: 6px 13px; border-radius: 6px; border: none; }

/* Google — Shopping (product tile) */
.aw-pv-g-shop { background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
body.dark-mode .aw-pv-g-shop { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.aw-pv-g-shop-visual { position: relative; flex: 1; min-height: 0; background: var(--bg2); }
.aw-pv-g-shop-body { flex-shrink: 0; padding: 10px 12px 12px; }
.aw-pv-g-shop-title { font-size: 12.5px; font-weight: 600; color: var(--charcoal); line-height: 1.35; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.dark-mode .aw-pv-g-shop-title { color: rgba(255,255,255,.92); }
.aw-pv-g-shop-store { font-size: 10.5px; color: var(--muted); margin-bottom: 8px; }
.aw-pv-g-shop-cta { display: inline-block; font-size: 11px; font-weight: 700; color: #000; background: var(--green); padding: 5px 11px; border-radius: 6px; }

/* Meta — social feed card, dominant visual */
.aw-pv-meta { background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
body.dark-mode .aw-pv-meta { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.aw-pv-m-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; }
.aw-pv-m-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #0866FF); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #000; flex-shrink: 0; }
.aw-pv-m-name { font-size: 13px; font-weight: 600; color: var(--charcoal); }
body.dark-mode .aw-pv-m-name { color: rgba(255,255,255,.92); }
.aw-pv-m-sponsored { font-size: 11px; color: var(--muted); }
.aw-pv-m-visual { position: relative; width: 100%; aspect-ratio: 1/1; background: var(--bg2); overflow: hidden; flex-shrink: 0; }
.aw-pv-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease, transform .4s ease; }
.aw-pv-img-empty { background: linear-gradient(135deg, var(--bg2), var(--bg3)); animation: awShimmer 1.8s ease-in-out infinite; }
body.dark-mode .aw-pv-img-empty { background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.06)); }
@keyframes awShimmer { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.aw-pv-m-body { padding: 12px 14px 16px; flex-shrink: 0; }
.aw-pv-m-primary { font-size: 12.5px; color: var(--charcoal); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.dark-mode .aw-pv-m-primary { color: rgba(255,255,255,.7); }
.aw-pv-m-headline { font-size: 14.5px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.dark-mode .aw-pv-m-headline { color: rgba(255,255,255,.92); }
.aw-pv-m-cta { font-size: 12.5px; font-weight: 700; color: #000; background: var(--green); padding: 7px 14px; border-radius: 8px; border: none; cursor: default; }

/* Meta — Story / Reels (vertical, full-bleed image, overlay chrome) */
.aw-pv-m-vert { background: #000; }
.aw-pv-m-vert-bar { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.aw-pv-m-vert-bar span { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.9); }
.aw-pv-m-vert-bar span:last-child { background: rgba(255,255,255,.3); }
.aw-pv-m-vert-head { position: absolute; top: 16px; left: 10px; right: 10px; display: flex; align-items: center; gap: 7px; z-index: 2; }
.aw-pv-m-avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.aw-pv-m-vert-name { font-size: 11.5px; font-weight: 600; color: #fff; }
.aw-pv-m-vert-spon { font-size: 10px; color: rgba(255,255,255,.65); }
.aw-pv-m-vert-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.85) 100%); }
.aw-pv-m-vert-foot { position: absolute; left: 12px; right: 40px; bottom: 14px; z-index: 1; }
.aw-pv-m-vert-headline { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.28; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-pv-m-vert-cta { font-size: 11px; font-weight: 700; color: #000; background: var(--green); padding: 6px 12px; border-radius: 6px; border: none; }
.aw-pv-m-reels .aw-pv-m-vert-sidebar { position: absolute; right: 8px; bottom: 60px; display: flex; flex-direction: column; gap: 12px; z-index: 1; }
.aw-pv-m-vert-ico { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }

/* TikTok — vertical, full-bleed */
.aw-pv-tiktok { background: #000; }
.aw-pv-t-visual { position: absolute; inset: 0; }
.aw-pv-t-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.9) 100%); }
.aw-pv-t-foot { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 1; }
.aw-pv-t-hook { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-pv-t-desc { font-size: 11.5px; color: rgba(255,255,255,.72); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.aw-pv-t-cta { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; border: 1.5px solid #fff; padding: 6px 15px; border-radius: 22px; background: transparent; cursor: default; }
.aw-pv-t-progress { position: absolute; top: 8px; left: 10px; right: 10px; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; z-index: 2; overflow: hidden; }
.aw-pv-t-progress span { display: block; height: 100%; width: 38%; background: #fff; border-radius: 2px; }
.aw-pv-t-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; opacity: .9; }

/* Wipe / creative-swap effect — a soft light band sweeps across the
   image, old opacity fades under it, new image settles in with a
   gentle scale-down. No flash, no shake, no glow, per spec. */
.aw-wipe { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.aw-wipe::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); }
.aw-wipe.aw-wipe-play::before { animation: awWipeSweep 1.3s cubic-bezier(.4,0,.2,1) 1; }
@keyframes awWipeSweep { from { left: -40%; } to { left: 100%; } }
.aw-img-settle { animation: awImgSettle .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes awImgSettle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

/* Typing cursor, used briefly by the delete/retype text-swap animation */
.aw-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; background: var(--green); vertical-align: text-bottom; animation: awCursorBlink .8s steps(1) infinite; }
@keyframes awCursorBlink { 50% { opacity: 0; } }

/* ── Details (right) ─────────────────────────────────────────────── */
.aw-details-head { flex-shrink: 0; padding: 20px 20px 14px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
body.dark-mode .aw-details-head { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.aw-details-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 20px 20px; transition: opacity .2s ease; scrollbar-width: thin; scrollbar-color: var(--b2) transparent; min-height: 0; }
.aw-details-body.aw-details-out { opacity: 0; }

.aw-field { padding: 12px 0; border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease, background-color .5s ease; border-radius: 6px; }
body.dark-mode .aw-field { border-color: rgba(255,255,255,.06); }
.aw-field.aw-field-in { opacity: 1; transform: translateY(0); }
.aw-field:last-child { border-bottom: none; }
.aw-field-label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.aw-field-val { font-size: 13px; color: var(--charcoal); line-height: 1.5; }
body.dark-mode .aw-field-val { color: rgba(255,255,255,.85); }
.aw-field-list { color: var(--muted); }
.aw-field-more { color: var(--green); font-weight: 600; }
.aw-field-pulse { animation: awFieldPulse .5s ease; }
@keyframes awFieldPulse { 0%, 100% { background: transparent; } 35% { background: color-mix(in srgb, var(--green) 8%, transparent); } }

/* ── Mobile: stacked tabs (Chat / Preview / Details), Preview default ── */
.aw-mobile-tabs { display: none; }
@media (max-width: 900px) {
  .aw-shell { display: block; }
  .aw-col { display: none; min-height: calc(100vh - 120px); }
  .aw-col.aw-col-mactive { display: flex; }
  .aw-col-chat, .aw-col-details { border: none; }
  .aw-mobile-tabs { display: flex; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
  body.dark-mode .aw-mobile-tabs { border-color: rgba(255,255,255,.08); }
  .aw-mtab { flex: 1; padding: 12px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; }
  .aw-mtab-active { color: var(--green); border-bottom-color: var(--green); }
}

@media (prefers-reduced-motion: reduce) {
  .aw-preview-stage, .aw-pv-sizer, .aw-field, .aw-pv-img, .aw-wipe::before, .aw-img-settle, .aw-typing::after, .aw-field-pulse {
    transition: none !important; animation: none !important;
  }
  .aw-preview-stage, .aw-field { opacity: 1 !important; transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   LAUNCH WORKSPACE — campaign pre-flight + deployment workspace
   (Launch Workspace redesign). Both the launch queue
   (#launchSelectView) and the two-column workspace
   (#launchControlView) now follow the app's real light/dark theme
   (body.dark-mode) the same way Create/Research/Autopilot/Business do
   — an earlier pass forced the workspace permanently dark regardless
   of theme (the exact same bug already found and fixed on Research),
   confirmed via a live screenshot on the app's actual default (light)
   theme before this rewrite. The deployment overlay/result panel
   (.lc-deploy- and .lc-result- classes, further below) intentionally
   stays a dark modal — a transient, reparented-to-body overlay is a
   legitimate place for a focused "cockpit" moment, not page chrome
   that needs to track the theme toggle. ════════════════════════════ */

/* ── Launch queue (campaign selection) — a compact list grouped by real
   advertising platform, not a mixed asset gallery (Launch UX Structure
   pass). Reuses .camp-hub for the shared max-width/padding/theme every
   Campaigns-family page already has.
   Title is genuinely centered — text-align:center on its own row, the
   same technique Create's .cr2-hero and Research's .rsc-page-hdr use
   (not just "sitting inside an already-centered column"), same 28px/
   800/-.02em scale as .cr2-h1/.rsc-page-h1. No subtitle, no eyebrow, no
   competing CTA sits in this header — Launch's title alone is the page
   context, and campaign creation lives in Create, reached via the
   existing sidebar nav item, not a button here. */
.lq-hub { display: flex; flex-direction: column; gap: 24px; }
.lq-hdr { text-align: center; }
.lq-hdr-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.22; color: var(--charcoal); margin: 0; }

/* Ad Library search + filters — a real, live client-side filter over the
   real pending-campaign list (see _launchApplyFilters). Pills use the
   same selected/unselected language as every other pill control in this
   design system (Electric Lime fill when active, quiet neutral
   otherwise) and real text + aria-pressed, never color alone.

   Filter/Navigation Stability pass — BUG FIX: this used to be ONE
   flex-wrap row containing the platform pills, status pills, a
   flex:1-elastic search box, and a Clear-filters button that toggled
   display:none/'' depending on whether any filter was active. Switching
   platforms also flips that "active" state, which changed the row's
   total content width, and the search box — the only flex:1 (elastic)
   item — silently absorbed the difference, visibly resizing between
   platforms. Fixed by splitting into two independent rows (platform+
   search / status+clear) so nothing on one row can ever affect the
   other, and by giving the search box a genuinely fixed width instead
   of flex:1 — see .lq-search-wrap below. */
.lq-filters { display: flex; flex-direction: column; gap: 12px; }
.lq-filters-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lq-search-wrap { position: relative; flex: 0 0 240px; width: 240px; }
.lq-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.lq-search-input {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--charcoal);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px 9px 34px; transition: border-color .15s ease;
  box-sizing: border-box;
}
.lq-search-input::placeholder { color: var(--muted); }
.lq-search-input:focus { outline: none; border-color: color-mix(in srgb, var(--green) 45%, var(--border)); }
.lq-pillgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lq-pill {
  font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 13px; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lq-pill:hover { color: var(--charcoal); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
.lq-pill-active, .lq-pill-active:hover { color: var(--green-deep); background: var(--green); border-color: var(--green); }
body.dark-mode .lq-pill-active, body.dark-mode .lq-pill-active:hover { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
/* Platform pills — real provider icon + label. UI Cleanup pass: the
   previous per-provider "2px underline" (an inset box-shadow simulating
   a colored bottom border) is removed entirely per explicit direction —
   never replaced with another line/border/glow/gradient. Provider
   identity is already carried by each pill's own real brand-colored
   icon badge (_PLAT_ICONS, above) regardless of selection state; the
   selected pill itself uses the same restrained ORIVEN-green
   background/border every other active pill in this app already uses
   (.lq-pill-active, above) — text/icon contrast, not a colored line. */
.lq-pill-plat { display: inline-flex; align-items: center; gap: 6px; }
.lq-pill-plat svg { flex-shrink: 0; }
.lq-clear-filters {
  font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted);
  background: none; border: none; padding: 7px 4px; transition: color .15s ease;
}
.lq-clear-filters:hover { color: var(--green-text); }
body.dark-mode .lq-clear-filters:hover { color: var(--green); }

.lq-groups { display: flex; flex-direction: column; gap: 32px; }

/* Launch Visual Grid pass — real campaign preview cards, browsable at a
   glance, replacing the previous compact list row. Final Visual
   Correction pass — the founder's reviewed screenshot showed 5-6 cramped
   cards per row from the old auto-fill/minmax(160px) rule; an explicit
   4 columns at wide desktop (the gallery's content column is capped at
   --orv-content-maxw/1040px, so cards go from ~160px to ~235px, a real
   size increase) stepping down to 3/2/1 as the viewport narrows (see the
   responsive block below) replaces it. */
.lq-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lq-card {
  display: flex; flex-direction: column; text-align: left; width: 100%;
  font-family: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: border-color .15s ease, transform .15s ease;
  position: relative;
}
.lq-card:hover { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); transform: translateY(-2px); }
.lq-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.lq-card-media { position: relative; aspect-ratio: 4/3; background: var(--sf2, var(--bg2)); }
.lq-card-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.lq-card-thumb-empty { display: flex; align-items: center; justify-content: center; }
.lq-card-thumb-empty svg { width: 22px; height: 22px; }
.lq-card-plat-badge {
  position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.lq-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.lq-name { font-size: 13.5px; font-weight: 700; color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.lq-meta-dot { opacity: .5; }
.lq-readiness { align-self: flex-start; flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.lq-readiness-ready { color: var(--green-text); background: color-mix(in srgb, var(--green) 16%, transparent); }
body.dark-mode .lq-readiness-ready { color: var(--green); }
.lq-readiness-warning { color: #92400E; background: rgba(245,166,35,.15); }
body.dark-mode .lq-readiness-warning { color: #F5A623; }
.lq-readiness-blocked { color: #b91c1c; background: rgba(217,83,79,.14); }
body.dark-mode .lq-readiness-blocked { color: #f87171; }
/* Live (Campaigns/Launch Final Polish) — deliberately NOT green ("ready"
   already owns that color and means something different: config-complete,
   not-yet-deployed). Live is its own real, distinct lifecycle state, so it
   gets its own distinct, calm color rather than borrowing ready's. */
.lq-readiness-live { color: #1d4ed8; background: rgba(37,99,235,.12); }
body.dark-mode .lq-readiness-live { color: #60a5fa; }
/* .lq-review removed (Launch Polish pass) — the row's inline "Review →"
   shortcut into the old detailed workspace was removed per explicit
   direction; selection is now the row's only interaction. */

/* Launch Control Room pass — restrained, accessible selected state: a
   real left accent bar (same mechanic as .orv-ni.orv-active::before in
   the nav rail) plus a tinted background and green border, never just a
   subtle color shift alone. aria-pressed (set in _renderLaunchCard)
   carries this non-visually too. */
.lq-card-selected {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 6%, var(--surface));
}
body.dark-mode .lq-card-selected { background: color-mix(in srgb, var(--green) 10%, transparent); }
.lq-card-selected::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 2px 2px 0 0; background: var(--green); z-index: 1;
}

/* ── Launch home workspace row — CAMPAIGNS (browsable queue) +
   LAUNCH CONTROL (real-state readiness for whichever campaign is
   currently selected/previewed). Not a literal 50/50 split — campaigns
   gets more raw width to browse comfortably, control stays narrower but
   sticky so it reads as the persistent operational surface, mirroring
   the exact same sticky mechanic #launchControlView's own .lw-right
   already uses. Stacks at <=1280px (see media query below), matching
   Create's own two-column->stacked breakpoint convention. */
/* Launch Polish pass — an extra 16px on top of .lq-hub's own 24px column
   gap (48px between hdr/filters gets 40px between filters/workspace),
   so the transition from NAVIGATION/FILTERING into WORKSPACE/CAMPAIGN
   INSPECTION reads as a deliberate zone break, not just "the same
   rhythm repeated once more" — restrained, not excessive; verified this
   still leaves .mc with real headroom at 1440x900 before adding it. */
/* Gallery + Modal pass — was a permanent two-column split (chart... no,
   campaigns-col capped at 620px + a sticky 400px control-col claiming
   ~40% of the width even with nothing selected). Now one full-width
   gallery; Launch Control lives in a modal (see .lq-modal-overlay below),
   opened only by a real card click. */
.lq-workspace-row { width: 100%; margin-top: 16px; }
.lq-campaigns-col-full { max-width: none; width: 100%; }

.lqc-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.lqc-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
body.dark-mode .lqc-eyebrow { color: var(--green); }

.lqc-identity { display: flex; align-items: center; gap: 12px; }
.lqc-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.lqc-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--sf2, var(--bg2)); color: var(--muted); }
.lqc-identity-main { min-width: 0; }
.lqc-name { font-size: 16px; font-weight: 800; color: var(--charcoal); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lqc-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Aggregate state banner — same real ready/warning/blocked vocabulary
   and colors as .lq-readiness- and .lw-launch-state- elsewhere on this
   page, just given more room to show its real reason (spec: "make READY
   WITH WARNINGS useful"). "loading" is an honest transient state while
   the real platform check is still in flight, never a fake result. */
.lqc-state { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.lqc-state-label { font-size: 13px; font-weight: 800; letter-spacing: -.005em; }
.lqc-state-sub { font-size: 11.5px; color: var(--muted); }
.lqc-state-ready { background: color-mix(in srgb, var(--green) 12%, transparent); }
.lqc-state-ready .lqc-state-label { color: var(--green-text); }
body.dark-mode .lqc-state-ready .lqc-state-label { color: var(--green); }
.lqc-state-warning { background: rgba(245,166,35,.12); }
.lqc-state-warning .lqc-state-label { color: #92400E; }
body.dark-mode .lqc-state-warning .lqc-state-label { color: #F5A623; }
.lqc-state-blocked { background: rgba(217,83,79,.12); }
.lqc-state-blocked .lqc-state-label { color: #b91c1c; }
body.dark-mode .lqc-state-blocked .lqc-state-label { color: #f87171; }
.lqc-state-loading { background: var(--sf2, var(--bg2)); }
.lqc-state-loading .lqc-state-label { color: var(--muted); font-weight: 700; }
.lqc-state-live { background: rgba(37,99,235,.10); }
.lqc-state-live .lqc-state-label { color: #1d4ed8; }
body.dark-mode .lqc-state-live .lqc-state-label { color: #60a5fa; }

/* Live campaign real deployed metadata — plain label/value rows, no
   metric/KPI styling (this is lifecycle data, not performance data). */
.lqc-live-meta { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--sf2, var(--bg2)); }
.lqc-live-meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.lqc-live-meta-row span:first-child { color: var(--muted); }
.lqc-live-meta-row span:last-child { color: var(--charcoal); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dark-mode .lqc-live-meta-row span:last-child { color: #fff; }

.lqc-provider-id { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--charcoal); }
.lqc-provider-id svg { flex-shrink: 0; }

.lqc-empty-sub { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.lqc-action-row { margin-top: 2px; display: flex; flex-direction: column; gap: 8px; }
.lqc-action-btn {
  width: 100%; font-family: inherit; cursor: pointer; font-size: 13.5px; font-weight: 700;
  color: #0A0A0A; background: var(--green); border: none; border-radius: 100px; padding: 12px 20px;
  transition: opacity .15s ease;
}
.lqc-action-btn:hover { opacity: .88; }
.lqc-action-btn:disabled { opacity: .6; cursor: default; }
/* Trust pass — a genuinely-live campaign's secondary action ("View
   activity") next to the real Pause/Resume button; quiet outline, not a
   second equally-loud green fill, so Pause/Resume stays the one obvious
   primary action. */
.lqc-action-btn:not(.lqc-action-btn-live) { color: var(--charcoal); background: none; border: 1px solid var(--border); }
.lqc-action-btn:not(.lqc-action-btn-live):hover { opacity: 1; border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.lqc-live-noaction { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Launch Control modal — centered, theme-reactive (var(--surface)/
   var(--border), matching .lqc-card's own existing tokens — deliberately
   NOT the hardcoded-always-dark .adm-modal family, since mixing a
   theme-reactive card into an always-dark shell is exactly the light-
   card-in-dark-modal bug already found and fixed once this session). */
.lq-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lq-modal {
  position: relative;
  width: 100%; max-width: 480px; max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
body.dark-mode .lq-modal { box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.lq-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--bg2, rgba(0,0,0,.04)); border: none; border-radius: 50%;
  color: var(--muted); cursor: pointer; transition: color .12s, background .12s;
}
.lq-modal-close:hover { color: var(--charcoal); background: var(--bg3, rgba(0,0,0,.08)); }
.lq-modal-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.lq-modal-body { padding: 20px; }
.lq-modal-body .lqc-card { border: none; padding: 0; }
@media (max-width: 640px) {
  .lq-modal-overlay { padding: 0; align-items: flex-end; }
  .lq-modal { max-width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lq-modal-overlay { animation: lqModalFadeIn .15s ease; }
  .lq-modal { animation: lqModalRiseIn .18s cubic-bezier(.22,.61,.36,1); }
}
@keyframes lqModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lqModalRiseIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Launch Workspace (two-column) ──────────────────────────────── */
.lw-wrap { max-width: var(--camp-content-maxw); margin: 0 auto; padding: 24px var(--orv-content-pad-x) 60px; display: flex; flex-direction: column; gap: 20px; }
.lw-back-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; padding: 0; transition: color .15s ease;
}
.lw-back-btn:hover { color: var(--charcoal); }

/* Three-zone workspace (Ad Library / Full Ad Editor pass) — LEFT: ORIVEN
   (~25%), CENTER: ad preview (~48%, the dominant visual element), RIGHT:
   readiness/settings/launch (~27%), within spec's 22-28% / 45-55% /
   25-30% target ranges. Source (DOM) order already matches the desired
   desktop visual order left-to-right, so desktop needs no `order`
   overrides — only the mobile stack (further below) reorders the
   preview ahead of ORIVEN. */
.lw-grid-3 { display: grid; grid-template-columns: 1.05fr 2fr 1.15fr; gap: 24px; align-items: stretch; }
.lw-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); margin-bottom: 6px; }
body.dark-mode .lw-eyebrow { color: var(--green); }
.lw-camp-name { font-size: 24px; font-weight: 800; color: var(--charcoal); letter-spacing: -.01em; margin: 0 0 4px; }
.lw-camp-meta { font-size: 13px; color: var(--muted); }
.lw-section-hd { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Honest missing-creative callout — reused by the single-card path. */
.lc-creative-missing { font-size: 12.5px; color: var(--muted); padding: 14px; border: 1px dashed rgba(217,83,79,.35); border-radius: 10px; margin-top: 12px; }
.lc-inline-link { font-family: inherit; cursor: pointer; color: var(--green-text); background: none; border: none; font-size: 12.5px; font-weight: 700; padding: 0; }
body.dark-mode .lc-inline-link { color: var(--green); }

/* ── CENTER — Ad Preview: the actual advertisement, exactly as it will
   look, using only real image + real copy (see _launchRenderAdPreview).
   Vertically centered within the available column height so the ad
   reads as the visual focus, not one control among many. ── */
.lw-preview-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lw-ad-preview { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--sf2, var(--bg2)); }
.lw-adp-single { width: 100%; max-width: 360px; }
.lw-adp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; width: 100%; }
.lw-adp-card { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
body.dark-mode .lw-adp-card { box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.lw-adp-img { height: 220px; background: var(--bg2); }
.lw-adp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lw-adp-img-empty { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); text-align: center; padding: 12px; }
.lw-adp-empty { color: var(--muted); font-style: italic; font-weight: 400; }

/* Google — text-only ad card (real Google Search ads have no image in
   this simple, honest representation; matches Create's own preview). */
.lw-adp-google { padding: 16px 18px; font-family: Arial, Helvetica, sans-serif; }
.lw-adp-g-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--green-text); background: color-mix(in srgb, var(--green) 14%, transparent); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); border-radius: 3px; padding: 1px 5px; margin-bottom: 5px; }
body.dark-mode .lw-adp-g-tag { color: var(--green); }
.lw-adp-g-url { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.lw-adp-g-hl { font-size: 18px; color: #1a0dab; line-height: 1.32; margin-bottom: 6px; }
body.dark-mode .lw-adp-g-hl { color: #8ab4f8; }
.lw-adp-g-desc { font-size: 13.5px; color: var(--c2); line-height: 1.5; }

/* Meta — feed-post composition, with the real image now genuinely
   present (Create's own equivalent preview never showed one). */
.lw-adp-m-hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.lw-adp-m-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #4285F4 0%, #1877F2 100%); flex-shrink: 0; }
.lw-adp-m-brand { font-size: 13.5px; font-weight: 700; color: var(--charcoal); line-height: 1.25; }
.lw-adp-m-spon { font-size: 11px; color: var(--muted); }
.lw-adp-m-body { padding: 0 14px 10px; font-size: 13.5px; color: var(--c2); line-height: 1.5; }
.lw-adp-m-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--sf2, var(--bg2)); }
.lw-adp-m-hl2 { font-size: 13.5px; font-weight: 700; color: var(--charcoal); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-adp-m-cta { font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 6px; background: var(--border); color: var(--charcoal); border: none; cursor: default; flex-shrink: 0; }

/* TikTok — vertical video-card composition. */
.lw-adp-tiktok { position: relative; aspect-ratio: 9/14; max-width: 220px; margin: 0 auto; display: flex; flex-direction: column; }
.lw-adp-tiktok .lw-adp-img { flex: 1; height: auto; }
/* Snap Ad preview: brand name on top, swipe-up CTA pill at the bottom. */
.lw-adp-snap .lw-adp-snap-top { position: absolute; top: 10px; left: 12px; right: 12px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-adp-snap .lw-adp-snap-cta { margin-top: 10px; width: 100%; border: 0; border-radius: 999px; padding: 7px 10px; background: #FFFC00; color: #111; font: 700 12px/1 inherit; font-family: inherit; }
.lw-adp-tt-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%); }
.lw-adp-tt-hook { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.32; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.lw-adp-tt-caption { font-size: 11.5px; color: rgba(255,255,255,.75); margin-top: 6px; line-height: 1.4; }

/* Pinterest — pin composition: image dominant, title/description/CTA
   below. */
.lw-adp-pinterest .lw-adp-img { height: 240px; }
.lw-adp-pin-body { padding: 12px 14px 14px; }
.lw-adp-pin-title { font-size: 14px; font-weight: 700; color: var(--charcoal); line-height: 1.35; margin-bottom: 4px; }
.lw-adp-pin-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 10px; }
.lw-adp-pin-cta { font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 100px; background: var(--border); color: var(--charcoal); border: none; cursor: default; }

/* ── LEFT — ORIVEN interaction, full workspace height (spec 25) — a real
   operator interface, not a chatbot (spec 13/14). Same visual language
   as Create's composer: rounded surface, focus ring, primary-green send
   action. ── */
/* Sticky + height-capped exactly like .lw-right (spec 25/27: both side
   columns should feel pinned to the workspace while only the center
   preview scrolls with the page) — the thread scrolls internally
   (.lw-oriven-thread, flex:1 + overflow-y:auto) instead of pushing the
   input off past the viewport bottom. */
.lw-oriven-col { display: flex; flex-direction: column; min-height: 0; position: sticky; top: 20px; max-height: calc(100vh - 172px); }
.lw-oriven { display: flex; flex-direction: column; flex: 1; min-height: 0; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; background: var(--surface); }
.lw-oriven-label { font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 12px; }
.lw-oriven-thread { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 120px; max-height: none; overflow-y: auto; margin-bottom: 0; }
.lw-oriven-thread:empty { margin: 0; }
.lw-oriven-thread:not(:empty) { margin-bottom: 12px; }
.lw-oriven-msg { font-size: 13px; line-height: 1.55; padding: 9px 13px; border-radius: 12px; white-space: pre-wrap; max-width: 92%; }
.lw-oriven-msg-user { align-self: flex-end; background: var(--green); color: #0E0E10; font-weight: 600; }
.lw-oriven-msg-oriven { align-self: flex-start; background: var(--sf2, var(--bg2)); color: var(--c2); border: 1px solid var(--border); }
.lw-oriven-input-row { display: flex; gap: 8px; }
.lw-oriven-input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 10px 16px; font-size: 13.5px; color: var(--charcoal); font-family: inherit; min-width: 0; }
.lw-oriven-input::placeholder { color: var(--m2); }
.lw-oriven-input:focus { outline: none; border-color: var(--green); }
.lw-oriven-btn { font-family: inherit; cursor: pointer; font-size: 13px; font-weight: 700; color: #0E0E10; background: var(--green); border: none; border-radius: 100px; padding: 10px 20px; transition: opacity .15s ease; flex-shrink: 0; }
.lw-oriven-btn:hover { opacity: .88; }

/* Right column — the authoritative readiness panel + launch action.
   Sticky AND height-capped to the viewport: the readiness panel can be
   taller than the screen (8 checks + campaign + platform + plan), so
   the column itself is capped to viewport height with the panel
   scrolling internally — otherwise the launch bar below it would be
   pushed off-screen and need page-scrolling to reach, defeating "the
   launch action must remain easily accessible" (spec 30) and "may be
   sticky if that improves usability" (spec 29). The launch bar is a
   normal (non-scrolling) flex child, so it's always visible.
   BUG FIX (Ad Library / Full Ad Editor pass): this max-height's 72px
   constant was empirically tuned for the OLD layout, where this column's
   natural (pre-scroll, in-flow) top sat only ~50px down. Moving the
   campaign identity block above the grid (so it reads as a contextual
   header for all three zones, not just this one) pushed every column's
   natural top down to ~153px, and max-height doesn't know or care where
   the box starts — a stale 72px constant let the box's bottom edge (top
   + max-height) run past the viewport, cutting off the launch bar
   without any scrollbar to reach it. 172px was verified empirically
   (see the .lw-oriven-col comment below, which shares this exact same
   sticky/cap mechanism and bug) to keep the whole column, including the
   launch bar, inside the viewport with real headroom to spare. */
.lw-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; max-height: calc(100vh - 172px); }
.lw-readiness-panel { flex: 1 1 auto; min-height: 0; border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--surface); overflow-y: auto; }
/* Launch Control Room pass — .lqc-check* (Launch home's own condensed
   readiness panel) shares every declaration below with .lw-check* (the
   existing #launchControlView workspace) via comma-joined selectors, so
   the two surfaces look identical, but are namespaced separately: several
   pre-existing tests query .lw-check globally, expecting ONLY the real
   workspace's own checks to exist, and this home panel can be present in
   the DOM at the same time. One shared ruleset, two independent class
   names — never diverges, never collides. */
.lw-readiness-list, .lqc-checks-list { display: flex; flex-direction: column; gap: 2px; }
.lw-check, .lqc-check {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font-family: inherit; cursor: pointer; background: none; border: none; border-radius: 9px;
  padding: 8px; transition: background .12s ease;
}
.lw-check:hover, .lw-check-active, .lqc-check:hover, .lqc-check-active { background: var(--sf2, var(--bg2)); }
.lw-check:focus-visible, .lqc-check:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.lw-check-icon, .lqc-check-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; flex-shrink: 0; background: var(--b2); color: var(--muted); }
.lw-check-label, .lqc-check-label { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--c2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-check-status, .lqc-check-status { flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.lw-check-pass .lw-check-icon, .lqc-check-pass .lqc-check-icon { background: var(--green); color: #0A0A0A; }
.lw-check-pass .lw-check-status, .lqc-check-pass .lqc-check-status { color: var(--green-text); }
body.dark-mode .lw-check-pass .lw-check-status, body.dark-mode .lqc-check-pass .lqc-check-status { color: var(--green); }
.lw-check-warning .lw-check-icon, .lqc-check-warning .lqc-check-icon { background: #F5A623; color: #0A0A0A; }
.lw-check-warning .lw-check-status, .lqc-check-warning .lqc-check-status { color: #92400E; }
body.dark-mode .lw-check-warning .lw-check-status, body.dark-mode .lqc-check-warning .lqc-check-status { color: #F5A623; }
.lw-check-blocked .lw-check-icon, .lqc-check-blocked .lqc-check-icon { background: #D9534F; color: #fff; }
.lw-check-blocked .lw-check-status, .lqc-check-blocked .lqc-check-status { color: #b91c1c; }
body.dark-mode .lw-check-blocked .lw-check-status, body.dark-mode .lqc-check-blocked .lqc-check-status { color: #f87171; }
.lw-check-not_checked .lw-check-status, .lw-check-not_applicable .lw-check-status,
.lqc-check-not_checked .lqc-check-status, .lqc-check-not_applicable .lqc-check-status { color: var(--m2); }
.lw-check-loading, .lqc-check-loading { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .lw-check:not(.lw-check-loading), .lqc-check:not(.lqc-check-loading) { animation: lcCheckIn .3s ease backwards; animation-delay: calc(var(--lc-i, 0) * 45ms); }
}
@keyframes lcCheckIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Click-to-expand detail — the ONLY place a check's explanation lives
   (spec 14: never duplicate every warning a second time). */
.lw-check-detail, .lqc-check-detail { margin: 6px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.lw-check-detail-tag, .lqc-check-detail-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; margin-bottom: 4px; color: var(--muted); }
.lw-check-detail-tag-warning, .lqc-check-detail-tag-warning { color: #92400E; } body.dark-mode .lw-check-detail-tag-warning, body.dark-mode .lqc-check-detail-tag-warning { color: #F5A623; }
.lw-check-detail-tag-blocked, .lqc-check-detail-tag-blocked { color: #b91c1c; } body.dark-mode .lw-check-detail-tag-blocked, body.dark-mode .lqc-check-detail-tag-blocked { color: #f87171; }
.lw-check-detail-tag-pass, .lqc-check-detail-tag-pass { color: var(--green-text); } body.dark-mode .lw-check-detail-tag-pass, body.dark-mode .lqc-check-detail-tag-pass { color: var(--green); }
.lw-check-detail-title, .lqc-check-detail-title { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.lw-check-detail-reason, .lqc-check-detail-reason { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.lw-check-detail-action, .lqc-check-detail-action { margin-top: 10px; font-family: inherit; cursor: pointer; font-size: 11.5px; font-weight: 700; color: #0A0A0A; background: var(--green); border: none; border-radius: 8px; padding: 7px 14px; }

.lw-compact-section { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.lw-compact-rows { display: flex; flex-direction: column; }
.lc-snap-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.lc-snap-row:last-child { border-bottom: none; }
.lc-snap-label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.lc-snap-value-wrap { display: flex; align-items: baseline; gap: 8px; }
.lc-snap-value { font-size: 12.5px; color: var(--c2); text-align: right; word-break: break-word; }

/* Platform card — provider-aware (spec 16/38): only the fields the real
   provider actually has apply. */
.lc-platform-card { padding: 4px 0 0; }
.lc-platform-name { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.lc-platform-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--c2); padding: 5px 0; }
.lc-platform-row-ok span:first-child { color: var(--green-text); font-weight: 700; }
body.dark-mode .lc-platform-row-ok span:first-child { color: var(--green); }
.lc-platform-row-blocked span:first-child { color: #b91c1c; font-weight: 700; }
body.dark-mode .lc-platform-row-blocked span:first-child { color: #f87171; }
.lc-platform-note { font-size: 12px; color: var(--muted); margin: 8px 0 12px; line-height: 1.5; }
.lc-platform-connect-btn { font-family: inherit; cursor: pointer; font-size: 12px; font-weight: 700; color: #0A0A0A; background: var(--green); border: none; border-radius: 8px; padding: 8px 16px; }
.lc-platform-loading { font-size: 12.5px; color: var(--muted); font-style: italic; }

.lw-plan-list { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.lw-plan-list li { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* Launch action — the visual endpoint of the workspace. A state label,
   never a second copy of every warning (spec 18). Backend readiness
   remains the sole gate (spec 19) — .lw-launch-btn[disabled] is set
   only from real check results, never assumed. */
.lw-launch-bar {
  border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px;
  background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
/* Real, confirmed collision (spec 31: "no overlapping launch bar") — the
   global Oriven chat launcher (.orv-ai-fab) is position:fixed at
   bottom:24px/right:24px on every page, and this workspace's right
   column can genuinely end up with the launch bar sitting at the same
   bottom-right corner (verified via a live viewport probe, not assumed
   — this collision predates this redesign, visible in the original
   implementation's own screenshot too). Reserved clearance keeps the
   launch button itself clear of the fixed launcher's real footprint. */
@media (min-width: 901px) {
  .lw-launch-bar { margin-right: 88px; }
}
.lw-launch-state { display: flex; flex-direction: column; min-width: 0; }
.lw-launch-state-label { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--charcoal); }
.lw-launch-state-ready { color: var(--green-text); } body.dark-mode .lw-launch-state-ready { color: var(--green); }
.lw-launch-state-warning { color: #92400E; } body.dark-mode .lw-launch-state-warning { color: #F5A623; }
.lw-launch-state-blocked { color: #b91c1c; } body.dark-mode .lw-launch-state-blocked { color: #f87171; }
.lw-launch-state-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.lw-launch-btn {
  flex-shrink: 0; font-family: inherit; cursor: pointer; font-size: 13.5px; font-weight: 700;
  color: #0A0A0A; background: var(--green); border: none; border-radius: 100px; padding: 12px 26px;
  transition: opacity .15s ease; white-space: nowrap;
}
.lw-launch-btn:hover:not(:disabled) { opacity: .88; }
.lw-launch-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Deployment / result overlay — deliberately a dark modal (see block
   comment above); unchanged from the previous implementation. */
.lc-deploy-overlay { position: fixed; inset: 0; background: rgba(5,5,6,.88); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lc-deploy-panel { width: 100%; max-width: 480px; background: #0e0e10; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 32px; }
.lc-deploy-hd { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.lc-deploy-stage { font-size: 13.5px; padding: 8px 0; color: rgba(255,255,255,.3); display: flex; align-items: center; gap: 10px; transition: color .2s ease; }
.lc-deploy-stage-done { color: rgba(255,255,255,.45); }
.lc-deploy-stage-active { color: rgba(255,255,255,.95); font-weight: 700; }
.lc-deploy-stage-failed { color: #f87171; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .lc-deploy-stage-active { animation: lcPulseText 1.4s ease-in-out infinite; }
}
@keyframes lcPulseText { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.lc-result { text-align: center; }
.lc-result-ring { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: conic-gradient(var(--green) 0deg 300deg, rgba(255,255,255,.1) 300deg 360deg); position: relative; }
.lc-result-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #0e0e10; }
.lc-result-title { font-size: 20px; font-weight: 800; color: rgba(255,255,255,.95); margin-bottom: 6px; }
.lc-result-sub { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.lc-result-message { font-size: 13px; color: #f87171; background: rgba(217,83,79,.08); border: 1px solid rgba(217,83,79,.25); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; text-align: left; }
.lc-result-fields { text-align: left; margin-bottom: 22px; }
.lc-result-details { text-align: left; margin-bottom: 16px; }
.lc-result-details summary { cursor: pointer; font-size: 11.5px; color: rgba(255,255,255,.4); }
.lc-result-details pre { font-size: 10.5px; color: rgba(255,255,255,.5); white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow-y: auto; margin-top: 8px; }
.lc-result-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lc-result-btn { font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 10px 18px; }
.lc-result-btn-primary { color: #0A0A0A; background: var(--green); border-color: var(--green); }

@media (max-width: 1024px) {
  /* Clear the fixed hamburger (.orv-mob-toggle, shows up to this same
     1024px drawer breakpoint) — without this the "← All campaigns" back
     link renders partly underneath it. Same 64px precedent already
     established for .camp-hub/.orv-page-wrap/.cr2-wrap. */
  .lw-wrap { padding-top: 64px !important; }
  .lq-hub { padding-top: 64px !important; }
  /* Final Visual Correction pass — 4-column gallery grid steps down to 3
     here, then 2 at 900px, then 1 at true phone width (480px below). */
  .lq-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .lq-card-grid { grid-template-columns: repeat(2, 1fr); }
  /* Stack to one column, real advertising-workspace order (spec 62):
     AD PREVIEW -> ORIVEN -> READINESS/SETTINGS/LAUNCH. Desktop's visual
     order (ORIVEN left, preview center) comes for free from DOM/source
     order there, so only the mobile stack needs explicit `order` to put
     the preview first without touching the desktop layout at all. */
  .lw-grid-3 { grid-template-columns: 1fr; }
  .lw-preview-col { order: 1; }
  .lw-oriven-col { order: 2; position: static; max-height: none; }
  .lw-right { order: 3; position: static; }
  .lw-wrap { padding-left: 16px; padding-right: 16px; padding-bottom: 28px; }
  /* The ORIVEN thread no longer sits in a height-capped sticky column on
     mobile, so it needs its own reasonable cap again (spec 63: stays
     comfortable to use, never microscopic) instead of growing unbounded
     with every message. The ad preview keeps a real minimum height
     (spec 65: never shrinks into a tiny thumbnail). */
  .lw-oriven-thread { max-height: 260px; min-height: 0; }
  .lw-ad-preview { min-height: 280px; }
  /* Same real Oriven-launcher collision as desktop (see the comment on
     .lw-launch-bar above), just measured against the mobile FAB's own
     smaller footprint — the state label shrinks to wrap above the
     button rather than the button sitting under the fixed launcher. */
  .lw-launch-bar { position: sticky; bottom: 0; flex-direction: column; align-items: stretch; padding-right: 84px; }
  .lw-launch-btn { flex: 1; text-align: center; }
}
@media (max-width: 640px) {
  /* Filter/Navigation Stability pass — mobile gets its own deliberate
     layout rather than squeezing platform nav + status nav + search into
     one impossible row (spec 61/Part 2 responsive): platform nav becomes
     a compact horizontal-scroll segmented control (never wraps mid-pill,
     never clips a provider name), search drops to a real full-width row
     of its own, and the status row keeps its own horizontal scroll too.
     Nothing here changes when switching platforms — the same stability
     guarantee as desktop, just a different (still fixed) geometry. */
  .lq-filters-row { flex-wrap: nowrap; }
  .lq-filters-row-1 { flex-direction: column; align-items: stretch; }
  .lq-pillgroup-plat, .lq-pillgroup-status {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
    /* Fade the trailing edge so a partially-visible pill reads as
       "scroll for more", not as a clipped/broken label. */
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  }
  .lq-pill-plat, .lq-pill-status { flex-shrink: 0; }
  .lq-search-wrap { width: 100%; flex: 1 1 auto; }
  .lq-filters-row-2 { flex-wrap: nowrap; }
  .lq-clear-filters { flex-shrink: 0; white-space: nowrap; }

  /* Launch Visual Grid pass — 2 columns at this width (see the 1024px/
     900px steps below for 3/2); phones get their own tighter single-
     column step at 480px right below. */
  .lc-deploy-panel { padding: 24px 20px; }
}
@media (max-width: 480px) {
  /* True phone width — one column rather than a cramped 2-up. */
  .lq-card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lw-check, .lc-deploy-stage-active { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   CAMPAIGN REPLAY — chronological journey view (Campaign Replay
   sprint). Unlike Launch Control's isolated dark console, this follows
   Campaigns' own ambient light/dark toggle (body.dark-mode), same as
   every other Campaigns surface (.adm-*, .prf-*, .camp-*) — tokens with
   fallbacks throughout, dark overrides only where the fallback contrast
   actually breaks. ════════════════════════════════════════════════ */
.cc3-replay-btn { flex: 1; min-width: 100px; text-align: center; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--green,#B6FF3B) 45%, transparent); background: color-mix(in srgb, var(--green,#B6FF3B) 10%, transparent); color: var(--charcoal,#18181A); cursor: pointer; transition: background .12s, border-color .12s; white-space: nowrap; }
.cc3-replay-btn:hover { background: color-mix(in srgb, var(--green,#B6FF3B) 22%, transparent); }

.adm-act-replay { background: color-mix(in srgb, var(--green,#B6FF3B) 14%, transparent); color: #4b7a00; border-color: color-mix(in srgb, var(--green,#B6FF3B) 40%, transparent); }
.adm-act-replay:hover { background: color-mix(in srgb, var(--green,#B6FF3B) 26%, transparent); }
body.dark-mode .adm-act-replay { color: var(--green,#B6FF3B); }

.adm-panel-btn.adm-act-replay { display: inline-flex; align-items: center; justify-content: center; }

/* ── Overview: Recent Campaign Activity ─────────────────────────── */
.prf-recent-activity { margin: 0 0 24px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border,rgba(0,0,0,.1)); background: var(--surface,#fff); }
.prf-ra-hd { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted,rgba(0,0,0,.4)); margin-bottom: 12px; }
.prf-ra-list { display: flex; flex-direction: column; gap: 2px; }
.prf-ra-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 4px; border-radius: 8px; }
.prf-ra-item-link { cursor: pointer; }
.prf-ra-item-link:hover { background: var(--glt,rgba(183,255,42,.08)); }
.prf-ra-title { font-size: 13px; font-weight: 600; color: var(--charcoal,#18181A); }
.prf-ra-time { font-size: 11.5px; color: var(--muted,rgba(0,0,0,.4)); white-space: nowrap; flex-shrink: 0; }
body.dark-mode .prf-recent-activity { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark-mode .prf-ra-title { color: rgba(255,255,255,.9); }
/* Campaign Replay's honest empty/unavailable state — plain text, no
   invented events, no borrowed campaign-list styling. */
.prf-ra-empty { font-size: 12.5px; color: var(--muted, rgba(0,0,0,.45)); padding: 4px; line-height: 1.5; }

/* Campaigns Control-Room pass — Campaign Replay relocated below the
   Metric Explorer instead of a permanent side column; this compact
   variant keeps it visually secondary (tighter padding, quieter
   background, smaller heading) rather than matching the chart/metrics'
   own visual weight. Same real data/behavior, lower visual priority. */
.prf-recent-activity-compact { padding: 12px 16px; background: var(--bg2, var(--surface)); box-shadow: none; margin-bottom: 0; }
.prf-recent-activity-compact .prf-ra-hd { margin-bottom: 8px; font-size: 10px; }

/* ── Campaign Replay page ────────────────────────────────────────── */
.crp-wrap { max-width: 1180px; margin: 0 auto; padding: 28px var(--orv-content-pad-x, 32px) 60px; display: flex; flex-direction: column; gap: 22px; }
.crp-back-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted,rgba(0,0,0,.5)); background: none; border: none; padding: 0; }
.crp-back-btn:hover { color: var(--charcoal,#18181A); }

.crp-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--border,rgba(0,0,0,.08)); padding-bottom: 20px; }
.crp-hero-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--gm,#9FE81F); margin-bottom: 6px; }
.crp-hero-name { font-size: 26px; font-weight: 800; color: var(--charcoal,#18181A); letter-spacing: -.01em; margin: 0 0 4px; }
.crp-hero-meta { font-size: 13.5px; color: var(--muted,rgba(0,0,0,.5)); }
.crp-status-badge { font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 100px; background: var(--border,rgba(0,0,0,.06)); color: var(--charcoal,#18181A); white-space: nowrap; }
.crp-status-badge.crp-status-active { background: color-mix(in srgb, var(--green,#B6FF3B) 22%, transparent); color: #3d6300; }
body.dark-mode .crp-status-badge.crp-status-active { color: var(--green,#B6FF3B); }
.crp-status-unverified { font-weight: 500; opacity: .7; font-size: 11.5px; }

.crp-story { font-size: 14.5px; line-height: 1.6; color: var(--charcoal,#18181A); max-width: 68ch; margin: 0; }

.crp-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.crp-col { display: flex; flex-direction: column; gap: 10px; }
.crp-section-hd { font-size: 11px; font-weight: 800; letter-spacing: .07em; color: var(--muted,rgba(0,0,0,.4)); margin: 6px 0 2px; }

/* Timeline rail — vertical, connected nodes, per spec's "visually
   distinctive... vertical event rail" direction. */
.crp-replay-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.crp-step-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border,rgba(0,0,0,.15)); background: var(--surface,#fff); color: var(--charcoal,#18181A); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.crp-step-btn:disabled { opacity: .3; cursor: not-allowed; }
.crp-step-btn:not(:disabled):hover { border-color: var(--green,#B6FF3B); }
.crp-step-pos { font-size: 11.5px; font-weight: 700; color: var(--muted,rgba(0,0,0,.45)); font-variant-numeric: tabular-nums; }

.crp-timeline { position: relative; display: flex; flex-direction: column; }
.crp-tl-item { position: relative; display: flex; gap: 14px; padding: 4px 4px 22px 4px; cursor: pointer; border-radius: 10px; }
.crp-tl-item:last-child { padding-bottom: 4px; }
.crp-tl-item::before { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1.5px; background: var(--border,rgba(0,0,0,.12)); }
.crp-tl-item:last-child::before { display: none; }
.crp-tl-item:hover { background: var(--glt,rgba(183,255,42,.06)); }
.crp-tl-item-sel { background: var(--glt,rgba(183,255,42,.1)); }
.crp-tl-item:focus-visible { outline: 2px solid var(--green,#B6FF3B); outline-offset: 2px; }
.crp-tl-node { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--border,rgba(0,0,0,.08)); color: var(--muted,rgba(0,0,0,.5)); z-index: 1; }
.crp-tl-item-sel .crp-tl-node { background: var(--green,#B6FF3B); color: #0A0A0A; }
.crp-tl-campaign-launch-succeeded .crp-tl-node { background: color-mix(in srgb, var(--green,#B6FF3B) 55%, transparent); color: #24390a; }
.crp-tl-campaign-launch-failed .crp-tl-node { background: rgba(217,83,79,.18); color: #b3312c; }
.crp-tl-body { padding-top: 3px; min-width: 0; }
.crp-tl-title { font-size: 13.5px; font-weight: 700; color: var(--charcoal,#18181A); }
.crp-tl-time { font-size: 11.5px; color: var(--muted,rgba(0,0,0,.45)); margin-top: 2px; }

.crp-empty { padding: 28px 20px; text-align: center; border: 1px dashed var(--border,rgba(0,0,0,.15)); border-radius: 12px; }
.crp-empty-inline { padding: 18px 16px; text-align: left; }
.crp-empty-title { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted,rgba(0,0,0,.4)); margin-bottom: 8px; }
.crp-empty p { font-size: 13px; color: var(--muted,rgba(0,0,0,.5)); line-height: 1.6; margin: 0; }
.crp-perf-loading { font-size: 12.5px; color: var(--muted,rgba(0,0,0,.4)); font-style: italic; padding: 8px 4px; }

/* Event detail panel */
.crp-event-detail { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border,rgba(0,0,0,.1)); background: var(--surface,#fff); min-height: 40px; }
.crp-ed-title { font-size: 14.5px; font-weight: 700; color: var(--charcoal,#18181A); }
.crp-ed-time { font-size: 12px; color: var(--muted,rgba(0,0,0,.45)); margin-top: 2px; }
.crp-ed-detail { font-size: 13px; color: var(--charcoal,#18181A); line-height: 1.6; margin: 10px 0; }
.crp-ed-source { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted,rgba(0,0,0,.4)); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border,rgba(0,0,0,.08)); }
body.dark-mode .crp-event-detail { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark-mode .crp-ed-title { color: rgba(255,255,255,.92); }
body.dark-mode .crp-ed-detail { color: rgba(255,255,255,.78); }

/* Current Performance */
.crp-performance { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border,rgba(0,0,0,.1)); background: var(--surface,#fff); }
.crp-perf-note { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted,rgba(0,0,0,.4)); margin-bottom: 8px; }
.crp-perf-row { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border,rgba(0,0,0,.06)); }
.crp-perf-row:last-child { border-bottom: none; }
.crp-perf-label { font-size: 12px; font-weight: 600; color: var(--muted,rgba(0,0,0,.5)); }
.crp-perf-value { font-size: 13.5px; font-weight: 700; color: var(--charcoal,#18181A); font-variant-numeric: tabular-nums; }
body.dark-mode .crp-performance { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark-mode .crp-perf-value { color: rgba(255,255,255,.9); }

@media (max-width: 1024px) {
  /* Clear the fixed hamburger — same 64px precedent as every other page
     (.camp-hub, #launchControlView, etc.); without it "Back to Campaigns"
     renders partly underneath it. */
  .crp-wrap { padding-top: 64px !important; }
}
@media (max-width: 900px) {
  .crp-layout { grid-template-columns: 1fr; }
  .crp-wrap { padding-left: 16px; padding-right: 16px; padding-bottom: 40px; }
  .crp-hero { flex-direction: column; }
  .crp-status-badge { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .crp-tl-item, .crp-step-btn { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   BUSINESS MAP (Business Map / Leak Detection sprint)
   Deliberately NOT `.biz-map-*` — that exact class family already
   exists in this file (search confirms it), unused anywhere in the
   DOM, orphaned from a cut pre-v12 iteration. Reusing it risked
   silently pulling in stale, half-finished styling. `.bmap-*` is a
   clean, unambiguous, genuinely new prefix. Light/theme-adaptive,
   matching every other Business module panel (Overview alone stays
   always-dark; this panel does not). ════════════════════════════ */
.bmap-entry-btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--green-text); background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent); border-radius: 100px; padding: 8px 16px; margin-bottom: 8px;
}
.bmap-entry-btn:hover { background: color-mix(in srgb, var(--green) 18%, transparent); }
body.dark-mode .bmap-entry-btn { color: var(--green); }

.bmap-wrap { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }

.bmap-status-row { display: flex; gap: 32px; flex-wrap: wrap; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--border,rgba(0,0,0,.08)); background: var(--surface,#fff); }
body.dark-mode .bmap-status-row { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.bmap-status-item { display: flex; flex-direction: column; gap: 3px; }
.bmap-status-num { font-size: 22px; font-weight: 800; color: var(--charcoal,#18181A); font-variant-numeric: tabular-nums; }
body.dark-mode .bmap-status-num { color: rgba(255,255,255,.92); }
.bmap-status-lbl { font-size: 11px; color: var(--muted); }

/* ── Map diagram — real hub-and-spoke, CSS flex-wrap, no canvas/SVG
   pan-zoom needed at this node count. ── */
.bmap-diagram-wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.bmap-diagram { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 36px 20px; border-radius: 18px; background: color-mix(in srgb, var(--green) 3%, transparent); border: 1px solid var(--border,rgba(0,0,0,.06)); width: 100%; }
body.dark-mode .bmap-diagram { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.07); }
.bmap-node {
  font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 108px; height: 108px; border-radius: 50%; border: 1.5px solid var(--border,rgba(0,0,0,.14)); background: var(--surface,#fff);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bmap-node:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
body.dark-mode .bmap-node { background: #16161a; border-color: rgba(255,255,255,.12); }
.bmap-node-label { font-size: 12.5px; font-weight: 800; color: var(--charcoal,#18181A); }
body.dark-mode .bmap-node-label { color: rgba(255,255,255,.9); }
.bmap-node-sub { font-size: 10px; color: var(--muted); }
.bmap-node-center { width: 136px; height: 136px; background: var(--obsidian,#080808); border-color: var(--green); }
.bmap-node-center .bmap-node-label { color: var(--green); font-size: 13.5px; }
.bmap-node-business { }
.bmap-node-data { border-color: color-mix(in srgb, #63B3ED 45%, var(--border)); }
.bmap-node-leak { border-color: color-mix(in srgb, #D9534F 50%, var(--border)); }
.bmap-node-leak .bmap-node-label { color: #b3312c; }
body.dark-mode .bmap-node-leak .bmap-node-label { color: #f87171; }
.bmap-node-opportunity { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.bmap-node-opportunity .bmap-node-label { color: var(--green-text); }
body.dark-mode .bmap-node-opportunity .bmap-node-label { color: var(--green); }

.bmap-legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.bmap-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.bmap-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.bmap-legend-business { background: var(--obsidian,#080808); }
.bmap-legend-data { background: #63B3ED; }
.bmap-legend-leak { background: #D9534F; }
.bmap-legend-opportunity { background: var(--green); }

.bmap-detail-hd { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.bmap-node-detail { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border,rgba(0,0,0,.08)); background: var(--surface,#fff); display: flex; flex-direction: column; gap: 8px; }
body.dark-mode .bmap-node-detail { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }

.bmap-section { display: flex; flex-direction: column; gap: 10px; }

.bmap-priority-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border,rgba(0,0,0,.07)); cursor: pointer; }
body.dark-mode .bmap-priority-row { border-bottom-color: rgba(255,255,255,.07); }
.bmap-priority-row:last-child { border-bottom: none; }
.bmap-priority-row:hover { background: color-mix(in srgb, var(--green) 4%, transparent); }
.bmap-priority-num { font-size: 15px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; width: 26px; flex-shrink: 0; }
.bmap-priority-title { font-size: 13.5px; font-weight: 700; color: var(--charcoal,#18181A); }
body.dark-mode .bmap-priority-title { color: rgba(255,255,255,.9); }
.bmap-priority-sev { font-size: 10.5px; font-weight: 700; margin-top: 2px; }
.bmap-sev-high { color: #b3312c; }
body.dark-mode .bmap-sev-high { color: #f87171; }
.bmap-sev-medium { color: #8a5a00; }
body.dark-mode .bmap-sev-medium { color: #F5A623; }
.bmap-sev-low { color: #2563eb; }
body.dark-mode .bmap-sev-low { color: #63b3ff; }

.bmap-empty { padding: 24px 20px; text-align: center; border: 1px dashed var(--border,rgba(0,0,0,.15)); border-radius: 12px; }
.bmap-empty-title { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.bmap-empty p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.bmap-coverage-list { display: flex; flex-direction: column; gap: 2px; }
.bmap-cov-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border,rgba(0,0,0,.06)); }
body.dark-mode .bmap-cov-row { border-bottom-color: rgba(255,255,255,.06); }
.bmap-cov-row:last-child { border-bottom: none; }
.bmap-cov-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.bmap-cov-dot-on { background: var(--green); }
.bmap-cov-label { font-size: 13px; font-weight: 700; color: var(--charcoal,#18181A); min-width: 100px; }
body.dark-mode .bmap-cov-label { color: rgba(255,255,255,.88); }
.bmap-cov-sub { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .bmap-status-row { gap: 20px; padding: 16px; }
  .bmap-node { width: 88px; height: 88px; }
  .bmap-node-center { width: 108px; height: 108px; }
  .bmap-diagram { padding: 24px 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bmap-node { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   BUSINESS MAP REDESIGN — an interactive node-graph, not a dashboard.
   Business IS the map now (see #bizPanelOverview's own header comment in
   app.html for the full removal/merge rationale). Always-dark, matching
   #page-business-brain's existing unconditional dark theme (see the
   BUSINESS HUB block earlier in this file) — no separate theming needed.
   .bmap-* above is retired (unused, left in place per this file's
   convention for retired presentation code); this new work uses .bmap2-*
   to avoid any ambiguity with the old flat-diagram classes.

   CSS PARSER SAFETY NOTE: a real bug (Autopilot Builder Fix sprint) was
   caused by writing an asterisk immediately followed by a forward slash
   inside a comment — that two-character pair is the literal CSS
   comment-close token and silently drops the very next rule. Every
   comment below was written with a deliberate space wherever an
   asterisk and a slash could otherwise land next to each other.
   ════════════════════════════════════════════════════════════════ */
.bmap2-canvas-root { gap: 16px; }

.bmap2-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; max-width: 760px; flex-shrink: 0; }
.bmap2-hdr-text { text-align: center; flex: 1; }
.bmap2-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 0 0 3px; }
.bmap2-sub { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }
.bmap2-edit-btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; cursor: pointer; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 7px 13px;
  transition: color .14s, border-color .14s, background .14s;
}
.bmap2-edit-btn:hover { color: #fff; border-color: color-mix(in srgb, var(--green) 40%, rgba(255,255,255,.14)); background: color-mix(in srgb, var(--green) 6%, rgba(255,255,255,.03)); }
.bmap2-edit-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── The canvas — subtle technical grid, a fine 1px minor grid plus a
   slightly stronger major-interval grid, restrained radial illumination
   around the center. No gradients beyond that one soft glow, no neon. ── */
.bmap2-canvas {
  position: relative; flex: 1; min-height: 0; width: 100%; max-width: 920px;
  border-radius: 20px; overflow: hidden;
  background-color: #0a0a0c;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 132px 132px, 132px 132px;
  border: 1px solid rgba(255,255,255,.07);
}
.bmap2-canvas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, color-mix(in srgb, var(--green) 6%, transparent) 0%, transparent 70%);
}
.bmap2-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bmap2-line { stroke: rgba(255,255,255,.14); stroke-width: .4; transition: stroke .2s ease, opacity .2s ease, stroke-width .2s ease; }
.bmap2-line-brand { stroke: color-mix(in srgb, #A78BFA 38%, rgba(255,255,255,.14)); }
.bmap2-line-market { stroke: color-mix(in srgb, #60A5FA 38%, rgba(255,255,255,.14)); }
.bmap2-line-advertising { stroke: color-mix(in srgb, #34D399 38%, rgba(255,255,255,.14)); }
.bmap2-line-website { stroke: color-mix(in srgb, #22D3EE 38%, rgba(255,255,255,.14)); }
.bmap2-line-knowledge { stroke: color-mix(in srgb, #F97316 38%, rgba(255,255,255,.14)); }
.bmap2-line-customers { stroke: color-mix(in srgb, #FACC15 38%, rgba(255,255,255,.14)); }

/* ── Central Business node — the visual anchor, Electric Lime accent. ── */
.bmap2-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: clamp(140px, 16vw, 190px); text-align: center; z-index: 3;
  transition: opacity .2s ease;
}
.bmap2-center-icon-wrap { position: relative; width: clamp(56px, 7vh, 76px); aspect-ratio: 1 / 1; }
.bmap2-center-name { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.25; }
.bmap2-center-meta { font-size: 11px; color: var(--green); font-weight: 600; }
.bmap2-center-meta .biz-hero-meta-dot { color: rgba(255,255,255,.3); margin: 0 4px; }

/* ── Six domain nodes — compact, immediately understandable, own
   restrained accent per domain (border + icon color only; dark surface
   stays dominant, text is always present alongside color). ── */
.bmap2-nodes { position: absolute; inset: 0; }
.bmap2-node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  width: 138px; padding: 12px 10px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
  font-family: inherit; cursor: pointer; z-index: 2;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease, filter .18s ease;
}
.bmap2-node:hover { transform: translate(-50%,-50%) translateY(-2px); background: rgba(255,255,255,.055); }
.bmap2-node:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bmap2-node-icon { width: 20px; height: 20px; margin-bottom: 2px; }
.bmap2-node-icon svg { width: 100%; height: 100%; }
.bmap2-node-title { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.bmap2-node-line { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.35; }
.bmap2-node-line-muted { color: rgba(255,255,255,.35); }
.bmap2-node-badge { margin-top: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 20px; }
.bmap2-node-badge-issue { background: rgba(239,68,68,.15); color: #f87171; }
.bmap2-node-badge-opportunity { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }

.bmap2-node-brand { border-color: color-mix(in srgb, #A78BFA 42%, rgba(255,255,255,.09)); }
.bmap2-node-brand .bmap2-node-icon { color: #A78BFA; }
.bmap2-node-market { border-color: color-mix(in srgb, #60A5FA 42%, rgba(255,255,255,.09)); }
.bmap2-node-market .bmap2-node-icon { color: #60A5FA; }
.bmap2-node-advertising { border-color: color-mix(in srgb, #34D399 42%, rgba(255,255,255,.09)); }
.bmap2-node-advertising .bmap2-node-icon { color: #34D399; }
.bmap2-node-website { border-color: color-mix(in srgb, #22D3EE 42%, rgba(255,255,255,.09)); }
.bmap2-node-website .bmap2-node-icon { color: #22D3EE; }
.bmap2-node-knowledge { border-color: color-mix(in srgb, #F97316 42%, rgba(255,255,255,.09)); }
.bmap2-node-knowledge .bmap2-node-icon { color: #F97316; }
.bmap2-node-customers { border-color: color-mix(in srgb, #FACC15 42%, rgba(255,255,255,.09)); }
.bmap2-node-customers .bmap2-node-icon { color: #FACC15; }

/* ── Focus Mode — [data-focus] set on .bmap2-canvas by JS. The focused
   node/line stay full-strength; everything else steps back. Enumerated
   per kind (no cross-attribute CSS selector exists for "the class
   matching this attribute value") — only 6 domains, so this stays
   readable. ── */
.bmap2-canvas[data-focus] .bmap2-node { opacity: .32; filter: saturate(.55); }
.bmap2-canvas[data-focus] .bmap2-line { opacity: .22; }
.bmap2-canvas[data-focus] .bmap2-center { opacity: .82; }
.bmap2-canvas[data-focus="brand"] .bmap2-node-brand,
.bmap2-canvas[data-focus="market"] .bmap2-node-market,
.bmap2-canvas[data-focus="advertising"] .bmap2-node-advertising,
.bmap2-canvas[data-focus="website"] .bmap2-node-website,
.bmap2-canvas[data-focus="knowledge"] .bmap2-node-knowledge,
.bmap2-canvas[data-focus="customers"] .bmap2-node-customers { opacity: 1; filter: none; border-width: 1.5px; }
.bmap2-canvas[data-focus="brand"] .bmap2-line-brand,
.bmap2-canvas[data-focus="market"] .bmap2-line-market,
.bmap2-canvas[data-focus="advertising"] .bmap2-line-advertising,
.bmap2-canvas[data-focus="website"] .bmap2-line-website,
.bmap2-canvas[data-focus="knowledge"] .bmap2-line-knowledge,
.bmap2-canvas[data-focus="customers"] .bmap2-line-customers { opacity: 1; stroke-width: .7; }

.bmap2-status { position: absolute; bottom: 14px; right: 16px; z-index: 3; font-size: 10.5px; color: rgba(255,255,255,.4); font-weight: 600; }

/* ── Focus panel — a dismissible contextual overlay, never a permanent
   right-side panel. Reuses the exact same premium dark chrome language
   as .intel-mon-panel (Autopilot/Intelligence modals) for visual
   consistency, as its own component so this page's styling stays
   self-contained. ── */
.bmap2-focus-overlay {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,8,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 16px;
}
.bmap2-focus-panel {
  width: 100%; max-width: 460px;
  background: #0b0b0c; border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  box-shadow: 0 24px 72px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  max-height: min(78vh, 640px); display: flex; flex-direction: column; overflow: hidden;
  animation: bmap2FocusIn .18s cubic-bezier(.22,1,.36,1);
}
@keyframes bmap2FocusIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.bmap2-focus-hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.bmap2-focus-title { font-size: 14px; font-weight: 800; color: #fff; }
.bmap2-focus-close { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.4); font-size: 13px; transition: background .14s, color .14s; }
.bmap2-focus-close:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.bmap2-focus-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bmap2-focus-body { padding: 16px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

.bmap2-detail-empty { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.55; margin: 0 0 12px; }
.bmap2-detail-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bmap2-detail-row:last-of-type { border-bottom: none; }
.bmap2-detail-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.4); }
.bmap2-detail-value { font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.5; }
.bmap2-detail-value a { color: var(--green); }
.bmap2-detail-sub { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.4); margin: 12px 0 6px; }
.bmap2-detail-action { margin-top: 14px; }

.bmap2-swatch-row { display: flex; gap: 8px; margin-bottom: 4px; }
.bmap2-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }

.bmap2-plat-list { display: flex; flex-direction: column; gap: 2px; }
.bmap2-plat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bmap2-plat-row:last-child { border-bottom: none; }
.bmap2-plat-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.bmap2-plat-status { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); }
.bmap2-plat-connected { color: var(--green); }

.bmap2-mem-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.bmap2-mem-item { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.5; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }

/* ── Mobile / narrow — intentional stacked strategy, not a shrunk
   desktop graph (spec 28): center card on top, six real domain rows
   below in document order, tap to focus. Connector lines are dropped
   (not meaningful once nodes leave absolute/radial positioning). ── */
@media (max-width: 780px) {
  .bmap2-hdr { max-width: 100%; }
  .bmap2-canvas { max-width: 100%; min-height: 0; height: auto; overflow: visible; padding-bottom: 14px; }
  .bmap2-lines { display: none; }
  .bmap2-center { position: static; transform: none; margin: 22px auto 18px; }
  .bmap2-nodes { position: static; display: flex; flex-direction: column; gap: 10px; padding: 0 14px; }
  .bmap2-node { position: static; transform: none; width: 100%; flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 12px 14px; }
  .bmap2-node:hover { transform: none; }
  .bmap2-node-icon { margin-bottom: 0; flex-shrink: 0; }
  .bmap2-node-title { flex-shrink: 0; min-width: 78px; }
  .bmap2-node-line { flex: 1; }
  .bmap2-node-badge { margin-top: 0; margin-left: auto; flex-shrink: 0; }
  .bmap2-status { position: static; text-align: center; margin: 4px 0 2px; }
  .bmap2-canvas[data-focus] .bmap2-node { opacity: 1; filter: none; }
  .bmap2-canvas[data-focus="brand"] .bmap2-node-brand,
  .bmap2-canvas[data-focus="market"] .bmap2-node-market,
  .bmap2-canvas[data-focus="advertising"] .bmap2-node-advertising,
  .bmap2-canvas[data-focus="website"] .bmap2-node-website,
  .bmap2-canvas[data-focus="knowledge"] .bmap2-node-knowledge,
  .bmap2-canvas[data-focus="customers"] .bmap2-node-customers { background: rgba(255,255,255,.07); }
}

@media (prefers-reduced-motion: reduce) {
  .bmap2-node, .bmap2-line, .bmap2-focus-panel { transition: none !important; animation: none !important; }
}
/* ── End of the retired Business Map (node-graph) rules. Everything
   above (the .bmap2- and .bmap- prefixed families) is genuinely unused
   -- no element in the live DOM has these classes any more -- but
   intentionally left in place rather than deleted; see app.html's own
   comment on #bizPanelOverview for the full rationale. Do not extend
   either retired family — build new Business Intelligence work on the
   .bic- prefixed rules below instead. ── */

/* ════════════════════════════════════════════════════════════════
   BUSINESS INTELLIGENCE PROFILE (Business Map Retirement sprint) —
   a centered header, a restrained identity summary, and a premium 3x2
   grid of six real intelligence cards. Always-dark, matching
   #page-business-brain's existing unconditional dark theme (see the
   BUSINESS HUB block earlier in this file) — no separate theming needed.

   CSS PARSER SAFETY NOTE: a real bug (Autopilot Builder Fix sprint) was
   caused by writing an asterisk immediately followed by a forward slash
   inside a comment — that two-character pair is the literal CSS
   comment-close token and silently drops the very next rule. Every
   comment below was written with a deliberate space wherever an
   asterisk and a slash could otherwise land next to each other.
   ════════════════════════════════════════════════════════════════ */
.bic-root { gap: 26px; }

/* ── One shared centered composition — heading, identity and the grid
   all live inside this single container so they share one true center
   axis (UX/Functionality Polish pass: previously the header row and the
   grid were independently max-width'd siblings, and a right-floated
   edit button skewed the title off that axis). ── */
.bic-composition { display: flex; flex-direction: column; align-items: center; gap: 26px; width: 100%; max-width: 1160px; }

.bic-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 0; text-align: center; }

/* ── Identity summary — the company at a glance. Only real facts
   render; empty ones are simply absent (spec 5), never forced. ── */
.bic-identity { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; flex-shrink: 0; }
.bic-identity-icon-wrap { position: relative; width: clamp(64px, 8vh, 92px); aspect-ratio: 1 / 1; margin-bottom: 2px; }
.bic-identity-name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }
.bic-identity-meta { font-size: 13.5px; color: var(--green); font-weight: 600; }
.bic-identity-meta .biz-hero-meta-dot { color: rgba(255,255,255,.3); margin: 0 4px; }
.bic-identity-traits { font-size: 12.5px; color: rgba(255,255,255,.45); letter-spacing: .01em; }

/* ── Six intelligence cards — a deliberate, centered, editorial 3x2
   grid, sized to be the dominant object on the page. Generous padding,
   one clear accent per domain (top border + icon color only — dark
   surface stays dominant, real text always carries the meaning too),
   no per-card button row — the whole card is the click target (a
   trailing chevron only cues that, it isn't itself a separate control). ── */
.bic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1160px; }
.bic-card {
  position: relative; text-align: left; font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  padding: 26px 24px 28px; border-radius: 18px;
  /* Card Polish pass: a FIXED height (not min-height) is what makes all six
     cards equal regardless of row -- CSS Grid only auto-equalizes cards
     WITHIN the same row (row 1 was naturally taller than row 2 purely
     because Business/Brand's real content wraps to more lines than
     Competition/Advertising/Knowledge's shorter summaries: measured 169px
     vs 148px). 172px covers the tallest real populated content with a
     small margin; .bic-card-line's own line-clamp below keeps anything
     longer from silently growing the card again. */
  height: 172px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-top-width: 3px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
/* Hover: lift + subtle scale, never a gray/lighter fill (explicit
   direction: the card must stay dark; motion is the affordance, not a
   color change). transform-origin centered so the scale reads as the
   whole card growing evenly, not drifting toward one edge. */
.bic-card { transform-origin: center; }
/* Longhand left/right/bottom only -- never the border-color shorthand,
   which would also set border-top-color and silently override each
   card's real per-domain accent (.bic-card-business etc., further down)
   the instant it's hovered. */
.bic-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-left-color: rgba(255,255,255,.18); border-right-color: rgba(255,255,255,.18); border-bottom-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 36px rgba(0,0,0,.34);
}
.bic-card:hover .bic-card-chevron { color: rgba(255,255,255,.75); transform: translateX(2px); }
.bic-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* Empty cards keep their real domain accent (helps orientation/
   scannability regardless of fill state) and stay visually calm -- a
   dashed border reads like a file drop-zone, not an editorial
   intelligence summary; the italic muted line below (spec 24) is the
   real "not mapped yet" signal, not the border treatment. */
.bic-card-top { display: flex; align-items: center; gap: 10px; }
.bic-card-icon { width: 20px; height: 20px; flex-shrink: 0; }
.bic-card-icon svg { width: 100%; height: 100%; }
.bic-card-label { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.bic-card-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bic-card-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.bic-card-badge-issue { background: rgba(239,68,68,.15); color: #f87171; }
.bic-card-badge-opportunity { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.bic-card-chevron { display: flex; color: rgba(255,255,255,.28); transition: color .16s ease, transform .16s ease; }
/* Line-clamped so unusually long real content (e.g. a long business
   description) truncates gracefully instead of silently growing the
   card past its fixed height again. */
.bic-card-line {
  font-size: 14.5px; color: rgba(255,255,255,.85); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bic-card-empty .bic-card-line { color: rgba(255,255,255,.4); font-style: italic; }
.bic-card-line-muted { font-size: 12.5px; color: rgba(255,255,255,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bic-card-swatches { display: flex; gap: 6px; }
.bic-card-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }

/* Per-domain accent — top border + icon color only (spec 22: never a
   full-color card fill, color is never the only carrier of meaning). */
.bic-card-business { border-top-color: color-mix(in srgb, var(--green) 55%, rgba(255,255,255,.08)); }
.bic-card-business .bic-card-icon { color: var(--green); }
.bic-card-brand { border-top-color: color-mix(in srgb, #A78BFA 55%, rgba(255,255,255,.08)); }
.bic-card-brand .bic-card-icon { color: #A78BFA; }
.bic-card-audience { border-top-color: color-mix(in srgb, #FACC15 55%, rgba(255,255,255,.08)); }
.bic-card-audience .bic-card-icon { color: #FACC15; }
.bic-card-competition { border-top-color: color-mix(in srgb, #60A5FA 55%, rgba(255,255,255,.08)); }
.bic-card-competition .bic-card-icon { color: #60A5FA; }
.bic-card-advertising { border-top-color: color-mix(in srgb, #34D399 55%, rgba(255,255,255,.08)); }
.bic-card-advertising .bic-card-icon { color: #34D399; }
.bic-card-knowledge { border-top-color: color-mix(in srgb, #F97316 55%, rgba(255,255,255,.08)); }
.bic-card-knowledge .bic-card-icon { color: #F97316; }

/* Real issue remediation feedback (UX/Functionality Polish pass) —
   loading/success/failure states for _bicRunVerify, never an optimistic
   "resolved" without a genuine verified result. */
.bic-issue-status { font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; }
.bic-issue-status-loading { color: rgba(255,255,255,.55); background: rgba(255,255,255,.04); }
.bic-issue-status-ok { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.bic-issue-status-fail { color: #f87171; background: rgba(239,68,68,.1); }

/* ── Card details — a dismissible overlay, never a permanent right-side
   panel. Same premium dark-chrome language as the retired map's own
   focus panel, kept as its own component so this page's styling stays
   self-contained. ── */
.bic-focus-overlay {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,8,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 16px;
}
.bic-focus-panel {
  width: 100%; max-width: 460px;
  background: #0b0b0c; border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  box-shadow: 0 24px 72px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  max-height: min(78vh, 640px); display: flex; flex-direction: column; overflow: hidden;
  animation: bicFocusIn .18s cubic-bezier(.22,1,.36,1);
}
@keyframes bicFocusIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.bic-focus-hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.bic-focus-title { font-size: 14px; font-weight: 800; color: #fff; }
.bic-focus-close { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.4); font-size: 13px; transition: background .14s, color .14s; }
.bic-focus-close:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.bic-focus-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bic-focus-body { padding: 16px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

.bic-detail-empty { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.55; margin: 0 0 12px; }
.bic-detail-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bic-detail-row:last-of-type { border-bottom: none; }
.bic-detail-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.4); }
.bic-detail-value { font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.5; }
.bic-detail-sub { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.4); margin: 12px 0 6px; }
.bic-detail-action { margin-top: 14px; }

.bic-swatch-row { display: flex; gap: 8px; margin-bottom: 4px; }
.bic-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }

.bic-plat-list { display: flex; flex-direction: column; gap: 2px; }
.bic-plat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bic-plat-row:last-child { border-bottom: none; }
.bic-plat-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.bic-plat-status { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); }
.bic-plat-connected { color: var(--green); }

.bic-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.bic-list-item { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.5; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }

/* ── Responsive — 3 columns desktop, 2 columns narrower desktop/tablet,
   1 column mobile (spec 25: never preserve 3 columns by making cards
   unreadably narrow). ── */
@media (max-width: 1180px) {
  .bic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
}
@media (max-width: 640px) {
  .bic-composition { max-width: 100%; gap: 20px; }
  .bic-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px; padding: 0 4px; }
  /* Mobile is a single column -- equal-height matching across a 3x2 grid
     doesn't apply here (there's no row to match against), so let each
     card size naturally to its own real content instead of clipping at
     the desktop-grid fixed height. */
  .bic-card { padding: 18px 18px 20px; height: auto; min-height: 0; }
  .bic-card-line { -webkit-line-clamp: unset; }
}

@media (prefers-reduced-motion: reduce) {
  .bic-card, .bic-focus-panel { transition: none !important; animation: none !important; }
  /* Card Polish pass: transition:none alone only removes the smoothing --
     the hover lift+scale transform would still apply, just as an instant
     snap. Reduced motion means no repositioning at all; the border/shadow
     strengthening above (not motion) remains as the hover affordance. */
  .bic-card:hover { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   ONBOARDING — the welcome screen (three outcomes), the intro panels on
   Create/Research, the next-step line and the plan-fit lines in the plan
   modal. See onboarding.js.
   Every color/font here is a canonical token (--bg/--surface/--charcoal/
   --green/--border/--muted, Instrument Serif + Geist) so this
   automatically follows light/dark/system theme and the rest of the
   product's typography — no separate onboarding design language.
   ══════════════════════════════════════════════════════════════════ */
/* ── Welcome modal: centered over the real dashboard ── */
.ob2-overlay{
  position:fixed;inset:0;z-index:9900;display:none;align-items:center;justify-content:center;
  padding:32px 24px;background:rgba(10,10,10,.34);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;transition:opacity 220ms cubic-bezier(.22,.61,.36,1);
  overflow-y:auto;overscroll-behavior:contain;
}
body.dark-mode .ob2-overlay{background:rgba(0,0,0,.5)}
.ob2-overlay.ob2-visible{opacity:1}

.ob4-modal{
  position:relative;width:100%;max-width:640px;margin:auto;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  background:var(--surface);border:1px solid var(--border);border-radius:22px;
  padding:40px 36px 24px;
  box-shadow:0 1px 2px rgba(0,0,0,.06),0 24px 64px -12px rgba(0,0,0,.35);
  transform:translateY(10px) scale(.985);
  transition:transform 260ms cubic-bezier(.22,.61,.36,1);
}
.ob2-overlay.ob2-visible .ob4-modal{transform:none}

/* Same asset and treatment as the sidebar logo (.orv-sb-logo-img: contain,
   8px radius at 40px), scaled to 56px. */
.ob4-logo{width:56px;height:56px;object-fit:contain;border-radius:11px;display:block;margin-bottom:20px}
.ob4-h1{font-family:'Geist',system-ui,-apple-system,sans-serif;font-weight:600;font-size:clamp(26px,3.2vw,34px);letter-spacing:-.02em;line-height:1.15;color:var(--charcoal);margin:0 0 8px}
/* The heading takes focus when the dialog opens so screen readers announce
   it; it's never in the Tab order, so no focus ring. */
.ob4-h1:focus{outline:none}
.ob4-sub{font-size:15px;line-height:1.6;color:var(--muted);margin:0 0 28px}

.ob3-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
.ob3-choice{
  display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%;text-align:left;
  background:var(--sf2);border:1.5px solid var(--border);border-radius:16px;
  padding:20px 18px 18px;cursor:pointer;font:inherit;color:inherit;outline:none;
  transition:border-color var(--t),transform var(--orv-t-fast),background var(--t),box-shadow var(--t);
}
.ob3-choice:hover:not(:disabled){border-color:var(--b2);background:var(--surface);transform:translateY(-2px);box-shadow:0 10px 24px -14px rgba(0,0,0,.35)}
.ob3-choice:focus-visible{border-color:var(--green);box-shadow:0 0 0 3px var(--glt)}
.ob3-choice:disabled{cursor:default;opacity:.6}
.ob3-ic{flex:0 0 auto;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--glt);color:var(--charcoal);transition:background var(--t),color var(--t)}
.ob3-ic svg{width:22px;height:22px}
.ob3-choice:hover .ob3-ic,.ob3-choice:focus-visible .ob3-ic{background:var(--green);color:var(--green-deep)}
.ob3-txt{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.ob3-name{font-size:15px;font-weight:600;color:var(--charcoal)}
.ob3-desc{font-size:13px;line-height:1.5;color:var(--muted)}
.ob3-cta{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--charcoal)}
.ob3-go{display:inline-block;color:var(--m2);transition:transform var(--orv-t-fast),color var(--t)}
.ob3-choice:hover .ob3-go,.ob3-choice:focus-visible .ob3-go{color:var(--charcoal);transform:translateX(3px)}
.ob2-err{color:var(--err-c);font-size:13px;margin-top:10px}

/* ── First ad (onboarding.js): one quiet line above the Create composer while
   a new Free account still has its free welcome image ad. ── */
.obf{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border-radius:14px;
  background:var(--glt);border:1px solid color-mix(in srgb,var(--green) 28%,transparent);color:var(--charcoal);font-size:13px;line-height:1.5}
.obf-ic{flex:0 0 auto;width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--green);color:var(--green-deep)}
.obf-ic svg{width:16px;height:16px}
.obf-txt{flex:1;min-width:0}
.obf-txt strong{font-weight:600;color:var(--charcoal)}
.obf-txt span{color:var(--muted)}
/* Plan step after the first ad: the honest Free line under the cards. */
.pw-ob-note{margin:0 auto 18px;max-width:640px;padding:0 24px;text-align:center;font-size:12.5px;line-height:1.55;color:rgba(255,255,255,.6)}

/* ── Intro panel on Create / Research (after choosing that goal) ── */
.obi{
  position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:center;
  width:100%;max-width:880px;margin:4px auto 22px;padding:22px 24px;text-align:left;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);
  animation:obiIn .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes obiIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.obi-eyebrow{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.obi-title{font-family:'Instrument Serif',serif;font-weight:400;font-size:24px;line-height:1.2;letter-spacing:-.4px;color:var(--charcoal);margin-bottom:8px;text-wrap:balance}
.obi-text{font-size:13.5px;line-height:1.6;color:var(--muted);margin-bottom:10px}
.obi-plan{font-size:12.5px;line-height:1.55;color:var(--charcoal);background:var(--gpale);border:1px solid var(--border);border-radius:var(--r);padding:8px 10px;margin-bottom:14px}
.obi-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.obi-btn{font:inherit;font-weight:600;font-size:13.5px;border-radius:var(--r);padding:9px 18px;border:1px solid transparent;background:var(--green);color:var(--green-deep);cursor:pointer;outline:none;transition:transform var(--orv-t-fast)}
.obi-btn:hover{transform:translateY(var(--orv-lift-sm))}
.obi-btn:focus-visible{box-shadow:0 0 0 3px var(--glt)}
.obi-link{font:inherit;font-size:13px;background:none;border:none;color:var(--muted);cursor:pointer;padding:4px 2px;border-radius:6px;outline:none}
.obi-link:hover{color:var(--charcoal)}
.obi-link:focus-visible{box-shadow:0 0 0 3px var(--glt);color:var(--charcoal)}
.obi-x{position:absolute;top:8px;right:10px;width:28px;height:28px;border-radius:8px;border:none;background:none;color:var(--m2);font-size:18px;line-height:1;cursor:pointer;outline:none}
.obi-x:hover{color:var(--charcoal);background:var(--gpale)}
.obi-x:focus-visible{box-shadow:0 0 0 3px var(--glt)}
.obi-examples{margin:0;display:flex;flex-direction:column;gap:6px}
.obi-ex-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.obi-ex-row img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;border:1px solid var(--border);background:var(--gpale);display:block}
.obi-examples figcaption{font-size:11px;color:var(--m2);text-align:right}
.obi-findings{margin:0;display:flex;flex-direction:column;gap:6px}
.obi-findings div{display:grid;grid-template-columns:104px 1fr;gap:10px;align-items:baseline;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--gpale)}
.obi-findings dt{font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
.obi-findings dd{margin:0;font-size:12.5px;line-height:1.45;color:var(--charcoal)}

/* One-line hint (Explore users, first visit) */
.orv-gate:has(> .obi){flex-direction:column;align-items:center}
.obi.obi-in-gate{margin:16px auto 0;max-width:560px;grid-template-columns:1fr;gap:18px}
.obi.obi-hint{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;max-width:720px}
.obi-hint-text{font-size:13.5px;color:var(--charcoal)}

/* Marketing-email opt-in on the signup forms (unchecked by default) */
.orv-optin{display:flex;gap:9px;align-items:flex-start;margin:2px 0 14px;font-size:12.5px;line-height:1.45;color:var(--muted);cursor:pointer}
.orv-optin input{margin-top:2px;accent-color:var(--green);flex:0 0 auto}
.orv-optin-gg{color:rgba(240,240,240,.7)}

/* ── One next step after a first result ── */
.obn{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:880px;margin:12px auto;padding:10px 14px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);font-size:13.5px}
.obn-text{color:var(--muted)}
.obn-link{font:inherit;font-weight:600;background:none;border:none;color:var(--charcoal);cursor:pointer;padding:2px 4px;border-radius:6px;outline:none}
.obn-link:hover{text-decoration:underline}
.obn-link:focus-visible{box-shadow:0 0 0 3px var(--glt)}
.obn-x{margin-left:auto;background:none;border:none;color:var(--m2);font-size:16px;cursor:pointer;padding:0 4px;border-radius:6px;outline:none}
.obn-x:hover{color:var(--charcoal)}
.obn-x:focus-visible{box-shadow:0 0 0 3px var(--glt)}

/* ── Responsive ── */
@media (max-width:768px){
  .ob3-choices{grid-template-columns:1fr;gap:10px}
  .ob3-choice{flex-direction:row;align-items:center;gap:14px;padding:16px}
  .ob3-cta-label{display:none}
  .obi{grid-template-columns:1fr;gap:16px;padding:18px}
}
@media (max-width:480px){
  .ob2-overlay{padding:16px;align-items:flex-start}
  .ob4-modal{padding:28px 18px 16px;border-radius:18px}
  .ob4-logo{width:48px;height:48px;border-radius:10px;margin-bottom:16px}
  .ob4-sub{margin-bottom:20px}
  .ob3-choice{padding:14px;gap:12px}
  .ob3-ic{width:38px;height:38px}
  .obi-findings div{grid-template-columns:1fr;gap:2px}
  .obi.obi-hint{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  .ob2-overlay,.ob4-modal,.ob3-choice,.ob3-go,.ob3-ic,.obi-btn{transition:none !important}
  .ob4-modal{transform:none !important}
  .ob3-choice:hover,.ob3-choice:hover .ob3-go,.obi-btn:hover{transform:none !important}
  .obi{animation:none}
}

/* ── Plan modal opened from a blocked action (paywall.js) — the modal is
   always dark, so these lines are too. ── */
.pw-fit{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;font-size:12px;line-height:1.45;border-radius:8px;padding:7px 9px;margin:0 0 10px}
.pw-fit-ic{font-weight:700}
.pw-fit-yes{color:rgba(240,240,240,.9);background:rgba(183,255,42,.08);border:1px solid rgba(183,255,42,.22)}
.pw-fit-yes .pw-fit-ic{color:var(--green)}
.pw-fit-no{color:rgba(240,240,240,.6);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.pw-fit-tag{flex-basis:100%;font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--green)}

/* ════════════════════════════════════════════════════════════════
   MANUAL CAMPAIGNS — "Add existing campaign" (Campaigns hub)
   Reuses existing tokens (--ap-*, --green/--gm) and the existing
   .adm-modal-* modal family exactly, rather than introducing a second
   modal/design system. Only genuinely new classes are added here.
   ════════════════════════════════════════════════════════════════ */

/* Secondary header button — same shape/size as .camp-new-btn (the
   primary "New Campaign" action) but ghost-styled, so Create → Launch
   stays the visually primary path and this reads as clearly secondary. */
.camp-new-btn-ghost {
  background: transparent !important; color: var(--ap-muted) !important;
  border: 1px solid var(--ap-border) !important; margin-right: 8px !important;
}
.camp-new-btn-ghost:hover { color: var(--ap-text) !important; border-color: rgba(255,255,255,.22) !important; opacity: 1 !important; }

/* Subtle provenance badge on a campaign card — never the dominant
   element (spec: "Do not make this visually dominant"). */
.cc3-manual-badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ap-muted); background: rgba(255,255,255,.06);
  border: 1px solid var(--ap-border); border-radius: 5px;
  padding: 2px 6px; margin-left: 4px;
}

/* Empty-state secondary path — small text action under the primary
   "Create Campaign →" button, same hierarchy as the header buttons. */
.camp-hub-empty-secondary {
  display: block; margin: 10px auto 0; background: none; border: none;
  color: var(--ap-muted); font-size: 12.5px; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.camp-hub-empty-secondary:hover { color: var(--ap-text); }

/* Wider modal variant for the add/edit form and detail view — same
   .adm-modal chrome (background/border/radius/shadow), just roomier.
   Everything BELOW this point lives inside .adm-modal, which (like the
   rest of the .adm-modal-* family it's built from — .adm-modal itself
   is a hardcoded #1c1c1e, .adm-modal-inp a hardcoded rgba(255,255,255,
   ...)) is intentionally theme-independent: it always renders dark,
   regardless of the site's light/dark setting. Colors here deliberately
   use fixed rgba(255,255,255,..) values matching .adm-modal-inp's own
   convention, NOT the theme-switching --ap-* tokens .camp-card/.camp-
   mode-hdr use elsewhere on this page — mixing the two was a real bug
   caught during testing (a var(--ap-bg3) card turned white-on-white in
   the guest/light-theme state, inside a modal that's always dark). */
.adm-modal-lg { max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; }
.adm-modal-lg .mc-modal-body,
.adm-modal-lg > .adm-modal-body:not(.mc-modal-body) { overflow-y: auto; }
.mc-modal-body { overflow-y: auto; flex: 1; min-height: 0; }
.mc-modal-foot { flex-wrap: wrap; }

.mc-step-indicator { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); margin-top: 2px; }
.mc-step-hint { font-size: 12.5px; color: rgba(255,255,255,.5); margin: 0 0 4px; }
.mc-optional { font-weight: 400; color: rgba(255,255,255,.5); text-transform: none; letter-spacing: 0; }
.mc-field-row { display: flex; gap: 12px; }
.mc-field-row .adm-modal-field { flex: 1; min-width: 0; }

/* Segmented control (budget type / creative type) — same visual family
   as the rest of the modal, built from scratch since no existing
   reusable segmented-control class was found. */
.mc-seg { display: inline-flex; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 3px; gap: 2px; }
.mc-seg-btn { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 7px; border: none; background: transparent; color: rgba(255,255,255,.5); cursor: pointer; transition: background .12s, color .12s; }
.mc-seg-btn:hover { color: rgba(255,255,255,.9); }
.mc-seg-btn-on { background: #2c2c2e; color: #fff; }

.mc-remove-link { background: none; border: none; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; flex-shrink: 0; }
.mc-remove-link:hover { color: #f87171; }

.mc-group-card { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: rgba(255,255,255,.02); }
.mc-group-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mc-group-name-inp { font-weight: 700; flex: 1; }
.mc-ads-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.mc-ad-card { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px; background: rgba(255,255,255,.035); display: flex; flex-direction: column; gap: 10px; }
.mc-ad-hdr { display: flex; align-items: center; justify-content: space-between; }
.mc-ad-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.mc-add-ad-btn, .mc-add-group-btn {
  display: inline-flex; align-items: center; gap: 6px; background: transparent;
  border: 1px dashed rgba(255,255,255,.15); border-radius: 8px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.5); cursor: pointer;
  transition: border-color .12s, color .12s; margin-top: 4px;
}
.mc-add-group-btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.mc-add-ad-btn:hover, .mc-add-group-btn:hover { border-color: var(--green); color: var(--green); }

.mc-advanced-toggle {
  display: flex; align-items: center; gap: 6px; background: none; border: none;
  color: rgba(255,255,255,.5); font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 10px 0 4px; width: 100%; text-align: left;
}
.mc-advanced-toggle:hover { color: rgba(255,255,255,.9); }
.mc-advanced-toggle svg { transition: transform .15s ease; flex-shrink: 0; }
.mc-advanced-body { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }

/* Creative upload — dropzone-style clickable label wrapping a hidden
   file input, matching the same FileReader → preview pattern already
   used elsewhere in this file (nccHandleImages) but with its own
   compact visual treatment sized for a single ad's creative. */
.mc-upload-drop {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255,255,255,.15); border-radius: 10px;
  background: rgba(255,255,255,.02); cursor: pointer; overflow: hidden;
  min-height: 96px; transition: border-color .12s;
}
.mc-upload-drop:hover { border-color: var(--green); }
.mc-upload-placeholder { font-size: 12px; color: rgba(255,255,255,.5); text-align: center; padding: 16px; line-height: 1.5; }
.mc-upload-preview { width: 100%; max-height: 180px; object-fit: contain; display: block; }
.mc-upload-status { font-size: 11.5px; margin-top: 6px; color: rgba(255,255,255,.5); min-height: 14px; }
.mc-upload-status-ok  { color: var(--green); }
.mc-upload-status-err { color: #f87171; }

/* ── Detail view ─────────────────────────────────────────────────── */
.mc-detail-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.mc-detail-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mc-detail-row { display: flex; gap: 10px; font-size: 13px; }
.mc-detail-lbl { flex: 0 0 110px; color: rgba(255,255,255,.5); font-weight: 600; }
.mc-detail-val { color: rgba(255,255,255,.9); word-break: break-word; }

/* Explicit, honest "no live data" state — never a fabricated zero
   metric (spec: this is the single most important UI requirement of
   this feature). Same visual weight as a real inline notice, not an
   afterthought. */
.mc-detail-perf {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px;
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 18px; line-height: 1.5;
}
.mc-detail-perf svg { flex-shrink: 0; margin-top: 1px; color: rgba(255,255,255,.5); }

.mc-detail-groups { display: flex; flex-direction: column; gap: 14px; }
.mc-detail-group { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; }
.mc-detail-group-hdr { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.mc-detail-group-meta { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 2px; }
.mc-detail-ad { display: flex; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 12px; }
.mc-detail-group > .mc-detail-ad:first-of-type { border-top: none; padding-top: 0; margin-top: 10px; }
.mc-detail-creative { flex: 0 0 96px; }
.mc-detail-creative img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.mc-detail-creative a { font-size: 12px; color: var(--green); }
.mc-detail-ad-body { flex: 1; min-width: 0; }
.mc-detail-ad-headline { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.9); }
.mc-detail-ad-text { font-size: 12.5px; color: rgba(255,255,255,.9); opacity: .85; margin-top: 3px; white-space: pre-wrap; }
.mc-detail-ad-desc { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }
.mc-detail-ad-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.mc-detail-ad-cta { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: rgba(255,255,255,.08); border-radius: 6px; padding: 3px 8px; color: rgba(255,255,255,.9); }
.mc-detail-ad-link { font-size: 12px; color: var(--green); word-break: break-all; }

/* ── Responsive — 1280×800 down to 360×800 (spec's audit list) ────── */
@media (max-width: 860px) {
  .adm-modal-lg { max-width: 94vw; margin: 10px; max-height: 92vh; }
  .mc-field-row { flex-direction: column; gap: 0; }
  .mc-detail-ad { flex-direction: column; }
  .mc-detail-creative { flex: none; }
  .mc-detail-creative img { width: 100%; height: auto; max-height: 200px; }
  .camp-mode-hdr-action-only { flex-wrap: wrap; gap: 8px; }
  .camp-new-btn-ghost { margin-right: 0 !important; }
}
@media (max-width: 480px) {
  .adm-modal-lg { margin: 0; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .mc-detail-lbl { flex-basis: 90px; }
}

/* Pricing (V10): screen-reader prefix for excluded plan items, a readable
 (still muted) excluded tone, and the paywall's feature note. */
.ov-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ov-pc-list li.ov-pc-feat-excluded { color: rgba(255,255,255,.5); }
.ov-pc-list li.ov-pc-feat-excluded::before { color: rgba(255,255,255,.4); }
.ov-pc-feat-cost { color: rgba(255,255,255,.55); }
.pw-feats-list .pw-feat-excluded { color: rgba(240,240,240,.5); }
.pw-feat-note { display: block; font-size: 11px; color: rgba(240,240,240,.55); margin-top: 2px; }

/* ── Product pages: in-depth section (tools/seo/product-depth.js) ── */
.ov-deep .ov-sp-section-inner { max-width: 860px; }
.ov-deep-intro { font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,.62); max-width: 700px; margin: 0 0 32px; }
.ov-deep-steps { list-style: none; counter-reset: deep; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.ov-deep-steps li { counter-increment: deep; position: relative; padding: 16px 18px 16px 58px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.02); font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.62); }
.ov-deep-steps li::before { content: counter(deep); position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #07070A; background: var(--green); }
.ov-deep-steps strong { color: rgba(255,255,255,.92); font-weight: 600; }
.ov-deep-fig { margin: 0 0 40px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; background: #0c0c10; }
.ov-deep-fig img { display: block; width: 100%; height: auto; }
.ov-deep-fig figcaption { padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.06); }
.ov-deep-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.ov-deep-cols > div { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px 22px; }
.ov-deep h3 { font-size: 15px; font-weight: 650; color: rgba(255,255,255,.9); margin: 0 0 12px; letter-spacing: -.01em; }
.ov-deep-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ov-deep-cols li { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.58); }
.ov-deep-qh { margin-top: 8px !important; }
.ov-deep-faq { display: grid; gap: 8px; margin-bottom: 28px; }
.ov-deep-faq details { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.02); }
.ov-deep-faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88); list-style: none; position: relative; }
.ov-deep-faq summary::-webkit-details-marker { display: none; }
.ov-deep-faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 20px; font-weight: 400; }
.ov-deep-faq details[open] summary::after { content: '–'; }
.ov-deep-faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 12px; }
.ov-deep-faq p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.58); }
.ov-deep-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 14px; margin: 0; }
.ov-deep-links span { color: rgba(255,255,255,.4); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ov-deep-links a { color: color-mix(in srgb, var(--green) 85%, #fff); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .ov-deep-cols { grid-template-columns: 1fr; }
  .ov-deep-steps li { padding: 14px 14px 14px 52px; }
}
.ov-price-table-wrap { overflow-x: auto; margin: 0 0 32px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.ov-price-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.ov-price-table th, .ov-price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.7); vertical-align: top; }
.ov-price-table thead th { color: rgba(255,255,255,.92); font-weight: 650; }
.ov-price-table thead th span { font-weight: 400; color: rgba(255,255,255,.5); font-size: 13px; }
.ov-price-table tbody th { font-weight: 500; color: rgba(255,255,255,.8); }
.ov-price-table tr:last-child th, .ov-price-table tr:last-child td { border-bottom: 0; }
.ov-price-table td span[aria-label="Included"] { color: var(--green); font-weight: 700; }
.ov-price-costs { min-width: 0; }
.ov-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Five access periods (Flex … Annual): one product, the plans differ
   only in period, price and credits (js/plans.js). Public cards and the
   in-app plan modal hold five cards; the features are listed once, not per
   card. ── */
.ov-pricing-grid-4.ov-pc-five { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 14px; row-gap: 0; }
/* One rhythm for every card: the five rows (name, price, facts, benefits,
   button) are shared across the cards in a row via subgrid, so they stay
   aligned when a line wraps. */
.ov-pc--period { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 14px; padding: 26px 22px 22px; }
@supports not (grid-template-rows: subgrid) { .ov-pc--period { display: flex; } .ov-pc--period .ov-pc-facts { min-height: 92px; } }
.ov-pc--period .ov-pc-head { height: auto; min-height: 44px; margin-bottom: 10px; justify-content: flex-end; }
.ov-pc--period .ov-pc-price { font-size: clamp(34px, 3vw, 42px); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.ov-pc-facts { display: grid; gap: 4px; align-content: start; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ov-pc-facts p { margin: 0; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ov-pc-duration { font-size: 14px; font-weight: 600; color: #fff; }
.ov-pc--period .ov-pc-credits { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }
.ov-pc-sub { font-weight: 400; color: rgba(255,255,255,.45); white-space: nowrap; }
.ov-pc-vat { margin-top: 6px !important; font-size: 12px; color: rgba(255,255,255,.42); }
.ov-pc-benefits { margin: 0 0 20px; }
.ov-pc-benefits li { font-size: 13px; color: rgba(255,255,255,.7); }
.ov-pc--period .ov-pc-btn { align-self: end; }
/* The pricing fold's dot field runs behind the cards: a near-opaque base
   under each card's own tint keeps the same surface and lets the dots show
   only faintly through it, so prices and text stay clear. */
.ov-pc--period { background-color: rgba(11, 12, 10, .86); background-image: linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)); }
.ov-pc--period.ov-pc-pro { background-image: linear-gradient(color-mix(in srgb, var(--green) 4%, transparent), color-mix(in srgb, var(--green) 4%, transparent)); }
/* Pricing header: the shared dot field (js/dot-field.js mounts it here)
   behind a short title, above the cards. */
.ov-pricing-head { position: relative; isolation: isolate; text-align: center; padding: clamp(40px, 5vw, 72px) 24px clamp(36px, 4vw, 56px); margin: 0 auto clamp(20px, 3vw, 36px); max-width: 1100px; }
.ov-pricing-head .ov-pricing-fold-eyebrow { margin-bottom: 14px; }
.ov-pricing-title { margin: 0; font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: #fff; text-wrap: balance; }
@media (max-width: 1180px) and (min-width: 861px) { .ov-pricing-grid-4.ov-pc-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) and (min-width: 701px) { .ov-pricing-grid-4.ov-pc-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ov-pricing-grid-4.ov-pc-five { grid-template-columns: 1fr; } .ov-pc--period .ov-pc-head { min-height: 0; } }

.pw-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pw-card .pw-btn { margin-top: auto; }
.pw-card .pw-card-desc { margin-bottom: 8px; }
.pw-card .pw-period { white-space: nowrap; }
.pw-access-note { margin: 16px auto 0; padding: 0 24px; max-width: 640px; text-align: center; font-size: 12.5px; line-height: 1.55; color: rgba(240,240,240,.5); }
.pw-explore-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pw-explore-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 1024px) and (min-width: 769px) { .pw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) and (min-width: 581px) { .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; } }
@media (max-width: 580px) { .pw-grid { grid-template-columns: 1fr; } }

/* ── Pricing explanation (tools/seo/apply-product-depth.js) ──────────
   Three parts under one heading, each with its own title and separated by
   a hairline: plans side by side (one row per plan), credits (rules next to
   a grouped price list) and good to know. Hairlines only, no boxed panels. */
.ov-price-detail .ov-sp-section-inner { max-width: 1040px; }
.ov-price-detail .ov-deep-intro { margin-bottom: 8px; }
.ov-pd-part { margin-top: clamp(36px, 4.5vw, 56px); }
.ov-pd-part + .ov-pd-part { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.08); }
.ov-price-detail .ov-pd-part h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; color: #fff; margin: 0 0 16px; }
.ov-pd-table-wrap { overflow-x: auto; }
.ov-pd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ov-pd-table th, .ov-pd-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.ov-pd-table thead th { padding-top: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.ov-pd-table tbody th { font-size: 15px; font-weight: 650; color: #fff; }
.ov-pd-table td { font-size: 14.5px; color: rgba(255,255,255,.72); }
.ov-pd-table .ov-pd-num { text-align: right; }
.ov-pd-table th:first-child, .ov-pd-table td:first-child { padding-left: 0; }
.ov-pd-table tr.is-best th { color: var(--green); }
.ov-pd-table tr.is-best td { color: rgba(255,255,255,.9); }
.ov-pd-shared { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.55); }
.ov-pd-shared span { display: inline-block; margin-right: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.ov-pd-credits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ov-pd-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ov-pd-rules li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.66); }
.ov-pd-rules li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .8; }
.ov-pd-costs { display: grid; gap: 22px; }
.ov-price-detail .ov-pd-costs h3 { margin-bottom: 0; }
.ov-pd-group h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.ov-pd-group dl { margin: 0; }
.ov-pd-group dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.ov-pd-group dt { font-size: 14.5px; color: rgba(255,255,255,.82); }
.ov-pd-group dt span { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.ov-pd-group dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ov-pd-know ul { margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px clamp(20px, 3vw, 40px); }
.ov-pd-know li { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.62); }
.ov-pd-know li b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; color: #fff; }
@media (max-width: 860px) {
  .ov-pd-credits { grid-template-columns: 1fr; }
  .ov-pd-know ul { grid-template-columns: 1fr; }
}
/* Phones: each plan becomes a small labelled block instead of a wide table. */
@media (max-width: 640px) {
  .ov-pd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ov-pd-table, .ov-pd-table tbody, .ov-pd-table tr, .ov-pd-table th, .ov-pd-table td { display: block; }
  .ov-pd-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .ov-pd-table tr th { grid-column: 1 / -1; padding: 0; border: 0; }
  .ov-pd-table td { padding: 0; border: 0; white-space: normal; text-align: left !important; font-size: 14px; }
  .ov-pd-table td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.42); }
}
