/* Fenris customer app: HYBRID theme (Leo, 2026-09-24): soft slate-navy sidebar, light workspace.
   Polish pass 2026-09-25 (15_UI_Review_ChatGPT): one token system for radius, border, shadow, buttons and type.
   Fonts stay Archivo (headings), IBM Plex Sans (text), IBM Plex Mono (numbers only). "Wolf-eye" cyan is used
   sparingly: the progress fill, the selected-card top rule, the active nav indicator and the focus glow.
   All text colours below meet WCAG AA (4.5:1) on the surfaces they sit on. */
:root {
  /* navy foundation */
  --navy: #1D2F4C; --navy-deep: #162740; --navy-2: #253A5C; --navy-3: #32486F;
  --navy-ink: #EEF2F8; --navy-dim: #B8C6D9; --navy-off: #8E9BB0;
  /* light surfaces */
  --bg: #F3F6FA; --surface: #FFFFFF; --surface-soft: #F8FAFD; --surface-muted: #EEF3F9;
  --line: #D9E0EA; --line-2: #C6D1DF; --line-3: #9EB0C6;
  /* text */
  --ink: #0F172A; --ink-2: #475467; --ink-3: #5B6678;
  /* Fenris blue + wolf-eye cyan */
  --blue: #2563C9; --blue-2: #1E5BB8; --blue-700: #174EA6; --blue-soft: #EAF2FF; --blue-line: #BFD7FF; --blue-400: #60A5FA;
  --cyan: #38BDF8;
  --eye: linear-gradient(90deg, var(--blue) 0%, var(--blue-400) 55%, var(--cyan) 100%);
  --focus-ring: 0 0 0 3px rgba(37,99,201,.28);
  /* status */
  --ok: #087A3E; --ok-soft: #E8F8EF; --ok-line: #BDEACF;
  --warn: #7A4B00; --warn-soft: #FFF6E5; --warn-line: #F4D28E; --warn-edge: #D97706;
  --bad: #991B1B; --bad-soft: #FEF2F2; --bad-line: #FECACA;
  /* shape */
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 16px;
  --radius: var(--r-lg); --radius-sm: var(--r-md);
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 20px rgba(15,23,42,.05);
  --shadow-raised: 0 2px 4px rgba(15,23,42,.06), 0 12px 28px rgba(15,23,42,.08);
  --shadow-elevated: 0 12px 32px rgba(15,23,42,.16);
  --btn-h: 40px; --btn-h-lg: 48px;
  --f-head: 'Archivo', system-ui, sans-serif; --f-body: 'IBM Plex Sans', system-ui, sans-serif; --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-700); text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(56,189,248,.25); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; line-height: 18px; }
.hidden { display: none !important; }

/* ── buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:hover { background: var(--surface-soft); border-color: var(--line-3); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 6px 14px rgba(37,99,201,.20); }
.btn.primary:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn.primary.hero { background: linear-gradient(135deg, #2563C9 0%, #1E5BB8 60%, #1B6FB0 100%); box-shadow: 0 10px 24px rgba(37,99,201,.24); }
.btn.tertiary { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.tertiary:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.btn[disabled], .btn[disabled]:hover, .btn.primary[disabled], .btn.primary.hero[disabled], .btn.primary.hero[disabled]:hover { background: #E4E9F1; border-color: #E4E9F1; color: #5B6678; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.lg { min-height: var(--btn-h-lg); padding: 0 22px; font-size: 16px; border-radius: var(--r-lg); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .btn.primary:not([disabled]):hover { transform: translateY(-1px); } }

/* ── pills (segmented choices) ───────────────────────────── */
.chip { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.chip:hover { border-color: var(--line-3); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-700); box-shadow: inset 0 0 0 1px rgba(37,99,201,.18); }
.chip[disabled] { background: var(--surface-muted); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.chip .soon { font-size: 11px; margin-left: 6px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.label { font: 700 12px/16px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #3E5067; margin: 28px 0 12px; }
.label:first-child { margin-top: 0; }

/* ── badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 11px/1 var(--f-body); letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.badge.dark { background: var(--ink); color: #fff; }
.badge.blue { background: var(--blue); color: #fff; }
.badge.soft-blue { background: var(--blue-soft); color: var(--blue-700); border-color: var(--blue-line); }
.badge.muted { background: var(--surface-muted); color: var(--ink-3); border-color: var(--line); }
.status-success { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); font: 700 12px/1 var(--f-body); margin-bottom: 10px; }

/* ── alerts ──────────────────────────────────────────────── */
.alert, .banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 20px; border: 1px solid; margin-bottom: 18px; }
.banner { display: block; }                        /* plain-text notices (inline links): no flex columns */
.alert .ic { flex: 0 0 auto; margin-top: 1px; }
.alert > div { flex: 1; }
.alert.warning, .banner.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.alert.error, .banner.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.alert.success, .banner.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.alert.info { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-700); }
.alert a, .banner a { color: inherit; font-weight: 600; }
.field-alert { margin: 8px 0 0; }

/* ── sign-in screen ─────────────────────────────────────── */
.login { display: grid; grid-template-columns: minmax(0, 44%) 1fr; min-height: 100vh; }
.login-brand { background: radial-gradient(circle at 18% 12%, rgba(96,165,250,.16), transparent 32%), linear-gradient(180deg, var(--navy) 0%, #172842 100%);
  color: var(--navy-ink); padding: 56px 56px 40px; display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-lockup img { width: 56px; height: 56px; border-radius: 50%; background: #05070d; box-shadow: 0 0 0 1px rgba(127,176,255,.35); }
.brand-banner { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.brand-lockup span { font: 800 30px/1 var(--f-head); letter-spacing: .08em; }
.login-brand h1 { font: 800 clamp(38px, 5vw, 56px)/.98 var(--f-head); letter-spacing: -.03em; margin: 64px 0 22px; color: #fff; }
.login-brand p { color: #C6D3E3; font-size: 17px; line-height: 1.55; max-width: 440px; margin: 0; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; font-size: 16px; }
.steps b { font: 500 15px var(--f-mono); color: #8CC0FF; }
.beta-tag { display: inline-block; margin-top: auto; padding: 6px 12px; border: 1px solid var(--navy-3); border-radius: 999px; color: var(--navy-dim); font-size: 13px; align-self: flex-start; }
.login-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; gap: 16px; }
.login-form h2 { font: 700 32px/1.1 var(--f-head); letter-spacing: -.02em; margin: 0; }
.login-form .intro { width: 100%; max-width: 480px; }
.login-form .intro p { margin: 6px 0 0; }
.invite-note { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; color: var(--ink-2); font-size: 14px; }
.legal-mini { font-size: 13px; color: var(--ink-3); max-width: 480px; text-align: center; }
.legal-mini a { color: var(--ink-2); }
/* Quis kit, re-skinned light for the hybrid theme (the kit itself stays untouched) */
.login-form .qa-wrap { --qa-bg: transparent; --qa-card: #FFFFFF; --qa-input: #FFFFFF; --qa-line: #C6D1DF; --qa-text: #0F172A; --qa-text2: #475467; --qa-accent: #2563C9; --qa-error: #991B1B; --qa-ok: #087A3E; background: transparent; min-height: 0; padding: 0; }
.login-form .qa-wrap .qa-card { box-shadow: 0 16px 44px rgba(15,23,42,.08); border-color: var(--line); border-radius: 18px; padding: 30px 30px 22px; }
.login-form .qa-card button.qa-btn { background: var(--blue); color: #fff; font-size: 17px; padding: 14px; border-radius: var(--r-lg); }
.login-form .qa-input { color: var(--ink); background: #fff; }
.login-form .qa-brand-logo .qa-logo { background: #fff; border-radius: 12px; }

/* ── app shell ──────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); border-right: 1px solid rgba(255,255,255,.08); color: var(--navy-ink);
  display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.side .brand-lockup { padding: 2px 4px 26px; gap: 8px; }
.side .brand-lockup img { width: 64px; height: 64px; border-radius: 50%; }
.side .brand-lockup span { font-size: 32px; letter-spacing: .04em; white-space: nowrap; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); color: var(--navy-dim); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav a svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a[aria-current="page"] { background: rgba(96,165,250,.15); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--blue-400), var(--cyan)); box-shadow: 0 0 10px rgba(56,189,248,.55); }
.nav a.soon { color: var(--navy-off); pointer-events: none; cursor: default; }
.nav a.soon .soon-badge { margin-left: auto; font: 700 10px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-dim); border: 1px solid rgba(184,198,217,.35); border-radius: 999px; padding: 4px 7px; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 10px 0; font-size: 14px; }
.side-foot .who { font-weight: 600; word-break: break-all; }
.side-foot .beta { color: var(--navy-dim); font-size: 13px; }
.side-foot button { margin-top: 10px; background: none; border: 1px solid rgba(184,198,217,.35); color: var(--navy-ink); border-radius: var(--r-sm); padding: 6px 12px; cursor: pointer; }
.side-foot button:hover { background: rgba(255,255,255,.06); }
.main { display: flex; flex-direction: column; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 16px 40px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top h1 { font: 700 26px/32px var(--f-head); letter-spacing: -.02em; margin: 0; }
.top .bal { margin-left: auto; font: 500 16px var(--f-mono); font-variant-numeric: tabular-nums; }
.content { padding: 30px 40px 24px; flex: 1; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.foot { padding: 18px 40px 22px; color: var(--ink-3); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); }
.foot a { color: var(--ink-3); text-decoration-thickness: 1px; }
.foot a:hover { color: var(--ink); }
.menu-btn { display: none; }

/* ── create ─────────────────────────────────────────────── */
textarea.brief { width: 100%; min-height: 116px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); font: 15px/22px var(--f-body); color: var(--ink); background: var(--surface); }
textarea.brief:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.14); }
textarea.brief.is-invalid { border-color: var(--warn-edge); box-shadow: 0 0 0 3px rgba(217,119,6,.14); }
.opts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.opts .lbl { color: var(--ink-2); margin-right: 4px; font-weight: 600; font-size: 14px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choices.one { grid-template-columns: minmax(0, 360px); }
.choice { text-align: left; padding: 22px 22px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.choice:hover:not(.is-disabled) { border-color: #9EB4D4; box-shadow: var(--shadow-raised); }
.choice.is-selected, .choice[aria-pressed="true"] { border: 2px solid var(--blue); padding: 21px 21px 19px; box-shadow: 0 0 0 3px rgba(37,99,201,.12), 0 12px 28px rgba(15,23,42,.08); }
.choice.is-selected::before { content: ""; position: absolute; inset: -2px -2px auto -2px; height: 4px; border-radius: 14px 14px 0 0; background: var(--eye); }
/* Calmer disabled Choice C: flat, quieter, still readable (AA) and not "broken". */
.choice.is-disabled { cursor: not-allowed; background: var(--surface-soft); box-shadow: none; }
.choice.is-disabled .c-title { color: var(--ink-2); }
.choice.is-disabled .c-use, .choice.is-disabled .c-foot, .choice.is-disabled .c-price span { color: var(--ink-3); }
.choice.is-disabled .c-price b { color: var(--ink-2); }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.c-letter { font: 700 12px var(--f-head); letter-spacing: .12em; color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }
.choice.is-selected .c-letter { color: var(--blue); }
.c-title { font: 700 21px/26px var(--f-head); letter-spacing: -.015em; margin: 10px 0 2px; }
.c-use { color: var(--ink-2); font-size: 14px; line-height: 1.5; flex: 1; }
.c-price { margin-top: 14px; } .c-price b { font: 600 28px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .c-price span { color: var(--ink-2); font-size: 14px; }
.c-foot { font-size: 13px; color: var(--ink-3); }
.c-attrib { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.c-attrib a { color: var(--blue-700); }
/* Story video: a dashed roadmap card, clearly "on the way", not a broken option */
.roadmap { border: 1px dashed #B7C4D6; border-radius: 14px; background: linear-gradient(180deg, var(--surface-soft), var(--bg)); padding: 18px 20px; }
.roadmap p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.roadmap b { color: var(--ink); }
.summary { margin-top: 26px; padding: 18px 22px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.summary-main { flex: 1 1 260px; min-width: 0; }
.summary-alert { flex: 1 1 100%; margin: 0; align-items: center; }
.summary-alert .btn { flex: 0 0 auto; }
.summary .what { font-weight: 700; } .summary .sub { color: var(--ink-2); font-size: 14px; }
.summary .cost { margin-left: auto; font-size: 28px; } .summary .cost .mono { font-weight: 600; } .summary .cost small { font-size: 14px; color: var(--ink-2); margin-left: 6px; }
.recent h3 { font: 700 12px/16px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #3E5067; margin: 0 0 12px; }
.thumb { position: relative; aspect-ratio: 16/9; background: #E8EEF7; border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 13px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* loading skeleton: a moving sheen, never a flat grey box */
.thumb.is-loading { background: linear-gradient(100deg, #E3EAF4 20%, #F4F7FB 40%, #E3EAF4 60%) 0 0 / 250% 100%; animation: sheen 1.4s linear infinite; }
@keyframes sheen { to { background-position: -150% 0; } }
.thumb.is-error { background: repeating-linear-gradient(135deg, #FBF3F2 0 10px, #F7ECEA 10px 20px); color: var(--bad); }
.thumb-msg { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); font-weight: 600; font-size: 13px; text-align: center; }
.thumb-msg .ic { flex: 0 0 auto; }
.play-badge { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,23,42,.72); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.play-badge svg { width: 16px; height: 16px; margin-left: 2px; }
.recent .item { margin-bottom: 16px; } .recent .item .t { font-weight: 600; font-size: 14px; margin-top: 6px; }
/* branded empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 24px; color: var(--ink-2); }
.empty-state b { color: var(--ink); font-size: 16px; }
.empty-state .btn { margin-top: 10px; }
.empty-state.small { padding: 18px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-soft); font-size: 13px; margin-bottom: 12px; }
.empty-state.small b { font-size: 14px; }
.empty-wolf { width: 40px; height: 40px; border-radius: 50%; background: #05070d; box-shadow: 0 0 0 1px rgba(37,99,201,.25), 0 0 14px rgba(56,189,248,.18); margin-bottom: 6px; }

/* ── making it ──────────────────────────────────────────── */
.making { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; border: 2px solid var(--blue); border-radius: var(--r-xl);
  box-shadow: 0 0 0 4px rgba(37,99,201,.08), 0 14px 36px rgba(15,23,42,.08); }
.render-preview { aspect-ratio: 16/10; border-radius: var(--r-lg); border: 1px solid #DDE5F0; background: linear-gradient(135deg, #E8EEF7 0%, #F4F7FB 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-align: center; padding: 12px; }
.spinner { width: 34px; height: 34px; border: 3px solid #C8D6EE; border-top-color: var(--blue); border-right-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .thumb.is-loading { animation: none; } }
.eyebrow { font: 700 12px/16px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); }
.making h2 { font: 700 26px/1.15 var(--f-head); letter-spacing: -.02em; margin: 8px 0; }
.bar { height: 10px; background: #E3EAF4; border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.bar i { display: block; height: 100%; background: var(--eye); border-radius: inherit; transition: width .6s ease; }
.steps-line { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.steps-line li { display: inline-flex; align-items: center; gap: 6px; }
.steps-line li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.steps-line li.done { color: var(--ink-2); } .steps-line li.done::before { background: var(--blue); }
.steps-line li.now { color: var(--blue-700); font-weight: 700; } .steps-line li.now::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(56,189,248,.22); }
.result { margin-top: 26px; padding: 20px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: center; border-radius: var(--r-xl); }
.result h3 { font: 700 24px/30px var(--f-head); letter-spacing: -.02em; margin: 0 0 6px; }
.result .row { gap: 10px; }
.queue .q { padding: 13px 15px; margin-bottom: 10px; }
.queue .q b { display: block; font-size: 14px; }
.queue .q span { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.queue .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-running { color: var(--blue-700); } .st-done { color: var(--ok); } .st-error, .st-interrupted { color: var(--bad); }

/* ── library ────────────────────────────────────────────── */
.lib-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.lib-tools input { margin-left: auto; min-width: 260px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); font: inherit; background: var(--surface); }
.lib-tools input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.14); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lib .card { overflow: hidden; display: flex; flex-direction: column; border-radius: 14px; }
.lib .thumb { border-radius: 0; }
.lib .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lib .t { font-weight: 700; font-size: 15px; line-height: 20px; }
.lib .m { font-size: 13px; color: var(--ink-3); }
.lib .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.empty { padding: 40px; text-align: center; color: var(--ink-2); }

/* ── credits ────────────────────────────────────────────── */
.big { font: 600 64px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.05em; margin-right: 8px; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pack { padding: 22px; border-radius: 14px; } .pack .usd { font: 600 30px var(--f-mono); letter-spacing: -.03em; } .pack .cr { font-family: var(--f-mono); font-size: 15px; margin: 4px 0; }
.pack .bonus { color: var(--ok); font-size: 13px; font-weight: 700; min-height: 18px; }
table.buy { width: 100%; border-collapse: collapse; }
table.buy th { text-align: left; padding: 12px 18px 10px; font: 700 11px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
table.buy td { padding: 16px 18px; border-top: 1px solid #E2E8F0; font-size: 15px; vertical-align: top; }
table.buy td.what { font-weight: 600; }
table.buy td.mono { white-space: nowrap; }
table.buy tbody tr:first-child td { border-top: 0; }
/* Phones: each row becomes a small stacked card (no cramped columns, no broken model names). */
@media (max-width: 640px) {
  table.buy thead { display: none; }
  table.buy, table.buy tbody, table.buy tr, table.buy td { display: block; width: 100%; }
  table.buy tr { padding: 14px 16px; border-top: 1px solid #E2E8F0; }
  table.buy tbody tr:first-child { border-top: 0; }
  table.buy td { padding: 2px 0; border: 0; }
  table.buy td.what { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
  table.buy td.price, table.buy td.detail { display: flex; gap: 10px; align-items: baseline; font-size: 14px; white-space: normal; }
  table.buy td.price::before, table.buy td.detail::before { content: attr(data-label); flex: 0 0 64px; font: 700 11px/1.6 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  table.buy td.detail { color: var(--ink-2); overflow-wrap: break-word; }
}
.activity .a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity .a .n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--ok); }

/* ── dialogs (terms, report) ───────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { background: var(--surface); border-radius: var(--r-xl); max-width: 560px; width: 100%; padding: 30px; box-shadow: var(--shadow-elevated); max-height: 92vh; overflow: auto; }
.dialog h2 { font: 700 26px/1.2 var(--f-head); letter-spacing: -.02em; margin: 0 0 8px; }
.gift { display: flex; gap: 14px; align-items: center; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r-lg); padding: 14px 16px; margin: 16px 0; }
.gift b { font: 600 28px var(--f-mono); color: var(--blue-700); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--blue); }
.dialog select, .dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); font: inherit; margin: 6px 0 12px; }
.dialog select:focus, .dialog textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.14); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; } .login-brand { padding: 28px 20px; } .login-brand h1 { margin: 28px 0 12px; } .beta-tag { margin-top: 20px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 30; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(15,23,42,.45); }
  .menu-btn { display: inline-flex; width: 42px; min-height: 42px; padding: 0; }
  .top { padding: 12px 16px; min-height: 64px; } .content { padding: 20px 18px 28px; } .foot { padding: 20px 18px; gap: 8px 16px; }
  .choices { grid-template-columns: 1fr; } .making, .result { grid-template-columns: 1fr; }
  .summary .cost { margin-left: 0; } .summary .btn.hero { width: 100%; }
  .lib-tools input { margin-left: 0; min-width: 0; width: 100%; }
  .top .add { display: none; }
}
/* Phone type scale (the review: several phone screens scaled too large) */
@media (max-width: 640px) {
  :root { --btn-h: 44px; --btn-h-lg: 48px; }
  body { font-size: 14px; }
  .top h1 { font-size: 22px; line-height: 28px; }
  .top .bal { font-size: 14px; }
  .label, .recent h3 { font-size: 11px; line-height: 15px; letter-spacing: .11em; margin-top: 24px; }
  textarea.brief { font-size: 16px; line-height: 24px; min-height: 120px; }       /* 16px: no iOS zoom on focus */
  .chip { min-height: 40px; font-size: 14px; }
  .choice { padding: 18px; } .choice.is-selected { padding: 17px; }
  .c-title { font-size: 19px; line-height: 24px; }
  .c-price b { font-size: 24px; }
  .summary { padding: 16px; gap: 14px; } .summary .cost { font-size: 24px; }
  .making { padding: 18px; gap: 18px; } .making h2 { font-size: 21px; }
  .result { padding: 16px; } .result h3 { font-size: 20px; line-height: 26px; }
  .result .row .btn { flex: 1 1 auto; }
  .lib .acts .btn { flex: 1 1 auto; min-width: 88px; }
  .big { font-size: 52px; }
  .pack { padding: 16px; } .pack .usd { font-size: 26px; }
  .dialog { padding: 22px 18px; } .dialog h2 { font-size: 22px; }
  /* sign-in: a shorter hero so the form appears sooner */
  .login-brand { padding: 20px 18px 22px; }
  .brand-banner { max-width: 300px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .login-brand h1 { font-size: 34px; line-height: 1.05; margin: 20px 0 8px; }
  .login-brand p { font-size: 15px; }
  .steps { display: none; }
  .beta-tag { margin-top: 12px; }
  .login-form { padding: 22px 16px 32px; justify-content: flex-start; }
  .login-form h2 { font-size: 26px; }
}

/* == BOLD PASS (Leo, 2026-09-25: the polish was too subtle to see) ================================
   Five visible changes: coloured Choice bands + a big check, a gradient Create button, a navy page band,
   Netflix-style Library tiles and a bank-card balance. Fonts, logo files, sidebar and behaviour unchanged. */

/* 1. Choice cards: solid header band per tier, big blue-to-cyan check on the selected card */
.choice, .choice.is-selected, .choice[aria-pressed="true"] { padding: 0; gap: 0; overflow: visible; }
.choice.is-selected::before { content: none; }
.c-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.c-band { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 0 20px; border-radius: 13px 13px 0 0; }
.choice.is-selected .c-band { border-radius: 12px 12px 0 0; }
.c-band .c-letter, .choice.is-selected .c-band .c-letter { color: #fff; font-size: 13px; letter-spacing: .14em; }
.band-premium { background: #0F172A; }
.band-value { background: #2563C9; }
.band-muted { background: #E4E9F1; border-bottom: 1px solid var(--line); }
.band-muted .c-letter, .choice .band-muted .c-letter { color: #3E4A5C; }
.band-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 11px/1 var(--f-body); letter-spacing: .03em; white-space: nowrap; }
.band-premium .band-badge { background: rgba(255,255,255,.16); color: #fff; }
.band-value .band-badge { background: rgba(15,23,42,.30); color: #fff; }
.band-muted .band-badge { background: #fff; color: #475467; border: 1px solid var(--line-2); }
.choice.is-selected .c-band { padding-right: 30px; }                   /* leave room for the check */
.choice.is-selected, .choice[aria-pressed="true"] { border: 2px solid var(--blue); box-shadow: 0 0 0 4px rgba(37,99,201,.16), 0 14px 32px rgba(37,99,201,.20); }
.c-check { position: absolute; top: -13px; right: -13px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2563C9 0%, #38BDF8 100%); box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(37,99,201,.45); }
.c-check svg { width: 16px; height: 16px; }
.choice.is-disabled .c-body { background: var(--surface-soft); border-radius: 0 0 13px 13px; }
.choices { gap: 20px; padding-top: 8px; }

/* 2. Create button: 52px, blue-to-cyan with a soft cyan glow, arrow; clearly readable when disabled */
.create-btn { min-height: 52px; padding: 0 28px; gap: 10px; border: 0; border-radius: var(--r-lg); color: #fff; font: 700 19px/1 var(--f-body);   /* 19px bold = WCAG large text */
  background: linear-gradient(135deg, #1E5BB8 0%, #2563C9 45%, #0B8FD0 100%);
  box-shadow: 0 10px 26px rgba(14,165,233,.32), inset 0 0 0 1px rgba(56,189,248,.35); }
.create-btn:hover { background: linear-gradient(135deg, #1A52A8 0%, #1E5BB8 45%, #0A80BB 100%); border: 0; box-shadow: 0 12px 30px rgba(14,165,233,.40), inset 0 0 0 1px rgba(56,189,248,.5); }
.create-btn svg { transition: transform .15s ease; }
@media (prefers-reduced-motion: no-preference) { .create-btn:not([disabled]):hover svg { transform: translateX(3px); } }
.create-btn[disabled], .create-btn[disabled]:hover { background: #DCE3ED; color: #334155; box-shadow: inset 0 0 0 1px #C6D1DF; cursor: not-allowed; }
.create-btn[disabled] svg { opacity: .55; }

/* 3. Page header: slim soft-navy band, white title, faint wolf watermark, readable credits pill */
.top { background: linear-gradient(100deg, #1D2F4C 0%, #243B61 100%); border-bottom: 1px solid rgba(56,189,248,.22); color: #fff; overflow: hidden; min-height: 68px; padding: 14px 40px; }
.top::after { content: ""; position: absolute; right: -24px; top: 50%; width: 170px; height: 170px; transform: translateY(-50%);
  background: url(/customer/brand/fenris-wolf-512.webp) center / contain no-repeat; opacity: .08; pointer-events: none; }
.top > * { position: relative; z-index: 1; }
.top h1 { color: #fff; }
.top .bal { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.24);
  color: #E6EDF7; font: 500 14px var(--f-body); }
.top .bal b { color: #fff; font-size: 16px; font-weight: 600; }
.top .btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.30); }
.top .btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

/* 4. Library: large tiles, title + meta over a dark scrim on the picture, compact actions underneath */
.lib { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tile { overflow: hidden; }
.tile-media { position: relative; }
.tile .thumb { aspect-ratio: 16/9; border-radius: 0; }
.tile-scrim { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 14px; color: #fff; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,22,0) 0%, rgba(8,12,22,.74) 48%, rgba(8,12,22,.92) 100%); }
.tile-scrim .t { font: 700 19px/1.25 var(--f-head); letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.tile-scrim .m { margin-top: 3px; font-size: 13px; color: #D5DEEA; }
.tile-scrim .mono { color: #fff; }
.tile .play-badge { top: 14px; left: 14px; bottom: auto; width: 38px; height: 38px; }
.tile .thumb-msg { margin-bottom: 44px; }                           /* keep status text clear of the scrim */
.tile .body { padding: 12px 14px 14px; gap: 6px; }
.tile .acts { margin-top: 0; }

/* 5. Credits: the balance as a bank card */
.bank-card { position: relative; overflow: hidden; max-width: 480px; aspect-ratio: 1.586; padding: 24px 26px 22px; border-radius: 20px; color: #fff; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 100% 0%, rgba(56,189,248,.18), transparent 55%), linear-gradient(135deg, #111D33 0%, #1D3A6B 55%, #2563C9 100%);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.45), 0 18px 40px rgba(17,29,51,.30), 0 0 28px rgba(56,189,248,.16); margin-bottom: 22px; }
.bank-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.07) 50%, transparent 62%); }
.bank-card > * { position: relative; z-index: 1; }
.bc-top { display: flex; align-items: center; gap: 10px; }
.bc-wolf { width: 44px; height: 44px; border-radius: 50%; background: #05070d; box-shadow: 0 0 0 1px rgba(56,189,248,.5), 0 0 14px rgba(56,189,248,.35); }
.bc-brand { font: 800 18px/1 var(--f-head); letter-spacing: .16em; }
.bc-tag { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: rgba(15,23,42,.30); border: 1px solid rgba(255,255,255,.32); font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.bc-label { margin-top: auto; font: 700 11px/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #D8E3F2; }
.bc-amount { display: flex; align-items: baseline; gap: 10px; }
.bank-card .big { color: #fff; font-size: 60px; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.bc-unit { font-size: 16px; color: #fff; }
.bc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #fff; }
.bc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-rate { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .top { padding: 12px 16px; min-height: 64px; }
  .summary .create-btn { width: 100%; }
}
@media (max-width: 760px) { .lib { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .c-body { padding: 16px 18px 18px; }
  .top::after { width: 120px; height: 120px; right: -20px; }
  .top .bal { padding: 6px 11px; } .top .bal b { font-size: 15px; }
  .create-btn { min-height: 54px; }
  .tile-scrim .t { font-size: 17px; }
  .bank-card { aspect-ratio: auto; min-height: 210px; padding: 20px; }
  .bank-card .big { font-size: 50px; }
}

/* Reference photos (image engines with ref_images, e.g. Grok Imagine 2.0; 2026-10-08) */
.refs { margin-top: 14px; }
.refs .label { margin: 0 0 8px; }
.refs .sub { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.ref-chip { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; cursor: default; }
.ref-chip img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.ref-x { border: 0; background: transparent; color: var(--ink-3); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.ref-x:hover { color: var(--ink); }
.ref-add { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ref-add svg { width: 16px; height: 16px; }
