/* styles/tokens.css */
/* Lunar Base — design tokens. Matte near-black ground, quiet panels with one fine border, warm ivory for primary
   controls and credited lines, quiet green for positive earnings. The --moon / --sheet names are historical aliases
   kept for the modules that depend on them. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  /* surfaces */
  --ground: #0a0c0f;
  --panel: #121519;
  --raised: #191d22;
  --raised-2: #1f242a;
  --line: #292e35;
  --line-2: #343a42;
  --sheet: var(--panel);
  --sheet-2: var(--raised);
  --sheet-3: var(--raised-2);
  --sheet-4: #262c33;
  --hair: var(--line);
  --hair-2: var(--line-2);

  /* text */
  --text: #f3f1eb;
  --text-2: #a2a8b1;
  --text-3: #8b9199;

  /* accents */
  --ivory: #ede7d8;
  --ivory-2: #d2cbb9;
  --moon: var(--ivory);
  --moon-2: var(--ivory-2);
  --moon-glow: rgba(237, 231, 216, .12);
  --accent: var(--ivory);
  --accent-2: var(--ivory-2);
  --accent-glow: var(--moon-glow);
  --ink: #0a0c0f;

  --up: #8edbb6;
  --down: #e4867e;
  --warn: #d9b876;
  --warn-bg: rgba(217, 184, 118, .12);
  --up-bg: rgba(142, 219, 182, .12);
  --down-bg: rgba(228, 134, 126, .12);
  --focus: var(--ivory);

  /* geometry */
  --r: 18px;      /* panels */
  --r-s: 12px;    /* inner boxes */
  --r-xs: 8px;    /* controls */
  --gap: 18px;
  --shell: 1440px;
  --shell-pad: 48px;

  /* type */
  --display: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-body: 16px;
  --fs-2: 14px;
  --fs-lbl: 14px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .32s;
  --dur-roll: 1s;

  color-scheme: dark;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: light) { :root:not([data-theme="light"]) { color-scheme: dark; } }

@media (max-width: 700px) {
  :root { --r: 14px; --r-s: 10px; --gap: 14px; --shell-pad: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0s; --dur-roll: 0s; }
}

/* styles/base.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  background: var(--ground); color: var(--text);
  font-family: var(--ui); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-2); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .input:focus-visible { outline-offset: 2px; }

::selection { background: var(--ivory); color: var(--ink); }

.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: .94em; letter-spacing: 0; }
.lbl { font-size: var(--fs-lbl); letter-spacing: .01em; color: var(--text-2); font-weight: 500; line-height: 1.3; }
.t2 { color: var(--text-2); } .t3 { color: var(--text-3); }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
.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; }
.nowrap { white-space: nowrap; }

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

/* styles/components.css */
/* ===================== layout ===================== */
#app { min-height: 100vh; min-height: 100dvh; }
.wrap { max-width: var(--shell); margin: 0 auto; padding: 12px var(--shell-pad) 64px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 24px; }
.pagehead h1 { font-family: var(--display); font-weight: 500; font-size: 32px; letter-spacing: -.02em; line-height: 1.1; }
.pagehead .meta { font-size: var(--fs-2); color: var(--text-2); white-space: nowrap; padding-bottom: 4px; }
.greet { font-size: 15px; color: var(--text-2); margin-bottom: 8px; }
.view { animation: fadein var(--dur) var(--ease-out); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===================== wordmark ===================== */
.wm { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-height: 44px; }
.wm svg { width: 24px; height: 24px; flex: none; }
.wm span { font-size: 14px; letter-spacing: .22em; font-weight: 600; padding-left: 1px; }

/* ===================== buttons ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-xs); font-weight: 500; font-size: 16px; line-height: 1.25; white-space: normal; text-align: center; border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, opacity .18s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn-moon { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
/* a disabled primary is a quiet raised control, never a dimmed ivory slab */
.btn-moon:disabled, .hold:disabled { background: var(--raised-2); color: var(--text-3); border-color: var(--line); opacity: 1; }
.drawer.dp-sheet .dp-btn-primary:disabled { background: var(--raised-2); color: var(--text-3); opacity: 1; }
/* add-funds sheet follows the 8px control / 12px inner-box geometry of the rest of the product */
.drawer.dp-sheet .dp-chip, .drawer.dp-sheet .dp-btn, .drawer.dp-sheet .dp-tag, .drawer.dp-sheet .dp-walls span { border-radius: var(--r-xs); }
.drawer.dp-sheet .dp-card, .drawer.dp-sheet .dp-addr, .drawer.dp-sheet .dp-amt, .drawer.dp-sheet .dp-est, .drawer.dp-sheet .dp-warn, .drawer.dp-sheet .dp-note, .drawer.dp-sheet .dp-err, .drawer.dp-sheet .dp-pend, .drawer.dp-sheet .dp-radio, .drawer.dp-sheet .dp-input { border-radius: var(--r-s); }
.drawer.dp-sheet .dp-card .dp-ico { border-radius: var(--r-xs); }
/* nothing perpetual: colour + the text label carry the status */
.drawer.dp-sheet .dp-live i, .drawer.dp-sheet .dp-ind.waiting .dp-ic-in, .drawer.dp-sheet .dp-ind.waiting .dp-prog { animation: none; }
.btn-moon:hover:not(:disabled) { background: #f6f2e8; border-color: #f6f2e8; }
.btn-ghost { background: var(--raised); color: var(--text); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--raised-2); border-color: var(--line-2); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover:not(:disabled) { color: var(--text); background: var(--raised); }
.btn-danger { background: var(--down-bg); color: var(--down); border-color: rgba(228, 134, 126, .3); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-xs { min-height: 44px; min-width: 44px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn svg { flex: none; }

.hold { position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .4; transform-origin: left; transform: scaleX(0); z-index: -1; transition: transform .25s ease; }
.hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 1.1s) linear; }
.hold .hold-hint { font-size: 14px; opacity: .7; font-weight: 400; margin-left: 2px; }
.hold:disabled .hold-hint { display: none; }
.hold.done { background: var(--up); color: #07140e; border-color: var(--up); }
.hold.done .hold-hint { opacity: 0; }

/* ===================== inputs ===================== */
.field { display: block; margin-bottom: 16px; }
.field > span, .field-lbl { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 8px; }
.input { width: 100%; min-height: 50px; border-radius: var(--r-xs); background: var(--raised); border: 1px solid var(--line); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .18s, background .18s; color: var(--text); }
.input:focus { border-color: var(--ivory); }
.input::placeholder { color: var(--text-3); }
.input.err { border-color: var(--down); }
.input[type="number"] { -moz-appearance: textfield; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a2a8b1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
textarea.input { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.help { font-size: var(--fs-2); color: var(--text-2); margin-top: 8px; line-height: 1.5; }
.err-msg { font-size: 15px; color: var(--down); margin-top: 10px; min-height: 1.4em; line-height: 1.4; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); }
.pw-eye:hover { color: var(--text); }

.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-2); cursor: pointer; padding: 4px 0; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk i { width: 24px; height: 24px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; margin-top: 1px; color: var(--ink); transition: background .15s; }
.chk i svg { opacity: 0; width: 13px; height: 13px; }
.chk input:checked + i { background: var(--ivory); border-color: var(--ivory); }
.chk input:checked + i svg { opacity: 1; }
.chk input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }
.chk span { line-height: 1.45; }

.rules { display: grid; gap: 6px; margin: 10px 0 6px; font-size: var(--fs-2); color: var(--text-2); }
.rules li { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.rules li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; transition: background .2s; }
.rules li.ok { color: var(--text); }
.rules li.ok::before { background: var(--up); }

/* OTP */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.otp input { width: 100%; min-width: 0; height: 60px; text-align: center; font-family: var(--display); font-size: 26px; font-weight: 500; border-radius: var(--r-xs); background: var(--raised); border: 1px solid var(--line); outline: none; padding: 0; caret-color: var(--ivory); font-variant-numeric: tabular-nums; }
.otp input:focus { border-color: var(--ivory); }
.otp.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* segmented */
.seg { display: inline-flex; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 2px; gap: 2px; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; }
.seg button.on { background: var(--ivory); color: var(--ink); }
.seg button:hover:not(.on) { color: var(--text); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); font-size: var(--fs-2); color: var(--text-2); white-space: nowrap; font-weight: 500; }
.chip.up { color: var(--up); background: var(--up-bg); border-color: transparent; }
.chip.down { color: var(--down); background: var(--down-bg); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ivory); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: var(--fs-2); background: var(--warn-bg); color: var(--warn); white-space: nowrap; font-weight: 500; }
.pill.ok { background: var(--up-bg); color: var(--up); }
.pill.bad { background: var(--down-bg); color: var(--down); }
.pill.quiet { background: var(--raised); color: var(--text-2); border: 1px solid var(--line); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill i.pulse { animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.proj { display: inline-flex; align-items: center; font-size: 14px; letter-spacing: .02em; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: 5px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; font-weight: 500; line-height: 1.3; }
.badge-demo { font-size: 14px; letter-spacing: .02em; color: var(--text-2); padding: 5px 10px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }

/* ===================== top chrome ===================== */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--shell); margin: 0 auto; padding: 0 var(--shell-pad); height: 64px; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 0 14px; border-radius: var(--r-xs); font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .18s, background .18s; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ivory); letter-spacing: .02em; flex: none; }
.menu-wrap { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; justify-content: center; padding: 2px; border-radius: var(--r-xs); }
.menu-btn:hover .av { border-color: var(--line-2); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); z-index: 30; animation: fadein .18s var(--ease-out); }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-size: 16px; font-weight: 500; overflow-wrap: break-word; word-break: break-word; }
.menu .who small { color: var(--text-2); font-size: 14px; overflow-wrap: break-word; word-break: break-word; display: block; margin-top: 2px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 15px; color: var(--text-2); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--raised); color: var(--text); }
.tabbar { display: none; }

/* ===================== panels (cards) ===================== */
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; position: relative; }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sh-h h3 { font-size: 17px; font-weight: 500; color: var(--text); }
.sh-h .sub { font-size: var(--fs-2); color: var(--text-2); margin-top: 3px; }
.sh-h .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.link { color: var(--text-2); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.link:hover { color: var(--text); }
.link.sm { font-size: var(--fs-2); }

.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.a-bal { grid-column: span 7; } .a-month { grid-column: span 5; }
.a-chart { grid-column: span 8; } .a-side { grid-column: span 4; }
.a-pos { grid-column: span 12; } .a-act { grid-column: span 12; }
.a-side { display: flex; flex-direction: column; }
.a-side .side-block { padding: 20px 0; border-top: 1px solid var(--line); }
.a-side .side-block:first-child { padding-top: 0; border-top: 0; }
.a-side .side-block:last-child { padding-bottom: 0; }
.a-side .a-q { padding-top: 0; }

/* rolling digits */
.roll { display: inline-flex; align-items: flex-start; line-height: 1.1; height: 1.1em; overflow: hidden; white-space: nowrap; }
.roll .ch { display: inline-block; height: 1.1em; line-height: 1.1; }
.roll .dg { display: inline-block; height: 1.1em; overflow: hidden; }
.roll .col { display: flex; flex-direction: column; transition: transform var(--dur-roll) var(--ease-out); will-change: transform; }
.roll.no-anim .col { transition: none; }
.roll .col span { display: block; height: 1.1em; line-height: 1.1; }

/* balance (hero) */
.a-bal { display: flex; flex-direction: column; padding: 28px; }
.big { font-family: var(--display); font-weight: 500; font-size: 72px; letter-spacing: -.035em; line-height: 1; margin: 16px 0 18px; display: flex; align-items: flex-start; color: var(--text); font-variant-numeric: tabular-nums; }
.big .cents { font-size: .5em; color: var(--text-2); margin-top: .1em; margin-left: .04em; letter-spacing: -.02em; font-weight: 500; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin-top: auto; padding-top: 26px; }
.stat { padding: 16px 0 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; border-top: 1px solid var(--line); }
.stat .v { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .66em; color: var(--text-2); font-weight: 500; }
.stat .s { font-size: var(--fs-2); color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.acts { display: flex; gap: 10px; margin-top: 24px; }
.acts .btn { flex: 1; max-width: 200px; }

/* earned this month */
.a-month { display: flex; flex-direction: column; padding: 24px 28px 26px; }
.a-month .v { font-family: var(--display); font-weight: 500; font-size: 48px; letter-spacing: -.03em; line-height: 1; margin: 16px 0 22px; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; color: var(--up); }
.a-month .mprog { margin-top: auto; }
.month-est { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--text-2); }
.month-est + .v { margin-top: 10px; }
.a-month .v .cents { font-size: .5em; color: var(--up); opacity: .8; margin-top: .1em; }
.mprog { position: relative; }
.mprog-h, .mprog-f { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--text-2); }
.mprog-h .num { color: var(--text); font-variant-numeric: tabular-nums; }
.mprog .bar { height: 8px; margin-top: 10px; background: var(--raised); border: 1px solid var(--line); }
.mprog .bar i { background: var(--ivory); transition: width 1.2s var(--ease-out); }
.mprog-ticks { display: flex; justify-content: space-between; padding: 0 1px; margin-top: 6px; }
.mprog-ticks span { width: 1px; height: 5px; background: var(--line-2); }
.mprog-f { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.cycle { margin-top: 20px; display: grid; gap: 8px; }
.cyc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; padding-top: 8px; border-top: 1px solid var(--line); }
.cyc-row span:first-child { color: var(--text-2); }
.cyc-row .num { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cyc-row .num.t2 { font-weight: 500; }
.cyc-row.quiet span { color: var(--text-2); font-size: 14px; }
.cyc-row.quiet .num { color: var(--text-2); }

/* earned this quarter: monthly bars */
.qwrap { display: grid; grid-template-columns: 1fr; gap: 18px; }
.qcol { min-width: 0; }
.qcol .v { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.025em; margin: 8px 0 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qcol .v small { font-size: .6em; color: var(--text-2); font-weight: 500; }
.qcol.past .v { color: var(--text-2); font-size: 22px; margin: 6px 0 10px; }
.qbars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.qb { min-width: 0; text-align: center; }
.qb-col { position: relative; height: 72px; border-radius: 6px 6px 3px 3px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.qb-col i { position: absolute; left: 0; right: 0; bottom: 0; display: block; border-radius: 4px 4px 0 0; transition: height 1.1s var(--ease-out); }
.qb-fill { background: var(--ivory); }
.qb-est { background: repeating-linear-gradient(135deg, rgba(237, 231, 216, .12) 0 4px, transparent 4px 9px); border-top: 1px dashed rgba(237, 231, 216, .35); }
.qb.past .qb-fill { background: var(--ivory-2); }
.qb b { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-top: 8px; letter-spacing: .01em; }
.qb.upcoming b { color: var(--text-3); }
.qb i:not(.qb-fill):not(.qb-est) { display: block; font-style: normal; font-size: 14px; color: var(--text); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.qb.past i:not(.qb-fill):not(.qb-est) { color: var(--text-2); }
.qb .qb-estlbl { display: block; color: var(--text-2); font-size: 14px; margin-top: 1px; letter-spacing: .01em; }
.qb.upcoming i:not(.qb-fill):not(.qb-est) { color: var(--text-2); }
.qcol.past { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.qcol.past .lbl { color: var(--text-2); }
.qcol.past .qb-col { height: 44px; }

.kv .v { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.025em; margin: 8px 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv .v small { font-size: .6em; color: var(--text-2); font-weight: 500; }
.kv .s { font-size: 15px; color: var(--text-2); line-height: 1.45; }
.kv .s2 { font-size: var(--fs-2); color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.bar { height: 6px; border-radius: 4px; background: var(--raised); overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; background: var(--ivory); border-radius: 4px; transition: width 1.2s var(--ease-out); }
.tranche { margin-top: 16px; }
.tranche .r { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-2); color: var(--text-2); }
.tranche .r > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tranche .r > span:last-child { white-space: nowrap; flex: none; }
.tranche .r b { font-weight: 500; color: var(--text); }
.tranche .bar { height: 4px; margin-top: 8px; }
.tranche .lockline { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2); color: var(--text-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tranche .lockline svg { width: 13px; height: 13px; }

/* chart */
.a-chart { display: flex; flex-direction: column; }
.a-chart .sh-h { align-items: flex-start; }
.chart { position: relative; height: 340px; margin: 0; flex: 1 1 auto; min-height: 240px; max-height: 420px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .axis text { font-family: var(--ui); font-size: 13px; fill: var(--text-2); font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; background: var(--raised-2); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 8px 12px; font-size: 14px; color: var(--text-2); white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .15s; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); z-index: 2; margin-top: -10px; }
.tip b { display: block; font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.chart-v { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.025em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--text-2); margin-top: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 2px; background: var(--ivory); display: inline-block; }
.legend i.d { background: none; border-top: 2px dashed var(--text-2); height: 0; }

/* lists */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); min-height: 60px; }
.row.clickable { cursor: pointer; }
.row.clickable:hover .t { color: var(--ivory); }
.row:first-child { border-top: 0; }
.ic { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); flex: none; }
.ic svg { width: 16px; height: 16px; }
.ic.up { color: var(--up); background: var(--up-bg); border-color: transparent; } .ic.out { color: var(--text-2); }
.row .t { font-size: 16px; line-height: 1.3; }
.row .s { font-size: var(--fs-2); color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.row .amt { text-align: right; font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .amt a, .row .amt button { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--text-2); min-height: 44px; padding: 0 4px; margin: -12px -4px -14px auto; }
.row .amt a:hover, .row .amt button:hover { color: var(--ivory); }

/* recent activity as a compact strip: three columns, two rows */
.a-act .rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.a-act .row { border-top: 1px solid var(--line); }
.a-act .row:nth-child(-n+3) { border-top: 0; }
.a-act .row:nth-child(n+7) { display: none; }

/* positions */
.alloc { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin-bottom: 8px; }
.alloc i { display: block; height: 100%; background: var(--ivory); transition: width 1.2s var(--ease-out); }
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ptable th { font-size: var(--fs-lbl); letter-spacing: .01em; color: var(--text-2); font-weight: 500; text-align: right; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable td { padding: 16px 0; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable tbody tr:first-child td { border-top: 0; }
.ptable tr.total td { color: var(--text-2); }
.asset { display: flex; align-items: center; gap: 14px; }
.glyph { width: 40px; height: 40px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); flex: none; position: relative; }
.glyph i { position: absolute; left: -3px; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--ivory); }
.asset b { display: block; font-weight: 500; }
.asset small { font-size: var(--fs-2); color: var(--text-2); }
.ab { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ab .bar { width: 84px; height: 4px; margin: 0; }
.flash-up { animation: fu 1s; } .flash-down { animation: fd 1s; }
@keyframes fu { 0% { color: var(--up); } 100% { color: inherit; } }
@keyframes fd { 0% { color: var(--down); } 100% { color: inherit; } }
.pcards { display: none; }

.foot { margin: 28px 0 0; font-size: var(--fs-2); color: var(--text-2); line-height: 1.6; max-width: 760px; }
.foot .f-meta { margin-top: 6px; color: var(--text-3); }
.rows-more { display: flex; justify-content: center; margin-top: 8px; }

/* ===================== drawers / bottom sheets ===================== */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.scrim { position: fixed; inset: 0; background: rgba(4, 5, 7, .64); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 16px; right: 16px; bottom: 16px; width: 520px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); z-index: 61; transform: translateX(calc(100% + 32px)); transition: transform var(--dur) var(--ease-out); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); outline: none; }
.drawer.drawer-wide { width: 660px; }
.drawer.on { transform: none; }
.dr-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex: none; }
.dr-h h2, .sheet-title { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.015em; line-height: 1.2; }
.x { width: 44px; height: 44px; border-radius: var(--r-xs); background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); flex: none; }
.x:hover { color: var(--text); background: var(--raised-2); }
.dr-b { padding: 20px 24px 24px; overflow-y: auto; flex: 1; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dr-f { padding: 16px 24px; background: var(--panel); border-top: 1px solid var(--line); flex: none; }
.dr-f .btn { white-space: normal; }
.handle { display: none; }
.step { margin-top: 22px; }
.step > .lbl, .step-lbl { display: block; margin-bottom: 10px; }
.step-title { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.step-sub { font-size: 15px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box { padding: 16px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); min-width: 0; }
.box .lbl { display: block; }
.box .v { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin: 8px 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.box .v small { font-size: .6em; color: var(--text-2); }
.box p { font-size: var(--fs-2); color: var(--text-2); line-height: 1.5; }
.box.lock .v { color: var(--text-2); }
.lockrow { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-2); color: var(--text-2); margin-top: 8px; }
.amtin { display: flex; align-items: baseline; gap: 6px; padding: 18px 18px 14px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); transition: border-color .18s; }
.amtin:focus-within { border-color: var(--ivory); }
.amtin span { font-family: var(--display); font-size: 36px; font-weight: 500; color: var(--text-2); }
.amtin input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: -.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.amtin input::placeholder { color: var(--text-3); }
.quick { display: flex; gap: 8px; margin-top: 10px; }
.quick button { flex: 1; min-height: 44px; border-radius: var(--r-xs); background: var(--raised); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s, border-color .15s; }
.quick button:hover { color: var(--text); border-color: var(--line-2); }
.quick button.on { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.dest { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); text-align: left; width: 100%; cursor: pointer; min-height: 64px; transition: border-color .15s, background .15s; }
.dest:hover { border-color: var(--line-2); }
.dest.on { border-color: var(--ivory); }
.dest .mono { font-size: 15px; }
.dest small { display: block; font-size: var(--fs-2); color: var(--text-2); margin-top: 2px; }
.dest .net-glyph { width: 40px; height: 40px; border-radius: 50%; background: var(--raised-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); flex: none; }
.dest .radio { margin-left: auto; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); display: grid; place-items: center; flex: none; }
.dest.on > .radio { border-color: var(--ivory); }
.dest.on > .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ivory); }
.fineprint { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-top: 12px; }

.status { padding: 18px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); }
.status-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.status-h .num { font-size: 28px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status .row .amt { white-space: normal; overflow-wrap: anywhere; }
.tl { display: grid; }
.tl-i { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding-bottom: 16px; position: relative; }
.tl-i:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 2px; width: 1px; background: var(--line-2); }
.tl-i .o { width: 23px; height: 23px; border-radius: 50%; background: var(--raised-2); border: 1px solid var(--line-2); display: grid; place-items: center; }
.tl-i.done .o { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.tl-i.now .o { border-color: var(--ivory); }
.tl-i.now .o::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ivory); }
.tl-i .o svg { width: 12px; height: 12px; }
.tl-i b { font-size: 15px; font-weight: 500; display: block; }
.tl-i small { font-size: var(--fs-2); color: var(--text-2); }
.tl-i .r { font-size: var(--fs-2); color: var(--text-2); white-space: nowrap; }

.warnbox { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-s); background: var(--warn-bg); border: 1px solid rgba(217, 184, 118, .25); color: #ecdcb5; font-size: 15px; line-height: 1.5; margin-top: 12px; }
.warnbox svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--warn); }
.notebox { padding: 14px 16px; border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* ===================== statements ===================== */
.st-list { display: flex; flex-direction: column; }
.st-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; text-align: left; width: 100%; transition: background .15s; }
.st-row:first-child { border-top: 0; }
.st-row:hover .m { color: var(--ivory); }
.st-row .m { font-size: 16px; font-weight: 500; }
.st-row .m small { display: block; font-size: var(--fs-2); color: var(--text-2); font-weight: 400; margin-top: 3px; }
.st-row .c { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-align: right; font-variant-numeric: tabular-nums; }
.st-row .c small { display: block; font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--text-2); letter-spacing: .01em; margin-bottom: 3px; }
.st-row .go { display: flex; gap: 6px; justify-content: flex-end; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }

.paper { background: #f6f4ee; color: #16161a; border: 1px solid #e3e0d7; border-radius: var(--r-xs); padding: 52px 56px; font-size: 16px; line-height: 1.5; max-width: 900px; width: 100%; min-width: 0; margin: 0 auto; overflow-wrap: break-word; }
.paper .meta div { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
/* figures and dates never split; only the description column wraps */
.paper td, .paper th { min-width: 0; white-space: nowrap; overflow-wrap: normal; }
.paper td.desc { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.paper .p-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid #16161a; }
.paper .wm { color: #16161a; }
.paper h2 { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; margin: 26px 0 4px; }
.paper .meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0 28px; }
.paper .meta small, .paper .p-lbl { display: block; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #5e5c56; margin-bottom: 4px; font-weight: 500; }
.paper .p-lbl { margin-bottom: 12px; }
.paper .meta div { font-size: 16px; }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 28px; }
.paper th { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #5e5c56; font-weight: 500; text-align: right; padding: 0 0 8px; border-bottom: 1px solid #cfccc3; }
.paper th:first-child, .paper td:first-child { text-align: left; }
.paper td { padding: 10px 0; border-bottom: 1px solid #e1ded6; text-align: right; font-size: 15px; vertical-align: top; }
.paper tr.tot td { border-bottom: 0; border-top: 1.5px solid #16161a; font-weight: 600; font-size: 16px; padding-top: 12px; }
.paper .p-sum { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.paper .p-hl { background: #e9e6dd; border-radius: var(--r-xs); padding: 22px 24px; align-self: start; }
.paper .p-hl .big2 { font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: -.025em; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.paper .p-hl .ln { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid #d6d2c7; font-size: 15px; }
.paper .p-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid #cfccc3; font-size: 14px; color: #5e5c56; display: flex; justify-content: space-between; gap: 24px; line-height: 1.5; }
.paper .mono { font-size: 14px; }
.paper .muted { color: #5e5c56; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111; }
  body * { visibility: hidden; }
  .paper, .paper * { visibility: visible; }
  .paper { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border-radius: 0; border: 0; padding: 0; background: #fff; font-size: 12px; }
  .paper td, .paper .meta div, .paper .p-hl .ln { font-size: 12px; } .paper th, .paper .meta small, .paper .p-lbl, .paper .p-foot, .paper .mono { font-size: 10.5px; }
  .paper .p-hl { background: #f1efe8; }
}

/* ===================== misc ===================== */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ivory); color: var(--ink); padding: 12px 18px; border-radius: var(--r-xs); font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-err { background: var(--down); color: #1a0d0c; }

.skel { display: grid; gap: 12px; padding: 4px 0; }
.sk { height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--raised) 0%, var(--raised-2) 50%, var(--raised) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.sk-big { height: 56px; width: 70%; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.state { padding: 32px 20px; text-align: center; color: var(--text-2); }
.state h3 { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.state p { font-size: 15px; line-height: 1.5; max-width: 420px; margin: 0 auto 14px; }
.state.error h3 { color: var(--down); }
.state-mark { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 16px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--r-s); background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); margin: 12px 0 0; }
.banner.offline { background: var(--warn-bg); border-color: rgba(217, 184, 118, .25); color: #ecdcb5; }
.banner .btn { margin-left: auto; }

.notice-2fa { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-s); background: var(--panel); border: 1px solid var(--line); margin: var(--gap) 0 0; font-size: 15px; color: var(--text-2); }
.notice-2fa svg { color: var(--ivory); flex: none; }
.notice-2fa .btn { margin-left: auto; }

/* security */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.sec-row:first-child { border-top: 0; }
.sec-row small { display: block; font-size: var(--fs-2); color: var(--text-2); margin-top: 2px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.codes code { font-family: var(--mono); font-size: 15px; padding: 10px 12px; border-radius: var(--r-xs); background: var(--raised); border: 1px solid var(--line); text-align: center; letter-spacing: .04em; }
.qr-box { background: #fff; border-radius: var(--r-s); padding: 12px; width: 200px; height: 200px; margin: 0 auto 16px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.secret-row { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 14px; }
.secret-row code { font-family: var(--mono); font-size: 14px; color: var(--text-2); word-break: break-all; }

/* onboarding */
.onb { max-width: 620px; margin: 0 auto; }
.onb-steps { display: grid; gap: 14px; margin-top: 8px; }
.waiting { max-width: 560px; margin: 40px auto; text-align: center; }
.waiting .wait-mark { width: 80px; height: 80px; margin: 0 auto 26px; border-radius: 50%; background: var(--up-bg); color: var(--up); display: grid; place-items: center; border: 1px solid rgba(142, 219, 182, .3); }
.waiting .wait-mark svg { width: 32px; height: 32px; }
.waiting .wait-mark.bad { background: var(--down-bg); color: var(--down); border-color: rgba(228, 134, 126, .3); }
.waiting h1 { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; margin-bottom: 12px; }
.waiting p { font-size: 17px; color: var(--text-2); line-height: 1.55; }
.waiting .steps { text-align: left; margin: 28px auto 0; display: grid; gap: 14px; max-width: 440px; }
.waiting .steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 16px; color: var(--text-2); align-items: start; }
.waiting .steps li i { width: 30px; height: 30px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 14px; color: var(--text); }
.details { border-radius: var(--r-s); background: var(--raised); border: 1px solid var(--line); padding: 4px 16px; margin-top: 10px; }
.details summary { cursor: pointer; font-size: 15px; color: var(--text-2); padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.details p { font-size: 15px; color: var(--text-2); line-height: 1.55; padding: 0 0 14px; }

/* ===================== sign in ===================== */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(440px, 540px) 1fr; }
.si-form { display: flex; flex-direction: column; padding: 36px 56px; min-height: 100vh; min-height: 100dvh; }
.si-form > .wm { margin-bottom: auto; }
.si-body { max-width: 380px; width: 100%; margin: 56px 0; }
.si-body h1 { font-family: var(--display); font-weight: 500; font-size: 32px; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 10px; }
.si-body p.lead { color: var(--text-2); margin-bottom: 28px; font-size: 16px; line-height: 1.5; }
.si-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 20px; font-size: 15px; color: var(--text-2); }
.si-foot { font-size: var(--fs-2); color: var(--text-2); margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.si-note { margin-top: 24px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.si-who { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-xs); background: var(--panel); border: 1px solid var(--line); margin-bottom: 26px; font-size: 15px; word-break: break-all; }
.si-who .av { width: 32px; height: 32px; font-size: 12px; }
.si-window { position: relative; margin: 16px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--panel); min-height: calc(100vh - 32px); }
.si-window .bd { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: fadein .9s var(--ease-out); }
.si-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 15, .75) 100%); pointer-events: none; }
.si-cap { z-index: 1; }
.si-cap { position: absolute; left: 40px; bottom: 36px; right: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.si-cap h2 { font-family: var(--display); font-weight: 500; font-size: 38px; letter-spacing: -.025em; line-height: 1.1; max-width: 560px; }
.si-cap .lbl { color: var(--text-2); }
.si-mark { position: absolute; left: 20px; top: 20px; display: none; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-2); margin-bottom: 20px; min-height: 44px; }
.back:hover { color: var(--text); }

/* ===================== 980: hero spans the grid ===================== */
@media (max-width: 1180px) {
  .big { font-size: 64px; }
  .a-month .v { font-size: 44px; }
  .a-act .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-act .row:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .a-act .row:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 980px) {
  .a-bal { grid-column: span 12; }
  .a-month { grid-column: span 5; }
  .a-chart { grid-column: span 7; }
  .a-side { grid-column: span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .a-side .side-block { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
  .a-side .side-block:first-child { padding-left: 0; border-left: 0; }
  .chart { height: 300px; }
  .a-side .cyc-row span:first-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .a-side .cyc-row .proj { margin-left: 0; }
  .a-month .mprog { margin-top: 20px; }
  .a-month .v { margin-bottom: 14px; }
  .sec-grid { grid-template-columns: 1fr; }
  .st-grid { grid-template-columns: 1fr; }
  .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .si-window { order: -1; min-height: 340px; height: 340px; margin: 16px 16px 0; }
  .si-form { min-height: 0; padding: 36px 48px 32px; align-items: center; }
  .si-form > .wm { display: none; }
  .si-body { margin: 0 0 32px; max-width: 460px; }
  .si-foot { width: 100%; max-width: 460px; }
  .si-cap { left: 32px; right: 32px; bottom: 28px; }
  .si-cap h2 { font-size: 32px; }
  .si-mark { display: inline-flex; }
}

/* ===================== 700: phone ===================== */
@media (max-width: 700px) {
  .si-window { min-height: 280px; height: 280px; margin: 12px 12px 0; }
  .si-form { padding: 24px 16px 28px; }
  .si-body { margin: 0 0 24px; max-width: none; }
  .si-body h1 { font-size: 28px; }
  .si-body p.lead { margin-bottom: 22px; }
  .si-cap { left: 20px; right: 20px; bottom: 20px; }
  .si-cap h2 { font-size: 24px; }
  .si-cap .lbl { display: none; }
  .otp { gap: 6px; } .otp input { height: 56px; font-size: 24px; }
  .top-in { height: 60px; gap: 12px; }
  .nav { display: none; }
  .wrap { padding: 6px var(--shell-pad) calc(96px + env(safe-area-inset-bottom)); }
  .pagehead { margin: 16px 0 16px; flex-wrap: wrap; align-items: flex-start; }
  .pagehead h1 { font-size: 28px; }
  .pagehead .meta { display: none; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash > * { grid-column: 1 / -1 !important; }
  .a-side { display: flex; }
  .a-side .side-block { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .a-side .side-block:first-child { padding-top: 0; border-top: 0; }
  .a-side .side-block:last-child { padding-bottom: 0; }
  .sheet { padding: 20px 18px; }
  .a-bal { padding: 22px 18px; }
  .big { font-size: 48px; margin: 12px 0 14px; }
  .stats3 { grid-template-columns: 1fr 1fr; gap: 0 14px; padding-top: 16px; }
  .stats3 .stat:first-child { grid-column: 1 / -1; }
  .stat .v { font-size: 22px; }
  .acts { display: none; } /* the four account actions live in the bottom navigation on phones */
  .a-month { padding: 20px 18px 22px; }
  .a-month .v { font-size: 40px; margin: 12px 0 18px; }
  .qb-col { height: 64px; }
  .chart { height: 260px; min-height: 0; }
  .chart-v { font-size: 24px; }
  .a-act .rows { grid-template-columns: 1fr; }
  .a-act .row:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .a-act .row:first-child { border-top: 0; }
  .a-act .row:nth-child(n+7) { display: grid; }
  .ptable { display: none; }
  .pcards { display: block; }
  .pc { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
  .pc:first-of-type { border-top: 0; }
  .pc .r { text-align: right; font-variant-numeric: tabular-nums; }
  .pc .r b { display: block; font-weight: 500; font-family: var(--display); font-size: 16px; }
  .pc .r small { font-size: var(--fs-2); }
  .pc .asset b { font-size: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ground); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--text-2); padding: 8px 0 6px; letter-spacing: 0; min-height: 56px; border-radius: var(--r-xs); white-space: nowrap; }
  .tabbar a svg, .tabbar button svg { width: 22px; height: 22px; }
  .tabbar a.on, .tabbar button.on { color: var(--text); }
  .tabbar button.primary svg { color: var(--ivory); }
  .tabbar button.primary { color: var(--text); }
  .drawer, .drawer.drawer-wide { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: var(--r) var(--r) 0 0; border-bottom: 0; transform: translateY(105%); box-shadow: 0 -8px 24px rgba(0, 0, 0, .28); }
  .drawer.on { transform: none; }
  .handle { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 0; }
  .dr-h { padding: 10px 16px 14px; }
  .dr-h h2, .sheet-title { font-size: 20px; }
  .dr-b { padding: 16px 16px 24px; }
  .dr-f { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .split { grid-template-columns: 1fr; }
  .amtin span, .amtin input { font-size: 32px; }
  .st-row { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 8px 12px; min-height: 72px; }
  .st-row .c.o, .st-row .c.e { display: none; }
  .st-row .go .btn { display: none; }
  .st-row .go::after { content: ""; width: 10px; height: 10px; border-right: 1.6px solid var(--text-2); border-top: 1.6px solid var(--text-2); transform: rotate(45deg); display: inline-block; margin-right: 6px; }
  .paper { padding: 26px 18px; border-radius: var(--r-s); font-size: 16px; }
  .paper .meta { grid-template-columns: 1fr; gap: 12px; }
  .paper .p-sum { grid-template-columns: 1fr; gap: 20px; }
  .paper h2 { font-size: 24px; }
  .paper .hide-s { display: none; }
  .paper .p-foot { flex-direction: column; gap: 6px; }
  .paper table { font-size: 15px; }
  /* phones: dates and headers may wrap at their spaces; figures have no break opportunity so they stay whole */
  .paper th, .paper td { white-space: normal; overflow-wrap: normal; }
  .paper th { line-height: 1.3; }
  .paper .p-hl .big2 { font-size: 26px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .notice-2fa { flex-wrap: wrap; padding-right: 56px; }
  .notice-2fa .btn-sm { margin-left: 0; width: 100%; }
  .notice-2fa .btn-xs { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; padding: 0; }
  .dest.src { align-items: center; }
  .codes { grid-template-columns: 1fr 1fr; }
  .sec-row { flex-wrap: wrap; }
  .sec-grid .sh-h { flex-wrap: wrap; }
  .sec-grid .sh-h > .btn { width: 100%; order: 3; margin-top: 10px; }
  .pc .asset b { white-space: nowrap; } /* money is never cut */
  .pc .asset small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc .pc-foot { grid-column: 2 / -1; font-size: 14px; color: var(--text-2); margin-top: -6px; }
}
@media (max-width: 360px) {
  .big { font-size: 40px; }
  .wm span { white-space: nowrap; letter-spacing: .14em; font-size: 13px; }
  .top .badge-demo { display: none; }
  .paper .p-hl .big2 { font-size: 22px; }
  .a-month .v { font-size: 36px; }
  .a-chart .sh-h { flex-wrap: wrap; } /* series controls wrap below the heading */
  .a-chart .sh-h > .seg { width: 100%; }
  .a-chart .seg button { flex: 1; }
  .chips .chip { max-width: 100%; white-space: normal; padding-top: 6px; padding-bottom: 6px; }
  .sh-h { flex-wrap: wrap; }
  /* positions: stack the card so the invested amount and the earnings each get the full width */
  .pc { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px; }
  .pc .r { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .pc .r small { font-size: 14px; }
  .pc .pc-foot { grid-column: 2; margin-top: 0; }
  .paper { padding: 22px 14px; }
  .paper .p-top { flex-wrap: wrap; gap: 10px 16px; }
  .paper td { font-size: 14px; }
  .paper th { font-size: 14px; letter-spacing: .04em; }
  .stats3 { grid-template-columns: 1fr; }
  /* receipt amount */
  .status-h .num { font-size: 26px; }
  /* statements list: closing balance sits under the month, chevron centred on the right */
  .st-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 10px; }
  .st-row .m { grid-column: 1; }
  .st-row .c.cl { grid-column: 1; text-align: left; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .st-row .c.cl small { margin: 0; }
  .st-row .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  /* activity rows: smaller icon, amount and link stacked tight */
  .row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  .ic { width: 32px; height: 32px; }
  .row .amt { font-size: 15px; }
  .row .amt a, .row .amt button { font-size: 13px; }
}

/* ---- device QA ---- */
/* iOS Safari zooms the page when a field under 16px gets focus, so every field stays at 16px on touch screens. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not(.amtin > input):not(.dp-amt > input), select, textarea { font-size: 16px !important; }
}
/* Toggle switches keep their 30px look but get a 44px tap area. */

/* admin/admin.css */
/* Lunar Base — Admin console. Near-black ground, quiet sheets, warm ivory accent. Everything is scoped
   under .adm, plus the .lb-* pieces that the admin's fallback kit creates (sheet, toast, skeleton). */
:root { --accent: var(--moon, #ece5d3); --accent-2: var(--moon-2, #c9c2b0); }

.adm { --adm-max: 1312px; max-width: var(--adm-max); margin: 0 auto; padding: 8px 32px 64px; color: var(--text, #f1efea); font-size: var(--fs-body, 16px); }
.adm * { min-width: 0; }

/* ---------- page head ---------- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 22px 0 18px; }
.adm-eyebrow { font-size: 14px; color: var(--text-2, #b4b6bd); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.adm-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.adm-head h1 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: -.025em; line-height: 1.05; }
.adm-treasury { text-align: right; font-size: 14px; color: var(--text-2); display: grid; gap: 4px; }
.adm-treasury .mono { color: var(--text); font-size: 13.5px; }
.adm-treasury .missing { color: var(--warn); }

/* ---------- section nav ---------- */
.adm-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -32px 20px; padding: 2px 32px 6px; -webkit-overflow-scrolling: touch; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--text-2); background: var(--sheet); transition: background var(--dur, .3s), color var(--dur, .3s); white-space: nowrap; }
.adm-nav a:hover { color: var(--text); background: var(--sheet-2); }
.adm-nav a.on { color: var(--ink, #0b0b0c); background: var(--accent); }
.adm-nav a .badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--warn); color: var(--ink); }
.adm-nav a.on .badge { background: var(--ink); color: var(--accent); }

/* ---------- sheets / grid ---------- */
.adm .sheet { background: var(--sheet); border-radius: var(--r, 22px); padding: 24px; position: relative; }
.adm .sheet.pad-s { padding: 20px; }
.adm .sh-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.adm .sh-h h2, .adm .sh-h h3 { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.adm .sh-h .hint { font-size: 14px; color: var(--text-2); }
.adm .cnt { font-size: 13px; color: var(--text-2); background: var(--sheet-2); border-radius: 99px; padding: 2px 10px; font-weight: 500; }
.adm .cnt.hot { background: var(--warn-bg); color: var(--warn); }
.adm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap, 12px); }
.adm-grid > .span-12 { grid-column: span 12; } .adm-grid > .span-8 { grid-column: span 8; } .adm-grid > .span-7 { grid-column: span 7; }
.adm-grid > .span-6 { grid-column: span 6; } .adm-grid > .span-5 { grid-column: span 5; } .adm-grid > .span-4 { grid-column: span 4; }
.adm-grid > .span-3 { grid-column: span 3; }

/* ---------- KPI tiles ---------- */
.adm .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap, 12px); margin-bottom: var(--gap, 12px); }
.adm .kpi.wide { grid-column: span 2; }
.adm .kpi { display: flex; flex-direction: column; min-height: 150px; }
.adm .kpi .k { font-size: 14px; color: var(--text-2); font-weight: 500; }
.adm .kpi .v { font-family: var(--display); font-weight: 300; font-size: 44px; letter-spacing: -.04em; line-height: 1; margin: 14px 0 10px; white-space: nowrap; display: flex; align-items: flex-start; }
.adm .kpi .v .cents { font-size: .45em; color: var(--text-2); margin-top: .18em; margin-left: .04em; letter-spacing: -.02em; }
.adm .kpi .s { font-size: 14px; color: var(--text-2); margin-top: auto; line-height: 1.4; }
.adm .kpi.hero { grid-column: span 2; }
.adm .kpi.hero .v { font-size: 72px; }
.adm .kpi.attn .v { color: var(--warn); }
.adm .kpi.go { transition: background .2s; } .adm .kpi.go:hover { background: var(--sheet-2); }
.adm .kpi.go .s::after { content: " ›"; color: var(--text-3); }

/* ---------- text + numbers ---------- */
.adm .big-num { font-family: var(--display); font-weight: 300; font-size: 40px; letter-spacing: -.035em; line-height: 1; }
.adm .num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.adm .muted { color: var(--text-2); }
.adm .faint { color: var(--text-3); }
.adm .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.adm .small { font-size: 14px; }
.adm .mono { font-family: var(--mono); font-size: .94em; letter-spacing: 0; word-break: break-all; }
.adm .ok { color: var(--up); } .adm .bad { color: var(--down); } .adm .warn-t { color: var(--warn); }

/* ---------- pills ---------- */
.adm .pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13.5px; font-weight: 500; white-space: nowrap; background: var(--sheet-2); color: var(--text-2); }
.adm .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.adm .pill.ok { background: var(--up-bg); color: var(--up); }
.adm .pill.warn { background: var(--warn-bg); color: var(--warn); }
.adm .pill.bad { background: var(--down-bg); color: var(--down); }
.adm .pill.accent { background: var(--accent); color: var(--ink); }
.adm .pill.pulse i { animation: adm-pulse 1.6s infinite; }
@keyframes adm-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.adm .flag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 500; }
.adm .flag svg { width: 16px; height: 16px; flex: none; }

/* ---------- buttons ---------- */
.adm .btn, .adm-sheet .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 99px; font-weight: 500; font-size: 15.5px; transition: background .2s, opacity .2s, transform .1s; white-space: nowrap; }
.adm .btn:active, .adm-sheet .btn:active { transform: scale(.985); }
.adm .btn:disabled, .adm-sheet .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.adm .btn-primary, .adm-sheet .btn-primary { background: var(--accent); color: var(--ink); }
.adm .btn-primary:hover, .adm-sheet .btn-primary:hover { background: #f6f1e4; }
.adm .btn-ghost, .adm-sheet .btn-ghost { background: var(--sheet-2); color: var(--text); }
.adm .btn-ghost:hover, .adm-sheet .btn-ghost:hover { background: var(--sheet-3); }
.adm .btn-danger, .adm-sheet .btn-danger { background: var(--down-bg); color: var(--down); }
.adm .btn-danger:hover, .adm-sheet .btn-danger:hover { background: rgba(255, 107, 99, .18); }
.adm .btn-sm, .adm-sheet .btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.adm .btn-block, .adm-sheet .btn-block { width: 100%; }
.adm .btn svg, .adm-sheet .btn svg { width: 16px; height: 16px; }
.adm .link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.adm .link:hover { color: var(--text); }

/* hold-to-confirm visuals (fallback kit + shell kit both add .hold / .holding / .done) */
.hold { position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .5; transform-origin: left; transform: scaleX(0); z-index: -1; transition: transform .25s ease; }
.hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 1.1s) linear; }
.hold.done { background: var(--up) !important; color: #04120a !important; }
.hold .hold-hint { font-size: 13px; opacity: .6; font-weight: 400; margin-left: 2px; }
.hold.done .hold-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hold.holding::before { transition-duration: .35s; } }

/* ---------- forms ---------- */
.adm .field, .adm-sheet .field { display: block; margin-bottom: 16px; }
.adm .field > span, .adm-sheet .field > span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.adm .field .help, .adm-sheet .field .help { font-size: 14px; color: var(--text-3); margin-top: 7px; line-height: 1.45; }
.adm .input, .adm-sheet .input { width: 100%; height: 52px; border-radius: var(--r-s, 14px); background: var(--sheet-2); border: 1px solid transparent; padding: 0 16px; font-size: 16px; color: var(--text); outline: none; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.adm .input:focus, .adm-sheet .input:focus { border-color: rgba(236, 229, 211, .5); background: var(--sheet-3); }
.adm .input::placeholder, .adm-sheet .input::placeholder { color: var(--text-3); }
.adm .input.is-bad, .adm-sheet .input.is-bad { border-color: var(--down); }
.adm .input.is-ok, .adm-sheet .input.is-ok { border-color: rgba(67, 217, 143, .55); }
.adm textarea.input, .lb-sheet textarea.input { height: auto; min-height: 104px; padding: 13px 16px; resize: vertical; line-height: 1.5; }
.adm select.input, .lb-sheet select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23b4b6bd' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.adm .input.mono, .adm-sheet .input.mono { font-family: var(--mono); font-size: 16px; }
.adm .row2, .adm-sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm .err, .adm-sheet .err { font-size: 14.5px; color: var(--down); margin-top: 8px; line-height: 1.45; min-height: 0; }
.adm .err:empty, .adm-sheet .err:empty { display: none; }
.adm .seg, .adm-sheet .seg { display: inline-flex; background: var(--sheet-2); border-radius: 99px; padding: 4px; gap: 2px; max-width: 100%; }
.adm .seg button, .adm-sheet .seg button { height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.adm .seg button.on, .adm-sheet .seg button.on { background: var(--sheet-4, var(--sheet-3)); color: var(--text); }
.adm .seg.block, .adm-sheet .seg.block { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
/* the switch button is a 44px-tall tap target; the 50x30 track is drawn by ::before and the knob by ::after */
.adm .sw, .adm-sheet .sw { width: 50px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 99px; background: transparent; position: relative; flex: none; cursor: pointer; }
.adm .sw::before, .adm-sheet .sw::before { content: ""; position: absolute; left: 0; top: 7px; width: 50px; height: 30px; border-radius: 99px; background: var(--sheet-3); transition: background .2s; }
.adm .sw::after, .adm-sheet .sw::after { content: ""; position: absolute; left: 4px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.adm .sw.on::before, .adm-sheet .sw.on::before { background: var(--accent); }
.adm .sw.on::after, .adm-sheet .sw.on::after { transform: translateX(20px); background: var(--ink); }
.adm .sw:focus-visible::before, .adm-sheet .sw:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm .tg, .adm-sheet .tg { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 16px; min-height: 60px; }
.adm .tg:first-child, .adm-sheet .tg:first-child { border-top: 0; }
.adm .tg small, .adm-sheet .tg small { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }
.adm .actions, .adm-sheet .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.adm .actions.end { justify-content: flex-end; }
.adm .saved { font-size: 14px; color: var(--up); opacity: 0; transition: opacity .3s; }
.adm .saved.on { opacity: 1; }

/* ---------- filters ---------- */
.adm .filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.adm .filters button { height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; font-weight: 500; color: var(--text-2); background: var(--sheet-2); transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; }
.adm .filters button:hover { color: var(--text); }
.adm .filters button.on { background: var(--sheet-4, var(--sheet-3)); color: var(--text); }
.adm .filters .n { font-size: 13px; color: var(--text-3); }
.adm .filters button.on .n { color: var(--text-2); }
.adm .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.adm .search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.adm .search .input { padding-left: 44px; height: 48px; }
.adm .search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }

/* ---------- lists / tables ---------- */
.adm .tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm .tbl th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; text-align: right; padding: 4px 10px 12px; white-space: nowrap; }
.adm .tbl th:first-child, .adm .tbl td:first-child { text-align: left; padding-left: 0; }
.adm .tbl th:last-child, .adm .tbl td:last-child { padding-right: 0; }
.adm .tbl td { padding: 15px 10px; border-top: 1px solid var(--hair); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.adm .tbl td.l { text-align: left; }
.adm .tbl td .sub { display: block; font-size: 14px; color: var(--text-3); margin-top: 3px; font-family: var(--ui); }
.adm .tbl tr.click { cursor: pointer; transition: background .15s; }
.adm .tbl tr.click:hover td { background: rgba(255, 255, 255, .02); }
.adm .tbl .amt { font-family: var(--display); font-size: 17px; letter-spacing: -.015em; }
.adm .inv-who { display: block; }
.adm .inv-who b { display: block; font-weight: 500; }
.adm .inv-who small { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }

/* stacked rows (phone cards / queues) */
.adm .rows { display: flex; flex-direction: column; }
.adm .qrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 18px 0; border-top: 1px solid var(--hair); align-items: start; }
.adm .qrow:first-child { border-top: 0; }
.adm .qrow .t { font-size: 16px; font-weight: 500; line-height: 1.3; }
.adm .qrow .s { font-size: 14px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.adm .qrow .s .mono { font-size: 13px; color: var(--text-2); }
.adm .qrow .amt { font-family: var(--display); font-size: 26px; font-weight: 300; letter-spacing: -.03em; text-align: right; white-space: nowrap; line-height: 1.05; }
.adm .qrow .amt small { display: block; font-family: var(--ui); font-size: 14px; color: var(--text-3); margin-top: 6px; letter-spacing: 0; }
.adm .qrow .act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.adm .qrow .act .btn { min-width: 150px; }
.adm .qrow.click { cursor: pointer; }
.adm .qrow.click:hover .t { color: var(--accent); }
.adm .qrow .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- empty / error / loading ---------- */
.adm .empty { padding: 34px 20px; text-align: center; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.adm .empty svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--text-3); }
.adm .empty b { display: block; color: var(--text); font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.adm .error-box { padding: 18px 20px; border-radius: var(--r-s); background: var(--down-bg); color: var(--text); font-size: 15.5px; line-height: 1.5; display: flex; gap: 14px; align-items: flex-start; }
.adm .error-box svg { width: 20px; height: 20px; flex: none; color: var(--down); margin-top: 2px; }
.adm .error-box .btn { margin-left: auto; flex: none; }
.adm .note-box { padding: 16px 18px; border-radius: var(--r-s); background: var(--sheet-2); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.adm .note-box b { color: var(--text); font-weight: 500; }
.adm .note-box.warn { background: var(--warn-bg); color: #f1dcb3; }
.adm .note-box.ok { background: var(--up-bg); color: #c6f1dc; }

.lb-skel { display: grid; gap: 14px; padding: 6px 0; }
.lb-skel-line { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--sheet-2) 0%, var(--sheet-3) 50%, var(--sheet-2) 100%); background-size: 200% 100%; animation: lb-shimmer 1.4s infinite linear; }
.lb-skel-line.tall { height: 44px; }
@keyframes lb-shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { .lb-skel-line { animation: none; background: var(--sheet-2); } }

/* ---------- detail list ---------- */
.adm .dl, .adm-sheet .dl { display: grid; gap: 0; }
.adm .dl > div, .adm-sheet .dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 15.5px; align-items: baseline; }
.adm .dl > div:first-child, .adm-sheet .dl > div:first-child { border-top: 0; }
.adm .dl > div > span:first-child, .adm-sheet .dl > div > span:first-child { color: var(--text-2); flex: none; }
.adm .dl > div > span:last-child, .adm-sheet .dl > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.adm-sheet .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.adm-sheet .stat { padding: 16px; border-radius: 16px; background: var(--sheet-2); }
.adm-sheet .stat .k { font-size: 14px; color: var(--text-2); }
.adm-sheet .stat .v { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: -.025em; margin-top: 6px; white-space: nowrap; }
.adm-sheet .stat .v small { font-size: .6em; color: var(--text-2); }
.adm-sheet .section { margin-top: 26px; }
.adm-sheet .section > .lbl { display: block; margin-bottom: 10px; }
.adm-sheet .foot { position: sticky; bottom: 0; margin: 20px -28px -28px; padding: 16px 28px calc(20px + env(safe-area-inset-bottom)); background: var(--sheet); border-top: 1px solid var(--hair); }
/* pills inside sheets, whichever kit built the sheet */
.adm-sheet .pill { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13.5px; font-weight: 500; white-space: nowrap; background: var(--sheet-2); color: var(--text-2); }
.adm-sheet .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.adm-sheet .pill.ok { background: var(--up-bg); color: var(--up); }
.adm-sheet .pill.warn { background: var(--warn-bg); color: var(--warn); }
.adm-sheet .pill.bad { background: var(--down-bg); color: var(--down); }
.adm-sheet .pill.accent { background: var(--accent); color: var(--ink); }
.adm-sheet .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.adm-sheet .mono { font-family: var(--mono); font-size: .94em; word-break: break-all; }
.adm-sheet .muted { color: var(--text-2); } .adm-sheet .small { font-size: 14px; } .adm-sheet .ok { color: var(--up); } .adm-sheet .warn-t { color: var(--warn); }
.adm-sheet .note-box { padding: 16px 18px; border-radius: var(--r-s); background: var(--sheet-2); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.adm-sheet .note-box b { color: var(--text); font-weight: 500; }
.adm-sheet .note-box.warn { background: var(--warn-bg); color: #f1dcb3; }
.adm-sheet .note-box.ok { background: var(--up-bg); color: #c6f1dc; }
.adm-sheet .qrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--hair); align-items: center; }
.adm-sheet .qrow:first-child { border-top: 0; }
.adm-sheet .qrow .t { font-size: 16px; font-weight: 500; } .adm-sheet .qrow .s { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.adm-sheet .qrow.click:hover .t { color: var(--accent); }
.adm-sheet .hidden { display: none !important; }
.adm-sheet .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.adm-sheet .link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }

/* ---------- positions ---------- */
.adm .alloc { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 4px 0 18px; background: var(--sheet-2); }
.adm .alloc i { display: block; height: 100%; transition: width var(--dur-roll, 1.2s) var(--ease-out); }
.adm .glyph { width: 38px; height: 38px; border-radius: 50%; background: var(--sheet-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); flex: none; position: relative; }
.adm .glyph i { position: absolute; left: -3px; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; }
.adm .asset { display: flex; align-items: center; gap: 12px; }
.adm .asset b { display: block; font-weight: 500; }
.adm .asset small { font-size: 14px; color: var(--text-3); }

/* ---------- audit ---------- */
.adm .aud { display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; padding: 15px 0; border-top: 1px solid var(--hair); font-size: 15px; align-items: start; }
.adm .aud:first-child { border-top: 0; }
.adm .aud time { color: var(--text-2); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm .aud .what { font-weight: 500; }
.adm .aud .by { font-size: 14px; color: var(--text-3); margin-top: 3px; }
.adm .aud details { margin-top: 8px; }
.adm .aud summary { font-size: 14px; color: var(--text-2); cursor: pointer; list-style: none; padding: 6px 0; }
.adm .aud summary::-webkit-details-marker { display: none; }
.adm .aud pre { font-family: var(--mono); font-size: 13px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; background: var(--sheet-2); border-radius: 12px; padding: 12px 14px; margin-top: 6px; line-height: 1.5; }

/* ---------- treasury confirm ---------- */
.adm .addr-check, .adm-sheet .addr-check { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 20px; border-radius: 16px; background: var(--sheet-2); text-align: center; }
.adm .addr-check .big4, .adm-sheet .addr-check .big4 { font-family: var(--mono); font-size: 34px; font-weight: 500; color: var(--accent); letter-spacing: .04em; }
.adm .addr-check .lbl, .adm-sheet .addr-check .lbl { display: block; margin-bottom: 8px; }
.adm .addr-check .dots, .adm-sheet .addr-check .dots { color: var(--text-3); font-size: 22px; letter-spacing: .2em; }
.adm .addr-full, .adm-sheet .addr-full { font-family: var(--mono); font-size: 14.5px; line-height: 1.7; color: var(--text-2); word-break: break-all; margin-top: 14px; text-align: center; }
.adm .addr-full em, .adm-sheet .addr-full em { font-style: normal; color: var(--accent); font-weight: 500; }

/* ---------- footer ---------- */
.adm-foot { margin: 36px 0 0; font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 780px; }

/* ---------- sheet (fallback kit) ---------- */
.lb-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 80; opacity: 0; transition: opacity .35s; }
.lb-scrim.on { opacity: 1; }
.lb-sheet { position: fixed; top: 12px; right: 12px; bottom: 12px; width: 540px; max-width: calc(100vw - 24px); background: var(--sheet); border-radius: 24px; z-index: 81; display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 24px)); transition: transform .45s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); color: var(--text); font-size: 16px; }
.lb-sheet.is-wide { width: 720px; }
.lb-sheet.on { transform: none; }
.lb-handle { display: none; }
.lb-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 26px 8px; }
.lb-sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.lb-x { width: 44px; height: 44px; border-radius: 50%; background: var(--sheet-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.lb-x:hover { color: var(--text); background: var(--sheet-3); }
.lb-sheet-body { padding: 14px 28px 28px; overflow-y: auto; flex: 1; scrollbar-width: thin; overscroll-behavior: contain; }
html.lb-sheet-open, html.lb-sheet-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lb-sheet, .lb-scrim { transition: none; } }

/* ---------- toast (fallback kit) ---------- */
.lb-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); background: var(--accent); color: var(--ink); padding: 13px 20px; border-radius: 99px; font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .3s, transform .3s; z-index: 95; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.lb-toast.on { opacity: 1; transform: translate(-50%, 0); }
.lb-toast.is-bad { background: var(--down); color: #fff; }

/* ---------- section enter ---------- */
.adm-body > * { animation: adm-in var(--dur, .4s) var(--ease-out) both; }
@keyframes adm-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .adm .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm .kpi .v { font-size: 38px; }
  .adm .kpi.hero .v { font-size: 56px; }
  .adm-grid > .span-8, .adm-grid > .span-7, .adm-grid > .span-6, .adm-grid > .span-5, .adm-grid > .span-4, .adm-grid > .span-3 { grid-column: span 12; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .adm { padding: 4px 16px 120px; }
  .adm-head { margin: 12px 0 14px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .adm-head h1 { font-size: 30px; }
  .adm-treasury { text-align: left; }
  .adm-nav { margin: 0 -16px 16px; padding: 2px 16px 6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); scroll-snap-type: x proximity; scroll-padding: 16px; }
  .adm-nav a { scroll-snap-align: start; }
  .adm .sheet { padding: 20px 18px; }
  .adm .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm .kpi { min-height: 128px; }
  .adm .kpi .v { font-size: 30px; margin: 10px 0 8px; }
  .adm .kpi.hero { grid-column: 1 / -1; }
  .adm .kpi.hero .v { font-size: 50px; }
  .adm .tbl.resp thead { display: none; }
  .adm .tbl.resp tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 0; border-top: 1px solid var(--hair); }
  .adm .tbl.resp tr:first-child { border-top: 0; }
  .adm .tbl.resp td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
  .adm .tbl.resp td[data-k]::before { content: attr(data-k); display: block; font-size: 13px; color: var(--text-3); margin-bottom: 1px; }
  .adm .tbl.resp td.r { text-align: right; }
  .adm .tbl.resp td.hide-s { display: none; }
  .adm .tbl.resp td.full { grid-column: 1 / -1; }
  .adm .qrow { grid-template-columns: 1fr; gap: 6px; }
  .adm .qrow .amt { order: -1; text-align: left; font-size: 30px; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .adm .qrow .amt small { margin-top: 0; }
  .adm .qrow .act { margin-top: 10px; }
  .adm .flag { display: flex; width: 100%; align-items: flex-start; line-height: 1.4; }
  .adm .flag svg { margin-top: 2px; }
  .adm .qrow .meta { width: 100%; }
  .adm .tbl.resp td.r { text-align: left; }
  .adm .tbl.resp td[data-k='Value'], .adm .tbl.resp td[data-k='Invested'] { text-align: right; }
  .adm .qrow .act .btn { flex: 1; min-width: 0; }
  .adm .row2 { grid-template-columns: 1fr; }
  .adm .aud { grid-template-columns: 1fr; gap: 4px; }
  .adm .addr-check, .adm-sheet .addr-check { padding: 16px; gap: 8px; }
  .adm .addr-check .big4, .adm-sheet .addr-check .big4 { font-size: 26px; }
  .adm .toolbar .search { max-width: none; width: 100%; }
  .lb-sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 94dvh; height: auto; border-radius: 24px 24px 0 0; transform: translateY(105%); }
  .lb-sheet.is-wide { width: auto; }
  .lb-handle { display: block; width: 40px; height: 4px; border-radius: 9px; background: var(--sheet-3); margin: 10px auto 0; }
  .lb-sheet-head { padding: 12px 20px 4px; }
  .lb-sheet-head h2 { font-size: 24px; }
  .lb-sheet-body { padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); }
  .adm-sheet .foot { margin: 20px -20px calc(-24px - env(safe-area-inset-bottom)); padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
  .lb-toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- contested deposits: claims, competing notices, unverified public hashes ---------- */
.adm .flag.bad, .adm-sheet .flag.bad { background: var(--down-bg); color: var(--down); }
.adm-sheet .flag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 500; line-height: 1.4; }
.adm-sheet .flag svg { width: 16px; height: 16px; flex: none; }
.adm .qrow .meta + .claims, .adm .qrow .meta + .flag, .adm .claims + .flag, .adm .match .meta + .claims { margin-top: 10px; }
.adm .claims, .adm-sheet .claims { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--sheet-2); margin-top: 10px; }
.adm .claims .lbl, .adm-sheet .claims .lbl { display: block; margin-bottom: 2px; }
.adm .claims .s, .adm-sheet .claims .s { margin-top: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; word-break: break-word; }
.adm .claims .s b, .adm-sheet .claims .s b { color: var(--text); font-weight: 500; }
.adm .claims.competing, .adm-sheet .claims.competing { background: var(--warn-bg); } .adm .claims.competing .s, .adm-sheet .claims.competing .s { color: #f1dcb3; } .adm .claims.competing .lbl, .adm-sheet .claims.competing .lbl { color: var(--warn); }
.adm-sheet .section > .claims { margin-top: 0; }
.adm .flag.bad { display: inline-flex; margin-top: 10px; }
.adm .qrow .act.matches { display: grid; gap: 10px; }
.adm .match { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--sheet-2); }
.adm .match > .s { margin-top: 0; }
.adm .match .claims { background: var(--sheet-3); margin-top: 0; }
.adm .match .flag.bad { margin-top: 0; }
.adm .match .act { margin-top: 2px; }
.adm .match .act .btn { width: 100%; min-width: 0; }
.adm-sheet .qrow .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-sheet .gate .input { font-size: 18px; }
@media (max-width: 760px) {
  .adm .flag.bad, .adm-sheet .flag { display: flex; width: 100%; align-items: flex-start; }
  .adm-sheet .qrow .tags { justify-content: flex-start; }
  .adm .qrow .act .btn.wide-s { flex: 1 1 100%; }
  .adm .qrow .meta .pill, .adm .match .meta .pill { white-space: normal; height: auto; min-height: 28px; padding: 4px 11px; line-height: 1.3; text-align: left; }
  .adm .match .act .btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 14px; line-height: 1.3; }
}

/* Tablets and small laptops (761–1300px): wide admin tables scroll inside their card instead of pushing the page sideways. */
@media (min-width: 761px) and (max-width: 1300px) {
  .adm .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- admin terminal (Overview) ---------- */
.adm .kpi .inv-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; font-size: 40px; line-height: 1; }
.adm .kpi .inv-count b { font-weight: 300; }
.adm .kpi .inv-count small { font-family: var(--ui); font-size: 14px; color: var(--text-2); letter-spacing: 0; margin-right: 10px; }
.adm .kpi .inv-count .sep { display: none; }
.adm .kpi.attn .inv-count b.warn-t { color: var(--warn); }
.adm .kpi.attn .v { color: var(--text); }

/* sign-up link card */
.adm .adm-linkcard .apply-url { display: block; margin: 16px 0 12px; padding: 14px 16px; border-radius: var(--r-s, 14px); background: var(--sheet-2); color: var(--text); font-size: 15px; line-height: 1.45; word-break: break-all; text-decoration: none; border: 1px solid var(--hair); }
.adm .adm-linkcard .apply-url:hover { border-color: var(--hair-2); }
.adm .copy-big { height: 56px; font-size: 17px; }
.adm .adm-linkcard .tg { border-top: 1px solid var(--hair); }

/* applications */
.adm .qrow.app { grid-template-columns: 1fr; gap: 10px; }
.adm .qrow.app .act { margin-top: 2px; }
.adm .qrow.app .act .btn { min-width: 0; }
.adm .qrow.app .act .hold { padding-right: 18px; }
.adm .answers { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.adm .answers .ans { font-size: 15px; display: grid; gap: 2px; }
.adm .answers .ans small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.adm .reject { padding: 16px; border-radius: var(--r-s, 14px); background: var(--down-bg); margin-top: 4px; }
.adm .reject .field { margin-bottom: 12px; }

/* all investors */
.adm .tbl.inv th:nth-child(2), .adm .tbl.inv td:nth-child(2) { text-align: left; }
.adm .tbl.inv th:last-child, .adm .tbl.inv td:last-child { text-align: left; padding-left: 18px; }
.adm .tfoot { padding-top: 14px; border-top: 1px solid var(--hair); margin-top: 2px; }

/* live activity */
.adm .feed .frow { display: grid; grid-template-columns: 10px 1fr auto; gap: 0 14px; padding: 15px 0; border-top: 1px solid var(--hair); align-items: start; }
.adm .feed .frow:first-child { border-top: 0; }
.adm .feed .frow .dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); margin-top: 6px; }
.adm .feed .frow.in .dot { background: var(--up); }
.adm .feed .frow.out .dot { background: var(--accent); }
.adm .feed .frow.earn .dot { background: var(--accent-2); }
.adm .feed .frow.warn .dot { background: var(--warn); }
.adm .feed .frow.bad .dot { background: var(--down); }
.adm .feed .frow .t { font-size: 16px; font-weight: 500; line-height: 1.35; }
.adm .feed .frow .s { font-size: 14px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.adm .feed .frow time { font-size: 14px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.adm .feed .frow.click { cursor: pointer; }
.adm .feed .frow.click:hover .t { color: var(--accent); }

/* queues + treasury + watcher */
.adm .queues { display: grid; gap: 8px; }
.adm .qbtn { display: grid; grid-template-columns: 56px 1fr 18px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 16px; background: var(--sheet-2); text-align: left; color: var(--text); transition: background .2s; }
.adm .qbtn:hover { background: var(--sheet-3); }
.adm .qbtn .n { font-size: 32px; font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--text-2); }
.adm .qbtn.hot .n { color: var(--warn); }
.adm .qbtn b { display: block; font-weight: 500; font-size: 15.5px; }
.adm .qbtn small { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 2px; line-height: 1.35; }
.adm .qbtn .go { width: 16px; height: 16px; color: var(--text-3); }
.adm .tres { display: grid; gap: 0; }
.adm .tre { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 15px; min-height: 52px; }
.adm .tre:first-child { border-top: 0; }
.adm .tre > span:first-child { color: var(--text-2); flex: none; }
.adm .tre .mono { font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; word-break: normal; }
.adm .tre .mono .btn { height: 34px; padding: 0 10px; font-size: 13px; }

@media (max-width: 1180px) {
  .adm .kpi.wide .inv-count { font-size: 34px; }
}
@media (max-width: 760px) {
  .adm .kpi.wide { grid-column: 1 / -1; }
  .adm .kpi .inv-count { font-size: 30px; gap: 0; }
  .adm .kpi .inv-count small { margin-right: 8px; }
  .adm .toolbar .hint { width: 100%; }
  .adm .feed .frow { grid-template-columns: 10px 1fr; }
  .adm .feed .frow time { grid-column: 2; padding-top: 4px; }
  .adm .tbl.resp.inv td[data-k='Balance'] { text-align: right; }
  .adm .tbl.resp.inv td[data-k='Status'], .adm .tbl.resp.inv td[data-k='Last activity'] { grid-column: 1 / -1; }
  .adm .qrow.app .act .btn { flex: 1 1 100%; }
  .adm .tre { flex-direction: column; align-items: flex-start; gap: 6px; }
  .adm .tre .mono { word-break: break-all; }
}
/* long emails and IDs never widen the page (320px phones) */
.adm .feed .frow .s, .adm .feed .frow .t, .adm .qrow .s, .adm .qrow .t, .adm .inv-who small, .adm .inv-who b, .adm .tg small { overflow-wrap: anywhere; }

/* deposit/deposit.css */
/* Lunar Base — Add funds flow. Observatory look. Everything scoped under .dp */
.dp { --dp-pad: 4px; display: flex; flex-direction: column; min-height: 100%; color: var(--text); font-size: 16px; line-height: 1.5; }
.dp * { min-width: 0; }
.dp .dp-view { animation: dp-in var(--dur, .45s) var(--ease-out, cubic-bezier(.16,1,.3,1)) both; }
.dp .dp-view.dp-back { animation-name: dp-in-back; }
@keyframes dp-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes dp-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dp .dp-view { animation: none; } }

/* header: our back arrow lives in the sheet's own header row */
.dp-sheet .dr-h { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.dp-sheet .dr-h h2, .dp-sheet .dr-h .sheet-title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.dp-sheet .dr-h .x { margin-left: auto; }
.dp-sheet .dr-b { display: flex; flex-direction: column; }
.dp-sheet .dr-b > .dp { flex: 1; }
.dp-backbtn { width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s; flex: none; }
.dp-backbtn:hover { background: var(--sheet-2); color: var(--text); }
.dp-backbtn svg { width: 24px; height: 24px; }
.dp-stepnum { font-size: 14px; color: var(--text-3); letter-spacing: .02em; margin: 2px 0 6px; }
.dp-lead { font-size: 16px; color: var(--text-2); line-height: 1.5; margin: 0 0 20px; max-width: 48ch; text-wrap: pretty; }
.dp-lead b { color: var(--text); font-weight: 500; }

/* amount */
.dp-amt { display: flex; align-items: baseline; gap: 6px; padding: 22px 22px 18px; border-radius: var(--r-s, 14px); background: var(--sheet-2); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.dp-amt:focus-within { border-color: rgba(236,229,211,.45); background: var(--sheet-3); }
.dp-amt .dp-cur { font-family: var(--display); font-weight: 300; font-size: 44px; letter-spacing: -.03em; color: var(--text-3); line-height: 1; }
.dp-amt input { flex: 1; width: 100%; background: none; border: 0; outline: none; font-family: var(--display); font-weight: 300; font-size: 52px; letter-spacing: -.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; padding: 0; }
.dp-amt input::placeholder { color: var(--text-3); opacity: 1; }
.dp-amt .dp-unit { font-size: 16px; color: var(--text-3); font-weight: 500; letter-spacing: .02em; }
.dp-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dp-chip { height: 46px; border-radius: 99px; background: var(--sheet-2); color: var(--text-2); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.dp-chip:hover { color: var(--text); background: var(--sheet-3); }
.dp-chip.on { background: var(--moon); color: var(--ink); }
.dp-est { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k v" "s s"; gap: 2px 18px; align-items: center; margin-top: 14px; padding: 16px 18px 14px; border-radius: var(--r-s, 14px); background: var(--sheet-2); }
.dp-est .dp-est-k { grid-area: k; font-size: 15px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-est .dp-est-v { grid-area: v; font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: -.025em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dp-est .dp-est-s { grid-area: s; font-size: 14px; color: var(--text-3); line-height: 1.45; margin-top: 6px; }
.dp-est .dp-tag { margin-right: 0; }
.dp-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; border: 1px dashed rgba(255,255,255,.22); color: var(--text-2); font-size: 12px; font-weight: 500; letter-spacing: .04em; vertical-align: 2px; margin-right: 8px; }

/* big choice cards */
.dp-cards { display: grid; gap: 10px; }
.dp-card { display: grid; grid-template-columns: 48px 1fr 24px; gap: 16px; align-items: center; width: 100%; min-height: 84px; padding: 18px 18px 18px 20px; border-radius: 18px; background: var(--sheet-2); border: 1px solid transparent; text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.dp-card:hover { background: var(--sheet-3); }
.dp-card:active { transform: scale(.992); }
.dp-card.on { border-color: rgba(236,229,211,.5); background: var(--sheet-3); }
.dp-card:disabled { opacity: .6; cursor: default; }
.dp-card:disabled:hover { background: var(--sheet-2); }
.dp-card .dp-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sheet-3); display: grid; place-items: center; color: var(--text); }
.dp-card.on .dp-ico, .dp-card:hover .dp-ico { background: var(--sheet-4, #272a32); }
.dp-card .dp-ico svg { width: 26px; height: 26px; }
.dp-card .dp-ico img { width: 28px; height: 28px; border-radius: 7px; }
.dp-card b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.dp-card p { font-size: 15px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.dp-card p.dp-soon { color: var(--warn); }
.dp-card .dp-chev { color: var(--text-3); width: 24px; height: 24px; }
.dp-card .dp-walls { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dp-card .dp-walls span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 99px; background: var(--sheet-3); font-size: 13px; color: var(--text-2); font-weight: 500; }
.dp-card .dp-walls img { width: 18px; height: 18px; border-radius: 4px; }
.dp-card .dp-walls i { width: 18px; height: 18px; border-radius: 50%; background: var(--moon-2); display: inline-block; }

/* steps list (exchange guide + wallet checklist) */
.dp-steps { display: grid; gap: 0; margin: 4px 0 18px; }
.dp-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hair); position: relative; }
.dp-step:first-child { border-top: 0; }
.dp-step .dp-n { width: 34px; height: 34px; border-radius: 50%; background: var(--sheet-2); display: grid; place-items: center; font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--text-2); }
.dp-step.done .dp-n { background: var(--moon); color: var(--ink); }
.dp-step.now .dp-n { box-shadow: inset 0 0 0 1.5px var(--moon); color: var(--text); }
.dp-step .dp-n svg { width: 16px; height: 16px; }
.dp-step b { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; padding-top: 5px; }
.dp-step p { font-size: 15px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.dp-step p code, .dp-step b code { font-family: var(--mono); font-size: .92em; background: var(--sheet-2); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.dp-step .dp-act { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dp-step.todo { opacity: .55; }

/* address block */
.dp-addr { padding: 20px; border-radius: 18px; background: var(--sheet-2); display: grid; grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; }
.dp-qr { width: 208px; height: 208px; padding: 12px; border-radius: 16px; background: #f4f1ea; box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); }
.dp-qr svg { width: 100%; height: 100%; display: block; }
.dp-addr-l { font-size: 14px; color: var(--text-2); }
.dp-addr-t { font-family: var(--mono); font-size: 17px; line-height: 1.7; color: var(--text); word-break: keep-all; overflow-wrap: normal; letter-spacing: .02em; max-width: 36ch; }
.dp-addr-t em { font-style: normal; color: var(--moon); background: rgba(236,229,211,.1); border-radius: 6px; padding: 1px 4px; margin: 0 -1px; box-shadow: inset 0 -2px 0 var(--moon); }
.dp-check { font-size: 14px; color: var(--text-2); line-height: 1.5; max-width: 34ch; }
.dp-check i { display: inline-block; width: 16px; height: 11px; margin: 0 8px 0 0; vertical-align: -1px; background: rgba(236,229,211,.1); box-shadow: inset 0 -2px 0 var(--moon); border-radius: 3px; }
.dp-copy { height: 52px; padding: 0 22px; font-size: 16px; }
.dp-addr-hero .dp-addr-l { font-size: 15px; }
.dp-copy svg { width: 18px; height: 18px; }

/* warnings / notes */
.dp-warn { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--warn-bg, rgba(236,194,122,.1)); color: #f1dcb1; font-size: 15px; line-height: 1.5; margin-top: 12px; }
.dp-warn svg { width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }
.dp-warn b { color: #f7e6c4; font-weight: 600; }
.dp-note { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--sheet-2); color: var(--text-2); font-size: 15px; line-height: 1.5; margin-top: 12px; }
.dp-note svg { width: 22px; height: 22px; color: var(--text-3); margin-top: 1px; }
.dp-err { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--down-bg, rgba(255,107,99,.11)); color: #ffc4c0; font-size: 15px; line-height: 1.5; margin-top: 12px; }
.dp-err svg { width: 22px; height: 22px; color: var(--down); margin-top: 1px; }
.dp-err b { color: #ffd9d6; font-weight: 600; display: block; margin-bottom: 2px; }

/* generic fields */
.dp-field { display: block; margin-top: 14px; }
.dp-field > span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 7px; }
.dp-input { width: 100%; height: 54px; border-radius: var(--r-s, 14px); background: var(--sheet-2); border: 1px solid transparent; padding: 0 16px; font-size: 16px; color: var(--text); outline: none; transition: border-color .2s, background .2s; }
.dp-input.mono { font-family: var(--mono); font-size: 15px; }
.dp-input:focus { border-color: rgba(236,229,211,.45); background: var(--sheet-3); }
.dp-input::placeholder { color: var(--text-3); opacity: 1; }
.dp-input[aria-invalid="true"] { border-color: var(--down); }
.dp-hint { font-size: 14px; color: var(--text-3); margin-top: 7px; line-height: 1.45; }
.dp-radios { display: grid; gap: 8px; margin-top: 8px; }
.dp-radio { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 12px 14px; border-radius: 14px; background: var(--sheet-2); border: 1px solid transparent; text-align: left; font-size: 16px; }
.dp-radio.on { border-color: rgba(236,229,211,.45); }
.dp-radio i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text-3); display: grid; place-items: center; }
.dp-radio.on i { border-color: var(--moon); }
.dp-radio.on i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--moon); }

/* buttons */
.dp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 22px; border-radius: 99px; font-size: 17px; font-weight: 500; letter-spacing: -.005em; transition: background .2s, opacity .2s, transform .1s, color .2s; position: relative; overflow: hidden; isolation: isolate; -webkit-user-select: none; user-select: none; }
.dp-btn:active { transform: scale(.985); }
.dp-btn:disabled { opacity: .45; cursor: default; transform: none; }
.dp-btn svg { width: 20px; height: 20px; }
.dp-btn-primary { background: var(--moon); color: var(--ink); }
.dp-btn-primary:hover:not(:disabled) { background: #f6f1e4; }
.dp-btn-ghost { background: var(--sheet-2); color: var(--text); }
.dp-btn-ghost:hover:not(:disabled) { background: var(--sheet-3); }
.dp-btn-sm { width: auto; height: 46px; font-size: 15px; padding: 0 18px; }
.dp-btn .dp-sub { font-size: 13px; font-weight: 400; opacity: .6; }
.dp-btn.dp-btn-stack { flex-direction: column; gap: 1px; height: 66px; line-height: 1.2; }
.dp-btn.dp-btn-stack .dp-sub:empty { display: none; }
.dp-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; font-size: 15px; color: var(--text-2); border-radius: 10px; }
.dp-link:hover { color: var(--text); }
.dp-link svg { width: 16px; height: 16px; }
.dp-link.center { width: 100%; }
.dp-actions { display: grid; gap: 8px; margin-top: 20px; }
.dp-actions.row { grid-template-columns: 1fr 1fr; }
/* hold-to-confirm (works with kit.holdToConfirm's classes and ours) */
.dp-btn.hold::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .5; transform-origin: left; transform: scaleX(0); z-index: -1; transition: transform .25s ease; }
.dp-btn.hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 1100ms) linear; }
.dp-btn.hold.done { background: var(--up); color: #04120a; }
.dp-btn.hold .dp-sub { opacity: .55; }
.dp-busy { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dp-spin .8s linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }

/* status */
.dp-status { text-align: center; padding: 10px 0 0; }
.dp-ind { position: relative; width: 120px; height: 120px; margin: 6px auto 22px; }
.dp-ind svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dp-ind .dp-ring { fill: none; stroke: var(--sheet-3); stroke-width: 2.5; }
.dp-ind .dp-prog { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.dp-ind .dp-disc { fill: var(--up); opacity: 0; transform: scale(.92); transform-origin: 50% 50%; transition: opacity .35s, transform .5s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.dp-ind .dp-ic { fill: none; stroke: var(--text); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.dp-ind.waiting .dp-ic-in, .dp-ind.confirming .dp-ic-in { opacity: 1; }
.dp-ind.waiting .dp-ic-in { animation: dp-nudge 2.4s ease-in-out infinite; }
@keyframes dp-nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.dp-ind.waiting .dp-prog { stroke: var(--text-3); stroke-dasharray: 30 322; animation: dp-sweep 2.8s linear infinite; }
@keyframes dp-sweep { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -352; } }
.dp-ind.quiet .dp-ic-clock { opacity: 1; stroke: var(--text-3); }
.dp-ind.quiet .dp-prog { opacity: 0; }
.dp-ind.review .dp-ic-clock { opacity: 1; stroke: var(--warn); }
.dp-ind.review .dp-ring { stroke: var(--warn); opacity: .55; }
.dp-ind.review .dp-prog { opacity: 0; }
.dp-ind.added .dp-disc { opacity: 1; transform: none; }
.dp-ind.added .dp-ring { stroke: var(--up); opacity: .35; }
.dp-ind.added .dp-prog, .dp-ind.added .dp-ic { opacity: 0; transition: opacity .25s; }
.dp-ind .dp-tick { fill: none; stroke: #04120a; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; }
.dp-ind.added .dp-tick { animation: dp-draw .7s var(--ease-out, cubic-bezier(.16,1,.3,1)) .25s forwards; }
@keyframes dp-draw { to { stroke-dashoffset: 0; } }
.dp-ind.added { animation: dp-pop .6s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
@keyframes dp-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dp-ind.waiting .dp-ic-in, .dp-ind.waiting .dp-prog, .dp-ind.added, .dp-ind.added .dp-tick { animation: none; }
  .dp-ind.waiting .dp-prog { stroke-dasharray: 30 322; stroke-dashoffset: 0; }
  .dp-ind.added .dp-tick { stroke-dashoffset: 0; }
}
.dp-status h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 8px; }
.dp-status .dp-big { font-family: var(--display); font-weight: 300; font-size: 54px; letter-spacing: -.04em; line-height: 1; margin: 14px 0 10px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start; }
.dp-status .dp-big .dp-cents { font-size: .45em; color: var(--text-2); margin-top: .12em; margin-left: .04em; }
.dp-status .dp-sub { font-size: 16px; color: var(--text-2); line-height: 1.5; max-width: 40ch; margin: 0 auto; }
.dp-status .dp-sub b { color: var(--text); font-weight: 500; }
.dp-meta { display: grid; gap: 0; margin: 22px 0 0; text-align: left; border-top: 1px solid var(--hair); }
.dp-meta .dp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.dp-meta .dp-row span:first-child { color: var(--text-2); }
.dp-meta .dp-row span:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.dp-meta .dp-row a { color: var(--text); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.dp-meta .dp-row a svg { width: 14px; height: 14px; color: var(--text-3); }
.dp-meta .dp-row .mono { font-size: 14px; }
.dp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-top: 16px; }
.dp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: dp-pulse 2s infinite; }
@keyframes dp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.dp-confbar { height: 4px; border-radius: 9px; background: var(--sheet-3); margin: 14px auto 0; overflow: hidden; width: 200px; }
.dp-confbar i { display: block; height: 100%; background: var(--text); border-radius: 9px; transition: width .6s var(--ease-out, ease); }

/* pending list on the first screen */
.dp-pending { margin: 0 0 22px; }
.dp-pending h4 { font-size: 14px; color: var(--text-2); font-weight: 500; margin: 0 0 8px; letter-spacing: .01em; }
.dp-pend { display: grid; grid-template-columns: 40px 1fr auto 20px; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--sheet-2); text-align: left; margin-bottom: 8px; border: 1px solid transparent; transition: background .2s; }
.dp-pend:hover { background: var(--sheet-3); }
.dp-pend .dp-pdot { width: 40px; height: 40px; border-radius: 50%; background: var(--sheet-3); display: grid; place-items: center; }
.dp-pend .dp-pdot i { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); animation: dp-pulse 2s infinite; }
.dp-pend .dp-pdot.ok i { background: var(--up); animation: none; }
.dp-pend b { display: block; font-size: 16px; font-weight: 500; }
.dp-pend small { display: block; font-size: 14px; color: var(--text-2); margin-top: 1px; }
.dp-pend .dp-pamt { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dp-pend svg { width: 20px; height: 20px; color: var(--text-3); }

/* skeletons */
.dp-skel { border-radius: 12px; background: linear-gradient(90deg, var(--sheet-2) 25%, var(--sheet-3) 50%, var(--sheet-2) 75%); background-size: 200% 100%; animation: dp-shimmer 1.6s linear infinite; }
@keyframes dp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dp-skel { animation: none; } }

/* footer disclosure on money screens */
.dp-foot { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--text-3); line-height: 1.55; }
.dp-divider { height: 1px; background: var(--hair); margin: 18px 0; }
.dp-spacer { flex: 1; }

/* empty / calm */
.dp-empty { text-align: center; padding: 28px 10px 10px; }
.dp-empty .dp-ind { width: 96px; height: 96px; margin-bottom: 16px; }
.dp-empty h3 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; }
.dp-empty p { font-size: 16px; color: var(--text-2); max-width: 36ch; margin: 0 auto; line-height: 1.5; }

/* desktop: two network cards side by side, roomier type */
@media (min-width: 761px) {
  .dp-sheet .dr-h h2, .dp-sheet .dr-h .sheet-title { font-size: 27px; }
  .dp-cards.two { grid-template-columns: 1fr 1fr; }
  .dp-cards.two .dp-card { grid-template-columns: 48px 1fr; grid-template-rows: auto 1fr; min-height: 150px; align-content: start; }
  .dp-cards.two .dp-card .dp-chev { display: none; }
  .dp-cards.two .dp-card .dp-ico { grid-row: 1; }
  .dp-cards.two .dp-card .dp-txt { grid-column: 1 / -1; }
  .dp-addr { grid-template-columns: 208px 1fr; text-align: left; justify-items: start; align-items: center; gap: 22px; }
  .dp-addr .dp-addr-side { display: grid; gap: 10px; justify-items: start; }
  .dp-addr-t { font-size: 16px; }
}
@media (max-width: 760px) {
  .dp-sheet .dr-h h2, .dp-sheet .dr-h .sheet-title { font-size: 23px; }
  .dp-actions.row { grid-template-columns: 1fr; }
  .dp-addr-hero { padding: 18px 16px; gap: 10px; }
  .dp-addr-hero .dp-addr-side { gap: 10px; width: 100%; }
  .dp-addr-hero .dp-addr-t { font-size: 18px; }
  .dp-addr-hero .dp-copy { width: 100%; height: 56px; font-size: 17px; }
  .dp-qr-wrap { margin-top: 6px; display: grid; justify-items: center; }
  .dp-qr-wrap[hidden] { display: none; }
  .dp-steps { margin-top: 18px; }
  .dp-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-amt input { font-size: 46px; }
  .dp-amt .dp-cur { font-size: 40px; }
  .dp-qr { width: 224px; height: 224px; }
  .dp-addr .dp-addr-side { display: grid; gap: 12px; justify-items: center; }
}

/* phone: open-in-wallet-app buttons */
.dp-btn.dp-app { justify-content: flex-start; gap: 14px; padding: 0 18px; }
.dp-btn.dp-app .dp-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,0,0,.12); display: grid; place-items: center; color: inherit; flex: none; }
.dp-btn.dp-app .dp-ico svg { width: 20px; height: 20px; }
.dp-btn.dp-app span:last-child { flex: 1; text-align: left; }
