/* ============================================================
   CLEOM — App shell (Gaming Creative OS)
   DARK edition — matches Free-Roam Studio's cinematic look.
   Same class contract as before; only the skin changed.
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-0: #0A0A0B;        /* page */
    --bg-1: #121214;        /* surface / cards */
    --bg-2: #1A1A1E;        /* elevated controls */
    --bg-3: #0F0F11;        /* inset */
    --line: #232328;
    --line-2: #32323A;
    --ink-0: #F4F5EF;
    --ink-1: #A4A699;
    --ink-2: #6C6E63;
    --accent: #9EFF00;
    --accent-deep: #84DB00;
    --accent-ink: #0A0A0B;
    --accent-soft: rgba(158, 255, 0, 0.10);
    --accent-line: rgba(158, 255, 0, 0.34);
    --glow: 0 8px 28px rgba(158, 255, 0, 0.28);
    --danger: #FF5B49;
    --danger-soft: rgba(255, 91, 73, 0.12);
    --warn: #FFB020; --warn-soft: rgba(255, 176, 32, 0.14);
    --ok: #9EFF00; --ok-soft: rgba(158, 255, 0, 0.13);
    --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-full: 999px;
    --shadow-1: 0 2px 10px rgba(0,0,0,0.35);
    --shadow-2: 0 24px 70px -20px rgba(0,0,0,0.7);
    --sidebar-w: 248px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg-0); color: var(--ink-0); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ambient glow like Free-Roam */
body::before { content: ''; position: fixed; top: -28vh; left: 50%; transform: translateX(-50%); width: 1100px; height: 800px; background: radial-gradient(ellipse 55% 42% at 50% 38%, rgba(158,255,0,0.07), transparent 62%); filter: blur(28px); pointer-events: none; z-index: 0; }

/* ============ LOADER ============ */
.app-loader { position: fixed; inset: 0; background: var(--bg-0); display: flex; align-items: center; justify-content: center; z-index: 500; }
.app-loader .spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: appspin 0.7s linear infinite; }
@keyframes appspin { to { transform: rotate(360deg); } }

/* ============ SHELL ============ */
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ---- Sidebar ---- */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; position: fixed; inset: 0 auto 0 0; height: 100vh; background: rgba(15,15,17,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 60; }
.sidebar-brand { display: flex; align-items: center; padding: 1.35rem 1.4rem 1.1rem; }
.sidebar-brand img { height: 30px; width: auto; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.5rem 0.75rem 1.25rem; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0.8rem; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 500; color: var(--ink-1); transition: background 0.15s, color 0.15s; position: relative; }
.nav-item svg { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-2); color: var(--ink-0); }
.nav-item.active { background: var(--accent-soft); color: var(--ink-0); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -0.75rem; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0; }
.nav-item.active svg { color: var(--accent); opacity: 1; }
.nav-item.locked { opacity: 0.55; }
.nav-item .lock { margin-left: auto; }
.nav-item .lock svg { width: 13px; height: 13px; }
.nav-divider { height: 1px; background: var(--line); margin: 0.6rem 0.25rem; }
.sidebar-backdrop { display: none; }

/* ---- Main column ---- */
.app-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

/* ---- Topbar ---- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 0.85rem; padding: 0 1.75rem; height: 64px; background: rgba(10,10,11,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.topbar-spacer { flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 0.6rem; }
.topbar-mobile-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-0); align-items: center; justify-content: center; }

/* game switcher */
.game-switch { position: relative; }
.game-switch-btn { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.8rem 0.4rem 0.45rem; border-radius: var(--r-full); background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color 0.15s; max-width: 280px; }
.game-switch-btn:hover { border-color: var(--accent-line); }
.game-switch-thumb { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; overflow: hidden; }
.game-switch-name { font-size: 0.88rem; font-weight: 600; color: var(--ink-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-switch .caret { width: 12px; height: 12px; color: var(--ink-2); flex-shrink: 0; }
.game-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 240px; padding: 0.45rem; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s var(--ease); z-index: 80; }
.game-menu.show { opacity: 1; visibility: visible; transform: none; }
.game-menu-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.6rem; border-radius: var(--r-sm); font-size: 0.88rem; color: var(--ink-1); text-align: left; transition: background 0.15s, color 0.15s; }
.game-menu-item:hover { background: var(--bg-2); color: var(--ink-0); }
.game-menu-item.active { background: var(--accent-soft); color: var(--ink-0); font-weight: 600; }
.game-menu-divider { height: 1px; background: var(--line); margin: 0.35rem 0; }

/* credits + user */
.credits-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; border-radius: var(--r-full); background: var(--bg-2); border: 1px solid var(--line-2); font-size: 0.88rem; font-weight: 600; color: var(--ink-0); transition: border-color 0.15s; }
.credits-chip:hover { border-color: var(--accent-line); }
.credits-chip svg { width: 15px; height: 15px; color: var(--accent); }
.credits-chip .plus { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.credits-chip .plus svg { width: 11px; height: 11px; color: var(--accent-ink); }
.user-menu { position: relative; }
.user-btn { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.user-dropdown { position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 230px; padding: 0.45rem; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s var(--ease); z-index: 80; }
.user-dropdown.show { opacity: 1; visibility: visible; transform: none; }
.user-dropdown .uhead { padding: 0.6rem 0.7rem 0.7rem; border-bottom: 1px solid var(--line); margin-bottom: 0.35rem; }
.user-dropdown .uhead .nm { font-weight: 600; font-size: 0.92rem; }
.user-dropdown .uhead .em { font-size: 0.76rem; color: var(--ink-2); }
.user-dropdown a, .user-dropdown button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; border-radius: var(--r-sm); font-size: 0.88rem; color: var(--ink-1); text-align: left; transition: background 0.15s, color 0.15s; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-2); color: var(--ink-0); }
.user-dropdown svg { width: 16px; height: 16px; }

/* ============ SIDEBAR GROUPS ============ */
.nav-group { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); padding: 1rem 0.8rem 0.4rem; }
.nav-group:first-child { padding-top: 0.3rem; }

/* ============ COCKPIT (2-col surface + AI rail) ============ */
.cockpit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }
.cockpit-main { min-width: 0; }
.cockpit-rail { position: sticky; top: 84px; }
.ai-rail { background: linear-gradient(180deg, rgba(20,21,18,0.9), rgba(15,15,17,0.9)); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1.1rem 1.15rem; box-shadow: var(--shadow-1); }
.aid-head { margin-bottom: 0.9rem; }
.aid-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.aid-badge svg { width: 14px; height: 14px; }
.aid-score { display: flex; justify-content: center; margin-bottom: 1rem; }
.aid-block { margin-bottom: 1rem; }
.aid-h { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-family: var(--font-mono); margin-bottom: 0.5rem; }
.aid-miss, .aid-sug { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-1); padding: 0.4rem 0.5rem; border-radius: var(--r-sm); }
.aid-miss svg { width: 14px; height: 14px; color: var(--warn); flex-shrink: 0; }
.aid-sug { color: var(--ink-0); }
.aid-sug svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
a.aid-sug:hover { background: var(--accent-soft); }
.aid-note { font-size: 0.78rem; color: var(--ink-2); line-height: 1.5; padding-top: 0.85rem; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.aid-cost { display: flex; align-items: center; justify-content: space-between; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-1); }
.aid-cost b { color: var(--accent); font-family: var(--font-mono); font-size: 1rem; }

/* score ring */
.score-ring { position: relative; width: 80px; height: 80px; }
.score-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: var(--line-2); stroke-width: 7; }
.score-ring .ring-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); }
.score-ring .ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.score-ring .ring-num small { font-size: 0.7rem; color: var(--ink-2); margin-left: 1px; }
.ring-cap { text-align: center; margin-top: 0.4rem; }
.ring-cap b { display: block; font-size: 0.78rem; }
.ring-cap span { font-size: 0.68rem; color: var(--ink-2); }

.ip-context.warn { background: var(--warn-soft); border-color: rgba(255,176,32,0.4); }
.ip-context.warn .ip-dot, .ip-context.warn a { color: var(--warn); }
.ip-context.warn .ip-dot { background: var(--warn); }

/* ============ COMMAND CENTER ============ */
.cc-head { margin-bottom: 1.5rem; }
.cc-active { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--bg-1), var(--bg-3)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.6rem; margin-bottom: 1.75rem; position: relative; overflow: hidden; }
.cc-active::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(158,255,0,0.10), transparent 65%); }
.cc-active-id { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.cc-game-thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; flex-shrink: 0; }
.cc-game-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.cc-game-sub { color: var(--ink-1); font-size: 0.88rem; margin-top: 0.15rem; }
.cc-metrics { display: flex; gap: 1.5rem; align-items: center; margin-left: auto; flex-wrap: wrap; position: relative; z-index: 1; }
.cc-metric { display: flex; flex-direction: column; align-items: center; }
.cc-metric.mini { min-width: 70px; }
.cc-metric.mini .ccm-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.cc-metric.mini .ccm-lbl { font-size: 0.7rem; color: var(--ink-2); }
.cc-active-cta { position: relative; z-index: 1; }
.cc-onboard { justify-content: space-between; }

.cc-cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 1.75rem; align-items: start; }
.cc-side { position: sticky; top: 84px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-h h2 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.panel-h h2 svg { width: 18px; height: 18px; color: var(--accent); }
.mini-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--ink-1); }
.mini-link svg { width: 13px; height: 13px; }
.mini-link:hover { color: var(--accent); }

.cc-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cl-item { display: flex; align-items: center; gap: 0.7rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.85rem 1rem; }
.cl-item.done { border-color: var(--accent-line); }
.cl-tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: var(--accent-ink); }
.cl-item.done .cl-tick { background: var(--accent); border-color: var(--accent); }
.cl-tick svg { width: 14px; height: 14px; }
.cl-k { font-size: 0.9rem; font-weight: 600; }
.cl-hint { font-size: 0.75rem; color: var(--ink-2); }

.sug-card { position: relative; display: block; border-radius: var(--r-lg); padding: 1.4rem; overflow: hidden; transition: transform 0.3s var(--ease); min-height: 130px; }
.sug-card:hover { transform: translateY(-4px); }
.sug-card.v-dark { background: var(--dark, #0C0D0A); border: 1px solid var(--line-2); }
.sug-card.v-ink { background: #11160D; border: 1px solid var(--line-2); }
.sug-card.v-neon { background: linear-gradient(155deg, #C9FF6E, #9EFF00); color: #16240A; }
.sug-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(158,255,0,0.12); color: var(--accent); margin-bottom: 0.85rem; }
.sug-card.v-neon .sug-ic { background: rgba(12,13,10,0.12); color: #16240A; }
.sug-ic svg { width: 20px; height: 20px; }
.sug-t { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.sug-s { font-size: 0.82rem; opacity: 0.7; margin-top: 0.3rem; }
.sug-go { position: absolute; top: 1.4rem; right: 1.4rem; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.sug-go svg { width: 16px; height: 16px; }
.sug-card:hover .sug-go { opacity: 1; transform: translateX(2px); }

.out-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.9rem; }
.out-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.out-media { aspect-ratio: 16/10; background: var(--bg-3); position: relative; }
.out-media video, .out-media img { width: 100%; height: 100%; object-fit: cover; }
.out-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.out-surface { position: absolute; left: 6px; bottom: 6px; font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(0,0,0,0.6); color: var(--accent); padding: 0.15rem 0.45rem; border-radius: var(--r-full); }
.out-body { padding: 0.7rem 0.8rem 0.85rem; }
.out-prompt { font-size: 0.8rem; color: var(--ink-0); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.out-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.7rem; color: var(--ink-2); }

.cc-camp { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.cc-camp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cc-camp-name { font-size: 0.88rem; font-weight: 600; }
.cc-camp-meta { font-size: 0.74rem; color: var(--ink-2); margin-top: 0.25rem; }
.cc-camp-empty { display: flex; align-items: center; gap: 0.4rem; justify-content: center; padding: 1.1rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-1); font-size: 0.85rem; }
.cc-camp-empty svg { width: 15px; height: 15px; }
.cc-camp-empty:hover { border-color: var(--accent-line); color: var(--accent); }

/* ============ GAME MEMORY ============ */
.import-card { display: flex; gap: 1.25rem; align-items: center; background: linear-gradient(135deg, var(--bg-1), var(--bg-3)); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 1.5rem 1.6rem; }
.import-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.import-ic svg { width: 24px; height: 24px; }
.import-txt { flex: 1; min-width: 0; }
.import-txt h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.import-txt p { font-size: 0.85rem; color: var(--ink-1); margin: 0.2rem 0 0.85rem; }
.import-row { display: flex; gap: 0.6rem; }
.import-row .input { flex: 1; }
.mem-card { display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; transition: transform 0.3s var(--ease), border-color 0.2s; }
.mem-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.mem-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.mem-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.mem-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.mem-card p { font-size: 0.84rem; color: var(--ink-1); margin: 0.25rem 0 1rem; flex: 1; }
.mem-bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.mem-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 3px; transition: width 0.6s var(--ease); }
.mem-bar-cap { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-2); margin-top: 0.4rem; }

/* ============ GAME MEMORY HUB (tabs) ============ */
.mem-progress { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.mem-progress .mem-bar { height: 8px; }
.mem-pct { font-size: 0.78rem; color: var(--ink-1); font-family: var(--font-mono); white-space: nowrap; }
.mem-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.mem-tab { padding: 0.6rem 0.9rem; font-size: 0.85rem; font-weight: 500; color: var(--ink-1); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.mem-tab:hover { color: var(--ink-0); }
.mem-tab.active { color: var(--ink-0); border-bottom-color: var(--accent); font-weight: 600; }
.mem-panel { transition: opacity 0.2s var(--ease); min-height: 120px; }
.mem-lead { font-size: 1rem; line-height: 1.65; color: var(--ink-1); margin-bottom: 1.25rem; }
.mem-kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1.5rem; }
.mem-kv { display: flex; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.mem-kv .k { color: var(--ink-2); min-width: 120px; flex-shrink: 0; }
.mem-kv .v { color: var(--ink-0); word-break: break-word; }
.mem-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mem-pill { padding: 0.4rem 0.85rem; border-radius: var(--r-full); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 0.82rem; font-weight: 500; }
.mem-swatch { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.mem-swatch span { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); }
.mem-swatch small { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-2); }
.mem-comp { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.mem-comp svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.mem-comp a { color: var(--accent); word-break: break-all; }
.mem-empty { color: var(--ink-2); font-size: 0.92rem; padding: 1rem 0; }
.mem-empty a { color: var(--accent); }
@media (max-width: 700px) { .mem-kvs { grid-template-columns: 1fr; } }

/* ============ TRAILER BLUEPRINTS ============ */
.blueprint-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.bp-card { position: relative; display: block; border-radius: var(--r-lg); padding: 1.5rem; overflow: hidden; transition: transform 0.3s var(--ease); border: 1px solid var(--line-2); }
.bp-card:hover { transform: translateY(-5px); }
.bp-card.v-dark { background: var(--dark, #0C0D0A); }
.bp-card.v-ink { background: #11160D; }
.bp-card.v-neon { background: linear-gradient(155deg, #C9FF6E, #9EFF00); color: #16240A; border-color: transparent; }
.bp-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(158,255,0,0.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.bp-card.v-neon .bp-ic { background: rgba(12,13,10,0.12); color: #16240A; }
.bp-ic svg { width: 22px; height: 22px; }
.bp-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.85rem; }
.bp-row { display: flex; gap: 0.6rem; font-size: 0.8rem; padding: 0.3rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.bp-card.v-neon .bp-row { border-color: rgba(12,13,10,0.12); }
.bp-row .bp-k { color: var(--ink-2); min-width: 64px; }
.bp-card.v-neon .bp-row .bp-k { color: rgba(22,36,10,0.6); }
.bp-go { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.bp-card.v-neon .bp-go { color: #16240A; }
.bp-go svg { width: 14px; height: 14px; }

/* ============ CAMPAIGN MATRIX ============ */
.plan-section { border-color: var(--accent-line); }
.matrix { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.mx-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.mx-row:last-child { border-bottom: none; }
.mx-row:nth-child(even) { background: var(--bg-3); }
.mx-angle { font-size: 0.9rem; font-weight: 600; }
.mx-spec { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); }
.mx-count { display: flex; align-items: center; gap: 0.6rem; }
.mx-count b { min-width: 26px; text-align: center; font-family: var(--font-display); font-weight: 700; }
.mx-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-0); font-size: 1rem; line-height: 1; }
.mx-btn:hover { border-color: var(--accent); color: var(--accent); }
.mx-total { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; background: var(--accent-soft); font-size: 0.85rem; color: var(--ink-1); }
.mx-total b { color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }

/* ============ STEAM BUILDER ============ */
.cockpit-steam { grid-template-columns: minmax(0,1fr) 300px; }
.steam-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.25rem; align-items: start; }
.steam-inputs { min-width: 0; }
.steam-preview { position: sticky; top: 84px; background: #0b0d11; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1rem; }
.steam-preview-label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin-bottom: 0.75rem; }
.steam-mock { display: flex; flex-direction: column; gap: 0.7rem; }
.sm-capsule { position: relative; aspect-ratio: 460/215; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; padding: 0.9rem; }
.sm-cap-bg { position: absolute; inset: 0; }
.sm-cap-name { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.sm-cap-pill { position: absolute; top: 0.6rem; right: 0.6rem; font-size: 0.6rem; background: rgba(0,0,0,0.5); color: var(--accent); padding: 0.15rem 0.5rem; border-radius: var(--r-full); font-family: var(--font-mono); }
.sm-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.7rem; }
.sm-left { display: flex; flex-direction: column; gap: 0.7rem; }
.sm-shot { aspect-ratio: 16/9; background: #1b2838; border-radius: 6px; display: grid; place-items: center; font-size: 0.72rem; color: #66c0f4; }
.sm-shot.off, .sm-block.off, .sm-short.off, .sm-tags.off { opacity: 0.3; }
.sm-block { background: #16202d; border-radius: 6px; padding: 0.7rem 0.8rem; }
.sm-block h4 { font-size: 0.78rem; color: #c7d5e0; margin-bottom: 0.35rem; }
.sm-block p, .sm-block li { font-size: 0.72rem; color: #8f98a0; line-height: 1.45; }
.sm-block ul { padding-left: 1rem; list-style: disc; }
.sm-side { display: flex; flex-direction: column; gap: 0.7rem; }
.sm-short { background: #16202d; border-radius: 6px; padding: 0.7rem; font-size: 0.74rem; color: #c7d5e0; line-height: 1.45; }
.sm-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sm-tags span { font-size: 0.64rem; background: #29455e; color: #c7d5e0; padding: 0.15rem 0.5rem; border-radius: 3px; }
.sm-cta { background: linear-gradient(90deg, #4c6b22, #759c3e); color: #d2efa9; text-align: center; padding: 0.55rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.block-list { display: flex; flex-direction: column; gap: 0.5rem; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.7rem 0.85rem; transition: opacity 0.2s; }
.block-row.skipped { opacity: 0.5; }
.block-row .bt-main b { font-size: 0.86rem; display: block; }
.block-row .bt-main small { font-size: 0.7rem; color: var(--ink-2); }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 2px; flex-shrink: 0; }
.seg-opt { padding: 0.3rem 0.6rem; border-radius: var(--r-full); font-size: 0.72rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.seg-opt:hover { color: var(--ink-0); }
.seg-opt.on { background: var(--accent); color: var(--accent-ink); }
.sm-vtag { font-size: 0.55rem; background: var(--accent); color: var(--accent-ink); padding: 0.05rem 0.3rem; border-radius: 4px; vertical-align: middle; }
.block-toggle { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.7rem 0.85rem; transition: border-color 0.15s; }
.block-toggle.on { border-color: var(--accent-line); }
.block-toggle:hover { border-color: var(--line-2); }
.bt-tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: var(--accent-ink); }
.block-toggle.on .bt-tick { background: var(--accent); border-color: var(--accent); }
.bt-tick svg { width: 13px; height: 13px; }
.bt-main b { font-size: 0.86rem; display: block; }
.bt-main small { font-size: 0.72rem; color: var(--ink-2); }

/* ============ INSIGHTS ============ */
.ins-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.ins-bar-row { display: grid; grid-template-columns: 140px 1fr 34px; align-items: center; gap: 0.85rem; }
.ins-bar-k { font-size: 0.84rem; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-bar-track { height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; }
.ins-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 5px; transition: width 0.7s var(--ease); }
.ins-bar-row b { font-family: var(--font-display); font-weight: 700; text-align: right; }
.hook-table { display: flex; flex-direction: column; }
.hook-row { display: grid; grid-template-columns: 1.4fr 1fr auto auto; align-items: center; gap: 0.85rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.hook-row:last-child { border-bottom: none; }
.hook-a { font-size: 0.86rem; font-weight: 500; }
.hook-bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.hook-fill { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 4px; }
.hook-sc { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
.hook-used { font-size: 0.72rem; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 560px) { .hook-row { grid-template-columns: 1fr auto; } .hook-bar, .hook-used { display: none; } .ins-bar-row { grid-template-columns: 100px 1fr 30px; } }

/* ============ LIBRARY TOOLBAR ============ */
.lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.lib-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.lib-filter { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink-1); font-size: 0.82rem; font-weight: 500; transition: 0.15s; }
.lib-filter:hover { color: var(--ink-0); border-color: var(--ink-2); }
.lib-filter.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.lib-filter .n { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.75; }
.search-mini .input { width: 240px; max-width: 100%; }

/* ============ VIEWS ============ */
.view { padding: 2.25rem 2rem 4rem; max-width: 1180px; width: 100%; margin: 0 auto; animation: viewIn 0.4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-inner { width: 100%; }
.view-head { margin-bottom: 1.75rem; }
.view-eyebrow { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.6rem; }
.view-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.view-sub { color: var(--ink-1); margin-top: 0.5rem; font-size: 0.98rem; max-width: 64ch; }
.view-sub b { color: var(--ink-0); }

/* ============ PRIMITIVES ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; padding: 0.7rem 1.25rem; border-radius: var(--r-full); transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.btn-outline { background: transparent; color: var(--ink-0); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink-1); }
.btn-ghost:hover { color: var(--ink-0); background: var(--bg-2); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* stats */
.stat { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 65%); opacity: 0.55; }
.stat .lbl { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--ink-1); margin-bottom: 0.65rem; }
.stat .lbl svg { width: 16px; height: 16px; color: var(--accent); }
.stat .val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat .val small { font-size: 0.95rem; color: var(--ink-2); font-weight: 500; }

/* quick-start cards */
.qs-card { display: flex; flex-direction: column; gap: 0.55rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s; position: relative; overflow: hidden; }
.qs-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; background: radial-gradient(circle, rgba(158,255,0,0.10), transparent 65%); opacity: 0; transition: opacity 0.3s; }
.qs-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.qs-card:hover::after { opacity: 1; }
.qs-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; }
.qs-ico svg { width: 21px; height: 21px; }
.qs-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; }
.qs-card p { font-size: 0.85rem; color: var(--ink-1); line-height: 1.45; }

/* activity rows */
.act-list { display: flex; flex-direction: column; }
.act-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: none; }
.act-thumb { width: 56px; height: 40px; border-radius: 8px; background: var(--bg-2); overflow: hidden; flex-shrink: 0; }
.act-thumb video, .act-thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-main { flex: 1; min-width: 0; }
.act-title { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-meta { font-size: 0.74rem; color: var(--ink-2); margin-top: 0.1rem; }

/* badges */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: var(--r-full); font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; text-transform: capitalize; }
.badge-processing { background: var(--warn-soft); color: var(--warn); }
.badge-completed { background: var(--ok-soft); color: var(--accent); }
.badge-failed { background: var(--danger-soft); color: var(--danger); }

/* empty state */
.empty { text-align: center; padding: 3.5rem 1.5rem; background: var(--bg-1); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; }
.empty .empty-ico svg { width: 26px; height: 26px; }
.empty h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; }
.empty p { color: var(--ink-1); font-size: 0.92rem; max-width: 44ch; margin: 0 auto 1.4rem; }

/* ============ FORMS ============ */
.form-section { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; margin-bottom: 1.25rem; }
.form-section h2 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.form-section .sec-sub { font-size: 0.85rem; color: var(--ink-1); margin-bottom: 1.25rem; }
.hint { font-size: 0.72rem; color: var(--ink-2); font-weight: 400; font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ink-0); margin-bottom: 0.45rem; }
.input, .textarea, .select { width: 100%; padding: 0.78rem 0.95rem; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink-0); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s, box-shadow 0.25s var(--ease); }
.input::placeholder, .textarea::placeholder { color: var(--ink-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(158,255,0,0.14); }
.textarea { min-height: 104px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236C6E63' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.4rem; }
input[type="color"] { background: var(--bg-3) !important; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.5rem 0.95rem; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); font-size: 0.85rem; font-weight: 500; color: var(--ink-1); transition: all 0.18s var(--ease); }
.chip:hover { border-color: var(--ink-2); color: var(--ink-0); transform: translateY(-1px); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 4px 16px rgba(158,255,0,0.25); }

/* count options */
.count-opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.count-opt { flex: 1; min-width: 64px; padding: 0.8rem; text-align: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 600; font-size: 0.98rem; color: var(--ink-1); transition: all 0.18s var(--ease); }
.count-opt:hover { border-color: var(--ink-2); color: var(--ink-0); }
.count-opt.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 16px rgba(158,255,0,0.25); }

/* dropzone */
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 1.6rem; text-align: center; color: var(--ink-1); font-size: 0.88rem; transition: border-color 0.2s, background 0.2s; cursor: pointer; background: var(--bg-3); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-0); }
.dropzone svg { width: 24px; height: 24px; margin: 0 auto 0.5rem; color: var(--accent); }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; }
.thumb .rm:hover { background: var(--danger); }

/* submit bar */
.submit-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.5rem; margin-top: 1.5rem; background: rgba(15,15,17,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-2); z-index: 5; }
.cost-readout { font-size: 0.9rem; color: var(--ink-1); }
.cost-readout b { color: var(--accent); font-family: var(--font-mono); font-size: 1.05rem; }

/* ip context strip */
.ip-context { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--ink-1); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 0.65rem 1rem; margin-bottom: 1.5rem; }
.ip-context b { color: var(--ink-0); }
.ip-context a { color: var(--accent); font-weight: 600; }
.ip-context a:hover { text-decoration: underline; }
.ip-context .ip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(158,255,0,0.8); flex-shrink: 0; }

/* ============ WIZARD ============ */
.wiz { max-width: 760px; margin: 0 auto; }
.wiz-step-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.6rem; }
.wiz h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
.wiz .wiz-sub { color: var(--ink-1); margin-bottom: 1.75rem; }
.wiz-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }

/* characters */
.char-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.75rem; background: var(--bg-3); }
.char-card .cc-thumb { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--bg-2); overflow: hidden; flex-shrink: 0; }
.char-card .cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.char-card .cc-main { flex: 1; min-width: 0; }
.char-card .cc-name { font-weight: 600; }
.char-card .cc-role { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
.char-card .cc-desc { font-size: 0.82rem; color: var(--ink-1); margin-top: 0.2rem; }

/* ============ LIBRARY ============ */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.lib-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.2s; }
.lib-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.lib-media { aspect-ratio: 16/10; background: var(--bg-3); position: relative; }
.lib-media video, .lib-media img { width: 100%; height: 100%; object-fit: cover; }
.lib-media .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: radial-gradient(60% 60% at 50% 40%, rgba(158,255,0,0.05), transparent 70%); }
.lib-body { padding: 1rem 1.1rem 1.2rem; }
.lib-body .lib-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.lib-surface { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.lib-prompt { font-size: 0.88rem; color: var(--ink-0); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.6rem; }
.lib-meta { font-size: 0.74rem; color: var(--ink-2); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.lib-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }

/* ============ ASSETS ============ */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.asset-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.3s var(--ease); }
.asset-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.asset-media { aspect-ratio: 4/3; background: var(--bg-3); position: relative; }
.asset-media a { display: block; width: 100%; height: 100%; }
.asset-media video, .asset-media img { width: 100%; height: 100%; object-fit: cover; }
.asset-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,0.65); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s, background 0.15s; }
.asset-card:hover .asset-del { opacity: 1; }
.asset-del:hover { background: var(--danger); }
.asset-del svg { width: 15px; height: 15px; }
.asset-body { padding: 0.75rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; }
.asset-kind { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); font-weight: 600; }
.asset-name { font-size: 0.82rem; color: var(--ink-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.asset-tag { font-size: 0.66rem; padding: 0.12rem 0.45rem; border-radius: var(--r-full); background: var(--bg-2); color: var(--ink-1); border: 1px solid var(--line); }
.asset-meta { font-size: 0.7rem; color: var(--ink-2); }

/* ============ EMBEDDED FREE-ROAM / CANVAS ============ */
.embed-wrap { position: relative; height: calc(100vh - 64px); background: var(--bg-0); }
.embed-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.embed-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-0); transition: opacity 0.4s, visibility 0.4s; }
.embed-load.hide { opacity: 0; visibility: hidden; }
.embed-load .spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: appspin 0.7s linear infinite; }

/* ============ SETTINGS ============ */
.settings-hero { display: flex; align-items: center; gap: 1.25rem; background: linear-gradient(135deg, var(--bg-1), var(--bg-3)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; margin-bottom: 1.25rem; position: relative; overflow: hidden; }
.settings-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(158,255,0,0.12), transparent 65%); }
.settings-avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; flex-shrink: 0; }
.settings-id { flex: 1; min-width: 0; }
.settings-id h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.settings-id .em { color: var(--ink-1); font-size: 0.9rem; }
.settings-id .meta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-2); }
.settings-balance { text-align: right; position: relative; z-index: 1; }
.settings-balance .b-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.settings-balance .b-lbl { font-size: 0.74rem; color: var(--ink-1); margin-top: 0.25rem; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem; }
.pack { position: relative; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 1.35rem 1.1rem 1.2rem; text-align: center; transition: transform 0.25s var(--ease), border-color 0.2s; }
.pack:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.pack.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 38px -14px rgba(158,255,0,0.35); }
.pack .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.6rem; border-radius: var(--r-full); }
.pack .p-cr { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.pack .p-lbl { font-size: 0.74rem; color: var(--ink-2); margin-bottom: 0.55rem; }
.pack .p-price { font-weight: 600; color: var(--accent); margin-bottom: 0.9rem; font-size: 1.05rem; }
.pack .p-per { display: block; font-size: 0.62rem; color: var(--ink-2); font-family: var(--font-mono); margin-top: 0.15rem; }

/* ============ WORKSPACE ROWS ============ */
.ws-rows { display: flex; flex-direction: column; gap: 0.6rem; }
.ws-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.9rem 1.1rem; }
.ws-info b { display: block; font-size: 0.92rem; }
.ws-info span { font-size: 0.8rem; color: var(--ink-2); }

/* ============ MODAL ============ */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.25s; }
.modal-back.show { opacity: 1; visibility: visible; }
.modal { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-lg); max-width: 480px; width: 100%; padding: 2rem; box-shadow: var(--shadow-2); transform: translateY(12px); transition: transform 0.3s var(--ease); }
.modal-back.show .modal { transform: none; }
.modal h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.modal p { color: var(--ink-1); margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ============ DESKTOP REQUIRED ============ */
.desktop-required { display: none; }

/* ============ MOBILE ============ */
.sidebar-backdrop { display: none; }
@media (max-width: 1180px) {
    .cockpit, .cc-cols { grid-template-columns: 1fr; }
    .cockpit-rail, .cc-side { position: static; }
    .ai-rail { margin-top: 0; }
    .steam-grid { grid-template-columns: 1fr; }
    .steam-preview { position: static; }
    .cc-metrics { margin-left: 0; width: 100%; justify-content: flex-start; }
}
@media (max-width: 980px) {
    .cc-checklist { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); transition: transform 0.35s var(--ease); box-shadow: var(--shadow-2); }
    .sidebar.open { transform: none; }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 55; opacity: 0; visibility: hidden; transition: opacity 0.25s; }
    .sidebar-backdrop.show { opacity: 1; visibility: visible; }
    .app-main { margin-left: 0; }
    .topbar { padding: 0 1.1rem; }
    .topbar-mobile-toggle { display: flex; }
    .view { padding: 1.5rem 1.15rem 3rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .game-switch-name { max-width: 110px; }
    .submit-bar { margin-left: -1.15rem; margin-right: -1.15rem; border-radius: 0; }

    body.surface-locked .view-inner { display: none; }
    body.surface-locked .desktop-required { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4rem 1.5rem; }
    .desktop-required .dr-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
    .desktop-required .dr-ico svg { width: 28px; height: 28px; }
    .desktop-required h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
    .desktop-required p { color: var(--ink-1); max-width: 34ch; margin-bottom: 1.5rem; }
}
@media (max-width: 540px) {
    .topbar { gap: 0.5rem; }
    .credits-chip .plus { display: none; }
    .view-title { font-size: 1.55rem; }
    .settings-hero { flex-direction: column; text-align: center; }
    .settings-balance { text-align: center; }
}
/* ============================================================
   CLEOM APP v6.3 — mission launcher, live queue, asset lab,
   library detail panel, billing. (no forced game setup)
   ============================================================ */

.muted { color: var(--ink-2); }
.m-ph { display: grid; place-items: center; color: var(--ink-2); width: 100%; height: 100%; }
.view-wide { max-width: 1320px; }

/* ---- mission colour accents (sparing, alongside lime) ---- */
.m-lime { --mc: #9EFF00; } .m-coral { --mc: #FF8A6B; } .m-blue { --mc: #5BC8FF; }
.m-lavender { --mc: #B8A9FF; } .m-mint { --mc: #7FE7C4; } .m-yellow { --mc: #FFE066; }

/* ---- topbar additions ---- */
.quick-create { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: var(--r-full); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 0.85rem; font-weight: 600; transition: background 0.18s, color 0.18s; }
.quick-create svg { width: 15px; height: 15px; }
.quick-create:hover { background: var(--accent); color: var(--accent-ink); }
.jobs-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: var(--r-full); background: var(--warn-soft); border: 1px solid rgba(255,176,32,0.32); color: var(--warn); font-size: 0.8rem; font-weight: 600; }
.jobs-chip b { font-family: var(--font-mono); }
.jc-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: jcPulse 1.6s ease-in-out infinite; }
@keyframes jcPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* richer user button */
.user-btn { display: flex; align-items: center; gap: 0.5rem; width: auto; height: auto; padding: 0.3rem 0.6rem 0.3rem 0.35rem; border-radius: var(--r-full); background: var(--bg-2); border: 1px solid var(--line-2); font-weight: 500; transition: border-color 0.15s; }
.user-btn:hover { border-color: var(--accent-line); }
.user-btn .ub-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.84rem; flex-shrink: 0; }
.user-btn .ub-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; min-width: 0; }
.user-btn .ub-meta b { font-size: 0.82rem; color: var(--ink-0); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.user-btn .ub-meta small { font-size: 0.66rem; color: var(--ink-2); white-space: nowrap; }
.user-btn .caret { width: 12px; height: 12px; color: var(--ink-2); flex-shrink: 0; }

/* ---- sidebar foot ---- */
.sidebar-foot { margin: auto 0.75rem 0.9rem; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); display: block; transition: border-color 0.2s; }
.sidebar-foot:hover { border-color: var(--accent-line); }
.sf-plan { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--ink-1); font-weight: 600; }
.sf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(158,255,0,0.7); }
.sf-cr { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-2); margin-top: 0.25rem; }

/* ============ HOME — Command Center ============ */
.dash-cols { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 1.75rem; align-items: start; }
.dash-main { min-width: 0; }
.dash-side { position: sticky; top: 84px; }
.dash-hero { margin-bottom: 1.75rem; }
.dash-q { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0.4rem 0 0.5rem; }
.metrics-mini { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }
.mm { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 1rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 150px; flex: 1; }
.mm-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.mm-ic svg { width: 17px; height: 17px; }
.mm-val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.mm-lbl { font-size: 0.72rem; color: var(--ink-2); margin-top: 0.15rem; }

.ml-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ml-card { --mc: var(--accent); position: relative; display: flex; flex-direction: column; min-height: 178px; padding: 1.4rem; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s; }
.ml-glow { position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mc) 26%, transparent), transparent 66%); opacity: 0; transition: opacity 0.35s; }
.ml-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); background: color-mix(in srgb, var(--mc) 16%, transparent); color: var(--mc); margin-bottom: auto; position: relative; z-index: 1; }
.ml-ic svg { width: 22px; height: 22px; }
.ml-body { position: relative; z-index: 1; margin-top: 1rem; }
.ml-card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.ml-card p { font-size: 0.84rem; color: var(--ink-1); margin-top: 0.3rem; line-height: 1.4; }
.ml-go { position: absolute; right: 1.3rem; top: 1.3rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--mc); opacity: 0.5; transition: opacity 0.25s, transform 0.25s, background 0.25s; z-index: 1; }
.ml-go svg { width: 15px; height: 15px; }
.ml-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--mc) 60%, var(--line)); box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--mc) 40%, #000); }
.ml-card:hover .ml-glow { opacity: 1; }
.ml-card:hover .ml-go { opacity: 1; background: var(--mc); color: #0A0A0B; }

.dash-more { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.dash-more-l { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.dash-tool { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: var(--r-full); background: var(--bg-1); border: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-1); transition: 0.2s; }
.dash-tool svg { width: 15px; height: 15px; color: var(--accent); }
.dash-tool:hover { color: var(--ink-0); border-color: var(--accent-line); }

/* ============ LIVE QUEUE ============ */
.lq-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.15rem 1rem; }
.lq-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.lq-head h2 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.lq-head h2 svg { width: 17px; height: 17px; color: var(--accent); }
.lq-sec { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin: 0.9rem 0 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.lq-sec b { color: var(--ink-1); }
.lq-sec.proc { color: var(--warn); } .lq-sec.ready { color: var(--accent); } .lq-sec.fail { color: var(--danger); }
.lq-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem; border-radius: var(--r-md); transition: background 0.15s; }
.lq-item:hover { background: var(--bg-2); }
.lq-thumb { width: 48px; height: 36px; border-radius: 7px; overflow: hidden; background: var(--bg-3); flex-shrink: 0; position: relative; }
.lq-thumb img, .lq-thumb video { width: 100%; height: 100%; object-fit: cover; }
.lq-thumb .m-ph { position: absolute; inset: 0; }
.lq-thumb .m-ph svg { width: 16px; height: 16px; }
.lq-main { flex: 1; min-width: 0; }
.lq-t { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-s { font-size: 0.7rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.1rem; }
.lq-prog { height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; margin-top: 0.4rem; }
.lq-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 3px; }
.lq-pct { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-2); }
.lq-act { display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0; font-size: 0.76rem; font-weight: 600; color: var(--accent); padding: 0.35rem 0.7rem; border-radius: var(--r-full); border: 1px solid var(--line-2); }
.lq-act svg { width: 13px; height: 13px; }
.lq-act:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.lq-act.danger { color: var(--danger); }
.lq-act.danger:hover { border-color: rgba(255,91,73,0.4); background: var(--danger-soft); }
.lq-empty { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 1.2rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-1); font-size: 0.85rem; }
.lq-empty svg { width: 15px; height: 15px; }
.lq-empty:hover { border-color: var(--accent-line); color: var(--accent); }
.lq-all { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-1); }
.lq-all svg { width: 13px; height: 13px; }
.lq-all:hover { color: var(--accent); }

/* ============ ASSET LAB GRID ============ */
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lab-card { --mc: var(--accent); position: relative; display: flex; flex-direction: column; min-height: 186px; padding: 1.4rem; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s; }
.lab-glow { position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mc) 26%, transparent), transparent 66%); opacity: 0; transition: opacity 0.35s; }
.lab-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); background: color-mix(in srgb, var(--mc) 16%, transparent); color: var(--mc); position: relative; z-index: 1; }
.lab-ic svg { width: 21px; height: 21px; }
.lab-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 1rem; position: relative; z-index: 1; }
.lab-card p { font-size: 0.8rem; color: var(--ink-1); margin-top: 0.3rem; line-height: 1.4; flex: 1; position: relative; z-index: 1; }
.lab-go { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--mc); position: relative; z-index: 1; }
.lab-go svg { width: 14px; height: 14px; transition: transform 0.25s; }
.lab-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--mc) 60%, var(--line)); box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--mc) 40%, #000); }
.lab-card:hover .lab-glow { opacity: 1; }
.lab-card:hover .lab-go svg { transform: translateX(3px); }

/* ============ INSIGHTS panels + chart ============ */
.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1.25rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.panel-head h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.panel-head .period { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.chart { display: flex; align-items: flex-end; gap: 0.4rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-val { font-size: 0.6rem; color: var(--ink-2); margin-bottom: 0.2rem; font-family: var(--font-mono); }
.chart-track { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.chart-bar { width: 100%; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border-radius: 4px 4px 0 0; min-height: 3px; transition: height 0.6s var(--ease); }
.chart-label { font-size: 0.58rem; color: var(--ink-2); margin-top: 0.3rem; font-family: var(--font-mono); }

/* ============ LIBRARY OS — status filters + detail ============ */
.lib-status { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.lib-stat { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink-1); font-size: 0.8rem; font-weight: 500; }
.lib-stat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.lib-stat .dot.completed { background: var(--accent); } .lib-stat .dot.processing { background: var(--warn); } .lib-stat .dot.failed { background: var(--danger); }
.lib-stat:hover { color: var(--ink-0); border-color: var(--ink-2); }
.lib-stat.active { border-color: var(--accent-line); color: var(--ink-0); background: var(--accent-soft); }
.lib-os { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 1.5rem; align-items: start; }
.lib-card { cursor: pointer; }
.lib-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lib-media .lib-badge { position: absolute; top: 7px; left: 7px; }
.lib-media .play .badge { position: static; }
.lib-detail { position: sticky; top: 84px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; max-height: calc(100vh - 104px); overflow-y: auto; }
.lib-detail-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-2); }
.lib-detail-empty .empty-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1rem; }
.lib-detail-empty .empty-ico svg { width: 22px; height: 22px; }
.lib-detail-empty p { font-size: 0.85rem; max-width: 24ch; margin: 0 auto; }
.ld-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.85rem; }
.ld-head h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.ld-media { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; background: var(--bg-3); margin-bottom: 0.85rem; position: relative; }
.ld-media img, .ld-media video { width: 100%; height: 100%; object-fit: cover; }
.ld-media .m-ph { position: absolute; inset: 0; }
.ld-media .m-ph svg { width: 28px; height: 28px; }
.ld-prompt { font-size: 0.85rem; color: var(--ink-1); line-height: 1.45; margin-bottom: 0.5rem; }
.ld-sec { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin: 1rem 0 0.5rem; }
.ld-kvs { display: flex; flex-direction: column; gap: 0.1rem; }
.ld-kv { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); font-size: 0.82rem; }
.ld-kv span { color: var(--ink-2); }
.ld-kv b { color: var(--ink-0); font-weight: 500; text-align: right; }
.ld-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.ld-pending { font-size: 0.8rem; color: var(--ink-2); text-align: center; padding: 0.6rem; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }

/* ============ responsive (new surfaces) ============ */
@media (max-width: 1180px) {
    .dash-cols, .lib-os { grid-template-columns: 1fr; }
    .dash-side, .lib-detail { position: static; max-height: none; }
    .ml-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .ml-grid, .lab-grid { grid-template-columns: 1fr 1fr; }
    .user-btn .ub-meta { display: none; }
}
@media (max-width: 560px) {
    .ml-grid, .lab-grid { grid-template-columns: 1fr; }
    .quick-create span, .dash-q { }
    .metrics-mini .mm { min-width: 0; }
}

/* ============================================================
   CLEOM APP v6.5 — reference-match: mission previews, recent
   strip, polished Live Queue, topbar stats
   ============================================================ */

/* ---- topbar stats ---- */
.tb-stat { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.7rem 0.4rem 0.45rem; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); transition: border-color 0.15s; }
.tb-stat:hover { border-color: var(--accent-line); }
.tb-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--bg-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.tb-ic svg { width: 16px; height: 16px; }
.tb-ic.pulse { background: var(--warn-soft); color: var(--warn); animation: jcPulse 1.7s ease-in-out infinite; }
.tb-col { display: flex; flex-direction: column; line-height: 1.12; }
.tb-lbl { font-size: 0.64rem; color: var(--ink-2); }
.tb-val { font-family: var(--font-display); font-size: 0.96rem; font-weight: 700; letter-spacing: -0.01em; }
.tb-add { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-left: 0.1rem; flex-shrink: 0; }
.tb-add svg { width: 12px; height: 12px; }

/* ---- mission cards with mock previews ---- */
.ml-card { min-height: 210px; padding-bottom: 1.5rem; }
.ml-top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; position: relative; z-index: 1; }
.ml-ic { margin-bottom: 0; }
.ml-prev { flex: 1; height: 62px; min-width: 0; border-radius: 10px; overflow: hidden; position: relative; }
.ml-body { margin-top: 0; padding-right: 2.4rem; }
.ml-go { top: auto; bottom: 1.3rem; }
.mp { width: 100%; height: 100%; border-radius: 9px; position: relative; overflow: hidden; background: #0d0f0b; border: 1px solid var(--line); }
.mp-video { background: radial-gradient(circle at 62% 45%, color-mix(in srgb, var(--mc) 32%, transparent), #0a0d07 72%); display: grid; place-items: center; }
.mp-play { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.92); color: #0a0d07; display: grid; place-items: center; }
.mp-play svg { width: 13px; height: 13px; }
.mp-ads { display: flex; gap: 5px; padding: 7px; }
.mp-ads i { flex: 1; border-radius: 4px; background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 42%, #1a140f), #0c0a08); }
.mp-ads i:nth-child(2) { background: linear-gradient(160deg, #4a2218, #0c0a08); }
.mp-ads i:nth-child(4) { background: linear-gradient(160deg, #2a1812, #0c0a08); }
.mp-steam { padding: 8px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, #10131a, #0a0c10); }
.mp-steam b { font-family: var(--font-display); font-size: 0.5rem; letter-spacing: 0.12em; color: #9fb4c9; }
.mp-steam u { display: block; height: 13px; border-radius: 3px; background: linear-gradient(120deg, #1b2838, #2a3b50); }
.mp-shots { display: flex; gap: 3px; }
.mp-shots span { flex: 1; height: 8px; border-radius: 2px; background: #1b2838; }
.mp-art { background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 38%, #161226), #0b0a14 78%); }
.mp-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.14), transparent 55%); }
.mp-social { display: flex; gap: 6px; padding: 7px; }
.mp-social i { flex: 1; border-radius: 5px; background: linear-gradient(160deg, #14211c, #0a0f0c); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.42rem; letter-spacing: 0.05em; color: color-mix(in srgb, var(--mc) 75%, #fff); border: 1px solid color-mix(in srgb, var(--mc) 24%, transparent); font-style: normal; }
.mp-chart { color: var(--mc); display: grid; place-items: center; padding: 0 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 14%, #0f1108), #0a0c07); }
.mp-chart svg { width: 100%; height: 72%; }

/* ---- recent outputs strip ---- */
.recent-strip { display: flex; gap: 0.85rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.recent-strip::-webkit-scrollbar { height: 6px; }
.rc-card { flex: 0 0 180px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.2s; }
.rc-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.rc-media { position: relative; aspect-ratio: 16/10; background: var(--bg-3); }
.rc-media img, .rc-media video { width: 100%; height: 100%; object-fit: cover; }
.rc-media .m-ph { position: absolute; inset: 0; }
.rc-media .m-ph svg { width: 22px; height: 22px; }
.rc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; display: grid; place-items: center; }
.rc-play svg { width: 14px; height: 14px; }
.rc-badge { position: absolute; right: 6px; bottom: 6px; font-family: var(--font-mono); font-size: 0.56rem; background: rgba(0,0,0,0.62); color: #fff; padding: 0.1rem 0.4rem; border-radius: var(--r-full); }
.rc-dot { position: absolute; left: 7px; top: 7px; width: 7px; height: 7px; border-radius: 50%; }
.rc-dot.ok { background: var(--accent); box-shadow: 0 0 6px var(--accent); } .rc-dot.wip { background: var(--warn); } .rc-dot.bad { background: var(--danger); }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.7rem; }
.rc-t { font-size: 0.76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-d { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-2); flex-shrink: 0; }

/* ---- Live Queue polish ---- */
.lq-item { align-items: center; }
.lq-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; flex-shrink: 0; }
.lq-pct { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); }
.lq-pause { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink-2); display: grid; place-items: center; }
.lq-pause svg { width: 11px; height: 11px; }
.lq-s.err { color: var(--danger); }
.lq-item.processing .lq-prog { margin-top: 0.45rem; }
.lq-sec b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 640px) {
    .tb-col, .tb-add { display: none; }
    .tb-stat { padding: 0.35rem; }
}

/* ============================================================
   CLEOM APP v6.5 — Library reference match (image 5)
   ============================================================ */
.lib-tools-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.lib-sort { padding: 0.5rem 2rem 0.5rem 0.9rem; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-full); color: var(--ink-1); font-size: 0.82rem; font-weight: 500; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236C6E63' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
.lib-sort:hover { border-color: var(--accent-line); color: var(--ink-0); }

.lib-card { display: flex; flex-direction: column; }
.lib-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); color: #fff; display: grid; place-items: center; transition: transform 0.25s var(--ease); }
.lib-play svg { width: 18px; height: 18px; }
.lib-card:hover .lib-play { transform: translate(-50%, -50%) scale(1.08); }
.lib-st { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: var(--r-full); background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-size: 0.66rem; font-weight: 600; }
.lib-st .d { width: 7px; height: 7px; border-radius: 50%; }
.lib-st.ok { color: #cdebb0; } .lib-st.ok .d { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.lib-st.wip { color: #ffd98a; } .lib-st.wip .d { background: var(--warn); }
.lib-st.bad { color: #ffb3a8; } .lib-st.bad .d { background: var(--danger); }
.lib-type { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: var(--r-sm); background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-size: 0.64rem; font-weight: 600; color: #e6e8df; }
.lib-type svg { width: 12px; height: 12px; color: var(--accent); }
.lib-corner { position: absolute; right: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 0.6rem; color: #fff; background: rgba(0,0,0,0.6); padding: 0.15rem 0.45rem; border-radius: var(--r-full); }
.lib-media .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); }
.lib-body { padding: 0.85rem 0.95rem 0.95rem; }
.lib-head2 { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lib-prompt { font-size: 0.92rem; font-weight: 600; color: var(--ink-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0; display: block; }
.lib-date { font-size: 0.72rem; color: var(--ink-2); margin: 0.2rem 0 0.8rem; }
.lib-actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.45rem 0.3rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 0.7rem; font-weight: 600; color: var(--ink-1); transition: 0.15s; white-space: nowrap; }
.lbtn svg { width: 12px; height: 12px; }
.lbtn:hover { color: var(--ink-0); border-color: var(--accent-line); background: var(--accent-soft); }
.lbtn.dim { opacity: 0.55; cursor: default; }

.ld-head h3 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-close { margin-left: 0.2rem; width: 26px; height: 26px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-1); font-size: 1.15rem; line-height: 1; display: grid; place-items: center; flex-shrink: 0; }
.ld-close:hover { color: var(--ink-0); border-color: var(--danger); }
.ld-exports { display: flex; flex-direction: column; gap: 0.5rem; }
.ld-exp { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; padding: 0.65rem 0.75rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-3); transition: 0.15s; }
.ld-exp:hover { border-color: var(--accent-line); background: var(--bg-2); }
.le-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.le-ic svg { width: 16px; height: 16px; }
.le-t { display: flex; flex-direction: column; min-width: 0; }
.le-t b { font-size: 0.84rem; }
.le-t small { font-size: 0.7rem; color: var(--ink-2); }

/* ============================================================
   CLEOM APP v6.5 — Ad Campaigns reference match (image 3)
   ============================================================ */
.camp-top { margin-bottom: 1.1rem; }
.lime-dot { color: var(--accent); }
.chips.sm { gap: 0.35rem; }
.chips.sm .chip { padding: 0.32rem 0.7rem; font-size: 0.76rem; }
.panel-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.pc-head { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 1.1rem; }
.pc-ic { width: 27px; height: 27px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.pc-ic svg { width: 15px; height: 15px; }
.pc-legend { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-2); font-weight: 500; }
.pc-legend .lg { width: 7px; height: 7px; border-radius: 50%; }
.pc-legend .lg.ok { background: var(--accent); } .pc-legend .lg.wip { background: var(--warn); margin-left: 0.45rem; }

.camp-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 1.1rem; align-items: start; }
.cb-rows { display: flex; flex-direction: column; gap: 0.45rem; }
.cb-row { display: flex; gap: 0.7rem; padding: 0.7rem 0.75rem; border-radius: var(--r-md); background: var(--bg-3); border: 1px solid var(--line); }
.cb-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.cb-ic svg { width: 15px; height: 15px; }
.cb-field { flex: 1; min-width: 0; }
.cb-field > label { display: block; font-size: 0.74rem; font-weight: 600; color: var(--ink-1); margin-bottom: 0.5rem; }
.cb-field .textarea { min-height: 58px; }
.cb-field .count-opts { gap: 0.35rem; }
.cb-field .count-opt { padding: 0.45rem; font-size: 0.82rem; min-width: 0; }

.camp-preview { min-height: 400px; }
.av-sec { margin-bottom: 1.2rem; }
.av-sec:last-child { margin-bottom: 0; }
.av-lbl { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-1); margin-bottom: 0.55rem; }
.av-lbl em { color: var(--ink-2); font-style: normal; }
.av-lbl b { background: var(--accent-soft); color: var(--accent); padding: 0.05rem 0.42rem; border-radius: var(--r-full); font-size: 0.6rem; }
.av-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.av-card { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: #0c0e09; }
.av-card.r-vert { width: 80px; aspect-ratio: 9/16; }
.av-card.r-sq { width: 108px; aspect-ratio: 1/1; }
.av-card.r-wide { width: 156px; aspect-ratio: 16/9; }
.av-card.r-hook { width: 94px; aspect-ratio: 4/5; }
.av-art { position: absolute; inset: 0; }
.av-art.a0 { background: linear-gradient(160deg, #1c3a2a, #0a1410); } .av-art.a1 { background: linear-gradient(160deg, #3a1f15, #140a08); }
.av-art.a2 { background: linear-gradient(160deg, #15243a, #0a0f16); } .av-art.a3 { background: linear-gradient(160deg, #2a1a3a, #120a16); }
.av-art.a4 { background: linear-gradient(160deg, #1a2a10, #0c1207); }
.av-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 30%, rgba(255,255,255,0.12), transparent 60%); }
.av-asp { position: absolute; left: 5px; top: 5px; z-index: 1; font-family: var(--font-mono); font-size: 0.54rem; background: rgba(0,0,0,0.6); color: #fff; padding: 0.08rem 0.35rem; border-radius: var(--r-full); }
.av-st { position: absolute; left: 5px; bottom: 5px; z-index: 1; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.54rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: var(--r-full); background: rgba(0,0,0,0.6); }
.av-st .d { width: 5px; height: 5px; border-radius: 50%; }
.av-st.ok { color: #cdebb0; } .av-st.ok .d { background: var(--accent); }
.av-st.wip { color: #ffd98a; } .av-st.wip .d { background: var(--warn); }
.av-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cta-card { flex: 1; min-width: 190px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; padding: 0.9rem 3rem 0.9rem 1rem; border-radius: var(--r-md); background: linear-gradient(120deg, #1a2410, #0d1207); border: 1px solid var(--accent-line); }
.cta-card b { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.01em; }
.cta-card span { font-size: 0.7rem; color: var(--ink-1); }
.cta-card i { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.cta-card i svg { width: 14px; height: 14px; }

.camp-plan { position: sticky; top: 84px; }
.cp-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
.cp-lbl { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--ink-1); }
.cp-lbl svg { width: 16px; height: 16px; color: var(--accent); }
.cp-big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.cp-big.accent { color: var(--accent); }
.cp-sec { padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.cp-h { display: block; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 0.55rem; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cp-chip { padding: 0.3rem 0.65rem; border-radius: var(--r-full); background: var(--bg-2); border: 1px solid var(--line-2); font-size: 0.74rem; font-weight: 500; color: var(--ink-0); }
.cp-add { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.6rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.cp-add svg { width: 13px; height: 13px; }
.cp-gen { margin-top: 1.2rem; }

.camp-recent-wrap { margin-top: 1.6rem; }
.cr-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 0.85rem; }
.cr-empty { color: var(--ink-2); font-size: 0.85rem; padding: 1.1rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); }

@media (max-width: 1180px) {
    .camp-grid { grid-template-columns: 1fr; }
    .camp-plan { position: static; }
}

/* ============================================================
   CLEOM APP v6.6 — Steam Page reference match (image 4)
   ============================================================ */
.steam-top { margin-bottom: 1.1rem; }
.sk-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.sk-q { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); text-align: left; transition: border-color 0.18s, transform 0.25s var(--ease); }
.sk-q:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.sk-q-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.sk-q-ic svg { width: 18px; height: 18px; }
.sk-q-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sk-q-t b { font-size: 0.92rem; }
.sk-q-t small { font-size: 0.74rem; color: var(--ink-2); }
.sk-q-go { color: var(--ink-2); flex-shrink: 0; }
.sk-q-go svg { width: 16px; height: 16px; transition: transform 0.2s; }
.sk-q:hover .sk-q-go { color: var(--accent); } .sk-q:hover .sk-q-go svg { transform: translateX(3px); }
.sk-drawer { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1rem; }
.sk-drawer[hidden] { display: none; }

.sk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.1rem; align-items: start; }
.pc-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent); }
.sk-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sk-mod { display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; transition: opacity 0.2s, border-color 0.2s; }
.sk-mod.off { opacity: 0.5; }
.sk-mod-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.sk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); flex-shrink: 0; }
.sk-dot.on { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.sk-mod-head b { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; flex: 1; }
.sk-mod-count { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-2); background: var(--bg-2); padding: 0.1rem 0.45rem; border-radius: var(--r-full); }
.sk-prev { flex: 1; margin-bottom: 0.85rem; }
.sk-mod .seg { display: flex; width: 100%; }
.sk-mod .seg-opt { flex: 1; justify-content: center; }

.sk-cap { display: flex; flex-direction: column; gap: 0.6rem; }
.sk-cap-art { position: relative; aspect-ratio: 460/215; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.sk-cap-art::before { content: ''; position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(158,255,0,0.5); box-shadow: 0 0 18px rgba(158,255,0,0.35); }
.sk-cap-art span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; font-size: 0.82rem; color: rgba(255,255,255,0.94); text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.sk-sizes { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.sk-sizes span { font-family: var(--font-mono); font-size: 0.55rem; padding: 0.12rem 0.4rem; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.sk-sizes span.on { border-color: var(--accent-line); color: var(--accent); }
.sk-sizes span.more { color: var(--accent); }

.sk-shots { display: flex; flex-direction: column; gap: 0.5rem; }
.sk-shot-main { aspect-ratio: 16/9; border-radius: 8px; background: linear-gradient(160deg, #16202d, #0c1219); position: relative; overflow: hidden; }
.sk-shot-main::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 40% 30%, rgba(255,255,255,0.1), transparent 60%); }
.sk-shot-row { display: flex; gap: 0.3rem; }
.sk-shot-row span { flex: 1; height: 26px; border-radius: 4px; background: linear-gradient(160deg, #1b2838, #0e151d); }
.sk-shot-row .ss1 { background: linear-gradient(160deg, #2a1820, #140a10); } .sk-shot-row .ss3 { background: linear-gradient(160deg, #14241a, #0a120c); }
.sk-shot-row .more { display: grid; place-items: center; color: var(--ink-2); font-size: 0.7rem; background: var(--bg-2); }

.sk-copy { display: flex; flex-direction: column; gap: 0.6rem; }
.sk-copy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.sk-copy-col h5 { font-size: 0.68rem; color: var(--ink-1); margin-bottom: 0.35rem; font-weight: 600; }
.sk-usp { min-height: 62px; font-size: 0.76rem; background: var(--bg-2); }
.sk-copy-col ul { padding-left: 1rem; list-style: disc; }
.sk-copy-col li { font-size: 0.7rem; color: var(--ink-1); line-height: 1.5; margin-bottom: 0.2rem; }
.sk-copy-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.sk-copy-tabs span { font-size: 0.6rem; padding: 0.25rem 0.5rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.sk-copy-tabs span.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.sk-trailer { display: flex; flex-direction: column; gap: 0.5rem; }
.sk-tr-player { position: relative; aspect-ratio: 16/8; border-radius: 8px; background: linear-gradient(160deg, #15110a, #0a0c10); display: grid; place-items: center; color: rgba(255,255,255,0.85); }
.sk-tr-player svg { width: 24px; height: 24px; }
.sk-tr-thumbs { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.sk-tr-thumbs span { width: 34px; height: 22px; border-radius: 4px; background: #1b2230; }
.sk-tr-time { display: flex; justify-content: space-between; }
.sk-tr-time i { font-family: var(--font-mono); font-size: 0.55rem; color: var(--ink-2); font-style: normal; }
.sk-tr-segs { display: flex; gap: 3px; }
.sk-tr-segs span { text-align: center; font-size: 0.55rem; padding: 0.2rem; border-radius: 4px; color: #0a0a0b; font-weight: 700; }
.sk-tr-segs .g { flex: 1; background: var(--accent); } .sk-tr-segs .b { flex: 1.6; background: #5BC8FF; } .sk-tr-segs .y { flex: 1.6; background: #FFE066; } .sk-tr-segs .r { flex: 1.2; background: #FF8A6B; }

.sk-readiness { position: sticky; top: 84px; }
.sr-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
.sr-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.sr-ic svg { width: 15px; height: 15px; }
.sr-main { flex: 1; min-width: 0; }
.sr-main b { display: block; font-size: 0.86rem; }
.sr-main small { font-size: 0.72rem; color: var(--ink-2); }
.sr-state { flex-shrink: 0; }
.sr-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; }
.sr-check svg { width: 13px; height: 13px; }
.sr-x { display: block; width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.sk-mr { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; }
.sk-mr svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.sk-mr .mr-bg { fill: none; stroke: var(--line-2); stroke-width: 3; }
.sk-mr .mr-fg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
.sk-mr b { position: absolute; font-family: var(--font-mono); font-size: 0.56rem; color: var(--ink-1); }
.sr-comp { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sr-comp-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--ink-1); margin-bottom: 0.5rem; }
.sr-comp-top b { color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }
.sr-bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.sr-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 4px; transition: width 0.6s var(--ease); }
.sr-comp p { font-size: 0.74rem; color: var(--ink-2); margin-top: 0.5rem; }
.sk-readiness .btn { margin-top: 1.1rem; }
.sr-cost { margin-top: 0.7rem; text-align: center; font-size: 0.78rem; color: var(--ink-2); }
.sr-cost b { color: var(--accent); font-family: var(--font-mono); }

@media (max-width: 1180px) {
    .sk-grid { grid-template-columns: 1fr; }
    .sk-readiness { position: static; }
}
@media (max-width: 720px) {
    .sk-quick, .sk-modules, .sk-copy-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   CLEOM APP v6.7 — Create view reference match (image 1)
   ============================================================ */
.create-view .cr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.cr-main { min-width: 0; }
.cr-toggle { display: flex; gap: 0.3rem; padding: 0.3rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-full); width: max-content; margin: 0 auto 2rem; }
.cr-toggle span, .cr-toggle a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.3rem; border-radius: var(--r-full); font-size: 0.9rem; font-weight: 600; color: var(--ink-1); }
.cr-toggle svg { width: 16px; height: 16px; }
.cr-toggle .on { background: var(--accent-soft); color: var(--accent); }
.cr-toggle a:hover { color: var(--ink-0); }
.cr-hero { text-align: center; margin-bottom: 2rem; }
.cr-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -0.035em; }
.cr-hero p { color: var(--ink-1); margin: 0.9rem 0 1.6rem; font-size: 1rem; line-height: 1.5; }
.cr-modes { justify-content: center; margin-bottom: 2rem; }
.cr-flow { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 200px; }
.cf-card { position: relative; width: 150px; aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); opacity: 0.5; transform: scale(0.85); transition: transform 0.4s var(--ease), opacity 0.4s; }
.cf-card.mid { width: 300px; opacity: 1; transform: scale(1); z-index: 2; box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.cf-art { position: absolute; inset: 0; }
.cf-art.a0 { background: linear-gradient(160deg, #1c3a2a, #0a1410); } .cf-art.a1 { background: linear-gradient(160deg, #3a1f15, #140a08); }
.cf-art.a2 { background: linear-gradient(160deg, #15243a, #0a0f16); } .cf-art.a3 { background: linear-gradient(160deg, #2a1a3a, #120a16); } .cf-art.a4 { background: linear-gradient(160deg, #1a2a10, #0c1207); }
.cf-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 35%, rgba(158,255,0,0.14), transparent 60%); }
.cf-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); color: #fff; display: grid; place-items: center; }
.cf-play svg { width: 16px; height: 16px; }
.cr-bar { display: flex; align-items: stretch; gap: 0.75rem; padding: 0.85rem; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-lg); margin-bottom: 0.85rem; }
.cr-up { width: 132px; flex-shrink: 0; }
.cr-up .dropzone { height: 100%; padding: 0.85rem 0.6rem; font-size: 0.72rem; }
.cr-up .dropzone svg { width: 20px; height: 20px; margin-bottom: 0.3rem; }
.cr-up .thumbs { margin-top: 0.4rem; }
.cr-up .thumb { width: 44px; height: 44px; }
.cr-ta-wrap { flex: 1; position: relative; min-width: 0; }
.cr-ta-wrap textarea { width: 100%; height: 100%; min-height: 76px; resize: none; background: transparent; border: none; color: var(--ink-0); font-family: inherit; font-size: 0.95rem; line-height: 1.45; padding: 0.5rem 0.6rem 1.2rem; }
.cr-ta-wrap textarea:focus { outline: none; }
.cr-pcount { position: absolute; right: 0.5rem; bottom: 0.35rem; font-size: 0.7rem; color: var(--ink-2); font-family: var(--font-mono); }
.cr-go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; flex-shrink: 0; }
.cr-cost { font-size: 0.78rem; color: var(--ink-1); display: flex; align-items: center; gap: 0.3rem; }
.cr-cost .cc { display: inline-flex; } .cr-cost .cc svg { width: 13px; height: 13px; color: var(--accent); }
.cr-cost b { color: var(--accent); font-family: var(--font-mono); }
.cr-selects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.cr-sel { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.7rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.cr-sel-ic { width: 28px; height: 28px; border-radius: 7px; background: var(--bg-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.cr-sel-ic svg { width: 14px; height: 14px; }
.cr-sel-main { flex: 1; min-width: 0; }
.cr-sel-main label { display: block; font-size: 0.64rem; color: var(--ink-2); }
.cr-sel-main .select { padding: 0.05rem 1.3rem 0.05rem 0; background-color: transparent; border: none; font-size: 0.82rem; font-weight: 600; color: var(--ink-0); background-position: right 0.1rem center; }
.cr-sel-main .select:focus { outline: none; box-shadow: none; }
.cr-adv { position: sticky; top: 84px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; max-height: calc(100vh - 104px); overflow-y: auto; }
.adv-head { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.adv-head svg { width: 17px; height: 17px; color: var(--accent); }
.adv-sec { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.adv-sec:last-child { border-bottom: none; }
.adv-h { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.7rem; }
.adv-h svg { width: 14px; height: 14px; color: var(--accent); }
.adv-sub { font-size: 0.66rem; color: var(--ink-2); margin: 0.65rem 0 0.4rem; display: flex; justify-content: space-between; }
.adv-sub b { color: var(--accent); font-family: var(--font-mono); }
.cr-styles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.st-thumb { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); display: flex; align-items: flex-end; }
.st-thumb.a0 { background: linear-gradient(160deg, #1c3a2a, #0a1410); } .st-thumb.a1 { background: linear-gradient(160deg, #3a2418, #140d08); }
.st-thumb.a2 { background: linear-gradient(160deg, #2a1a3a, #120a16); } .st-thumb.a3 { background: linear-gradient(160deg, #15243a, #0a0f16); }
.st-thumb span { position: relative; z-index: 1; width: 100%; font-size: 0.48rem; text-align: center; padding: 0.18rem 0.1rem; background: rgba(0,0,0,0.55); color: #e6e8df; }
.st-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.st-more { aspect-ratio: 3/4; border-radius: 8px; border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; color: var(--ink-2); font-size: 0.54rem; }
.st-more svg { width: 14px; height: 14px; }
.cr-range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--bg-2); outline: none; }
.cr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 8px rgba(158,255,0,0.5); }
.cr-range::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }
.cr-seed { display: flex; gap: 0.4rem; }
.cr-seed .input { flex: 1; font-family: var(--font-mono); font-size: 0.82rem; }
.cr-seed-btn { width: 38px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-1); display: grid; place-items: center; flex-shrink: 0; }
.cr-seed-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.cr-seed-btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.cr-seed-btn svg { width: 14px; height: 14px; }
@media (max-width: 1180px) { .create-view .cr-cols { grid-template-columns: 1fr; } .cr-adv { position: static; max-height: none; } }
@media (max-width: 760px) { .cr-selects { grid-template-columns: 1fr 1fr; } .cf-card:not(.mid) { display: none; } .cf-card.mid { width: 100%; } }
@media (max-width: 620px) { .cr-bar { flex-direction: column; } .cr-up { width: 100%; } .cr-go { flex-direction: row; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   7.0 — Welcome Home, Campaign Composer, locked nav, coming soon
   ============================================================ */

/* locked nav items */
.nav-item.locked { opacity: 0.55; }
.nav-item.locked:hover { opacity: 0.8; }
.nav-soon { margin-left: auto; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 0.12rem 0.4rem; border-radius: var(--r-full); }

/* sidebar foot — credits only, alive */
.sf-cr2 { display: flex; align-items: center; gap: 0.6rem; }
.sf-spark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; animation: sfPulse 2.6s ease-in-out infinite; flex-shrink: 0; }
.sf-spark svg { width: 18px; height: 18px; }
@keyframes sfPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(158,255,0,0.35); } 50% { box-shadow: 0 0 0 7px rgba(158,255,0,0); } }
.sf-cr2-col { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sf-cr2-col b { font-family: var(--font-mono); font-size: 1rem; color: var(--ink-0); }
.sf-cr2-col small { font-size: 0.64rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.sf-add { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.25s var(--ease); flex-shrink: 0; }
.sf-add svg { width: 12px; height: 12px; }
.sidebar-foot:hover .sf-add { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .sf-spark { animation: none; } }

/* coming soon */
.soon { position: relative; max-width: 580px; margin: 7vh auto 0; text-align: center; padding: 3rem 1.5rem; }
.soon-orb { position: absolute; left: 0; right: 0; top: -40px; height: 320px; background: radial-gradient(ellipse 55% 60% at 50% 30%, rgba(158,255,0,0.09), transparent 70%); filter: blur(10px); pointer-events: none; }
.soon-ic { width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 22px; background: var(--bg-1); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); position: relative; }
.soon-ic svg { width: 34px; height: 34px; }
.soon-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-full); padding: 0.3rem 0.8rem; margin-bottom: 1rem; position: relative; }
.soon-pill svg { width: 13px; height: 13px; }
.soon h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.6rem; position: relative; }
.soon p { color: var(--ink-1); max-width: 440px; margin: 0 auto 1.6rem; position: relative; }
.soon-acts { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- Home v2: welcome screen ---- */
.home2 .h2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.h2-greet { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.h2-sub { color: var(--ink-1); margin: 0.3rem 0 1.4rem; }
.h2-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.h2-hero { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-1); overflow: hidden; min-height: 210px; display: flex; align-items: center; margin-bottom: 1.75rem; }
.h2h-bg { position: absolute; inset: 0; }
.h2h-bg img, .h2h-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.h2-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,0.94) 32%, rgba(10,10,11,0.5) 72%, rgba(10,10,11,0.22)); pointer-events: none; }
.h2h-body { position: relative; z-index: 1; padding: 1.75rem 1.9rem; max-width: 580px; }
.h2h-tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-1); margin-bottom: 0.55rem; }
.h2h-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(158,255,0,0.8); }
.h2h-body h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.h2h-body p { color: var(--ink-1); margin-bottom: 1.1rem; }
.h2h-status { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.h2h-meta { font-size: 0.78rem; color: var(--ink-2); }
.h2h-prog { display: flex; align-items: center; gap: 0.7rem; }
.h2h-bar { flex: 1; max-width: 330px; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.h2h-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); box-shadow: 0 0 12px rgba(158,255,0,0.5); }
.h2h-prog b { font-family: var(--font-mono); color: var(--accent); font-size: 0.95rem; }
.h2h-eta { margin-top: 0.5rem; font-size: 0.78rem; color: var(--ink-2); }
.h2h-eta b { color: var(--ink-0); }
.h2-sec-l { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.7rem; }
.h2-orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin-bottom: 1.75rem; }
.h2-orders:empty { display: none; margin: 0; }
.h2-order { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.85rem 0.95rem; transition: border-color 0.2s, transform 0.25s var(--ease); }
.h2-order:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.ho-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ho-ic svg { width: 18px; height: 18px; }
.ho-t { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.ho-t b { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-st { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; color: var(--ink-2); }
.ho-st i { width: 6px; height: 6px; border-radius: 50%; }
.ho-st.wip i { background: var(--warn); }
.ho-st.bad i { background: var(--danger); }
.ho-go { margin-left: auto; color: var(--ink-2); flex-shrink: 0; }
.ho-go svg { width: 14px; height: 14px; }
.dv-ready { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.6rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 0.18rem 0.5rem; border-radius: var(--r-full); z-index: 1; }
.dv-ready svg { width: 10px; height: 10px; }
.h2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin-top: 1.75rem; }
.h2-stat { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 0.95rem; transition: border-color 0.2s; min-width: 0; }
.h2-stat:hover { border-color: var(--accent-line); }
.hs-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.hs-ic svg { width: 16px; height: 16px; }
.hs-l { font-size: 0.82rem; color: var(--ink-1); white-space: nowrap; }
.h2-stat b { margin-left: auto; font-family: var(--font-mono); font-size: 0.95rem; }
.hs-go { color: var(--ink-2); flex-shrink: 0; }
.hs-go svg { width: 13px; height: 13px; }
@media (max-width: 1100px) { .home2 .h2-cols { grid-template-columns: 1fr; } }

/* ---- Ad Campaign Composer ---- */
.cf-wrap { max-width: 1080px; margin: 0 auto; }
.cf-head { text-align: center; padding: 1.25rem 0 2.25rem; }
.cf-logo { width: 46px; margin: 0 auto 0.9rem; }
.cf-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; }
.cf-head h1 .lime { color: var(--accent); }
.cf-head p { color: var(--ink-1); margin-top: 0.5rem; }
.cf-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.25rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.cf-n { display: flex; align-items: flex-start; gap: 0.7rem; }
.cf-n span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-1); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); flex-shrink: 0; }
.cf-n b { font-size: 1rem; font-weight: 600; padding-top: 0.25rem; }
.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.goal-card { position: relative; display: flex; align-items: center; gap: 0.6rem; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 0.85rem 0.9rem; text-align: left; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.goal-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.goal-card .gc-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-1); flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.goal-card .gc-ic svg { width: 16px; height: 16px; }
.goal-card b { font-size: 0.84rem; font-weight: 600; }
.goal-card .gc-ck { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.25s var(--ease); }
.goal-card .gc-ck svg { width: 11px; height: 11px; }
.goal-card.on { border-color: var(--accent); background: rgba(158,255,0,0.07); box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -14px rgba(158,255,0,0.4); }
.goal-card.on .gc-ic { background: var(--accent-soft); color: var(--accent); }
.goal-card.on .gc-ck { opacity: 1; transform: scale(1); }
.cdz-drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--bg-1); padding: 1.9rem 1rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.cdz-drop:hover, .cdz-drop.drag { border-color: var(--accent); background: rgba(158,255,0,0.04); }
.cdz-cloud { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.35rem; }
.cdz-cloud svg { width: 20px; height: 20px; }
.cdz-drop b { font-size: 0.95rem; }
.cdz-hint { font-size: 0.74rem; color: var(--ink-2); max-width: 480px; }
.cdz-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.cdz-chips:empty { margin: 0; }
.file-chip { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 0.32rem 0.5rem 0.32rem 0.4rem; font-size: 0.76rem; }
.fc-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.fc-ic svg { width: 12px; height: 12px; }
.fc-n { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-rm { color: var(--ink-2); font-size: 1rem; line-height: 1; padding: 0 0.2rem; }
.fc-rm:hover { color: var(--danger); }
.cf-brief { min-height: 150px; font-size: 0.95rem; }
.cfg-row { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 0.8rem; align-items: start; margin-bottom: 0.9rem; }
.cfg-l { font-size: 0.8rem; color: var(--ink-1); font-weight: 600; padding-top: 0.45rem; }
.ang-add { display: flex; gap: 0.5rem; }
.ang-add .input { max-width: 300px; }
.adv-toggle { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 1rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-full); padding: 0.45rem 0.95rem; transition: background 0.2s; }
.adv-toggle:hover { background: rgba(158,255,0,0.16); }
.adv-toggle svg { width: 14px; height: 14px; }
.adv-toggle .caret { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.adv-toggle.open .caret { transform: rotate(180deg); }
.adv-body { border-top: 1px dashed var(--line); padding-top: 1.1rem; }
.vslider { max-width: 420px; }
.vslider input[type=range] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.vs-stops { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-2); margin-top: 0.2rem; max-width: 420px; }
.vs-read { margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-1); }
.vs-read b { color: var(--accent); font-family: var(--font-mono); font-size: 1.05rem; }
.cf-ref { display: flex; flex-direction: column; gap: 0.8rem; }
.cf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem; margin-bottom: 1.2rem; }
.sc { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sc-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.sc-ic svg { width: 16px; height: 16px; }
.sc-t { min-width: 0; }
.sc-t small { display: block; font-size: 0.66rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.sc-t b { font-size: 0.84rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-submit { text-align: center; }
.cf-cost { font-size: 0.82rem; color: var(--ink-2); margin-bottom: 0.8rem; }
.cf-cost b { color: var(--accent); font-family: var(--font-mono); }
.cf-gen { width: 100%; max-width: 560px; box-shadow: var(--glow); }
@media (max-width: 1200px) { .goal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .cf-sec { grid-template-columns: 1fr; gap: 0.8rem; } }

/* ============================================================
   7.1 — Cleom credit mark, richer Home rail, dv-strip, single
   goals + custom inputs, white brand logo
   ============================================================ */

/* credit symbol = white Cleom mark, standing upright */
.cr-logo { height: 15px; width: auto; filter: brightness(0) invert(1); transform: rotate(90deg); display: block; }
.sf-spark .cr-logo { height: 17px; }
.settings-avatar .cr-logo { height: 26px; }
.hb-head .cr-logo { height: 14px; }
.hs-ic .cr-logo, .sb-ic .cr-logo { height: 14px; }

/* brand logo — full white */
.sidebar-brand img { filter: brightness(0) invert(1); }
.cf-logo { filter: brightness(0) invert(1); opacity: 0.95; }

/* Home — stats in one premium box (replaces active orders) */
.h2-statbox { display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(180deg, var(--bg-1), var(--bg-3)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.4rem; margin-bottom: 1.9rem; box-shadow: var(--shadow-1); }
.sb-cell { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.05rem; border-radius: calc(var(--r-lg) - 6px); min-width: 0; position: relative; transition: background 0.2s; }
.sb-cell + .sb-cell::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.sb-cell:hover { background: rgba(158,255,0,0.05); }
.sb-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.sb-ic svg { width: 16px; height: 16px; }
.sb-col { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sb-col b { font-family: var(--font-mono); font-size: 1.05rem; }
.sb-col small { font-size: 0.68rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
@media (max-width: 900px) { .h2-statbox { grid-template-columns: repeat(2, 1fr); } .sb-cell:nth-child(3)::before { display: none; } }

/* Home — deliveries: big cards, arrows, drag-scroll, no visible bar */
.h2-deliv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.dv-arrows { display: flex; gap: 0.4rem; }
.dv-ar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-1); display: grid; place-items: center; transition: border-color 0.2s, color 0.2s; }
.dv-ar:hover { border-color: var(--accent-line); color: var(--accent); }
.dv-ar svg { width: 14px; height: 14px; }
.dv-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 1.9rem; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; scroll-snap-type: x proximity; }
.dv-strip::-webkit-scrollbar { display: none; }
.dv-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.dv-strip.dragging .dv-card { pointer-events: none; }
.dv-card { flex: 0 0 258px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.2s; scroll-snap-align: start; user-select: none; }
.dv-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.dv-media { position: relative; aspect-ratio: 16/10; background: var(--bg-3); }
.dv-media img, .dv-media video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dv-media .m-ph { display: grid; place-items: center; height: 100%; color: var(--ink-2); }
.dv-media .m-ph svg { width: 24px; height: 24px; }
.dv-foot { padding: 0.75rem 0.9rem 0.85rem; display: flex; flex-direction: column; gap: 0.15rem; }
.dv-t { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-d { font-size: 0.72rem; color: var(--ink-2); }
.dv-ready { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.62rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 0.2rem 0.55rem; border-radius: var(--r-full); z-index: 1; }
.dv-ready svg { width: 10px; height: 10px; }

/* Home — bigger Live Queue + right-rail stack */
.h2-side { display: flex; flex-direction: column; gap: 1rem; }
.lq-big { padding: 1.35rem 1.3rem 1.2rem; }
.lq-big .lq-head h2 { font-size: 1.05rem; }
.lq-big .lq-thumb { width: 54px; height: 54px; }
.lq-big .lq-t { font-size: 0.92rem; }
.h2-buy { background: linear-gradient(160deg, rgba(158,255,0,0.08), var(--bg-1) 55%); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 1.15rem 1.2rem 1.05rem; }
.hb-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.35rem; }
.hb-head b { font-size: 0.98rem; font-weight: 700; }
.h2-buy p { font-size: 0.78rem; color: var(--ink-1); margin-bottom: 0.85rem; }
.hb-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-bottom: 0.8rem; }
.hb-row { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 0.6rem 0.75rem; transition: border-color 0.2s, transform 0.2s var(--ease); text-align: left; }
.hb-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.hb-row b { font-family: var(--font-mono); font-size: 1rem; }
.hb-row span { font-size: 0.6rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.07em; }
.hb-row i { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-top: 0.25rem; }
.hb-row em { position: absolute; top: -8px; right: 8px; font-style: normal; font-size: 0.52rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 0.12rem 0.4rem; border-radius: var(--r-full); }
.h2-help { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.05rem 1.2rem; }
.h2-help b { font-size: 0.92rem; }
.h2-help p { font-size: 0.78rem; color: var(--ink-1); margin: 0.25rem 0 0.75rem; }

/* campaign — custom goal row */
.goal-custom { margin-top: 0.7rem; }
.goal-custom .input { max-width: 340px; }

/* ============================================================
   7.2 — natural Cleom credit mark on white + billing FAQ
   ============================================================ */
.cr-logo { height: 19px; width: auto; transform: none; filter: none; background: #fff; border-radius: 5px; padding: 2.5px 5px; display: inline-block; }
.tb-ic:has(.cr-logo), .sf-spark:has(.cr-logo), .sb-ic:has(.cr-logo), .hs-ic:has(.cr-logo), .settings-avatar:has(.cr-logo) { background: #fff; border-color: rgba(255,255,255,0.3); }
.tb-ic .cr-logo, .sf-spark .cr-logo, .sb-ic .cr-logo, .hs-ic .cr-logo, .settings-avatar .cr-logo { background: none; border-radius: 0; padding: 0; height: 55%; }
.settings-avatar .cr-logo { height: 40%; }

/* billing FAQ */
.bfaq { display: flex; flex-direction: column; gap: 0.6rem; }
.bf { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s; }
.bf:hover { border-color: var(--line-2); }
.bf[open] { border-color: var(--accent-line); }
.bf summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; font-weight: 600; font-size: 0.92rem; }
.bf summary::-webkit-details-marker { display: none; }
.bf summary i { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); position: relative; flex-shrink: 0; transition: transform 0.25s var(--ease), background 0.2s; }
.bf summary i::before, .bf summary i::after { content: ''; position: absolute; background: var(--ink-1); left: 50%; top: 50%; }
.bf summary i::before { width: 10px; height: 1.6px; transform: translate(-50%, -50%); }
.bf summary i::after { width: 1.6px; height: 10px; transform: translate(-50%, -50%); }
.bf[open] summary i { transform: rotate(45deg); background: var(--accent-soft); }
.bf p { padding: 0 1.1rem 1rem; color: var(--ink-1); font-size: 0.86rem; line-height: 1.55; max-width: 660px; }

/* ============================================================
   7.3 — smooth FAQ accordion, campaign help tips, always-on +
   ============================================================ */

/* sidebar credits: the + is always visible */
.sf-add { opacity: 1; transform: scale(1); }

/* billing FAQ v2 — button + animated body */
.bf-q { width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.1rem; font-weight: 600; font-size: 0.92rem; text-align: left; transition: color 0.2s; }
.bf.open .bf-q { color: var(--accent); }
.bf-q i { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); position: relative; flex-shrink: 0; transition: transform 0.35s var(--ease), background 0.2s, border-color 0.2s; }
.bf-q i::before, .bf-q i::after { content: ''; position: absolute; background: var(--ink-1); left: 50%; top: 50%; }
.bf-q i::before { width: 10px; height: 1.6px; transform: translate(-50%, -50%); }
.bf-q i::after { width: 1.6px; height: 10px; transform: translate(-50%, -50%); }
.bf.open .bf-q i { transform: rotate(45deg); background: var(--accent-soft); border-color: var(--accent-line); }
.bf.open .bf-q i::before, .bf.open .bf-q i::after { background: var(--accent); }
.bf-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.bf-a p { padding: 0 1.1rem 1.05rem; color: var(--ink-1); font-size: 0.86rem; line-height: 1.6; max-width: 660px; }

/* campaign help tips (?) */
.qtip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 0.45rem; vertical-align: 1px; cursor: help; }
.qtip b { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.6rem; font-weight: 700; display: grid; place-items: center; line-height: 1; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.qtip:hover b, .qtip:focus b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qtip i { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(5px); width: 265px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 0.65rem 0.8rem; font-style: normal; font-size: 0.75rem; font-weight: 400; line-height: 1.55; color: var(--ink-0); text-align: left; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); z-index: 40; box-shadow: var(--shadow-2); }
.qtip i::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--line-2); }
.qtip:hover i, .qtip:focus i { opacity: 1; transform: translateX(-50%) translateY(0); }
/* section titles sit near the left edge — anchor their popups left */
.cf-n .qtip i { left: -12px; transform: translateY(5px); }
.cf-n .qtip:hover i, .cf-n .qtip:focus i { transform: translateY(0); }
.cf-n .qtip i::after { left: 20px; }
.cfg-l .qtip i { left: -12px; transform: translateY(5px); }
.cfg-l .qtip:hover i, .cfg-l .qtip:focus i { transform: translateY(0); }
.cfg-l .qtip i::after { left: 20px; }

/* ============================================================
   7.4 — lime credit chip, white wordmark, structured brief view
   ============================================================ */

/* credit mark now sits on lime, not white */
.cr-logo { background: var(--accent); }
.tb-ic:has(.cr-logo), .sf-spark:has(.cr-logo), .sb-ic:has(.cr-logo), .hs-ic:has(.cr-logo), .settings-avatar:has(.cr-logo) { background: var(--accent); border-color: var(--accent); }

/* sidebar brand: white wordmark, no filter needed */
.sidebar-brand img { filter: none; height: 26px; width: auto; }

/* Library detail — structured campaign brief */
.bd { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.95rem 1rem; margin-bottom: 1rem; }
.bd-pill { display: inline-flex; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: var(--r-full); padding: 0.2rem 0.6rem; margin-bottom: 0.65rem; }
.bd-lead { font-size: 0.86rem; line-height: 1.55; color: var(--ink-0); margin-bottom: 0.8rem; white-space: pre-wrap; }
.bd-kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.8rem; margin-bottom: 0.8rem; }
.bd-kv small { display: block; font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.bd-kv b { font-size: 0.8rem; font-weight: 600; }
.bd-g { margin-bottom: 0.65rem; }
.bd-g > small { display: block; font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.3rem; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.bd-chips span { font-size: 0.7rem; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 0.16rem 0.55rem; }
.bd-note { font-size: 0.8rem; color: var(--ink-1); line-height: 1.5; white-space: pre-wrap; }
.bd-link { display: block; font-size: 0.74rem; color: var(--accent); margin-bottom: 0.2rem; word-break: break-all; }
.bd-link:hover { text-decoration: underline; }

/* ============================================================
   7.5 — bigger wordmark + desktop-only mobile gate
   ============================================================ */
.sidebar-brand img { height: 34px; }

.mgate { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(158,255,0,0.08), transparent 60%), var(--bg-0); z-index: 100; }
.mgate .mg-logo { height: 30px; width: auto; margin-bottom: 2.4rem; }
.mgate .mg-ic { width: 84px; height: 84px; border-radius: 24px; background: var(--bg-1); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); margin-bottom: 1.4rem; box-shadow: 0 0 44px rgba(158,255,0,0.14); animation: mgFloat 3.2s ease-in-out infinite; }
.mgate .mg-ic svg { width: 38px; height: 38px; }
@keyframes mgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.mgate h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.mgate p { color: var(--ink-1); font-size: 0.92rem; line-height: 1.6; max-width: 330px; margin-bottom: 1.5rem; }
.mgate .mg-url { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; background: var(--bg-2); border: 1px solid var(--accent-line); border-radius: var(--r-full); padding: 0.45rem 1.1rem; margin-bottom: 1.7rem; }
@media (prefers-reduced-motion: reduce) { .mgate .mg-ic { animation: none; } }

/* ============================================================
   7.7 — Campaigns Lite (full-screen composer) + generate logos
   ============================================================ */

/* Cleom mark inside every generate button */
.gen-logo { height: 18px; width: auto; display: inline-block; vertical-align: -4px; }

/* ---- Campaigns Lite ---- */
.lite { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 2.5rem 1.5rem 3rem; }
.lite-bg { position: absolute; inset: 0; pointer-events: none; }
.lite-bg .lo { position: absolute; width: 540px; height: 540px; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.lite-bg .o1 { left: -170px; top: -130px; background: radial-gradient(circle, rgba(158,255,0,0.15), transparent 70%); animation: loDrift 11s ease-in-out infinite alternate; }
.lite-bg .o2 { right: -190px; bottom: -150px; background: radial-gradient(circle, rgba(158,255,0,0.11), transparent 70%); animation: loDrift 14s ease-in-out infinite alternate-reverse; }
@keyframes loDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 42px) scale(1.14); } }
.lite-bg i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(158,255,0,0.8); animation: loFloat 9s ease-in-out infinite; }
.lite-bg i:nth-child(3)  { left: 7%;  top: 20%; animation-delay: -1s; }
.lite-bg i:nth-child(4)  { left: 16%; top: 68%; animation-delay: -3.5s; animation-duration: 11s; }
.lite-bg i:nth-child(5)  { left: 26%; top: 34%; animation-delay: -6s; width: 4px; height: 4px; }
.lite-bg i:nth-child(6)  { left: 38%; top: 82%; animation-delay: -2s; }
.lite-bg i:nth-child(7)  { left: 55%; top: 12%; animation-delay: -4.5s; width: 6px; height: 6px; }
.lite-bg i:nth-child(8)  { left: 66%; top: 74%; animation-delay: -7s; }
.lite-bg i:nth-child(9)  { left: 76%; top: 28%; animation-delay: -0.5s; width: 4px; height: 4px; animation-duration: 12s; }
.lite-bg i:nth-child(10) { left: 86%; top: 58%; animation-delay: -5s; }
.lite-bg i:nth-child(11) { left: 92%; top: 16%; animation-delay: -8s; width: 4px; height: 4px; }
.lite-bg i:nth-child(12) { left: 47%; top: 50%; animation-delay: -3s; animation-duration: 13s; }
@keyframes loFloat { 0%, 100% { transform: translateY(0); opacity: 0.22; } 50% { transform: translateY(-28px); opacity: 0.75; } }

.lite-inner { position: relative; width: 100%; max-width: 780px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lite-logo { height: 26px; width: auto; margin-bottom: 1.7rem; }
.lite h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 1.7rem; }
.lite h1 .lime { color: var(--accent); }

.lite-prompt-wrap { width: 100%; border-radius: 20px; padding: 1.5px; background: linear-gradient(140deg, rgba(158,255,0,0.65), rgba(158,255,0,0.1) 42%, rgba(158,255,0,0.5)); animation: litePulse 3.4s ease-in-out infinite; margin-bottom: 1.1rem; }
@keyframes litePulse { 0%, 100% { box-shadow: 0 0 32px rgba(158,255,0,0.1); } 50% { box-shadow: 0 0 60px rgba(158,255,0,0.22); } }
.lite-prompt { width: 100%; min-height: 134px; resize: vertical; border: none; outline: none; border-radius: 18.5px; background: rgba(16, 18, 10, 0.94); color: var(--ink-0); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.6; padding: 1.15rem 1.3rem; display: block; }
.lite-prompt::placeholder { color: var(--ink-2); }

.lite .cdz { width: 100%; margin-bottom: 1.25rem; }
.lite .cdz-drop { padding: 1.25rem 1rem; }
.lite-chips { justify-content: center; margin-bottom: 0.9rem; width: 100%; display: flex; flex-wrap: wrap; gap: 0.45rem; }

.lite-pack { display: flex; align-items: center; gap: 1.5rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.7rem; margin: 0.8rem 0 1.6rem; flex-wrap: wrap; justify-content: center; box-shadow: var(--shadow-1); }
.lp-col { display: flex; flex-direction: column; gap: 0.18rem; text-align: left; }
.lp-col small { font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.lp-col b { font-size: 0.95rem; }
.lp-div { width: 1px; height: 32px; background: var(--line-2); }

.lite-gen { min-width: 300px; font-size: 1.05rem; padding-top: 1rem; padding-bottom: 1rem; box-shadow: var(--glow); }
.lite-gen .gen-logo { height: 20px; }

.lite-flow { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.7rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.lite-flow i { color: var(--accent); display: grid; place-items: center; }
.lite-flow i svg { width: 14px; height: 14px; }
.lite-flow .lime { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .lite-bg .lo, .lite-bg i, .lite-prompt-wrap { animation: none; } }

/* ============================================================
   7.8 — Lite: tall glowing upload zone + variant stepper
   ============================================================ */

/* upload zone matches the brief box in weight and height */
.lite .cdz-drop { min-height: 138px; justify-content: center; padding: 1.7rem 1.2rem; border-width: 2px; border-color: rgba(158,255,0,0.3); border-radius: 20px; background: rgba(16, 18, 10, 0.6); }
.lite .cdz-drop:hover, .lite .cdz-drop.drag { border-color: var(--accent); background: rgba(158,255,0,0.05); box-shadow: 0 0 38px rgba(158,255,0,0.14); }
.lite .cdz-drop b { font-size: 1.08rem; }
.lite .cdz-hint { font-size: 0.78rem; }
.lite .cdz-cloud { width: 52px; height: 52px; margin-bottom: 0.45rem; }
.lite .cdz-cloud svg { width: 24px; height: 24px; }

/* variant stepper — glowing animated counter */
.lite-var { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 0.5rem 0 0.3rem; }
.lv-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-0); font-size: 1.5rem; font-weight: 600; line-height: 1; display: grid; place-items: center; transition: border-color 0.2s, color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s; }
.lv-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px rgba(158,255,0,0.25); }
.lv-btn:active { transform: scale(0.9); }
.lv-btn:disabled { opacity: 0.3; pointer-events: none; }
.lv-read { min-width: 160px; text-align: center; }
.lv-read b { display: block; font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; text-shadow: 0 0 26px rgba(158,255,0,0.45); }
.lv-read b.pop { animation: lvPop 0.32s var(--ease); }
@keyframes lvPop { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
.lv-read small { display: block; margin-top: 0.35rem; font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); }
.lite-flow .lime b { font-family: inherit; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .lv-read b.pop { animation: none; } }

/* ============================================================
   7.9 — Lite: 80/20 brief+upload row, feature ticks; big brand
   ============================================================ */

/* sidebar wordmark — properly sized */
.sidebar-brand img { height: 42px; }

/* brief (80%) + upload (20%) side by side */
.lite-row { display: flex; gap: 0.9rem; width: 100%; align-items: stretch; margin-bottom: 1.25rem; }
.lite-row .lite-prompt-wrap { flex: 4 1 0; margin-bottom: 0; }
.lite-row .lite-prompt { height: 100%; min-height: 150px; }
.lite-dzcol { flex: 1 1 0; min-width: 132px; display: flex; }
.lite-dzcol .cdz { width: 100%; margin: 0; display: flex; flex-direction: column; }
.lite-dzcol .cdz-drop { flex: 1; min-height: 0; height: 100%; padding: 0.9rem 0.55rem; border-radius: 20px; gap: 0.15rem; border-width: 2px; border-color: rgba(158,255,0,0.3); background: rgba(16, 18, 10, 0.6); }
.lite-dzcol .cdz-drop:hover, .lite-dzcol .cdz-drop.drag { border-color: var(--accent); background: rgba(158,255,0,0.05); box-shadow: 0 0 30px rgba(158,255,0,0.14); }
.lite-dzcol .cdz-drop b { font-size: 0.84rem; }
.lite-dzcol .cdz-hint { font-size: 0.62rem; line-height: 1.35; }
.lite-dzcol .cdz-cloud { width: 38px; height: 38px; margin-bottom: 0.2rem; }
.lite-dzcol .cdz-cloud svg { width: 18px; height: 18px; }
.lite-dzcol .cdz-chips { margin-top: 0.5rem; justify-content: center; }
.lite-dzcol .file-chip .fc-n { max-width: 84px; }

/* feature ticks under the pack card */
.lite-pack { margin-bottom: 1rem; }
.lite-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 1.6rem; margin: 0 0 1.5rem; }
.lf { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-1); }
.lf i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.lf i svg { width: 10px; height: 10px; }

@media (max-width: 900px) {
    .lite-row { flex-direction: column; }
    .lite-dzcol .cdz-drop { min-height: 110px; }
}

/* ============================================================
   8.0 — Lite footer guide, horizontal top-up banner
   ============================================================ */

/* Lite: quiet what-is-this footer */
.lite-guide { max-width: 620px; margin-top: 1.5rem; font-size: 0.74rem; line-height: 1.65; color: var(--ink-2); }

/* Home: top-up as a horizontal banner above Recent deliveries */
.h2-buy-wide { display: flex; align-items: center; gap: 1.4rem; margin: 0 0 1.9rem; padding: 1rem 1.4rem; }
.h2-buy-wide .hb-head { margin-bottom: 0; flex-shrink: 0; align-items: center; }
.h2-buy-wide .hb-t { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.h2-buy-wide .hb-t b { font-size: 0.96rem; font-weight: 700; }
.h2-buy-wide .hb-t small { font-size: 0.72rem; color: var(--ink-1); }
.h2-buy-wide .hb-rows { flex: 1; display: flex; grid-template-columns: none; gap: 0.6rem; margin-bottom: 0; min-width: 0; }
.h2-buy-wide .hb-row { flex: 1; padding: 0.5rem 0.7rem; align-items: center; text-align: center; }
.h2-buy-wide .hb-row b { font-size: 0.95rem; }
.h2-buy-wide .hb-row i { margin-top: 0.15rem; }
.h2-buy-wide .mini-link { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1100px) {
    .h2-buy-wide { flex-wrap: wrap; }
    .h2-buy-wide .hb-rows { width: 100%; order: 3; }
}

/* ============================================================
   8.1 — top-up polish, bigger brand, pinned Lite guide
   ============================================================ */

/* home top-up: proper button + roomier pack boxes */
.hb-open { flex-shrink: 0; white-space: nowrap; }
.hb-open svg, .hb-open .cr-logo { height: 15px; }
.h2-buy-wide .hb-row { padding: 0.85rem 0.9rem; border-radius: var(--r-md); }
.h2-buy-wide .hb-row b { font-size: 1.18rem; }
.h2-buy-wide .hb-row span { font-size: 0.64rem; }
.h2-buy-wide .hb-row i { font-size: 0.92rem; margin-top: 0.28rem; }

/* sidebar wordmark — fills the brand row */
.sidebar-brand { padding: 1.25rem 0.7rem 1rem 0.9rem; }
.sidebar-brand img { width: 100%; max-width: 226px; height: auto; }

/* Lite guide: 80% wide, pinned to the very bottom of the screen */
.lite { padding-bottom: 7.5rem; }
.lite-guide { position: absolute; left: 50%; bottom: 1.3rem; transform: translateX(-50%); width: 80%; max-width: 1000px; margin: 0; text-align: center; }

/* ============================================================
   8.3 — Lite: stepper beside Generate (golden ratio), pack +
   ticks anchored above the guide, tighter brief box
   ============================================================ */

/* main group centers, bottom group sinks to the guide */
.lite-inner { min-height: calc(100vh - 250px); }
.lite h1 { margin-top: auto; }
.lite-bottom { margin-top: auto; padding-top: 2rem; width: 100%; display: flex; flex-direction: column; align-items: center; }
.lite-bottom .lite-pack { margin: 0 0 0.95rem; }
.lite-bottom .lite-feats { margin: 0; }

/* stepper + Generate side by side — button carries ~1.6x the visual weight */
.lite-actions { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 0.6rem 0 1.1rem; flex-wrap: wrap; }
.lite-actions .lite-var { margin: 0; gap: 0.85rem; }
.lite-actions .lv-btn { width: 42px; height: 42px; font-size: 1.3rem; }
.lite-actions .lv-read { min-width: 104px; }
.lite-actions .lv-read b { font-size: 1.9rem; }
.lite-actions .lv-read small { font-size: 0.58rem; margin-top: 0.25rem; }
.lite-actions .lite-gen { min-width: 340px; }

/* brief: shorter and fixed — no drag-to-resize handle */
.lite-prompt { resize: none; }
.lite-row .lite-prompt { min-height: 106px; }

/* ============================================================
   8.4 — Lite polish (clipped brief, decoupled upload, video
   reel backdrop) + FULL LIGHT THEME with animated background
   ============================================================ */

/* ---- Lite: wider stage, tidy brief ---- */
.lite-inner { max-width: 880px; }
.lite-prompt-wrap { overflow: hidden; border-radius: 20px; }
.lite-row { align-items: flex-start; }
.lite-row .lite-prompt { height: 118px; min-height: 118px; max-height: 118px; overflow-y: auto; }
.lite-prompt::-webkit-scrollbar { width: 8px; }
.lite-prompt::-webkit-scrollbar-thumb { background: rgba(158,255,0,0.25); border-radius: 4px; }
.lite-prompt::-webkit-scrollbar-track { background: transparent; }
/* upload column: fixed drop box, chips grow below without stretching the brief */
.lite-dzcol .cdz { flex-direction: column; }
.lite-dzcol .cdz-drop { flex: 0 0 auto; height: 121px; min-height: 121px; }

/* ---- Lite: 9:16 ad reel drifting behind the composer ---- */
.lite-reel { position: absolute; inset: -60px 0; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 74% 68% at 50% 46%, transparent 32%, #000 74%); mask-image: radial-gradient(ellipse 74% 68% at 50% 46%, transparent 32%, #000 74%); }
.lr-col { position: absolute; top: 0; width: 150px; display: flex; flex-direction: column; gap: 1.3rem; animation: lrScroll 46s linear infinite; }
.lr-col.c1 { left: 3.5%; }
.lr-col.c2 { right: 3.5%; top: -220px; animation-duration: 58s; animation-direction: reverse; }
.lr-card { aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; opacity: 0.32; box-shadow: 0 18px 44px -18px rgba(0,0,0,0.65); flex-shrink: 0; }
.lr-card video { width: 100%; height: 100%; object-fit: cover; }
@keyframes lrScroll { to { transform: translateY(-50%); } }
@media (max-width: 1180px) { .lr-col.c2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .lite-reel { display: none; } }

/* ============================================================
   LIGHT THEME — homepage-white with a living background
   ============================================================ */
/* ============================================================
   8.5 — organic 4-column reel, top-up overflow fix, light-mode
   readability sweep + studio logo swap
   ============================================================ */

/* ---- Lite reel v2: scattered columns, opposite flows, varied rhythm ---- */
.lite-reel { -webkit-mask-image: radial-gradient(ellipse 66% 64% at 50% 46%, transparent 34%, #000 78%); mask-image: radial-gradient(ellipse 66% 64% at 50% 46%, transparent 34%, #000 78%); }
.lr-col.c1 { left: 1.5%;  width: 138px; top: -60px;  animation-duration: 44s; }
.lr-col.c2 { left: 11.5%; width: 104px; top: -300px; animation-duration: 62s; animation-direction: reverse; right: auto; }
.lr-col.c3 { right: 11.5%; width: 108px; top: -180px; animation-duration: 53s; animation-direction: normal; }
.lr-col.c4 { right: 1.5%; width: 146px; top: -380px; animation-duration: 70s; animation-direction: reverse; }
.lr-card:nth-child(odd) { transform: rotate(-3.5deg); }
.lr-card:nth-child(even) { transform: rotate(2.5deg); }
.lr-col .lr-card:nth-child(3n) { opacity: 0.22; }
.lr-col .lr-card:nth-child(3n+1) { opacity: 0.36; }
.lr-col .lr-card:nth-child(3n+2) { opacity: 0.28; }
@media (max-width: 1400px) { .lr-col.c2, .lr-col.c3 { display: none; } }
@media (max-width: 1180px) { .lr-col.c4 { display: none; } }

/* ---- Home: pack boxes wrap instead of overflowing the banner ---- */
.h2-buy-wide { flex-wrap: wrap; }
.h2-buy-wide .hb-rows { flex-wrap: wrap; }
.h2-buy-wide .hb-row { flex: 1 1 150px; min-width: 138px; }

/* ============================================================
   LIGHT MODE — readability sweep: lime-as-TEXT becomes deep
   green; lime stays lime only as a fill behind dark ink
   ============================================================ */

/* ============================================================
   8.6 — reel v3: cards rise from the infinite bottom, scattered
   across the whole screen, bigger; column layout retired
   ============================================================ */
.lr-col { display: none; }
.lite-reel { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: none; mask-image: none; overflow: hidden; }
.lite-reel .lr-card { position: absolute; top: 0; left: 0; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; opacity: 0.22; box-shadow: 0 22px 54px -20px rgba(0, 0, 0, 0.7); transform: translateY(110vh) rotate(var(--rot, 0deg)); animation-name: lrRise; animation-timing-function: linear; animation-iteration-count: infinite; flex-shrink: 0; }
.lite-reel .lr-card:nth-child(odd) { opacity: 0.16; }
.lite-reel .lr-card:nth-child(3n) { opacity: 0.3; }
.lite-reel .lr-card video { width: 100%; height: 100%; object-fit: cover; }
@keyframes lrRise {
    from { transform: translateY(110vh) rotate(var(--rot, 0deg)); }
    to { transform: translateY(-125%) rotate(var(--rot, 0deg)); }
}
@media (max-width: 1180px) { .lite-reel .lr-card:nth-child(even) { display: none; } }
@media (prefers-reduced-motion: reduce) { .lite-reel { display: none; } }

/* ============================================================
   8.8 — reel physics: JS drives the cards, CSS animation retired
   ============================================================ */
.lite-reel .lr-card { animation: none !important; left: 0 !important; top: 0 !important; transform: translate3d(-600px, -600px, 0); will-change: transform; }

/* ============================================================
   9.1 — Lite upload: files live INSIDE the box, no layout shift
   ============================================================ */
.lite-dzcol .cdz { position: relative; }
.lite-dzcol .cdz-chips { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; max-height: calc(100% - 12px); overflow-y: auto; justify-content: center; align-content: flex-end; scrollbar-width: thin; }
.lite-dzcol .cdz-chips::-webkit-scrollbar { width: 5px; }
.lite-dzcol .cdz-chips::-webkit-scrollbar-thumb { background: rgba(158,255,0,0.25); border-radius: 3px; }
.lite-dzcol .cdz:has(.file-chip) .cdz-cloud,
.lite-dzcol .cdz:has(.file-chip) .cdz-hint { display: none; }
.lite-dzcol .cdz:has(.file-chip) .cdz-drop { justify-content: flex-start; padding-top: 0.7rem; }
.lite-dzcol .cdz:has(.file-chip) .cdz-drop b { font-size: 0.72rem; color: var(--ink-2); }
.lite-dzcol .file-chip { background: rgba(26, 30, 16, 0.92); }

/* ============================================================
   9.2 — lite upload chips: NEXT TO the box (box stays clickable),
   stacked in columns of 4 that grow outward as they fill
   ============================================================ */
.lite-dzcol .cdz { overflow: visible; }
.lite-dzcol .cdz-chips { position: absolute; left: calc(100% + 10px); right: auto; top: 0; bottom: auto; height: 121px; max-height: none; width: max-content; margin: 0; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; gap: 6px; overflow: visible; z-index: 3; }
.lite-dzcol .file-chip { padding: 0.2rem 0.45rem 0.2rem 0.3rem; font-size: 0.68rem; gap: 0.35rem; background: rgba(26, 30, 16, 0.95); }
.lite-dzcol .fc-ic { width: 18px; height: 18px; }
.lite-dzcol .fc-ic svg { width: 10px; height: 10px; }
.lite-dzcol .file-chip .fc-n { max-width: 92px; }

/* restore the box face — 9.1 hid it when chips lived inside */
.lite-dzcol .cdz:has(.file-chip) .cdz-cloud { display: grid; }
.lite-dzcol .cdz:has(.file-chip) .cdz-hint { display: block; }
.lite-dzcol .cdz:has(.file-chip) .cdz-drop { justify-content: center; padding-top: 0.9rem; }
.lite-dzcol .cdz:has(.file-chip) .cdz-drop b { font-size: 0.84rem; color: var(--ink-0); }

/* ============================================================
   9.7 — homepage lime cursor + star sparks in the app,
   Lite duration/quality pickers, campaign resolution math
   ============================================================ */

/* lime arrow cursor (same asset as the homepage) */
body, a, button, .chip, .goal-card, .nav-item, .lv-btn, .lq-btn, .pack-card, .sk-q {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M7 2 L7 24 L12.6 19.2 L16 27 L20.4 25.1 L17 17.4 L24.5 16.6 Z' fill='%239EFF00' stroke='%230C0D0A' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") 7 2, auto;
}
input, textarea, .input, .textarea, .lite-prompt, [contenteditable] { cursor: text; }

/* star sparks (trail + click bursts) */
.spark-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.spark { position: absolute; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transform: translate(-50%, -50%) scale(var(--sc, 1)); filter: drop-shadow(0 0 5px rgba(158,255,0,0.75)); animation: sparkFly 0.7s cubic-bezier(0.2, 0.6, 0.35, 1) forwards; }
.spark.alt { background: var(--accent-deep); width: 8px; height: 8px; filter: drop-shadow(0 0 4px rgba(62,122,0,0.6)); }
@keyframes sparkFly {
    0% { opacity: 0.95; transform: translate(-50%, -50%) scale(var(--sc, 1)) rotate(0deg); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.05) rotate(var(--rot, 90deg)); }
}
@media (prefers-reduced-motion: reduce) { .spark { display: none; } }

/* Lite actions row now holds three pickers + the button — tighten the steppers */
.lite-actions { gap: 1.1rem; }
.lite-actions .lv-read { min-width: 104px; }
.lite-actions .lv-read b { font-size: 2rem; }
.lite-actions .lv-btn { width: 42px; height: 42px; font-size: 1.3rem; }

/* quality toggle — 1080P / 4K segmented pill, same family as the steppers */
.lite-qual { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.lq-seg { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.lq-btn { padding: 0.48rem 1rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-1); transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.lq-btn:hover { color: var(--accent); }
.lq-btn.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px rgba(158,255,0,0.35); }
.lite-qual small { font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); }

/* campaign resolution price math — the live formula under the Resolution chips */
.cf-resmath { display: inline-block; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.5; color: var(--ink-1); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 0.55rem 0.9rem; }
.cf-resmath b { color: var(--accent); font-weight: 700; }

/* ============================================================
   9.8 — quality pill sits on the same midline as the steppers
   (label hangs below without pushing the pill up)
   ============================================================ */
.lite-qual { position: relative; gap: 0; }
.lq-seg { height: 42px; align-items: center; }
.lite-qual small { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap; }
