/* Dashboard components. Every value comes from tokens.css; this file is layout only.
 * Look: the public landing (night base, glass cards, acid-yellow hero, 3D buttons).
 * Components: templates/components/*.html. */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/InterTight-500.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/InterTight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/InterTight-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/InterTight-800.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/InterTight-700-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/InterTight-800-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/InterTight-900-Italic.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background-color: var(--bg);
  background-image: var(--glow);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  min-height: 100vh;
}
[data-theme] { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
h1, h2, h3, .empty-t, .banner-t { text-wrap: balance; }
/* Display type: the landing's italic 900 for headings, nav, buttons and labels that name things.
 * Numbers, tables and body stay upright (tabular figures) so money reads at a glance. */
h1, h2, h3, .sec-h h2, .sheet-h h2, .empty-t, .banner-t, .brand-text b {
  font-family: var(--font-display); font-style: italic; font-weight: var(--fw-black); letter-spacing: var(--ls-title);
}
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
fieldset { border: 0; min-width: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--space-7); top: -60px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill); font-weight: var(--fw-semibold);
}
.skip:focus { top: var(--space-5); }

/* ---------- header ---------- */
.top {
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--space-9) var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-11);
}
.brand { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.mark {
  width: var(--avatar); height: var(--avatar); border-radius: var(--radius-mark); flex: none;
  background: var(--card); color: var(--brand-ink); display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 18px -4px var(--btn-glow);
}
.brand-text { line-height: var(--lh-snug); min-width: 0; }
.brand-text b { display: block; font-size: var(--fs-lead); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-size: var(--fs-meta); color: var(--ink-2); }
.mode {
  display: inline-flex; align-items: center; gap: var(--space-2); flex: none;
  font-size: var(--fs-tiny); font-weight: var(--fw-heavy); font-style: italic; letter-spacing: var(--ls-caps);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-3); border-radius: var(--radius-pill);
}
.mode i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mode-live { color: var(--live-ink); background: var(--live-soft); }
.mode-live i { background: var(--live); }
.mode-test { color: var(--on-test); background: var(--test-bg); }

.nav { display: flex; gap: var(--space-3); }
.nav a {
  padding: var(--space-3) var(--space-9); border-radius: var(--radius-pill); line-height: 22px;
  color: var(--ink); font-style: italic; font-weight: var(--fw-heavy); font-size: var(--fs-meta);
  text-transform: uppercase; letter-spacing: var(--ls-btn);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition-property: color, background-color, box-shadow, transform; transition-duration: var(--dur); transition-timing-function: var(--ease-out);
}
.nav a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--raised); }
.nav a[aria-current="page"] {
  background: var(--nav-on-bg); color: var(--nav-on-ink); box-shadow: 0 3px 0 var(--hero-side), 0 10px 20px -8px var(--hero-side);
  transform: translateY(-1px);
}

/* avatar menu */
.menu { justify-self: end; position: relative; }
.me {
  display: flex; align-items: center; gap: var(--space-4); list-style: none; cursor: pointer;
  font-weight: var(--fw-semibold); font-size: var(--fs-nav); border-radius: var(--radius-pill);
  padding: var(--space-0); padding-left: var(--space-4);
}
.me::-webkit-details-marker { display: none; }
.me:hover .avatar { box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 5px var(--brand); }
.avatar {
  width: var(--avatar); height: var(--avatar); border-radius: 50%;
  background: var(--avatar-bg); color: var(--avatar-ink); box-shadow: inset 0 0 0 1.5px var(--brand);
  display: grid; place-items: center; font-weight: var(--fw-heavy); font-size: var(--fs-meta); letter-spacing: 0.02em;
  transition: box-shadow var(--dur) var(--ease-out);
}
.menu-pop {
  position: absolute; right: 0; top: calc(100% + var(--space-3)); z-index: 20;
  width: 264px; padding: var(--space-3);
  background: var(--sheen), linear-gradient(var(--card), var(--card)); border-radius: var(--radius-card-phone); box-shadow: var(--pop-shadow);
  display: grid; gap: var(--space-2);
}
.menu[open] .menu-pop { animation: pop-in var(--dur) var(--ease-out); }
.menu-who { padding: var(--space-3) var(--space-4) var(--space-1); font-size: var(--fs-meta); color: var(--ink-2); }
.menu-who b { color: var(--ink); font-weight: var(--fw-semibold); }
.menu-item {
  width: 100%; min-height: var(--tap); display: flex; align-items: center; gap: var(--space-4);
  padding: 0 var(--space-4); border-radius: var(--radius-input); font-weight: var(--fw-semibold); font-size: var(--fs-nav); color: var(--ink-2);
  transition-property: background-color, color; transition-duration: var(--dur);
}
.menu-item:hover { background: var(--raised); color: var(--down); }

/* segmented control (theme) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-0); padding: var(--space-1); background: var(--raised); border-radius: var(--radius-input); }
.seg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  padding: var(--space-3) var(--space-1); border-radius: var(--radius-xs);
  font-size: var(--fs-tiny); font-weight: var(--fw-semibold); color: var(--ink-2);
  transition-property: background-color, color, box-shadow; transition-duration: var(--dur);
}
.seg input:checked + span { background: var(--nav-on-bg); color: var(--nav-on-ink); box-shadow: 0 2px 0 var(--hero-side); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }

/* ---------- price line ---------- */
.price-strip:empty, .crit-slot:empty { display: none; }
.ticker { max-width: var(--max-width); margin: calc(-1 * var(--space-3)) auto 0; padding: 0 var(--gutter) var(--space-5); }
.ticker-in {
  display: flex; align-items: center; gap: var(--space-3); min-height: 24px;
  font-size: var(--fs-meta); color: var(--ink-2); white-space: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.ticker-in::-webkit-scrollbar { display: none; }
.ticker-k { color: var(--ink-3); font-weight: var(--fw-medium); }
.quote { display: inline-flex; align-items: baseline; gap: var(--space-2); }
.quote b { color: var(--ink); font-weight: var(--fw-semibold); }
.ticker-sep { color: var(--ink-4); }
.chg { display: inline-flex; align-items: center; gap: var(--space-0); font-size: var(--fs-tiny); font-weight: var(--fw-semibold); }
.chg .ic { align-self: center; }
.chg-up { color: var(--up); }
.chg-down { color: var(--down); }
.chg-flat { color: var(--ink-3); }
.ticker-stale .quote b, .ticker-stale .chg { color: var(--ink-3); }
.ticker-asof { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--ink-3); }
.ticker-off { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-3); }
.ticker-more {
  margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-0);
  font-size: var(--fs-meta); font-weight: var(--fw-semibold); color: var(--ink-2);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); border-radius: var(--radius-pill); min-height: 28px;
  transition: color var(--dur) var(--ease-out);
}
.ticker-more:hover { color: var(--ink); }
.skel {
  display: inline-block; background: var(--skeleton); border-radius: var(--radius-pill);
  animation: skel 1.2s ease-in-out infinite alternate;
}
.skel-q { width: 64px; height: 12px; }

/* ---------- layout ---------- */
main { max-width: var(--max-width); margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-19); }
.grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-9); align-items: stretch; }
.col { display: flex; flex-direction: column; gap: var(--space-9); min-width: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-9); }
/* Glass card: a lit corner over the surface, a thin iridescent edge (border-box gradient). */
.card {
  background: var(--sheen) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card); padding: var(--space-14) var(--space-15); box-shadow: var(--shadow); min-width: 0;
}
.label { font-size: var(--fs-meta); font-weight: var(--fw-bold); font-style: italic; color: var(--ink-3); text-transform: uppercase; letter-spacing: var(--ls-label); }

/* ---------- hero ---------- */
/* The landing's yellow moment: acid yellow, black ink, an extruded olive edge. */
.hero {
  background: radial-gradient(120% 90% at 20% 0%, var(--hero-top) 0%, var(--hero) 52%, var(--hero-deep) 100%);
  color: var(--on-hero); border-color: transparent;
  box-shadow: var(--hero-shadow);
  padding: var(--space-18) var(--space-17) var(--space-16);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-sum { display: flex; flex-direction: column; align-items: center; border-radius: var(--radius-input); }
a.hero-sum:focus-visible { outline-color: var(--on-hero); outline-offset: 6px; }
.hero-label { font-size: var(--fs-lead); font-weight: var(--fw-heavy); font-style: italic; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--on-hero-2); }
.amount {
  margin-top: var(--space-6);
  font-size: clamp(var(--fs-hero-phone), 5.8vw, var(--fs-hero));
  font-weight: var(--fw-heavy); letter-spacing: var(--ls-hero); line-height: var(--lh-none);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.amount .dec { font-size: 0.52em; letter-spacing: -0.01em; }
.caption { margin-top: var(--space-5); font-size: var(--fs-meta); font-weight: var(--fw-semibold); color: var(--on-hero-2); }

.acts { margin-top: var(--space-17); display: flex; justify-content: center; gap: var(--space-17); }
.act-f { display: contents; }
.act {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  font-size: var(--fs-meta); font-weight: var(--fw-heavy); font-style: italic; text-transform: uppercase; letter-spacing: var(--ls-btn);
  color: var(--on-hero); border-radius: var(--radius-input);
}
/* Round action: a black 3D puck with a yellow icon, pressed into the card on click. */
.act-c {
  position: relative; width: var(--act); height: var(--act); border-radius: 50%;
  background: var(--hero-btn); color: var(--hero-btn-ink); display: grid; place-items: center;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.22), 0 var(--btn-depth) 0 var(--hero-side), 0 calc(var(--btn-depth) + 8px) 16px -4px rgba(10, 10, 10, 0.5);
  transition-property: background-color, transform, box-shadow; transition-duration: var(--dur), var(--dur-press), var(--dur-press); transition-timing-function: var(--ease-out);
}
.act:hover .act-c { background: var(--hero-btn-hover); transform: translateY(-1px); }
.act:active .act-c { transform: translateY(calc(var(--btn-depth) - 1px)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.22), 0 1px 0 var(--hero-side); }
.act:focus-visible { outline: 2px solid transparent; outline-offset: 2px; } /* real outline in forced colors */
.act:focus-visible .act-c { outline: 3px solid var(--on-hero); outline-offset: 4px; }
.act.is-on .act-c { background: var(--warn-solid); color: var(--on-warn-solid); }
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill);
  background: var(--badge-bg); color: var(--badge-ink); font-size: 12px; font-weight: var(--fw-heavy);
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--hero);
}
/* round action on an ordinary card: the violet to teal glass puck */
.card:not(.hero) .act { color: var(--ink); }
.card:not(.hero) .act-c { background: var(--btn-face); color: var(--btn-ink); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 var(--btn-depth) 0 var(--btn-side), 0 calc(var(--btn-depth) + 8px) 18px -4px var(--btn-glow); }
.card:not(.hero) .act:hover .act-c { background: var(--btn-face-hover); }
.card:not(.hero) .act:active .act-c { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 1px 0 var(--btn-side); }
.card:not(.hero) .act:focus-visible .act-c { outline-color: var(--brand); }
.card:not(.hero) .badge { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 3px var(--card); }

.status {
  margin-top: var(--space-12);
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 7px var(--space-6) 7px var(--space-5); border-radius: var(--radius-pill);
  background: var(--hero-chip);
  font-size: var(--fs-meta); font-weight: var(--fw-bold); color: var(--on-hero-chip);
}
.status-note { font-weight: var(--fw-medium); color: var(--on-hero-chip-2); }
.status-note::before { content: "·"; margin-right: var(--space-3); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--running-dot); box-shadow: 0 0 0 3px rgba(43, 255, 138, 0.25), 0 0 12px rgba(43, 255, 138, 0.7); }
.status-paused i { background: var(--warn-solid); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.3); border-radius: 2px; }
.status-slowed i { background: var(--warn-solid); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.3); }

/* ---------- today ---------- */
.flows { margin-top: var(--space-9); display: grid; grid-template-columns: 1fr 1fr; }
.flow { display: flex; gap: var(--space-6); align-items: flex-start; min-width: 0; }
.flow + .flow { border-left: 1px solid var(--line); padding-left: var(--space-13); }
.flow-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.flow-ic.in { background: var(--up-soft); color: var(--up); }
.flow-ic.out { background: var(--down-soft); color: var(--down); }
.flow-k { font-size: var(--fs-meta); color: var(--ink-2); font-weight: var(--fw-medium); }
.flow-v { font-size: var(--fs-flow); font-weight: var(--fw-heavy); letter-spacing: var(--ls-num); line-height: var(--lh-snug); white-space: nowrap; }
.flow-v.in { color: var(--up); }
.flow-n { font-size: var(--fs-meta); color: var(--ink-3); }

/* ---------- approvals ---------- */
.sec-h { display: flex; align-items: center; gap: var(--space-4); }
.sec-h h2 { font-size: var(--fs-h2); }
.count {
  min-width: 26px; height: 26px; padding: 0 var(--space-3); border-radius: var(--radius-pill);
  background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px currentColor;
  display: inline-grid; place-items: center; font-weight: var(--fw-heavy); font-size: var(--fs-meta);
}
.count.zero { background: var(--raised); color: var(--ink-3); }
.items { margin-top: var(--space-3); }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "amt act" "meta meta";
  align-items: center; column-gap: var(--space-5); row-gap: var(--space-1);
  padding: var(--space-10) 0;
}
.item + .item { border-top: 1px solid var(--line); }
.item-amt { grid-area: amt; font-size: var(--fs-item); font-weight: var(--fw-heavy); letter-spacing: var(--ls-num); white-space: nowrap; }
.item-amt span { font-size: var(--fs-meta); font-weight: var(--fw-semibold); color: var(--ink-3); letter-spacing: 0; margin-left: var(--space-0); }
.item-meta { grid-area: meta; font-size: var(--fs-nav); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta b { font-weight: var(--fw-semibold); color: var(--ink); }
.item.has-prog { grid-template-areas: "amt act" "meta meta" "prog prog"; }
.item-prog { grid-area: prog; display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-meta); color: var(--warn); font-weight: var(--fw-semibold); }
.actions { grid-area: act; display: flex; align-items: center; gap: var(--space-1); }
.caught-up { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-8) 0 var(--space-1); color: var(--ink-2); font-weight: var(--fw-medium); }
.caught-up .ic { color: var(--up); }

/* ---------- buttons ---------- */
/* Real CSS 3D, no images: an extruded side (box-shadow stack), a lit top bevel, a rim, a light
 * sweep on hover, a glow, and a press that sinks the face onto its side. Variants only set the
 * four custom properties: face, ink, side and glow. The default is the glass secondary. */
.btn {
  --f: var(--btn2-face); --i: var(--btn2-ink); --s: var(--btn2-side); --g: transparent; --rim: var(--edge);
  position: relative; overflow: hidden; isolation: isolate;
  height: var(--tap); border-radius: var(--radius-pill); padding: 0 var(--space-10);
  border: 1.5px solid transparent;
  background: var(--f) padding-box, var(--rim) border-box; color: var(--i);
  font-style: italic; font-weight: var(--fw-heavy); font-size: var(--fs-body);
  text-transform: uppercase; letter-spacing: var(--ls-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  white-space: nowrap; user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 var(--btn-depth) 0 var(--s), 0 calc(var(--btn-depth) + 8px) 20px -4px var(--g);
  transition-property: transform, box-shadow, filter;
  transition-duration: var(--dur-press), var(--dur-press), var(--dur);
  transition-timing-function: var(--ease-out);
}
.btn::after { /* the light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.5) 50%, transparent 64%);
  transform: translateX(-130%); transition: transform 650ms var(--ease-out);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:hover::after { transform: translateX(130%); }
.btn:active {
  transform: translateY(calc(var(--btn-depth) - 1px)); filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.14), 0 1px 0 var(--s), 0 3px 10px -4px var(--g);
}
.btn-approve, .btn-primary { --f: var(--btn-face); --i: var(--btn-ink); --s: var(--btn-side); --g: var(--btn-glow); --rim: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2)); }
.btn-approve { padding: 0 var(--space-9) 0 var(--space-7); }
.btn-approve:hover, .btn-primary:hover { --f: var(--btn-face-hover); }
.btn-secondary { --f: var(--btn2-face); }
.btn-reject {
  --f: linear-gradient(transparent, transparent); --rim: linear-gradient(transparent, transparent); --i: var(--ink-2); box-shadow: none; padding: 0 var(--space-6);
}
.btn-reject::after { display: none; }
.btn-reject:hover { --i: var(--down); --f: linear-gradient(var(--down-soft), var(--down-soft)); filter: none; transform: none; }
.btn-reject:active { transform: none; box-shadow: none; }
.btn-danger { --f: linear-gradient(var(--down), var(--down)); --i: var(--card); --s: color-mix(in srgb, var(--down) 42%, #000); --g: color-mix(in srgb, var(--down) 55%, transparent); --rim: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15)); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm { height: 36px; padding: 0 var(--space-7); font-size: var(--fs-meta); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; filter: grayscale(0.4); }
.btn[disabled]::after, .btn[aria-disabled="true"]::after { display: none; }
.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2);
  transition-property: background-color, color; transition-duration: var(--dur);
}
.icon-btn:hover { background: var(--raised); color: var(--ink); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap;
  height: 26px; padding: 0 var(--space-4) 0 var(--space-3); border-radius: var(--radius-pill);
  font-size: 12px; font-weight: var(--fw-bold); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--up-soft); color: var(--up); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-warn i { border-radius: 1px; }
.pill-down { background: var(--down-soft); color: var(--down); }
.pill-neutral { background: var(--raised); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- list rows ---------- */
.card-list { padding: var(--space-11) var(--space-15) var(--space-9); }
.card-list .sec-h { margin-bottom: var(--space-3); }
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-6);
  position: relative; padding: var(--space-6) var(--space-5); margin: 0 calc(-1 * var(--space-5)); border-radius: var(--radius-tab);
  transition: background-color var(--dur) var(--ease-out);
}
.row + .row::before { content: ""; position: absolute; top: 0; left: var(--space-5); right: var(--space-5); height: 1px; background: var(--line); transition: opacity var(--dur); }
a.row:hover { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
a.row:hover::before, a.row:hover + .row::before { opacity: 0; }
.row-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.row-ic-in { background: var(--up-soft); color: var(--up); }
.row-ic-warn { background: var(--warn-soft); color: var(--warn); }
.row-ic-down { background: var(--down-soft); color: var(--down); }
.row-main { display: flex; flex-direction: column; gap: var(--space-0); min-width: 0; }
.row-t { display: flex; align-items: center; gap: var(--space-3); font-weight: var(--fw-semibold); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-s { font-size: var(--fs-meta); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }
.row-amt { font-weight: var(--fw-heavy); font-size: var(--fs-body); white-space: nowrap; letter-spacing: -0.01em; }
.row-amt small { font-size: var(--fs-tiny); font-weight: var(--fw-semibold); color: var(--ink-3); margin-left: var(--space-1); letter-spacing: 0; }
.row-amt-in { color: var(--up); }
.row-amt-down { color: var(--down); }
.row-amt-dim { color: var(--ink-3); }
.row-skel .row-ic { background: var(--skeleton); }
.skel-t { width: 46%; height: 13px; }
.skel-s { width: 30%; height: 10px; margin-top: var(--space-2); }
.skel-a { width: 72px; height: 14px; }
.rows-err { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-8) 0; color: var(--down); font-weight: var(--fw-medium); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-5); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.pager-l { font-size: var(--fs-meta); color: var(--ink-3); }
.pager-b { display: flex; gap: var(--space-3); }

/* ---------- empty state ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-15) var(--space-7); }
.empty-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--ink-3); margin-bottom: var(--space-1); }
.empty-t { font-weight: var(--fw-semibold); font-size: var(--fs-lead); }
.empty-p { color: var(--ink-2); font-size: var(--fs-nav); max-width: 34ch; }
.empty-state .btn { margin-top: var(--space-3); }

/* ---------- network chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1); flex: none;
  height: 24px; padding: 0 var(--space-4) 0 var(--space-3); border-radius: var(--radius-pill);
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.chip b { font-weight: var(--fw-heavy); font-style: italic; color: var(--ink); }
.chip span::before { content: "·"; margin: 0 var(--space-1) 0 var(--space-0); color: var(--ink-4); }
.chip .ic { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chip-link {
  height: 36px; padding: 0 var(--space-6); font-size: var(--fs-nav); background: var(--card);
  transition-property: background-color, color, box-shadow; transition-duration: var(--dur);
}
.chip-link:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.chip-link[aria-current="true"] { background: var(--nav-on-bg); color: var(--nav-on-ink); box-shadow: 0 3px 0 var(--hero-side); }
.chip-link[aria-current="true"] b { color: var(--nav-on-ink); }
.chip-link[aria-current="true"] span::before { color: currentColor; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field-l { font-size: var(--fs-meta); font-weight: var(--fw-bold); color: var(--ink-2); letter-spacing: 0.02em; }
.input {
  width: 100%; height: 48px; padding: 0 var(--space-7);
  background: var(--raised); color: var(--ink); border: 0; border-radius: var(--radius-input);
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  transition-property: box-shadow, background-color; transition-duration: var(--dur); transition-timing-function: var(--ease-out);
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.input:focus { outline: 2px solid transparent; outline-offset: -2px; background: var(--card); box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-soft), 0 0 22px -2px var(--btn-glow); } /* the outline shows in forced colors, where box-shadow is dropped */
.has-error .input { box-shadow: inset 0 0 0 2px var(--down); }
.textarea { height: auto; min-height: 96px; padding: var(--space-6) var(--space-7); resize: vertical; line-height: var(--lh-body); }
.select-w { position: relative; display: block; }
.select { appearance: none; padding-right: var(--space-17); cursor: pointer; }
.select-w .ic { position: absolute; right: var(--space-7); top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-num { font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.otp { font-size: var(--fs-item); font-weight: var(--fw-heavy); letter-spacing: 0.4em; text-align: center; height: 60px; padding-left: calc(var(--space-7) + 0.4em); font-variant-numeric: tabular-nums; }
.field-h { font-size: var(--fs-meta); color: var(--ink-3); }
.field-e { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-meta); color: var(--down); font-weight: var(--fw-medium); }
.form { display: grid; gap: var(--space-9); }

/* switch */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); padding: var(--space-5) 0; cursor: pointer; position: relative; }
.toggle-text { display: flex; flex-direction: column; gap: var(--space-0); min-width: 0; }
.toggle-l { font-weight: var(--fw-semibold); }
.toggle-h { font-size: var(--fs-meta); color: var(--ink-3); }
.toggle-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track {
  position: relative; flex: none; width: 50px; height: 30px; border-radius: var(--radius-pill);
  background: var(--line-strong); transition: background-color var(--dur) var(--ease-out);
}
.toggle-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--knob); box-shadow: 0 1px 3px rgba(11, 13, 20, 0.25);
  transition: transform var(--dur) var(--ease-out);
}
.toggle-in:checked + .toggle-track { background: var(--btn-face); box-shadow: 0 0 14px -2px var(--btn-glow); }
.toggle-in:checked + .toggle-track::after { transform: translateX(20px); }
.toggle-in:focus-visible + .toggle-track { outline: 3px solid var(--brand); outline-offset: 3px; }
.toggle.is-disabled { cursor: not-allowed; opacity: 0.5; }
.toggle + .toggle { border-top: 1px solid var(--line); }

/* ---------- sheet ---------- */
.sheet {
  margin: auto; width: min(440px, calc(100% - 2 * var(--gutter-phone))); max-height: calc(100% - 2 * var(--space-11));
  border: 1px solid transparent; padding: 0; color: var(--ink);
  background: var(--sheen) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  border-radius: var(--radius-card); box-shadow: var(--pop-shadow);
}
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { animation: sheet-in var(--dur-slow) var(--ease-out); }
.sheet-in { display: grid; gap: var(--space-9); padding: var(--space-11) var(--space-13) var(--space-13); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-5)) calc(-1 * var(--space-3)) 0; }
.sheet-h h2 { font-size: var(--fs-h2); }
.sheet-p { color: var(--ink-2); font-size: var(--fs-nav); margin-top: calc(-1 * var(--space-5)); }
.sheet-amt { font-size: var(--fs-flow); font-weight: var(--fw-heavy); letter-spacing: var(--ls-num); text-align: center; padding: var(--space-7); background: var(--raised); border-radius: var(--radius-tab); }
.sheet-amt span { font-size: var(--fs-meta); color: var(--ink-3); margin-left: var(--space-1); letter-spacing: 0; }
.sheet-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-4); margin-top: var(--space-1); }
.sheet-acts .btn { height: 50px; margin-bottom: var(--btn-depth); }
.price-list { display: flex; flex-direction: column; }
.sec-h + .price-list { margin-top: var(--space-3); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-6) 0; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-ex, .price-v { display: flex; flex-direction: column; gap: var(--space-0); min-width: 0; }
.price-v { align-items: flex-end; }
.price-ex b, .price-v b { font-weight: var(--fw-semibold); }
.price-ex span, .price-v span { font-size: var(--fs-meta); color: var(--ink-3); }
.price-row.is-stale b { color: var(--ink-3); }

/* ---------- banners ---------- */
.banner-test {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-3) var(--gutter-phone); background: var(--test-bg); color: var(--on-test);
  font-size: var(--fs-meta); text-align: center;
}
.banner-test b { font-weight: var(--fw-bold); letter-spacing: 0.02em; }
.banner-test a { font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 3px; }
.banner-test a:focus-visible { outline-color: var(--on-test); }
.banner-crit {
  display: flex; align-items: center; gap: var(--space-6);
  margin-bottom: var(--space-9); padding: var(--space-8) var(--space-11) var(--space-8) var(--space-8);
  background: var(--crit-bg); color: var(--on-crit); border-radius: var(--radius-card-phone);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--down) 55%, transparent), 0 0 26px -8px var(--down);
}
.banner-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--down); color: var(--card); flex: none; }
.banner-body { flex: 1; min-width: 0; }
.banner-t { font-size: var(--fs-lead); }
.banner-p { font-size: var(--fs-nav); color: var(--ink-2); }

/* ---------- toast ---------- */
.toasts {
  position: fixed; z-index: 40; left: 50%; bottom: var(--space-11); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  width: max-content; max-width: calc(100% - 2 * var(--gutter-phone)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6); border-radius: var(--radius-pill);
  background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--float-shadow);
  font-size: var(--fs-nav); font-weight: var(--fw-semibold); pointer-events: auto;
  animation: toast-in var(--dur-slow) var(--ease-out);
  transition-property: opacity, transform; transition-duration: var(--dur); transition-timing-function: ease-in;
}
.toast .ic { color: var(--toast-ink); }
.toast-t { padding: var(--space-2) 0; }
.toast-x {
  width: 36px; height: 36px; margin-left: var(--space-1); border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--toast-ink); opacity: 0.75;
  transition-property: background-color, opacity; transition-duration: var(--dur);
}
.toast-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.toast-x:focus-visible { outline-color: var(--toast-ink); outline-offset: 0; opacity: 1; }
.toast-ok .ic { color: var(--toast-ok); }
.toast-down .ic { color: var(--toast-down); }
.toast.is-leaving { opacity: 0; transform: translateY(6px) scale(0.98); }
.toast-static { position: static; transform: none; width: auto; max-width: none; }

/* ---------- tab bar (phone) ---------- */
.tabbar { display: none; }

/* ---------- motion ---------- */
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }
@keyframes skel { from { opacity: 1; } to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .btn:active, .act:active .act-c { transform: none; }
}

/* ---------- breakpoints ---------- */
@media (max-width: 1080px) {
  .me-name { display: none; }
  .nav a { padding: var(--space-3) var(--space-6); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .top { padding: var(--space-6) var(--gutter-phone) var(--space-5); grid-template-columns: 1fr auto; gap: var(--space-5); }
  .top .nav { display: none; }
  .mark { width: 34px; height: 34px; border-radius: var(--radius-sm); }
  .avatar { width: 36px; height: 36px; }
  .ticker { padding: 0 var(--gutter-phone) var(--space-4); margin-top: calc(-1 * var(--space-1)); }
  .chg { display: none; }
  main { padding: 0 var(--gutter-phone) var(--space-7); }
  .grid, .col, .stack { gap: var(--space-5); }
  .card { border-radius: var(--radius-card-phone); padding: var(--space-7) var(--space-8); }
  .hero { padding: var(--space-12) var(--space-8) var(--space-9); }
  .hero-label { font-size: var(--fs-nav); }
  .amount { margin-top: var(--space-3); font-size: var(--fs-hero-phone); }
  .caption { margin-top: var(--space-3); }
  .acts { margin-top: var(--space-10); gap: var(--space-15); }
  .act-c { width: var(--act-phone); height: var(--act-phone); }
  .status { margin-top: var(--space-7); }
  .flows { margin-top: var(--space-4); }
  .flow { gap: var(--space-4); }
  .flow + .flow { padding-left: var(--space-6); }
  .flow-ic { display: none; }
  .flow-v { font-size: var(--fs-num-phone); }
  .sec-h h2 { font-size: var(--fs-h2-phone); }
  .items { margin-top: var(--space-0); }
  .item { padding: var(--space-5) 0; row-gap: var(--space-0); }
  .item:last-child { padding-bottom: var(--space-0); }
  .item-amt { font-size: 17px; }
  .item-amt span { font-size: var(--fs-tiny); }
  .btn { height: var(--tap-phone); font-size: var(--fs-meta); letter-spacing: 0.02em; padding: 0 var(--space-7); }
  .btn-approve { padding: 0 var(--space-6); }
  .btn-approve .ic { display: none; }
  .btn-reject { padding: 0 var(--space-3); }
  .item-meta { font-size: 12.5px; }
  .card-list { padding: var(--space-6) var(--space-8) var(--space-5); }
  .row { gap: var(--space-5); padding: var(--space-5) var(--space-4); margin: 0 calc(-1 * var(--space-4)); }
  .row-ic { width: 36px; height: 36px; }
  .row .chip { display: none; }
  .row + .row::before { left: var(--space-4); right: var(--space-4); }
  .pager-l { display: none; }
  .ticker-more { padding-left: var(--space-3); }
  .ticker-more-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ticker-in { gap: var(--space-2); }
  .pager { justify-content: flex-end; }
  .banner-crit { flex-wrap: wrap; padding: var(--space-6); margin-bottom: var(--space-5); }
  .banner-crit { align-items: flex-start; }
  .banner-body { flex: 1 1 calc(100% - 40px - var(--space-6)); }
  .banner-crit .btn { margin-left: calc(40px + var(--space-6)); }
  .sheet {
    width: 100%; max-width: none; margin: auto 0 0; max-height: 92%;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
  .sheet[open] { animation-name: sheet-up; }
  .sheet-in { padding: var(--space-9) var(--space-9) calc(var(--space-9) + env(safe-area-inset-bottom)); }
  .sheet-in::before { content: ""; justify-self: center; width: 40px; height: 5px; border-radius: var(--radius-pill); background: var(--line-strong); margin: calc(-1 * var(--space-3)) 0 calc(-1 * var(--space-5)); }
  .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }

  .tabbar {
    display: flex; position: fixed; z-index: 10;
    left: var(--space-5); right: var(--space-5); bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
    background: var(--sheen) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
    border: 1px solid transparent; border-radius: var(--radius-card-phone); padding: var(--space-2);
    box-shadow: var(--float-shadow);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px var(--space-1); border-radius: var(--radius-tab);
    font-size: var(--fs-tiny); font-weight: var(--fw-heavy); font-style: italic; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3);
    transition-property: background-color, color, box-shadow; transition-duration: var(--dur);
  }
  .tabbar a[aria-current="page"] { color: var(--nav-on-ink); background: var(--nav-on-bg); box-shadow: 0 2px 0 var(--hero-side); }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0.6; } }
@media (max-width: 370px) {
  .amount { font-size: var(--fs-hero-small); }
  .brand-text span { display: none; }
  .item-amt span { display: none; }
}

/* ---------- sign-in (every pre-login screen) ---------- */
/* Acid-yellow page like the landing's finale, one night glass card with an iridescent edge and an
 * extruded olive base, two iridescent rings peeking out behind it. The card carries data-theme="dark",
 * so its tokens are night in both themes and the page stays yellow in both. */
.auth-body {
  padding-bottom: 0;
  background-color: var(--yellow);
  background-image:
    radial-gradient(70% 55% at 50% 0%, #F9F06A 0%, rgba(249, 240, 106, 0) 70%),
    radial-gradient(60% 50% at 100% 100%, #E6D70F 0%, rgba(230, 215, 15, 0) 70%);
  color: var(--black);
}
.auth {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: var(--space-11) var(--gutter) calc(var(--space-11) + var(--btn-depth));
}
.auth-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 30deg, #FF5CC8, #FFC83D, #19E6D2, #B08CFF, #FF5CC8);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%); mask: radial-gradient(circle, transparent 57%, #000 58%);
  filter: drop-shadow(0 10px 0 rgba(10, 10, 10, 0.22));
}
.auth-ring-a { width: 340px; height: 340px; top: calc(50% - 330px); left: calc(50% + 110px); }
.auth-ring-b { width: 240px; height: 240px; top: calc(50% + 150px); left: calc(50% - 360px); transform: rotate(120deg); }
.auth-card {
  position: relative; z-index: 1; width: min(440px, 100%); color: var(--ink);
  background:
    var(--sheen) padding-box,
    radial-gradient(90% 60% at 100% 0%, rgba(176, 140, 255, 0.22), rgba(176, 140, 255, 0) 70%) padding-box,
    linear-gradient(#0C0828, #0A0A0A) padding-box,
    var(--edge) border-box;
  border: 1.5px solid transparent; border-radius: var(--radius-card);
  box-shadow: 0 10px 0 var(--hero-side), 0 40px 60px -24px rgba(10, 10, 10, 0.55);
  padding: var(--space-16) var(--space-15) var(--space-15);
  display: flex; flex-direction: column; gap: var(--space-8);
}
.auth-brand { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.auth-mark {
  width: var(--avatar); height: var(--avatar); border-radius: 50%; flex: none; display: grid; place-items: center;
  color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--ink), 0 0 18px -4px var(--btn-glow);
}
.auth-name {
  font-style: italic; font-weight: var(--fw-heavy); font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: var(--ls-label);
  color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.auth-card h1 {
  font-size: 52px; line-height: 1; padding: 0 var(--space-3) var(--space-1) 0; /* room for the italic overhang and descenders */
  width: fit-content; max-width: 100%;
  color: var(--ink);
  background: linear-gradient(95deg, #FF9F45 0%, #FFC83D 30%, #19E6D2 62%, #B08CFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-lead { color: var(--ink-2); font-size: var(--fs-lead); margin-top: calc(-1 * var(--space-3)); }
.auth-error {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-input);
  background: var(--down-soft); color: var(--down); font-weight: var(--fw-bold);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--down) 55%, transparent);
}
.auth-error .ic { margin-top: 1px; }
.auth-card form { display: flex; flex-direction: column; gap: var(--space-8); margin-top: var(--space-2); }
.auth-card .input { height: 52px; background: #060418; }
.auth-card .otp { height: 64px; font-size: 30px; }
.auth-secret {
  font-family: ui-monospace, monospace;
  word-break: break-all;
  background: var(--raised);
  border-radius: var(--radius-input);
  padding: var(--space-7);
}
.auth-qr, .auth-qr svg { width: 168px; height: 168px; }
.auth-card .btn { width: 100%; }
.btn-xl { --btn-depth: 7px; height: 58px; font-size: var(--fs-lead); margin-top: var(--space-3); margin-bottom: var(--btn-depth); }
@media (forced-colors: active) {
  .auth-card h1 { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
}
@media (max-width: 700px) {
  .auth { padding: var(--space-9) var(--gutter-phone) var(--space-15); align-content: center; }
  .auth-card { border-radius: var(--radius-card-phone); padding: var(--space-13) var(--space-11) var(--space-11); gap: var(--space-7); }
  .auth-card h1 { font-size: 44px; overflow-wrap: anywhere; }
  .auth-ring-a { width: 220px; height: 220px; top: calc(50% - 290px); left: calc(50% + 40px); }
  .auth-ring-b { width: 170px; height: 170px; top: calc(50% + 250px); left: calc(50% - 230px); }
}
@media (max-width: 420px) {
  .auth-card h1 { font-size: 38px; }
}

/* ---------- coming soon (unbuilt screens) ---------- */
.pill-soon { background: var(--yellow); color: var(--on-hero); box-shadow: none; font-style: italic; font-weight: var(--fw-heavy); text-transform: uppercase; letter-spacing: var(--ls-btn); }
.soon-tag {
  margin-left: var(--space-3); padding: 1px var(--space-3); border-radius: var(--radius-pill);
  background: var(--yellow); color: var(--on-hero); font-size: 9px; line-height: 14px; font-weight: var(--fw-heavy);
  letter-spacing: 0.04em; vertical-align: 2px;
}
.sec-h .pill-soon { margin-left: auto; }
@media (max-width: 720px) {
  .tabbar { padding: var(--space-1); }
  .tabbar a { position: relative; min-width: 0; padding-left: 0; padding-right: 0; font-size: 9px; letter-spacing: 0; }
  .tabbar .soon-tag { position: absolute; top: 1px; right: 0; margin: 0; padding: 0 3px; font-size: 8px; line-height: 12px; }
}
