/* SwipeCDN — one stylesheet for the site, docs, help and dashboard. Dark first; light via [data-theme=light] or the OS. */
:root {
  --bg: #07080c; --bg2: #0d0f16; --card: #11141d; --card2: #161a26; --line: #232838; --line2: #2f3549;
  --fg: #eef0f6; --fg2: #c4c8d6; --muted: #8a90a6; --brand: #7a5cff; --brand-fg: #fff; --brand2: #22e0a8; --accent: #ffcf4a;
  --ok: #22c58b; --warn: #f5a524; --bad: #ff5d6c; --code: #0a0c12; --shadow: 0 10px 40px rgba(0,0,0,.35);
  --r: 12px; --r2: 18px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfbfd; --bg2: #f3f4f8; --card: #ffffff; --card2: #f6f7fb; --line: #e3e5ee; --line2: #d3d6e2;
  --fg: #0d0f17; --fg2: #333949; --muted: #646b80; --brand: #5b3df5; --brand2: #0fae80; --code: #0d1020; --shadow: 0 10px 30px rgba(20,24,40,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbfd; --bg2: #f3f4f8; --card: #ffffff; --card2: #f6f7fb; --line: #e3e5ee; --line2: #d3d6e2;
    --fg: #0d0f17; --fg2: #333949; --muted: #646b80; --brand: #5b3df5; --brand2: #0fae80; --code: #0d1020; --shadow: 0 10px 30px rgba(20,24,40,.08);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 56px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; color: var(--fg2); }
code, pre, kbd { font-family: var(--mono); font-size: 13px; }
:not(pre) > code { background: var(--card2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; word-break: break-word; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.hide { display: none !important; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── progress bar + busy state (every tap answers at once) ── */
#sc-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000; background: linear-gradient(90deg, var(--brand), var(--brand2)); box-shadow: 0 0 10px var(--brand); opacity: 0; transition: width .25s ease, opacity .3s; pointer-events: none; }
#sc-bar.on { opacity: 1; }
#sc-veil { position: fixed; inset: 0; z-index: 999; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(1px); display: none; }
#sc-veil.on { display: block; }
#sc-veil::after { content: ""; position: absolute; inset: 72px 16px auto; height: 220px; border-radius: var(--r2); background: linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%); background-size: 300% 100%; animation: shimmer 1.1s infinite linear; max-width: 1148px; margin: 0 auto; }
[aria-busy="true"] { position: relative; pointer-events: none; opacity: .75; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; margin-inline-start: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk { border-radius: 10px; min-height: 18px; background: linear-gradient(100deg, var(--card2) 30%, var(--line) 50%, var(--card2) 70%); background-size: 300% 100%; animation: shimmer 1.1s infinite linear; }
.sk + .sk { margin-top: 10px; }
.sk.h40 { min-height: 40px; } .sk.h80 { min-height: 80px; } .sk.h200 { min-height: 200px; }
.fail { border: 1px dashed var(--line2); border-radius: var(--r); padding: 18px; text-align: center; color: var(--muted); }

/* ── buttons + fields ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--fg); font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .06s, background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: transparent; color: var(--brand-fg); box-shadow: 0 6px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--fg2); }
input.in, select.in, textarea.in { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--fg); font: 15px var(--sans); outline: none; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input.code6 { font: 700 28px/1 var(--mono); letter-spacing: .5em; text-align: center; padding-inline-start: .5em; }
.err { color: var(--bad); font-size: 13px; margin-top: 6px; min-height: 1em; }
.okmsg { color: var(--ok); font-size: 13px; }

/* ── top nav ── */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--fg); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 800; } .logo i { font-style: normal; font-weight: 500; color: var(--muted); }
.nav .links { display: flex; gap: 4px; flex: 1; }
.nav .links a { text-decoration: none; color: var(--fg2); padding: 8px 12px; border-radius: 8px; font-weight: 550; }
.nav .links a:hover, .nav .links a.on { color: var(--fg); background: var(--card); }
.nav .cta { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg2); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
#menu-btn { display: none; }
@media (max-width: 860px) {
  .nav .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav .links.open { display: flex; }
  .nav .links a { padding: 12px; }
  #menu-btn { display: inline-grid; }
  .nav .cta .hide-sm { display: none; }
  .nav .wrap { gap: 10px; }
  .nav .links { flex: none; }
  .nav .cta { margin-inline-start: auto; }
}

/* ── marketing ── */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 640px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 32%, transparent), transparent), radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--brand2) 18%, transparent), transparent); pointer-events: none; z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand2); border: 1px solid color-mix(in srgb, var(--brand2) 40%, transparent); padding: 7px 10px; border-radius: 999px; margin-bottom: 18px; }
.grad { background: linear-gradient(92deg, var(--fg) 0%, var(--brand) 55%, var(--brand2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--fg2); max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; max-width: 560px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--card); }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } }
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9/19; margin: 0 auto; border-radius: 42px; background: #000; border: 10px solid #1c1f2b; box-shadow: var(--shadow), 0 0 0 1px var(--line2); overflow: hidden; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 999px; background: #000; z-index: 5; }
.phone-stack { position: absolute; inset: 0; display: flex; flex-direction: column; animation: swipe 9s infinite cubic-bezier(.7,0,.2,1); }
.phone-stack > div { flex: 0 0 100%; position: relative; }
@keyframes swipe { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-100%); } 66%, 94% { transform: translateY(-200%); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .phone-stack { animation: none; } }
.slide-a { background: radial-gradient(circle at 30% 30%, #ff8a5b, #c2185b 60%, #3a0d2e); }
.slide-b { background: radial-gradient(circle at 70% 30%, #3ee6b5, #0e7a66 55%, #0a2a2a); }
.slide-c { background: radial-gradient(circle at 40% 60%, #8f7bff, #3a2bb3 60%, #120c3a); }
.phone .meta { position: absolute; left: 14px; right: 60px; bottom: 22px; color: #fff; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.phone .meta b { display: block; font-size: 15px; }
.phone .chip { position: absolute; top: 40px; left: 14px; z-index: 4; font: 600 11px var(--mono); color: #fff; background: rgba(0,0,0,.45); padding: 5px 9px; border-radius: 999px; }
.phone .rail { position: absolute; right: 10px; bottom: 80px; display: grid; gap: 14px; }
.phone .rail i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }
section.band { padding: 72px 0; border-top: 1px solid var(--line); }
section.band.alt { background: var(--bg2); }
.kicker { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; }
.card.pad-sm { padding: 16px; }
.card h3 { margin-bottom: 6px; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); margin-bottom: 14px; }
.feat .ic svg { width: 22px; height: 22px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding-inline-start: 46px; margin-bottom: 18px; }
.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--mono); background: var(--card2); border: 1px solid var(--line2); color: var(--brand2); }
.logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; color: var(--muted); font-weight: 700; }
.cta-band { text-align: center; padding: 56px 22px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%), var(--card); }

/* ── code blocks ── */
pre.code { position: relative; margin: 0; background: var(--code); color: #dfe3f0; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; overflow-x: auto; line-height: 1.55; font-size: 12.5px; }
.codebox { position: relative; }
.codebox .copy { position: absolute; top: 8px; right: 8px; }
.codebox .lang { position: absolute; top: -10px; left: 12px; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--card2); border: 1px solid var(--line); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
.tok-k { color: #c3a6ff; } .tok-s { color: #8ef0c6; } .tok-c { color: #6c7390; } .tok-n { color: #ffcf7a; }

/* ── pricing ── */
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); gap: 4px; flex-wrap: wrap; }
.toggle button { border: 0; background: transparent; color: var(--fg2); font: 600 14px var(--sans); padding: 9px 14px; border-radius: 9px; cursor: pointer; min-height: 38px; }
.toggle button.on { background: var(--brand); color: #fff; }
.toggle .save { font: 700 11px var(--mono); color: var(--brand2); margin-inline-start: 4px; }
.toggle button.on .save { color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 28px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .tag { position: absolute; top: -11px; right: 18px; background: var(--brand); color: #fff; font: 700 11px var(--mono); padding: 4px 10px; border-radius: 999px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; }
.plan .per { color: var(--muted); font-size: 13px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--fg2); border-bottom: 1px dashed var(--line); font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--brand2); border-bottom: 2px solid var(--brand2); transform: rotate(-45deg); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* ── docs + help ── */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 36px 0 80px; }
.docs aside { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
.docs aside a { display: block; text-decoration: none; color: var(--fg2); padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.docs aside a:hover { background: var(--card); color: var(--fg); }
.docs aside .grp { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 10px 4px; }
.docs article h2 { margin-top: 2.2em; padding-top: 12px; scroll-margin-top: 80px; border-top: 1px solid var(--line); }
.docs article h2:first-of-type { margin-top: 0; border: 0; }
.docs article h3 { margin-top: 1.6em; scroll-margin-top: 80px; }
.docs article .codebox { margin: 14px 0 18px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 16px; } .docs aside { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; } .docs aside .grp { display: none; } .docs aside a { white-space: nowrap; border: 1px solid var(--line); } }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--fg2); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.badge.brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.m-get { color: var(--brand2); } .m-post { color: var(--accent); } .m-del { color: var(--bad); } .m-patch { color: #7ab8ff; }
.help-hero { padding: 48px 0 28px; text-align: center; }
.help-search { max-width: 640px; margin: 18px auto 0; position: relative; }
.help-search input { min-height: 54px; font-size: 17px; padding-inline-start: 46px; border-radius: 14px; }
.help-search svg { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; color: var(--muted); }
.help-cat { text-decoration: none; display: block; transition: border-color .15s, transform .06s; }
.help-cat:hover { border-color: var(--brand); }
.help-cat:active { transform: scale(.99); }
.help-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); font-weight: 550; }
.help-list a:hover { color: var(--brand); }
.crumbs { font-size: 13px; color: var(--muted); margin: 26px 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; margin: 8px 0 16px; }
.tabs button { border: 0; background: transparent; color: var(--fg2); padding: 8px 14px; border-radius: 8px; font: 600 13px var(--sans); cursor: pointer; }
.tabs button.on { background: var(--card2); color: var(--fg); }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card2); }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone-shot { max-width: 280px; }
.callout { border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: var(--r); padding: 14px 16px; color: var(--fg2); font-size: 14px; }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }

/* ── auth ── */
.auth { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; padding: 40px 0; }
.auth .card { width: min(440px, 100%); padding: 28px; }

/* ── dashboard ── */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; background: var(--bg); }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--fg2); font-weight: 550; font-size: 14px; }
.side a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side a:hover { background: var(--card); color: var(--fg); }
.side a.on { background: var(--card2); color: var(--fg); box-shadow: inset 3px 0 0 var(--brand); }
.side .plan-box { margin: 18px 4px 0; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.main { padding: 26px clamp(16px, 3vw, 36px) 80px; min-width: 0; }
.main > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.main > header h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 64px; height: auto; z-index: 40; display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; padding: 8px 12px; }
  .side a.on { box-shadow: inset 0 -2px 0 var(--brand); }
  .side .plan-box { display: none; }
}
.meter { height: 10px; border-radius: 999px; background: var(--card2); overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand2), var(--brand)); border-radius: 999px; transition: width .6s ease; }
.meter.warn > i { background: var(--warn); } .meter.bad > i { background: var(--bad); }
.kpi b { display: block; font-size: 28px; letter-spacing: -.03em; }
.kpi span { color: var(--muted); font-size: 13px; }
.vlist { display: grid; gap: 10px; }
.vrow { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.vrow .th { width: 54px; height: 96px; border-radius: 8px; background: var(--card2) center/cover no-repeat; }
.vrow .tt { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .vrow { grid-template-columns: 46px minmax(0, 1fr); } .vrow .th { width: 46px; height: 82px; } .vrow .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.keybox { display: flex; gap: 8px; align-items: center; background: var(--code); color: #dfe3f0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; font: 13px var(--mono); }
.keybox code { flex: 1; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; color: inherit; }
.drop { display: grid; place-items: center; text-align: center; min-height: 220px; border: 2px dashed var(--line2); border-radius: var(--r2); padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--card); }
.drop:hover, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); }
.job + .job { margin-top: 10px; }
.pbar { height: 6px; border-radius: 999px; background: var(--card2); overflow: hidden; margin-top: 10px; }
.pbar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .2s; }
.preview-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .preview-wrap { grid-template-columns: 1fr; } }
.device { position: relative; width: min(360px, 100%); aspect-ratio: 9 / 18.5; border-radius: 38px; border: 9px solid #1c1f2b; background: #000; overflow: hidden; box-shadow: var(--shadow); margin: 0 auto; }
.device .gvf { position: absolute; inset: 0; }
.device .gvf-info h2 { font-size: 15px; }
.device .empty { position: absolute; inset: 0; display: grid; place-items: center; color: #aab; padding: 24px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; transition: .2s; z-index: 1001; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 16px; }
.modal .card { width: min(560px, 100%); max-height: 90vh; overflow: auto; }

/* ── footer ── */
footer.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); margin-top: 40px; color: var(--muted); font-size: 14px; }
footer.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
footer.foot a { color: var(--fg2); text-decoration: none; display: block; padding: 4px 0; }
footer.foot a:hover { color: var(--fg); }
footer.foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
footer.foot .by { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { footer.foot .cols { grid-template-columns: 1fr 1fr; } }
.drop svg { width: 44px; height: 44px; }
label.chkrow { display: flex; gap: 10px; align-items: flex-start; flex-wrap: nowrap; cursor: pointer; }
label.chkrow input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.cardform { max-width: 460px; }
.cardform .f { margin-top: 10px; }
.ccwrap { position: relative; }
.ccwrap .in { padding-inline-end: 96px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ccbrand { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.in[aria-invalid="true"] { border-color: var(--bad); }
#tdsbox .card { max-height: 92vh; }
