/* FlashVDO GEN (ai.flashvdo.com): the one stylesheet of the app. Phone first, 360 px up.
   Brand: storm #1B1452, flash #FFD23F, cut #FF4F3D, magnesium #F4F4F8. Fonts self-hosted (SIL OFL, fonts/OFL-*.txt).
   Rules: z-index only through the --z-* tokens below (tests/check_static.py fails on any other value); no inline
   styles in markup (CSP style-src 'self'); hover only inside @media (hover: hover). */

/* ------------------------------------------------------------------ fonts */
/* Devanagari only, with the space glyph (F23 lesson: without U+0020 the spaces between Nepali words fall back). */
@font-face { font-family: "Anek Devanagari"; font-style: normal; font-weight: 100 800; font-stretch: 100%;
  font-display: swap; src: url("fonts/anekdevanagari-vf.woff2") format("woff2");
  unicode-range: U+0020, U+00A0, U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url("fonts/archivo-vf.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%;
  font-display: swap; src: url("fonts/instrumentsans-vf.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
:root {
  /* the one z-index scale */
  --z-page: 0; --z-sticky: 10; --z-sheet: 20; --z-toast: 30; --z-dialog: 40;

  --storm: #1B1452; --storm-2: #261D66; --storm-3: #34297E; --storm-4: #4A3F9A; --storm-deep: #120D38;
  --night: #0A0722;
  --lav-1: #C3BFE0; --lav-2: #DCD9F0; --lav-3: #B6B0E0; --lav-4: #8F86CC; --lav-5: #6A5FB5;
  --flash: #FFD23F; --flash-light: #FFF3B8;
  --cut: #FF4F3D; --cut-deep: #C42A1A; --cut-light: #FFE1DC; --cut-ink: #7A1A10; --danger: #B3261E;
  --mg: #F4F4F8; --white: #FFFFFF; --line: #E6E6EC; --line-2: #CACAD4; --chip-line: #DCD9F0; --lav-bg: #EEEDF8;
  --ink: #1B1452; --ink-2: #3C3C48; --muted: #5A5A68; --placeholder: #6A6680;
  --ok: #1E7A52; --ok-bright: #3DDC97; --mint: #DDF8EC; --pink: #FF7AB6; --sky: #43D9FF;
  --page-out: #E4E3EE;

  --font: "Anek Devanagari", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Anek Devanagari", system-ui, sans-serif;

  --col: 600px;               /* the app's column; phones use all of it */
  --gut: 16px;
  --r-sm: 10px; --r: 14px; --r-lg: 16px; --r-xl: 20px;
  --focus: var(--storm);
  --bars-h: 0px;              /* height of the fixed bottom bars, measured by ui.js */
  --kb: 0px;                  /* on-screen keyboard over the layout viewport (iOS), measured by ui.js */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--mg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--mg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
html.theme-storm, html.theme-storm body { background: var(--storm); }
img, video, svg { display: block; max-width: 100%; }
svg { flex: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-storm { --focus: var(--flash); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.rs, .num-l { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ the app column */
.app { position: relative; max-width: var(--col); margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--mg); display: flex; flex-direction: column; }
html.theme-storm .app { background: var(--storm); }
#view { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: calc(var(--bars-h) + 20px); }
#view:focus { outline: none; }
.screen { flex: 1 0 auto; display: flex; flex-direction: column; }
.pad { padding-left: var(--gut); padding-right: var(--gut); }
.section { padding: 22px var(--gut) 0; display: flex; flex-direction: column; gap: 12px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-h h2 { font-size: 20px; }
.section-h a { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 640px) {
  html, body { background: var(--page-out); }
  .app { box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(27, 20, 82, .08); }
}

/* boot (static in index.html until app.js draws the first screen) */
.boot { flex: 1 0 auto; display: flex; flex-direction: column; }
.boot-head { background: var(--storm); padding: calc(16px + var(--safe-t)) var(--gut) 24px; }
.boot-body { padding: 20px var(--gut); display: flex; flex-direction: column; gap: 12px; }

/* ------------------------------------------------------------------ the Flash mark and the brand line */
.mark { width: 36px; height: 36px; border-radius: 9px; background: var(--flash); display: flex; align-items: center;
  justify-content: center; flex: none; }
.mark svg { width: 30px; height: 30px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; min-height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-word { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -0.2px; white-space: nowrap; }
.brand-word b { color: var(--flash); font-weight: 900; }
.brand-tag { font-size: 12px; color: var(--lav-1); margin-top: 5px; line-height: 1.2; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 16px;
  border-radius: var(--r); border: 0; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 700;
  line-height: 1.25; text-decoration: none; text-align: center; touch-action: manipulation; user-select: none;
  -webkit-user-select: none; transition: transform .08s ease, background-color .15s ease; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; font-weight: 800; }
.btn-sm { min-height: 44px; padding: 4px 12px; font-size: 14px; border-radius: 12px; }
.btn-primary { background: var(--flash); color: var(--storm); font-weight: 800; }
.btn-dark { background: var(--storm); color: var(--white); }
.btn-soft { background: var(--lav-bg); color: var(--ink); font-weight: 600; }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; }
.btn-line-storm { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--lav-5); font-weight: 600; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-text { background: transparent; min-height: 44px; padding: 4px 8px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; cursor: default; }
.btn .rs { font-weight: 800; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { background: #FFDB66; }
  .btn-dark:hover:not(:disabled) { background: var(--storm-3); }
  .btn-line:hover:not(:disabled), .btn-soft:hover:not(:disabled) { background: #E4E2F4; }
  a:hover { color: var(--storm-3); }
}
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: transparent; color: inherit; border-radius: 12px; flex: none; padding: 0; text-decoration: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pills in bars: the visual is small, the hit area is 44 px */
.pill-hit { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; background: transparent; padding: 0; color: inherit; flex: none; }
.pill { height: 36px; padding: 0 12px; border-radius: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; white-space: nowrap; }
.pill-wallet { background: var(--flash); color: var(--storm); font-family: var(--font-display); font-weight: 800; }
.pill-wallet.dark { background: var(--storm); color: var(--flash); height: 34px; font-size: 13px; padding: 0 11px; }
.pill-signin { background: var(--flash); color: var(--storm); font-weight: 700; }
.pill-signin.dark { background: var(--storm); color: var(--white); height: 34px; font-size: 13px; }
.pill-lang { box-shadow: inset 0 0 0 1px var(--storm-4); color: var(--white); padding: 0 11px; font-size: 13px; }
.pill-lang .on { font-weight: 800; color: var(--white); }
.pill-lang .off { color: var(--lav-3); }
.pill-lang .sep { color: var(--lav-4); }

/* ------------------------------------------------------------------ top bar (inner screens) */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--mg);
  padding: calc(8px + var(--safe-t)) 8px 6px 4px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center; gap: 4px; min-height: 60px; }
.topbar h1, .topbar .title { font-size: 17px; font-weight: 700; text-align: center; line-height: 1.3; padding: 0 4px; }
.topbar .end { min-width: 44px; display: flex; justify-content: flex-end; }
.topbar.storm { background: var(--storm); color: var(--white); }

/* ------------------------------------------------------------------ home header */
.hero { background: var(--storm); color: var(--white); padding: calc(12px + var(--safe-t)) var(--gut) 20px;
  display: flex; flex-direction: column; gap: 16px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hero-top .actions { display: flex; align-items: center; gap: 4px; flex: none; }
.hero h1 { font-size: 26px; line-height: 1.3; font-weight: 800; }
.hero h1 .hl { color: var(--flash); display: block; }
.hero label { font-size: 13px; color: var(--lav-1); }
.prompt { width: 100%; border-radius: var(--r); border: 0; padding: 14px; font-size: 16px; line-height: 1.45;
  color: var(--ink); background: var(--white); resize: none; min-height: 104px; display: block; }
.prompt::placeholder { color: var(--placeholder); }
.hero .fine { font-size: 12px; color: var(--lav-3); text-align: center; }
.hero .err-line { color: var(--flash); font-size: 14px; font-weight: 600; }
.inapp-strip { background: var(--storm-3); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--lav-2); }
.inapp-strip a { color: var(--flash); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; flex: none; }

/* ------------------------------------------------------------------ segmented choices (kind, shape, tier) */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg > button { min-height: 44px; border-radius: 12px; border: 0; background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 600; padding: 6px 4px; line-height: 1.25; }
.seg > button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--storm); font-weight: 800; }
.seg.on-storm > button { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--storm-4); font-size: 15px; }
.seg.on-storm > button[aria-pressed="true"] { background: var(--storm-3); color: var(--flash); box-shadow: inset 0 0 0 2px var(--flash); }
.seg > button:disabled { color: var(--muted); background: var(--line); }
.seg.on-storm > button:disabled { color: var(--lav-4); background: transparent; }
.tiers > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 9px 4px; }
.tiers > button[aria-pressed="true"] { background: var(--flash-light); }
.tiers .t-name { font-size: 14px; font-weight: 700; }
.tiers [aria-pressed="true"] .t-name { font-weight: 800; }
.tiers .t-sub { font-size: 12px; color: var(--muted); }
.tiers [aria-pressed="true"] .t-sub { color: var(--storm-4); }
.tiers .rs { font-size: 15px; }
.tiers .sk-price { width: 52px; height: 18px; margin-top: 2px; }

/* ------------------------------------------------------------------ quick tools */
.tools { padding: 18px var(--gut) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tool { background: var(--white); border-radius: var(--r); padding: 12px 4px 10px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  text-align: center; line-height: 1.25; min-height: 96px; border: 0; }
.tool .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.tool .ic svg { width: 22px; height: 22px; }
.tool .hd { font-family: var(--font-display); font-weight: 900; font-size: 13px; }
.tool .from { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--storm-4); }
.tool[aria-disabled="true"] { color: var(--muted); }
.ic-yellow { background: var(--flash-light); } .ic-lav { background: var(--lav-bg); } .ic-pink { background: var(--cut-light); }
.ic-mint { background: var(--mint); }

/* ------------------------------------------------------------------ catalog cards */
.hscroll { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 var(--gut) 4px; scroll-padding-left: var(--gut); scrollbar-width: none; margin: 0 calc(var(--gut) * -1); }
.hscroll::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .hscroll { scrollbar-width: thin; padding-bottom: 10px; } .hscroll::-webkit-scrollbar { display: block; height: 6px; } .hscroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; } }
.tcard { flex: 0 0 156px; scroll-snap-align: start; text-decoration: none; color: var(--ink); display: flex;
  flex-direction: column; gap: 6px; }
.cover { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--storm-2); aspect-ratio: 9 / 16;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; color: var(--white); isolation: isolate; }
.cover.s-1-1 { aspect-ratio: 1 / 1; } .cover.s-16-9 { aspect-ratio: 16 / 9; }
.cover > img, .cover > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .c-title { position: relative; font-size: 21px; font-weight: 800; line-height: 1.25; }
.cover .c-sub { position: relative; font-size: 12px; color: var(--lav-2); margin-top: 2px; }
.cover .badge { position: absolute; top: 10px; left: 10px; }
.cover .play { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: var(--storm); }
.bg-0 { background: var(--storm-2); } .bg-1 { background: var(--cut-deep); } .bg-2 { background: var(--flash); color: var(--storm); }
.bg-3 { background: var(--storm-4); } .bg-4 { background: var(--storm-deep); } .bg-5 { background: var(--storm-3); }
.bg-2 .c-sub { color: var(--storm-3); }
.bg-1 .c-sub { color: var(--flash-light); }
.tcard .t-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.tcard .t-from, .from-price { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--storm-4); }
.badge { display: inline-flex; align-items: center; background: var(--cut-deep); color: var(--white); font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px; line-height: 1.3; white-space: nowrap; }
.badge.ok { background: var(--ok); } .badge.wait { background: var(--storm-4); } .badge.gray { background: var(--muted); }
.badge.flash { background: var(--flash); color: var(--storm); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mcard { background: var(--white); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.mcard .m-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.mcard .m-blurb { font-size: 12px; color: var(--muted); line-height: 1.35; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 6px 14px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--chip-line);
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  line-height: 1.25; border: 0; }
.ttile { position: relative; border-radius: var(--r); background: var(--storm-3); color: var(--white); text-decoration: none;
  padding: 10px; display: flex; align-items: flex-end; font-size: 13px; font-weight: 700; line-height: 1.25; aspect-ratio: 9 / 13;
  overflow: hidden; isolation: isolate; }
.ttile > img, .ttile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-page); }
.ttile .tt-name { position: relative; background: rgba(18, 13, 56, .78); border-radius: 8px; padding: 3px 7px; }
.ttile.bg-4 { background: var(--storm-deep); } .ttile.bg-3 { background: var(--storm-4); }
.cover-shade::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, rgba(18,13,56,0), rgba(18,13,56,.85)); }
.cover-shade > .c-title, .cover-shade > .c-sub { color: var(--white); }

/* ------------------------------------------------------------------ bottom nav and the fixed bars */
#bars { position: fixed; left: 0; right: 0; bottom: var(--kb); margin: 0 auto; max-width: var(--col); z-index: var(--z-sticky);
  display: flex; flex-direction: column; pointer-events: none; }
#bars > * { pointer-events: auto; }
#bars > :last-child { padding-bottom: calc(var(--pb, 0px) + var(--safe-b)); }
html.kb-open #bars > :last-child { padding-bottom: var(--pb, 0px); }
html.kb-open #bars .nav { display: none; }
.nav { background: var(--white); box-shadow: 0 -1px 0 var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav a { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; padding: 6px 2px; text-align: center; }
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.actionbar { background: var(--white); box-shadow: 0 -1px 0 var(--line); padding: 12px var(--gut) 0; --pb: 14px;
  display: flex; flex-direction: column; gap: 8px; }
.actionbar .note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.35; }
.actionbar .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.actionbar .total .rs { font-size: 22px; font-weight: 900; }
.short { background: var(--cut-light); color: var(--cut-ink); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px;
  font-weight: 600; line-height: 1.35; }
.notice { background: var(--flash-light); color: var(--ink); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13px;
  font-weight: 600; line-height: 1.4; }
.notice.center { text-align: center; }
.notice.info { background: var(--lav-bg); }

/* ------------------------------------------------------------------ forms */
.form { padding: 18px var(--gut) 0; display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .label { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 10px; display: block; line-height: 1.3; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field .label { margin-bottom: 0; }
.input, .textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white);
  padding: 10px 14px; font-size: 16px; color: var(--ink); line-height: 1.4; }
.textarea { resize: vertical; min-height: 96px; display: block; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .textarea:focus { border-color: var(--storm); box-shadow: 0 0 0 3px rgba(74, 63, 154, .25); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.4; }
.err { font-size: 13px; color: var(--danger); font-weight: 600; line-height: 1.35; display: flex; gap: 6px; align-items: flex-start; }
.err svg { width: 16px; height: 16px; margin-top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--storm); flex: none; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }

/* people chips in pickers */
.people-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.pp { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; border: 0;
  padding: 0; color: var(--ink); text-align: center; min-height: 44px; text-decoration: none; }
.pp .pp-name { font-size: 12px; line-height: 1.25; max-width: 72px; overflow-wrap: anywhere; }
.pp[aria-pressed="true"] .pp-name { font-weight: 800; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--flash); display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 800; color: var(--storm); overflow: hidden; flex: none; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.md { width: 48px; height: 48px; font-size: 18px; }
.pp[aria-pressed="true"] .avatar { box-shadow: inset 0 0 0 3px var(--storm), 0 0 0 2px var(--flash); }
.avatar.add { background: transparent; box-shadow: inset 0 0 0 2px var(--lav-4); color: var(--storm-4); }
.avatar.add.dashed { border: 2px dashed var(--lav-4); box-shadow: none; }
.av-0 { background: var(--flash); } .av-1 { background: var(--pink); } .av-2 { background: var(--sky); }
.av-3 { background: var(--ok-bright); } .av-4 { background: var(--flash-light); }

/* a photo or clip the user gave */
.upload { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: var(--r); padding: 10px;
  box-shadow: inset 0 0 0 1px var(--line-2); min-height: 72px; }
.upload .thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--lav-bg); overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--storm-4); }
.upload .thumb img, .upload .thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload .u-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.upload .u-name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.filepick { position: relative; }
.filepick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.progress { height: 8px; border-radius: 4px; background: var(--lav-bg); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--storm-4); border-radius: 4px; transition: width .2s linear; }
.on-storm .progress, .progress.on-storm { background: var(--storm-3); }
.on-storm .progress > i, .progress.on-storm > i { background: var(--flash); }

/* ------------------------------------------------------------------ template / story */
.tpl-head { padding: 0 var(--gut); display: flex; gap: 12px; align-items: flex-start; }
.tpl-head .cover { flex: 0 0 132px; padding: 10px; }
.tpl-head .cover.s-1-1, .tpl-head .cover.s-16-9 { flex-basis: 150px; }
.tpl-head .cover .c-title { font-size: 16px; }
.tpl-head .about { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; min-width: 0; }
.tpl-head .about p { font-size: 15px; line-height: 1.5; }
.tpl-head .about .meta { font-size: 13px; color: var(--muted); }
.idea-card { background: var(--white); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.idea-card .k { font-size: 12px; color: var(--muted); }
.idea-card .v { font-size: 15px; line-height: 1.45; }
.cast { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cast .who { min-height: 32px; padding: 0 12px 0 4px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--chip-line);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.shots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shot { background: var(--white); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.shot .s-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shot .s-n { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--storm-4); }
.shot .s-scene { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.shot .s-line { font-size: 15px; line-height: 1.45; padding-left: 10px; border-left: 3px solid var(--flash); }
.shot .s-line b { font-weight: 800; }
.shot .s-edit { display: flex; flex-direction: column; gap: 8px; }
.shot .s-edit .row { justify-content: flex-end; }
.shot-more { width: 100%; min-height: 44px; border-radius: 12px; border: 1px dashed var(--lav-4); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--storm-4); }

/* ------------------------------------------------------------------ making */
.making { flex: 1 0 auto; display: flex; flex-direction: column; padding: 0 var(--gut) calc(16px + var(--safe-b)); color: var(--white); }
.making h1 { margin: 10px 0 6px; font-size: 28px; line-height: 1.2; }
.making .lead { font-size: 15px; color: var(--lav-2); }
.wait-card { margin-top: 18px; background: var(--storm-3); border-radius: var(--r-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.wait-card svg { margin-top: 2px; }
.wait-card .w-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wait-card .w-big { font-size: 16px; font-weight: 700; line-height: 1.35; }
.wait-card .w-small { font-size: 13px; color: var(--lav-2); line-height: 1.45; }
.making .progress { margin-top: 16px; }
.pieces { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.piece { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--storm-2); }
.piece .p-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.piece.done .p-dot { background: var(--ok-bright); color: var(--night); }
.piece.now { background: var(--storm-3); box-shadow: inset 0 0 0 1px var(--flash); }
.piece.now .p-dot { border: 3px solid var(--flash); border-right-color: transparent; animation: spin 1s linear infinite; }
.piece.wait { color: var(--lav-3); }
.piece.wait .p-dot { box-shadow: inset 0 0 0 2px var(--lav-5); }
.piece .p-name { flex: 1 1 auto; font-size: 15px; min-width: 0; line-height: 1.3; }
.piece.now .p-name { font-weight: 700; }
.piece .p-state { font-size: 13px; flex: none; }
.piece.done .p-state { color: var(--ok-bright); }
.piece.now .p-state { color: var(--flash); }
.money-line { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--lav-2); }
.money-line b { color: var(--white); }
.making-foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.push-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 14px; display: flex; gap: 12px; align-items: center; --focus: var(--storm); }
.push-card .pc-text { font-size: 14px; line-height: 1.4; flex: 1 1 auto; min-width: 0; }
.push-card.col { flex-direction: column; align-items: stretch; }
.fail-card { margin-top: 18px; background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 16px; display: flex;
  flex-direction: column; gap: 10px; --focus: var(--storm); }
.fail-card .refund { display: flex; gap: 10px; align-items: center; background: var(--mint); border-radius: var(--r-sm); padding: 10px 12px;
  font-size: 14px; font-weight: 600; color: var(--ok); }

/* ------------------------------------------------------------------ result */
.player-wrap { display: flex; justify-content: center; padding: 0 var(--gut); }
.player { position: relative; width: min(100%, 300px); border-radius: var(--r-lg); background: var(--storm-deep); overflow: hidden; aspect-ratio: 9 / 16; }
.player.s-1-1 { width: min(100%, 420px); aspect-ratio: 1 / 1; }
.player.s-16-9 { width: 100%; aspect-ratio: 16 / 9; }
.player video, .player img { width: 100%; height: 100%; object-fit: contain; background: var(--storm-deep); }
.player .p-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between;
  color: var(--lav-2); font-size: 12px; pointer-events: none; }
.player.gone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; color: var(--lav-2);
  text-align: center; font-size: 15px; }
.pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 var(--gut); }
.pic { display: flex; flex-direction: column; gap: 8px; }
.pic .frame { border-radius: var(--r); overflow: hidden; background: var(--storm-deep); aspect-ratio: 9 / 16; }
.pic .frame.s-1-1 { aspect-ratio: 1 / 1; } .pic .frame.s-16-9 { aspect-ratio: 16 / 9; }
.pic .frame.checker { background-color: #fff; background-image: linear-gradient(45deg, #E6E6EC 25%, transparent 25%), linear-gradient(-45deg, #E6E6EC 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #E6E6EC 75%), linear-gradient(-45deg, transparent 75%, #E6E6EC 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.pic img { width: 100%; height: 100%; object-fit: contain; }
.res-actions { padding: 12px var(--gut) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.res-actions .btn { min-height: 64px; flex-direction: column; gap: 4px; font-size: 14px; padding: 6px 4px; }
.res-actions .btn svg { width: 20px; height: 20px; }
.link-line { margin: 6px var(--gut) 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; overflow-wrap: anywhere; }
.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-btn { min-height: 52px; border-radius: 12px; border: 0; background: var(--white); color: var(--ink); padding: 8px 14px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%; }
.more-btn .mb-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.more-btn .rs { font-size: 14px; }
.more-btn .free { font-size: 14px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.report-link { align-self: center; }

/* ------------------------------------------------------------------ my makes */
.makes-grid { padding: 4px var(--gut) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .makes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk .mk-thumb { position: relative; border-radius: var(--r); overflow: hidden; background: var(--storm-2); aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center; color: var(--lav-3); }
.mk .mk-thumb img, .mk .mk-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk .mk-thumb .badge { position: absolute; left: 8px; top: 8px; }
.mk .mk-thumb svg { width: 32px; height: 32px; }
.mk .mk-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.mk .mk-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ------------------------------------------------------------------ wallet */
.wallet-head { background: var(--storm); color: var(--white); padding: 20px var(--gut); display: flex; flex-direction: column; gap: 10px; }
.wallet-head .k { font-size: 15px; color: var(--lav-1); }
.wallet-head .big { font-family: var(--font-display); font-size: 44px; font-weight: 900; line-height: 1.05; }
.wallet-head .lots { display: flex; gap: 8px; flex-wrap: wrap; }
.lot { background: var(--storm-3); border-radius: var(--r-sm); padding: 6px 10px; font-size: 13px; line-height: 1.35; }
.lot.bonus { background: var(--flash); color: var(--storm); }
.lot b { font-family: var(--font-display); }
.wallet-head .fine { font-size: 12px; color: var(--lav-3); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 6px; }
.pack { position: relative; min-height: 84px; border-radius: var(--r); border: 0; background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; }
.pack[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--storm); background: var(--flash-light); }
.pack .p-rs { font-family: var(--font-display); font-size: 22px; font-weight: 900; }
.pack .p-gets { font-size: 13px; color: var(--muted); }
.pack[aria-checked="true"] .p-gets { color: var(--ink); font-weight: 700; }
.pack .badge { position: absolute; top: -9px; right: 10px; }
.bill { background: var(--white); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.bill .b-row { display: flex; justify-content: space-between; gap: 12px; }
.bill .b-row.sub { color: var(--muted); }
.bill .b-row.total { font-size: 16px; font-weight: 800; }
.bill .rule { height: 1px; background: var(--line); }
.bill .rs { font-weight: 700; }
.ref-card { margin: 18px var(--gut) 0; background: var(--storm); color: var(--white); border-radius: var(--r-lg); padding: 14px 16px; display: flex;
  align-items: center; gap: 12px; --focus: var(--flash); }
.ref-card .r-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ref-card .r-big { font-size: 16px; font-weight: 800; }
.ref-card .r-small { font-size: 13px; color: var(--lav-2); line-height: 1.4; }
.ledger { display: flex; flex-direction: column; gap: 8px; }
.lrow { background: var(--white); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
.lrow .l-main { display: flex; flex-direction: column; min-width: 0; }
.lrow .l-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.lrow .l-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.lrow .l-sub a { font-weight: 600; display: inline-flex; min-height: 32px; align-items: center; }
.lrow .rs { font-size: 14px; }
.lrow .plus { color: var(--ok); }
.need-card { margin: 14px var(--gut) 0; }

/* ------------------------------------------------------------------ pay */
.pay-card { margin: 4px var(--gut) 0; background: var(--white); border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center; }
.pay-card .amount { font-family: var(--font-display); font-size: 34px; font-weight: 900; line-height: 1.05; }
.pay-card .split { font-size: 13px; color: var(--muted); line-height: 1.4; }
.qr { width: 232px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--storm); padding: 8px; background: var(--white); }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr.dim img { opacity: .15; }
.pay-status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 24px; }
.pay-status .spin { color: var(--storm-4); }
.pay-steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.paid-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bright); color: var(--night); display: flex; align-items: center; justify-content: center; }
.paid-mark svg { width: 36px; height: 36px; }
.seller { font-size: 12px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ people */
.page-h { padding: calc(16px + var(--safe-t)) var(--gut) 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.page-h h1 { font-size: 24px; }
.page-lead { padding: 6px var(--gut) 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.people { padding: 14px var(--gut) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.person { background: var(--white); border-radius: var(--r); padding: 12px; display: flex; gap: 10px; align-items: center; border: 0;
  text-align: left; color: var(--ink); min-height: 72px; width: 100%; }
.person .p-main { display: flex; flex-direction: column; min-width: 0; }
.person .p-name { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.person .p-sub { font-size: 12px; color: var(--muted); }
.add-person { border-radius: var(--r); border: 2px dashed var(--lav-4); background: transparent; padding: 12px; color: var(--storm-4);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 72px; }
.add-person:disabled { color: var(--muted); border-color: var(--line-2); }
.biz { margin: 22px var(--gut) 0; background: var(--white); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.biz .b-body { display: flex; gap: 12px; align-items: center; }
.biz .logo { width: 56px; height: 56px; border-radius: 12px; background: var(--cut-deep); color: var(--white); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800; overflow: hidden; flex: none; }
.biz .logo img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.biz .b-lines { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.biz .b-name { font-size: 16px; font-weight: 700; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--lav-bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .icon-btn { position: absolute; top: 2px; right: 2px; background: rgba(27, 20, 82, .82); color: var(--white); width: 44px; height: 44px; border-radius: 50%; }
.photo.adding { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 8px; }
.photo.adding .progress { width: 100%; }
.photo-add { aspect-ratio: 1 / 1; border-radius: 12px; border: 2px dashed var(--lav-4); color: var(--storm-4); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; padding: 4px; }

/* ------------------------------------------------------------------ account / lists of links */
.list { background: var(--white); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.li { min-height: 52px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none;
  color: var(--ink); font-size: 15px; background: var(--white); border: 0; width: 100%; text-align: left; line-height: 1.35; }
.li .li-sub { font-size: 12px; color: var(--muted); }
.li svg { color: var(--muted); }
.li.danger { color: var(--danger); font-weight: 600; }
.links-row { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; }
.links-row a, .links-row button { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.links-row .danger { color: var(--danger); margin-left: auto; }
.me-card { display: flex; gap: 12px; align-items: center; }
.me-card .me-name { font-size: 17px; font-weight: 800; }
.me-card .me-mail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.danger-zone { background: var(--white); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 0 1px var(--cut-light); }
.danger-zone h2 { font-size: 17px; color: var(--danger); }

/* ------------------------------------------------------------------ sign-in and the in-app escape */
.gate { flex: 1 0 auto; display: flex; flex-direction: column; background: var(--storm); color: var(--white); --focus: var(--flash); }
.gate-top { padding: calc(12px + var(--safe-t)) var(--gut) 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gate-body { padding: 28px var(--gut) 24px; display: flex; flex-direction: column; gap: 16px; flex: 1 0 auto; }
.gate h1 { font-size: 28px; line-height: 1.25; }
.gate h1 .hl { color: var(--flash); display: block; }
.gate .lead { font-size: 15px; color: var(--lav-2); line-height: 1.5; }
.gate-card { background: var(--white); color: var(--ink); border-radius: var(--r-xl); padding: 18px 16px; display: flex; flex-direction: column;
  gap: 12px; --focus: var(--storm); }
.gate-card .fine { font-size: 12px; color: var(--muted); line-height: 1.45; }
.gate-card .fine a { font-weight: 600; }
.gsi-slot { min-height: 44px; display: flex; justify-content: center; }
.gsi-slot.off { opacity: .5; }
.gsi-wait { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.steps b { font-weight: 800; }
.url-box { display: flex; gap: 8px; align-items: stretch; }
.url-box .input { font-size: 14px; min-width: 0; }

/* ------------------------------------------------------------------ states: skeleton, empty, error, offline */
.sk { background: linear-gradient(90deg, #E6E6EC 0%, #F0F0F5 40%, #E6E6EC 80%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
  border-radius: 12px; }
.on-storm .sk, .sk.dark { background: linear-gradient(90deg, var(--storm-2) 0%, var(--storm-3) 40%, var(--storm-2) 80%); background-size: 200% 100%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-line { height: 14px; } .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
.sk-block { height: 72px; } .sk-tall { aspect-ratio: 9 / 16; }
.state { margin: 32px var(--gut) 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 8px 0; }
.state .s-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--lav-bg); color: var(--storm-4); display: flex; align-items: center; justify-content: center; }
.state .s-ic svg { width: 30px; height: 30px; }
.state h2 { font-size: 19px; }
.state p { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 34ch; }
.state.on-storm p { color: var(--lav-2); }
.state .btn { min-width: 180px; }

/* ------------------------------------------------------------------ sheets, dialogs, toasts (the z scale) */
.backdrop { position: fixed; inset: 0; background: rgba(10, 7, 34, .55); }
.sheet-layer { position: fixed; inset: 0; z-index: var(--z-sheet); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { position: relative; width: 100%; max-width: var(--col); margin: 0 auto; background: var(--white); color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: calc(100% - 24px - var(--safe-t)); display: flex; flex-direction: column;
  margin-bottom: var(--kb); animation: sheet-in .22s ease-out; --focus: var(--storm); }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 10px 8px 4px var(--gut); }
.sheet-head h2 { font-size: 19px; line-height: 1.3; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gut) calc(18px + var(--safe-b)); display: flex;
  flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
html.kb-open .sheet-body { padding-bottom: 14px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.dialog-layer { position: fixed; inset: 0; z-index: var(--z-dialog); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { position: relative; width: 100%; max-width: 400px; background: var(--white); color: var(--ink); border-radius: var(--r-xl);
  padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100% - 32px); overflow-y: auto;
  animation: pop-in .16s ease-out; --focus: var(--storm); }
.dialog h2 { font-size: 19px; }
.dialog p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dialog .d-actions { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 4px; }
@keyframes pop-in { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--bars-h) + var(--kb) + 12px); z-index: var(--z-toast); max-width: var(--col);
  margin: 0 auto; padding: 0 var(--gut); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--storm); color: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(10, 7, 34, .25); display: flex; gap: 10px; align-items: center; pointer-events: auto; animation: pop-in .16s ease-out;
  --focus: var(--flash); }
.toast .t-text { flex: 1 1 auto; min-width: 0; }
.toast.bad { background: var(--danger); }
.toast button { background: transparent; border: 0; color: var(--flash); font-weight: 800; min-height: 44px; padding: 0 6px; text-decoration: underline; }
.offline-bar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--ink-2); color: var(--white); font-size: 13px; font-weight: 600;
  padding: calc(8px + var(--safe-t)) var(--gut) 8px; text-align: center; }

/* help chat */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.msg { max-width: 86%; border-radius: 14px; padding: 9px 12px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--storm); color: var(--white); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--lav-bg); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.typing { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form .textarea { min-height: 48px; resize: none; }
.wa { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; min-height: 44px; }

/* legal pages */
.legal { padding: 4px var(--gut) 0; font-size: 15px; line-height: 1.6; max-width: 70ch; }
.legal h2 { font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 22px; }
.legal .updated { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important;
    scroll-behavior: auto !important; }
  .sk { animation: none; }
}

/* ------------------------------------------------------------------ small additions */
.notice.pad-x { margin: 12px var(--gut) 0; }
.notice.urgent { background: var(--cut-light); color: var(--cut-ink); }
.seg.wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.li[role="radio"] .tick { width: 20px; height: 20px; flex: none; color: var(--storm); }
.li[aria-checked="true"] { background: var(--flash-light); }
.li b { font-weight: 700; }
.link-44 { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; font-weight: 600; }
.inapp-strip a { min-width: 44px; justify-content: center; }
.pay-card h1 { font-size: 22px; }
.danger-text { color: var(--danger); }
.center-self { align-self: center; }
.lrow .l-sub a { min-height: 44px; }
.links-row a, .links-row button { min-width: 44px; justify-content: center; }
@media (max-width: 380px) {
  .hero .mark { width: 32px; height: 32px; border-radius: 8px; }
  .hero .mark svg { width: 26px; height: 26px; }
  .hero .brand { gap: 8px; }
  .hero .brand-word { font-size: 17px; }
  .hero .pill-lang { padding: 0 9px; }
  .hero .pill { padding: 0 10px; }
  .hero-top .actions { gap: 2px; }
}
.section > h2, .section-h > h2 { font-size: 19px; }
.push-card .btn, .ref-card .btn, .url-box .btn, .row .btn { white-space: nowrap; flex: none; }
.photo-add { background: transparent; }
.mk .mk-thumb.checker { background-color: #fff; background-image: linear-gradient(45deg, #E6E6EC 25%, transparent 25%), linear-gradient(-45deg, #E6E6EC 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #E6E6EC 75%), linear-gradient(-45deg, transparent 75%, #E6E6EC 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.mk .mk-thumb.checker img { object-fit: contain; }
.priced { display: inline; line-height: 1.3; }
.priced .rs { font-weight: 800; }
.pics.one { grid-template-columns: minmax(0, 300px); justify-content: center; }
.pics.one .frame.s-1-1, .pics.one .frame.s-16-9 { width: 100%; }
.list > .li + .li, .list > * + .li { border-top: 1px solid var(--line); }
@media (min-width: 520px) { .ttile { aspect-ratio: 4 / 5; } .tcard { flex-basis: 168px; } }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, #view:focus { outline: none; }
.biz h2 { font-size: 18px; }
.person .p-name { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 640px) { html.theme-storm, html.theme-storm body { background: var(--storm-deep); } html.theme-storm .app { box-shadow: none; } }
.input:focus-visible, .textarea:focus-visible { outline: none; }
.prompt:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--flash); }
.cover .cover-tag { position: relative; align-self: flex-start; background: rgba(18, 13, 56, .82); color: var(--white); font-size: 11px;
  font-weight: 600; padding: 3px 8px; border-radius: 8px; line-height: 1.3; }
@media (min-width: 520px) { .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
