/* ==========================================================================
   MistBoost AI — design system. Dark theme default, [data-theme="light"] for light.
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #08070f; --bg-2: #0d0b18; --surface: #12101f; --surface-2: #181528; --surface-3: #201c34;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --text: #f1effd; --text-2: #cfcae9; --muted: #9d97bd; --muted-2: #6f6990;
  --brand: #8b5cf6; --brand-hi: #a78bfa; --brand-2: #d946ef; --brand-3: #22d3ee;
  --brand-soft: rgba(139,92,246,.15);
  --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #ec4899 100%);
  --grad-cool: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --grad-text: linear-gradient(90deg, #c4b5fd, #f0abfc 50%, #67e8f9);
  --ok: #34d399; --ok-soft: rgba(52,211,153,.13);
  --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13);
  --danger: #fb7185; --danger-soft: rgba(251,113,133,.13);
  --info: #60a5fa; --info-soft: rgba(96,165,250,.13);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 16px; --r-sm: 11px; --r-lg: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -32px rgba(0,0,0,.85);
  --ring: 0 0 0 3px rgba(139,92,246,.38);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f4fb; --bg-2: #eeecf8; --surface: #ffffff; --surface-2: #f8f7fd; --surface-3: #f0eefa;
  --line: rgba(24,18,66,.08); --line-2: rgba(24,18,66,.15);
  --text: #171433; --text-2: #39345f; --muted: #67628c; --muted-2: #9a96b8;
  --brand-soft: rgba(124,58,237,.1);
  --grad-text: linear-gradient(90deg, #6d28d9, #c026d3 55%, #0891b2);
  --ok: #059669; --warn: #b45309; --danger: #e11d48; --info: #2563eb;
  --shadow: 0 1px 2px rgba(24,18,66,.05), 0 18px 44px -30px rgba(24,18,66,.4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 .45em; font-weight: 760; }
h1 { font-size: clamp(30px, 4.6vw, 54px); } h2 { font-size: clamp(24px, 3vw, 36px); } h3 { font-size: 19px; } h4 { font-size: 16px; }
p { margin: 0 0 1em; }
::selection { background: rgba(139,92,246,.4); }
.ic { width: 18px; height: 18px; flex: none; }
.ic-lg .ic, .ic.ic-lg { width: 22px; height: 22px; }
.muted { color: var(--muted); } .muted-2 { color: var(--muted-2); }
.small { font-size: 13px; } .xs { font-size: 12px; } .lg { font-size: 17px; }
.mono { font-family: var(--mono); font-size: .9em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 16px; } .stack-sm > * + * { margin-top: 10px; } .stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.gap-sm { gap: 8px; } .gap-lg { gap: 20px; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mt { margin-top: 20px; } .mb { margin-bottom: 20px; } .mt-sm { margin-top: 10px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); } }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 820px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.035em; color: var(--text); }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 24px -10px rgba(192,38,211,.8); }
.logo .mark svg { width: 20px; height: 20px; }
.logo b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

/* ---------- Buttons ---------- */
.btn { --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, opacity .15s; white-space: nowrap; user-select: none; text-decoration: none; }
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,.2); }
[data-theme="light"] .btn:hover { border-color: rgba(24,18,66,.25); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -14px rgba(192,38,211,.9); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; box-shadow: 0 14px 34px -12px rgba(192,38,211,1); }
.btn-cool { background: var(--grad-cool); border-color: transparent; color: #fff; }
.btn-cool:hover { background: var(--grad-cool); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-outline { background: transparent; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-xs .ic { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; position: relative; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); }
.link { color: var(--brand-hi); font-weight: 600; } .link:hover { text-decoration: underline; }
[data-theme="light"] .link { color: #6d28d9; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .err, .err { font-size: 12px; color: var(--danger); margin-top: 6px; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: 400 14.5px/1.4 var(--sans); transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239d97bd' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input-sm { height: 36px; font-size: 13.5px; border-radius: 10px; }
.input-group { display: flex; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 23px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--brand); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; cursor: pointer; user-select: none; transition: all .15s; color: var(--text-2); }
.chip input { display: none; }
.chip:hover { border-color: var(--brand); }
.chip.on, .chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-row input[type=color] { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); padding: 4px; cursor: pointer; }

/* ---------- Cards / surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card-sm { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3, .card-head h2 { margin: 0; }
.card.hover { transition: transform .18s, border-color .18s; } .card.hover:hover { transform: translateY(-2px); border-color: var(--line-2); }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.glow { position: relative; } .glow::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-2); white-space: nowrap; letter-spacing: .01em; }
.badge .ic { width: 13px; height: 13px; }
.badge-brand { background: var(--brand-soft); color: var(--brand-hi); } [data-theme="light"] .badge-brand { color: #6d28d9; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); } .badge-info { background: var(--info-soft); color: var(--info); }
.badge-grad { background: var(--grad); color: #fff; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.alert .ic { margin-top: 2px; }
.alert-info { background: var(--info-soft); color: var(--text); border-color: rgba(96,165,250,.25); }
.alert-warn { background: var(--warn-soft); color: var(--text); border-color: rgba(251,191,36,.25); }
.alert-danger { background: var(--danger-soft); color: var(--text); border-color: rgba(251,113,133,.25); }
.alert-ok { background: var(--ok-soft); color: var(--text); border-color: rgba(52,211,153,.25); }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ic { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--muted-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(139,92,246,.04); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Tabs / dropdown / modal ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; font-family: inherit; }
.tabs a.active, .tabs button.active { color: var(--text); border-bottom-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button, .seg a { border: 0; background: none; color: var(--muted); font: 600 13.5px var(--sans); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg .active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
details.dd { position: relative; }
details.dd > summary { list-style: none; cursor: pointer; } details.dd > summary::-webkit-details-marker { display: none; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); z-index: 60; }
.dd-menu .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.dd-menu .item:hover, .dd-menu .item.active { background: var(--surface-2); color: var(--text); }
.modal-bg { position: fixed; inset: 0; background: rgba(5,4,12,.66); backdrop-filter: blur(4px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); font-size: 14px; animation: toastIn .25s ease; }
.toast.success .ic { color: var(--ok); } .toast.error .ic { color: var(--danger); } .toast.info .ic { color: var(--info); } .toast.warn .ic { color: var(--warn); }
.toast .x { margin-left: auto; cursor: pointer; opacity: .6; background: none; border: 0; color: inherit; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Spinner / progress ---------- */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.thinking { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 20px; text-align: center; color: var(--muted); }
.thinking .orb { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); filter: blur(.3px); animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 60px rgba(192,38,211,.5); }
@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   Public site
   ========================================================================== */
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); background: rgba(8,7,15,.72); border-bottom: 1px solid var(--line); }
[data-theme="light"] .site-nav { background: rgba(245,244,251,.8); }
.site-nav .inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.site-nav nav { display: flex; gap: 4px; margin-left: 10px; }
.site-nav nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: 14.5px; }
.site-nav nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav .menu-btn { display: none; }
@media (max-width: 880px) {
  .site-nav nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 20px; margin: 0; }
  .site-nav nav.open { display: flex; }
  .site-nav .menu-btn { display: inline-grid; }
  .site-nav .hide-m { display: none; }
}
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 760px; background: radial-gradient(closest-side, rgba(139,92,246,.33), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(217,70,239,.22), transparent 70%), radial-gradient(closest-side at 30% 60%, rgba(34,211,238,.14), transparent 70%); pointer-events: none; filter: blur(10px); }
.hero .container { position: relative; }
.hero h1 { max-width: 900px; margin: 18px auto 18px; text-align: center; }
.hero .lead { max-width: 690px; margin: 0 auto 30px; text-align: center; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .pill { display: flex; width: max-content; max-width: 100%; margin: 0 auto; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.hero .pill .badge { height: 22px; }
.hero-proof { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.hero-proof span { display: inline-flex; gap: 7px; align-items: center; } .hero-proof .ic { color: var(--ok); width: 16px; height: 16px; }
.platform-strip { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 46px; color: var(--muted); }
.platform-strip span { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.demo { margin: 54px auto 0; max-width: 1040px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 14px; box-shadow: 0 50px 120px -40px rgba(124,58,237,.55); }
.demo-inner { display: grid; grid-template-columns: 320px 1fr; gap: 14px; }
@media (max-width: 820px) { .demo-inner { grid-template-columns: 1fr; } }
.demo .pane { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.demo .typing::after { content: '▍'; animation: blink 1s steps(1) infinite; color: var(--brand-hi); }
@keyframes blink { 50% { opacity: 0; } }
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .eyebrow, .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-hi); margin-bottom: 12px; }
[data-theme="light"] .eyebrow { color: #7c3aed; }
.section-head p { color: var(--muted); font-size: 17px; }
.feature { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(139,92,246,.4); transform: translateY(-2px); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-hi); margin-bottom: 14px; }
[data-theme="light"] .feature .fi { color: #7c3aed; }
.feature h3 { font-size: 17px; margin-bottom: 6px; } .feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 20px; font: 800 40px var(--display); color: var(--surface-3); }
.step h3 { font-size: 16px; } .step p { color: var(--muted); font-size: 14px; margin: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare ul, .plain-list { list-style: none; padding: 0; margin: 0; }
.compare li, .plain-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; }
.compare .yes .ic { color: var(--ok); margin-top: 3px; } .compare .no .ic { color: var(--muted-2); margin-top: 3px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.price-card.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -40px rgba(192,38,211,.7); }
.price-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.price-card h3 { font-size: 20px; margin: 0 0 4px; } .price-card .tagline { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; } .price b { font: 800 42px var(--display); letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: 14px; } .price-note { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.price-card li { display: flex; gap: 9px; padding: 6px 0; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.price-card li .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); } .price-card li.off { color: var(--muted-2); } .price-card li.off .ic { color: var(--muted-2); }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 20px; margin-bottom: 10px; }
.faq summary { padding: 18px 0; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; } .faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.cta-band { border-radius: 26px; padding: 54px 30px; text-align: center; background: radial-gradient(circle at 20% 0%, rgba(34,211,238,.25), transparent 50%), var(--grad); color: #fff; }
.cta-band p { opacity: .9; font-size: 17px; } .cta-band .btn { background: #fff; color: #3b0764; border-color: transparent; }
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 30px; margin-top: 60px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; } .site-footer a { display: block; padding: 4px 0; } .site-footer a:hover { color: var(--text); }
.legal { max-width: 820px; margin: 0 auto; padding: 60px 20px; } .legal .body { color: var(--text-2); white-space: pre-line; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none !important; } }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth-box { width: 100%; max-width: 410px; margin: auto; padding: 30px 0; }
.auth-box h1 { font-size: 30px; margin-bottom: 6px; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.28), transparent 45%), radial-gradient(circle at 80% 70%, rgba(236,72,153,.35), transparent 50%), linear-gradient(160deg, #1e1145, #3b0764 60%, #0b0820); color: #fff; }
.auth-art h2 { font-size: 34px; max-width: 460px; } .auth-art p { opacity: .82; max-width: 440px; }
.auth-art .floating { position: absolute; top: 12%; left: 10%; right: 10%; display: grid; gap: 12px; }
.auth-art .fcard { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; }
.auth-art .fcard:nth-child(2) { margin-left: 18%; } .auth-art .fcard:nth-child(3) { margin-right: 14%; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 70; }
.side .logo { padding: 4px 8px 16px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: 14px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--text); }
.nav a.active .ic { color: var(--brand-hi); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 7px; }
.nav .soon { margin-left: auto; }
.nav-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 16px 11px 6px; }
.side-credits { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.side-credits .n { font: 800 24px var(--display); letter-spacing: -.03em; }
.side-credits .progress { margin: 10px 0 12px; height: 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 24px; background: rgba(8,7,15,.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
[data-theme="light"] .topbar { background: rgba(245,244,251,.82); }
.topbar .title { font: 700 17px var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.credit-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 99px; background: var(--brand-soft); color: var(--text); font-weight: 700; font-size: 13.5px; border: 1px solid rgba(139,92,246,.3); }
.credit-pill .ic { color: var(--brand-hi); width: 16px; height: 16px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 12px; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-cool); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 13px; flex: none; }
.content { padding: 28px 24px 60px; width: 100%; max-width: 1320px; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; margin: 0 0 4px; } .page-head p { margin: 0; color: var(--muted); }
.menu-toggle { display: none; }
.side-backdrop { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .side.open { transform: none; }
  .side-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 65; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .content { padding: 20px 16px 50px; }
  .user-chip .meta { display: none; }
}
.stat { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stat .v { font: 800 28px var(--display); letter-spacing: -.035em; margin-top: 6px; }
.stat .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding-top: 10px; }
.bars span { flex: 1; background: var(--grad-cool); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; opacity: .85; }
.bars span:hover { opacity: 1; } .bars span[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; background: var(--surface-3); padding: 3px 7px; border-radius: 6px; font-size: 11px; white-space: nowrap; }

/* Tool cards */
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: all .18s; position: relative; height: 100%; }
.tool-card:hover { border-color: rgba(139,92,246,.45); transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(124,58,237,.6); }
.tool-card .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-hi); }
[data-theme="light"] .tool-card .ti { color: #7c3aed; }
.tool-card h3 { font-size: 16px; margin: 0; } .tool-card p { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.tool-card .meta { display: flex; justify-content: space-between; align-items: center; }
.tool-card.locked { opacity: .78; } .tool-card.locked .ti { background: var(--surface-3); color: var(--muted); }
.hero-tile { padding: 26px; border-radius: var(--r-lg); background: radial-gradient(circle at 90% 10%, rgba(34,211,238,.25), transparent 40%), var(--grad); color: #fff; position: relative; overflow: hidden; }
.hero-tile p { opacity: .9; } .hero-tile .btn { background: #fff; color: #3b0764; border-color: transparent; }

/* ==========================================================================
   Studio & results
   ========================================================================== */
.studio { display: grid; grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1080px) { .studio { grid-template-columns: 1fr; } }
.studio-form { position: sticky; top: 84px; }
@media (max-width: 1080px) { .studio-form { position: static; } }
.studio-form .card { padding: 20px; }
.brand-select { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid rgba(139,92,246,.25); margin-bottom: 16px; }
.brand-select select { background-color: transparent; border: 0; height: 30px; padding-left: 4px; font-weight: 600; box-shadow: none !important; }
.gen-btn { position: relative; }
.gen-btn .cost { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.2); }
.result-empty { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 60px 24px; text-align: center; color: var(--muted); }
.result-empty .ic { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--brand-hi); opacity: .7; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rs { display: flex; flex-direction: column; gap: 14px; }
.rs-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.rs-section > h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rs-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; position: relative; }
.rs-item h5 { margin: 0 0 8px; font-size: 14.5px; font-family: var(--display); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.rs-kv { margin: 0 0 10px; } .rs-kv:last-child { margin-bottom: 0; }
.rs-kv .k { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.rs-kv .v { white-space: pre-wrap; word-wrap: break-word; color: var(--text); font-size: 14.5px; }
.rs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rs-list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); font-size: 14px; border: 1px solid transparent; }
.rs-list li:hover { border-color: var(--line-2); }
.rs-list li .txt { flex: 1; white-space: pre-wrap; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-tags span { padding: 5px 10px; border-radius: 8px; background: var(--surface-3); font-size: 13px; cursor: pointer; }
.rs-tags span:hover { background: var(--brand-soft); }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; flex: none; transition: all .15s; }
.copy:hover { color: var(--text); border-color: var(--brand); } .copy .ic { width: 14px; height: 14px; } .copy.done { color: var(--ok); border-color: var(--ok); }
.cc { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); text-transform: none; letter-spacing: 0; }
.cc.over { background: var(--danger-soft); color: var(--danger); }
.score { display: flex; align-items: center; gap: 18px; }
.ring { --p: 50; --c: var(--brand); width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; flex: none; }
.ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font: 800 26px var(--display); }
.meter { display: grid; grid-template-columns: 160px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 8px; }
.meter .progress { height: 7px; }
@media (max-width: 520px) { .meter { grid-template-columns: 110px 1fr 34px; } }
.sev-high { border-left: 3px solid var(--danger) !important; } .sev-medium { border-left: 3px solid var(--warn) !important; } .sev-low { border-left: 3px solid var(--info) !important; }
.scene-table td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--brand-hi); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.img-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; }
.img-card img { width: 100%; height: auto; aspect-ratio: auto; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0/16px 16px; }
.img-card .acts { display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-grid .img-card img { aspect-ratio: 1; object-fit: cover; }

/* Ad previews */
.ad-preview { background: #fff; color: #050505; border-radius: 12px; overflow: hidden; font: 14px/1.4 -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; border: 1px solid #dadde1; max-width: 420px; }
.ad-preview .ap-head { display: flex; gap: 9px; align-items: center; padding: 11px 12px 8px; }
.ad-preview .ap-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#ec4899); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.ad-preview .ap-name { font-weight: 600; font-size: 14px; } .ad-preview .ap-sp { font-size: 12px; color: #65676b; }
.ad-preview .ap-text { padding: 0 12px 10px; white-space: pre-wrap; }
.ad-preview .ap-img { aspect-ratio: 1.91/1; background: linear-gradient(135deg, #ede9fe, #fae8ff 50%, #cffafe); display: grid; place-items: center; color: #7c3aed; font-weight: 700; font-size: 13px; text-align: center; padding: 10px; }
.ad-preview .ap-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-preview .ap-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.ad-preview .ap-foot .t { flex: 1; min-width: 0; } .ad-preview .ap-url { font-size: 12px; color: #65676b; text-transform: uppercase; }
.ad-preview .ap-h { font-weight: 600; font-size: 15px; } .ad-preview .ap-d { font-size: 13px; color: #65676b; }
.ad-preview .ap-cta { background: #e4e6eb; border-radius: 6px; padding: 8px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.serp { background: #fff; color: #202124; border-radius: 12px; padding: 16px 18px; font-family: Arial, sans-serif; border: 1px solid #dadce0; }
.serp .s-sp { font-size: 12px; font-weight: 700; } .serp .s-url { font-size: 13px; color: #202124; margin: 2px 0 4px; }
.serp .s-h { color: #1a0dab; font-size: 19px; line-height: 1.3; margin-bottom: 4px; } .serp .s-d { color: #4d5156; font-size: 14px; line-height: 1.55; }
.serp .s-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; } .serp .s-links span { color: #1a0dab; font-size: 14px; }
.variant-wrap { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1280px) { .variant-wrap { grid-template-columns: 1fr; } .variant-wrap .ad-preview { max-width: 100%; } }

/* Autopilot */
.ap-steps { display: flex; flex-direction: column; gap: 6px; }
.ap-step { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: border-color .15s; }
.ap-step:hover { border-color: var(--line-2); } .ap-step.active { border-color: var(--brand); background: var(--brand-soft); }
.ap-step .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; font-size: 12px; font-weight: 700; }
.ap-step.done .st { background: var(--ok-soft); color: var(--ok); } .ap-step.run .st { background: var(--brand-soft); color: var(--brand-hi); }
.ap-step.fail .st { background: var(--danger-soft); color: var(--danger); }
.ap-step .st .ic { width: 15px; height: 15px; } .ap-step .lbl { flex: 1; min-width: 0; }
.platform-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.platform-pick label { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 13.5px; font-weight: 600; transition: all .15s; }
.platform-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.platform-pick input { accent-color: var(--brand); }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .editor { grid-template-columns: 1fr; } }
.stage { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/22px 22px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; place-items: center; min-height: 420px; }
.stage canvas { max-height: 72vh; width: auto; border-radius: 6px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-grid button { height: 58px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.tpl-grid button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; } .swatches button { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); cursor: pointer; }

/* Admin */
.kv-table td:first-child { color: var(--muted); width: 40%; }
.provider-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--surface-2); }
.provider-card.on { border-color: rgba(52,211,153,.35); }
.code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; display: flex; gap: 8px; align-items: center; word-break: break-all; }
pre.payload { font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: auto; max-height: 420px; white-space: pre-wrap; }
.setup-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; } .setup-list li:last-child { border: 0; }

/* Install */
.install { max-width: 720px; margin: 40px auto; padding: 0 16px; }

@media print {
  .side, .topbar, .no-print, .toasts { display: none !important; }
  .app { display: block; } body { background: #fff; color: #000; }
  .rs-section, .rs-item, .card { border-color: #ddd; box-shadow: none; background: #fff; }
}
