/* ArrowScale. A listing terminal on Robinhood Chain.
   White paper, slate ink, cool hairlines, electric blue for action, emerald
   and rose for direction. IBM Plex Sans for words, IBM Plex Mono for every
   number, ticker and address. 13px base, square corners, dense. */

:root {
  --paper: #ffffff;
  --tint: #f8fafc;
  --tint-2: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --mute: #64748b;
  --mute-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --blue: #2563eb;
  --blue-ink: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-line: #bfdbfe;
  --up: #059669;
  --down: #e11d48;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: 16px;
  --top-h: 46px;
  --r: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/1.45 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding: 0 var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
a:hover { color: var(--blue-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }
code, .mono, .n { font-family: var(--mono); font-variant-numeric: lining-nums tabular-nums; }
b, strong { font-weight: 600; }
svg { display: inline-block; vertical-align: -0.15em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
::selection { background: var(--blue-bg); }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

/* ---- utilities -------------------------------------------------------- */
.lbl { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.mute { color: var(--mute); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--mute); }
.as-wrap { max-width: var(--wrap); margin: 0 auto; width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ----------------------------------------------------------- */
.as-top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.as-top-in { max-width: var(--wrap); margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 22px; }
.as-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.as-brand:hover { color: var(--ink); }
.as-brand svg { width: 22px; height: 22px; }
.as-nav { display: flex; gap: 2px; height: 100%; }
.as-nav a { display: inline-flex; align-items: center; padding: 0 10px; text-decoration: none; color: var(--mute); font-weight: 500; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
.as-nav a:hover { color: var(--ink); }
.as-nav a.is-on { color: var(--ink); border-bottom-color: var(--blue); }
.as-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.as-chain { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--ink-2); letter-spacing: 0.02em; }
.as-chain i { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; display: inline-block; }
.as-tools .as-burger { display: none; }

/* market tape */
.as-tape { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--tint); }
.as-tape-in { max-width: var(--wrap); margin: 0 auto; height: 28px; display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font: 400 11px/1 var(--mono); color: var(--ink-2); }
.as-tape-in::-webkit-scrollbar { display: none; }
.as-tape-in > span { padding: 0 14px 0 0; margin-right: 14px; border-right: 1px solid var(--line-2); flex: none; }
.as-tape-in > span:last-child { border-right: 0; margin-left: auto; padding-right: 0; color: var(--mute); }
.as-tape-in b { font-weight: 500; color: var(--ink); }
.as-tape-in .up, .as-tape-in .down { font-weight: 500; }
.as-tape-in .tape-k { color: var(--mute); }

/* ---- main / footer ---------------------------------------------------- */
.as-main { max-width: var(--wrap); margin: 0 auto; width: 100%; padding: 20px 0 56px; flex: 1; }
.as-foot { border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 26px; color: var(--mute); font-size: 12px; }
.as-foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.as-foot-in b { color: var(--ink); }
.as-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.as-foot nav a { text-decoration: none; color: var(--ink-2); }
.as-foot-meta { grid-column: 1 / -1; font: 400 11px/1.5 var(--mono); color: var(--mute); }

/* toast, stamp */
.as-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px); opacity: 0; background: var(--ink); color: #fff; padding: 9px 14px; font: 500 12px/1.4 var(--sans); border-radius: var(--r); transition: opacity .18s, transform .18s; z-index: 60; max-width: min(92vw, 520px); pointer-events: none; }
.as-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.as-stamp { position: fixed; right: 12px; top: calc(var(--top-h) + 36px); z-index: 25; background: var(--paper); color: var(--blue-ink); border: 1px solid var(--blue); padding: 4px 8px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- buttons ---------------------------------------------------------- */
.as-btn, .as-copy, .tp-btn, .ip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink);
  font: 500 12px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; vertical-align: middle;
}
.as-btn:hover, .as-copy:hover, .tp-btn:hover, .ip-btn:hover { border-color: var(--ink); color: var(--ink); }
.as-btn:disabled, .tp-btn:disabled, .ip-btn:disabled { opacity: .45; cursor: default; border-color: var(--line-2); }
.as-btn-blue, .tp-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.as-btn-blue:hover, .tp-btn-primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.as-btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.as-btn-ink:hover { background: #000; color: #fff; }
.as-btn-sm { height: 22px; padding: 0 7px; font-size: 11px; }
.as-btn.is-connected { border-color: var(--blue); }
.as-btn.is-connected span { font-family: var(--mono); font-size: 11px; }
.as-btn.is-connected::before { content: ""; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.as-copy { height: 22px; padding: 0 7px; font-size: 11px; color: var(--ink-2); }
.as-copy.is-ok { border-color: var(--blue); color: var(--blue-ink); }
.as-copy-icon { width: 24px; padding: 0; }
.as-copy-icon span { display: none; }
.as-copy-icon.is-ok span { display: none; }
.as-btn-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: var(--r); font: 500 10px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge-listed { border-color: var(--blue-line); background: var(--blue-bg); color: var(--blue-ink); }
.badge-live { border-color: var(--blue); background: var(--blue); color: #fff; }
.badge-soon { border-color: var(--line-2); background: var(--tint); color: var(--mute); }
.badge-out { border-color: var(--line-2); background: var(--tint-2); color: var(--ink-2); }
.badge-ink { border-color: var(--ink); background: var(--ink); color: #fff; }
.pair { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pair b { color: var(--ink); font-weight: 500; }

/* ---- sections, ledgers ------------------------------------------------- */
.sec { margin: 0 0 22px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--ink); padding: 8px 0 10px; }
.sec-head h2, .sec-head h3 { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.sec-head .meta { margin-left: auto; font: 400 11px/1.2 var(--mono); color: var(--mute); text-align: right; }
.sec-head .meta a { color: var(--blue-ink); text-decoration: none; }
.sec-body { font-size: 13px; }
.sec-body p { max-width: 62ch; }
.ledger { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.ledger dt, .ledger dd { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ledger dt { color: var(--mute); padding-right: 18px; }
.ledger dd { font-family: var(--mono); font-size: 12px; text-align: right; }
.ledger dd .sub { display: block; font-size: 11px; color: var(--mute); }
.ledger dd .as-copy { margin-left: 6px; }
.ledger.is-loose dt, .ledger.is-loose dd { padding: 8px 0; }
.panel-ink { border: 1px solid var(--ink); padding: 12px; }
.panel { border: 1px solid var(--line); padding: 12px; }
.note { font-size: 12px; color: var(--mute); }
.note.is-warn { color: var(--ink); font-weight: 500; }
.note.is-ok { color: var(--blue-ink); }
.state { font-size: 12px; color: var(--mute); padding: 10px 0; }
.state-block { border: 1px dashed var(--line-2); padding: 22px 16px; text-align: center; color: var(--mute); font-size: 12.5px; }
.state-block b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.state-block .as-btn { margin-top: 10px; }
.stamp-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--blue-line); background: var(--blue-bg); color: var(--blue-ink); font-size: 12px; margin: 0 0 12px; }

/* ---- tables ----------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { text-align: left; padding: 0 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl th { height: 28px; background: var(--tint); font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--line); }
.tbl td { height: 42px; }
.tbl .r { text-align: right; }
.tbl td.n, .tbl td .n { font-family: var(--mono); font-size: 12px; }
.tbl tbody tr:hover { background: var(--tint); }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--ink); }
.tbl th button svg { width: 10px; height: 10px; opacity: .55; }
.tbl th[aria-sort] button svg { opacity: 1; color: var(--blue); }
.tbl th button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.tbl .idx { color: var(--mute-2); font-family: var(--mono); font-size: 11px; width: 28px; }
.tbl .row-link { text-decoration: none; font-weight: 600; color: var(--ink); }
.tbl .row-link:hover { color: var(--blue-ink); }
.tbl-dense td { height: 34px; }
.tbl tr.is-fresh { animation: as-tremble .5s ease; }
.tbl tr.is-fresh td { background: var(--blue-bg); transition: background 1.6s ease .2s; }
@keyframes as-tremble { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.tbl .sub { display: block; font-size: 11px; color: var(--mute); font-family: var(--mono); font-weight: 400; }

/* listing cell */
.lst { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo { width: 26px; height: 26px; flex: none; border: 1px solid var(--line); border-radius: var(--r); object-fit: cover; background: var(--tint); display: grid; place-items: center; font: 600 11px/1 var(--mono); color: var(--ink-2); text-decoration: none; overflow: hidden; }
.logo-lg { width: 48px; height: 48px; font-size: 18px; }
.lst-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.lst-txt .name { font-weight: 600; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.lst-txt .name:hover { color: var(--blue-ink); }
.lst-meta { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ca-m { display: none; }

/* sparkline */
.spark { width: 72px; height: 22px; display: block; }
.spark path { fill: none; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.spark .up { stroke: var(--up); }
.spark .down { stroke: var(--down); }
.spark .flat { stroke: var(--mute-2); }
.spark .area-up { fill: var(--up); opacity: .08; }
.spark .area-down { fill: var(--down); opacity: .08; }
.spark circle { fill: var(--mute-2); }

/* ---- feed ------------------------------------------------------------- */
.mast { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: end; padding: 6px 0 18px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.mast h1 { font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; max-width: 18ch; }
.mast .lede { margin: 12px 0 14px; max-width: 58ch; font-size: 13.5px; color: var(--ink-2); }
.mast .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mast .eyebrow .lbl { color: var(--blue-ink); }
.mast .eyebrow time { font: 400 11px/1 var(--mono); color: var(--mute); }
.mast-ledger dt { font-family: var(--sans); }
.mast-ledger dd { font-size: 14px; font-weight: 500; }
.mast-ledger dd .sub { font-weight: 400; }
.feed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.rail .sec { margin-bottom: 20px; }
.rail .tbl td { height: 32px; }
.rail .tbl th { border-top: 0; }
.switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.switch button { all: unset; cursor: pointer; padding: 0 12px; height: 26px; display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans); color: var(--mute); border-right: 1px solid var(--line-2); }
.switch button:last-child { border-right: 0; }
.switch button:hover { color: var(--ink); }
.switch button.is-on { background: var(--ink); color: #fff; }
.switch button .cnt { font: 400 11px/1 var(--mono); opacity: .8; }
.switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.feed-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.feed-bar .state { padding: 0; margin-left: auto; font-family: var(--mono); font-size: 11px; }
.feed-more { padding: 12px 0 0; }
.chg { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.chg-m { display: none; }
.c-idx { width: 28px; }
.c-spark { width: 84px; }
.c-ca { width: 64px; text-align: right; }
.terms dt { font-family: var(--sans); }

/* ---- token page ------------------------------------------------------- */
.sheet-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 0 14px; border-bottom: 1px solid var(--ink); }
.sheet-head h1 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sheet-head h1 .pair { font-size: 14px; font-weight: 500; }
.sheet-ids { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 12px; color: var(--mute); }
.sheet-ids code { font-size: 11.5px; color: var(--ink-2); word-break: break-all; }
.sheet-ids .id { display: inline-flex; align-items: center; gap: 6px; }
.sheet-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.qb { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--tint); margin: 16px 0 20px; }
.qb > div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.qb > div:last-child { border-right: 0; }
.qb .lbl { margin-bottom: 6px; display: block; }
.qb .v { font: 500 15px/1.2 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb .v.big { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.qb .sub { display: block; font: 400 11px/1.4 var(--mono); color: var(--mute); margin-top: 4px; }
.qb .last { background: var(--paper); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.embed { width: 100%; height: 440px; border: 1px solid var(--line); background: var(--tint); display: block; }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { font: 400 10px var(--mono); fill: var(--mute); }
.chart .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; }
.chart .area { fill: var(--blue); opacity: .06; }
.chart .vol { fill: var(--line-2); }
.chart .last-dot { fill: var(--blue); }
.chart .last-txt { font: 500 10.5px var(--mono); fill: var(--blue-ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.facts .ledger dt { font-family: var(--sans); }
.about { max-width: 66ch; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.order .sec-head { border-top: 0; padding-top: 0; }
.earn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.earn-row input { width: 64px; }
.inline-input { display: inline-flex; align-items: center; gap: 6px; }

/* ---- trade panel (PadTrade, tp- hooks) --------------------------------- */
.tp-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); margin-bottom: 12px; }
.tp-tab { all: unset; cursor: pointer; text-align: center; height: 28px; line-height: 28px; font: 500 12px/28px var(--sans); color: var(--mute); }
.tp-tab:first-child { border-right: 1px solid var(--line-2); }
.tp-tab.is-on { background: var(--ink); color: #fff; }
.tp-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tp-leg { border: 1px solid var(--line); padding: 8px 10px; }
.tp-leg-get { background: var(--tint); }
.tp-leg-top { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.tp-lbl { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.tp-bal { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 11px; }
.tp-btn-max { height: 20px; padding: 0 6px; font-size: 10.5px; }
.tp-amt { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tp-input { flex: 1; min-width: 0; font: 500 20px/1.2 var(--mono); border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0; }
.tp-input::placeholder { color: var(--mute-2); }
.tp-out { flex: 1; min-width: 0; font: 500 20px/1.2 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-out.is-dim { color: var(--mute-2); }
.tp-asset { font: 500 11px/1 var(--mono); color: var(--ink-2); border: 1px solid var(--line-2); padding: 4px 6px; background: var(--paper); }
.tp-mid { height: 6px; }
.tp-facts { margin: 12px 0 0; display: grid; }
.tp-fact { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.tp-fact dt { color: var(--mute); }
.tp-fact dd { margin: 0; font-family: var(--mono); text-align: right; }
.tp-fact dd.is-down { color: var(--down); }
.tp-hint { font-size: 11.5px; color: var(--mute); margin: 8px 0 0; }
.tp-slip { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 0; }
.tp-seg { display: inline-flex; border: 1px solid var(--line-2); }
.tp-seg button { all: unset; cursor: pointer; font: 500 11px/1 var(--mono); padding: 0 7px; height: 22px; display: inline-flex; align-items: center; color: var(--mute); border-right: 1px solid var(--line-2); }
.tp-seg button:last-child { border-right: 0; }
.tp-seg button.is-on { background: var(--ink); color: #fff; }
.tp-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tp-custom { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--mute); }
.tp-custom input { width: 70px; }
.tp-steps { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; margin: 12px 0 0; padding: 8px 10px; border: 1px solid var(--blue-line); background: var(--blue-bg); color: var(--blue-ink); }
.tp-steps i { font-style: normal; }
.tp-act { margin-top: 12px; }
.tp-act .tp-btn { width: 100%; height: 34px; font-size: 13px; }
.tp-note { font-size: 12px; margin: 8px 0 0; color: var(--mute); }
.tp-note.is-warn { color: var(--ink); font-weight: 500; }
.tp-cap { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; margin: 8px 0 0; color: var(--ink-2); }
.tp-cap i { font-style: normal; }
.tp-foot { font-size: 12px; margin: 8px 0 0; color: var(--mute); }
.tp-foot a { color: var(--blue-ink); }
.tp-empty { font-size: 12px; color: var(--mute); margin: 0; padding: 14px 0; }
.order.is-sample .tp-tabs, .order.is-sample .tp-leg, .order.is-sample .tp-facts, .order.is-sample .tp-slip, .order.is-sample .tp-act, .order.is-sample .tp-hint { opacity: .55; }

/* ---- forms ------------------------------------------------------------ */
input, textarea, select { font: 400 13px/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 8px; height: 30px; }
textarea { height: auto; padding: 6px 8px; resize: vertical; min-height: 60px; }
select { padding-right: 24px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-bg); }
input:disabled, textarea:disabled, select:disabled { background: var(--tint); color: var(--mute); }
input[inputmode="decimal"], input[inputmode="numeric"], input[spellcheck="false"], .n-input { font-family: var(--mono); font-size: 12.5px; }
input[type="checkbox"] { width: 14px; height: 14px; margin: 0 6px 0 0; accent-color: var(--blue); vertical-align: -2px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.fs { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.fs-head { border-top: 1px solid var(--ink); padding: 8px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.fs-head legend { float: left; width: 100%; padding: 0; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.fs-head legend span { float: right; font-weight: 400; color: var(--mute); text-transform: none; letter-spacing: 0; }
.fs-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 8px 0 16px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .lab { font-size: 12px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field label .hint, .field .lab .hint { font-weight: 400; color: var(--mute); font-family: var(--mono); font-size: 11px; }
.field .help { font-size: 11.5px; color: var(--mute); }
.err { color: var(--ink); font-weight: 500; font-size: 11.5px; min-height: 14px; }
.err:empty { display: none; }
.with-unit { display: flex; align-items: stretch; }
.with-unit input { flex: 1; min-width: 0; border-right: 0; border-radius: var(--r) 0 0 var(--r); }
.with-unit span { display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 0 var(--r) var(--r) 0; background: var(--tint); font: 500 11px/1 var(--mono); color: var(--ink-2); }
.form-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0 0; }
.form-act .as-btn { height: 30px; padding: 0 16px; font-size: 13px; }
.sheet-side { position: sticky; top: calc(var(--top-h) + 16px); }
.term .ledger dt { font-family: var(--sans); }
.term .ready { margin-top: 10px; font-size: 12px; }
.phase-grid { display: grid; gap: 8px; }
.phase { border: 1px solid var(--line); padding: 10px 12px; }
.phase.is-on { border-color: var(--ink); }
.phase-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phase-top label { font-weight: 600; display: inline-flex; align-items: center; }
.phase-top .help { color: var(--mute); font-size: 12px; }
.phase-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.phase-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.phase-gate { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }
.phase-list { margin-top: 8px; }
.phase-list textarea { width: 100%; font-family: var(--mono); font-size: 11.5px; }
.phase:not(.is-on) .phase-fields, .phase:not(.is-on) .phase-gate, .phase:not(.is-on) .phase-list { display: none; }

/* image picker (PadImagePick, ip- hooks) */
.ip-drop { border: 1px dashed var(--line-2); padding: 10px; display: flex; gap: 12px; align-items: center; background: var(--paper); }
.ip-drop.is-over { border-color: var(--blue); background: var(--blue-bg); }
.ip-prev { width: 64px; height: 64px; flex: none; object-fit: cover; border: 1px solid var(--line); background: var(--tint); display: grid; place-items: center; color: var(--mute-2); }
.ip-main { min-width: 0; }
.ip-title { font-weight: 600; font-size: 12.5px; }
.ip-sub { font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.ip-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ip-btn { height: 24px; font-size: 11.5px; }
.ip-btn-ghost { border-color: transparent; color: var(--blue-ink); padding: 0 4px; }
.ip-btn-ghost:hover { border-color: transparent; text-decoration: underline; }
.ip-err { color: var(--ink); font-weight: 500; font-size: 11.5px; margin-top: 4px; }
.ip-err:empty { display: none; }
[data-urlwrap] input { width: 100%; }

/* ---- launch chooser --------------------------------------------------- */
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pick .sec-head { padding-bottom: 6px; }
.pick h2 { font: 600 20px/1.2 var(--sans); letter-spacing: -0.02em; text-transform: none; }
.pick .ledger dt { font-family: var(--sans); }
.pick .ledger dd { text-align: left; font-family: var(--sans); font-size: 13px; }
.pick .as-btn { margin-top: 14px; }
.page-head { padding: 4px 0 14px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.page-head p { color: var(--mute); max-width: 60ch; margin: 6px 0 0; }
.page-head .aside { margin-left: auto; font: 400 11px/1.4 var(--mono); color: var(--mute); text-align: right; }

/* ---- collection page -------------------------------------------------- */
.banner { width: 100%; height: 140px; object-fit: cover; border: 1px solid var(--line); display: block; margin-bottom: 14px; background: var(--tint); }
.phases td.status { font-family: var(--mono); font-size: 11px; }
.mint-box .qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
.mint-box .qty button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.mint-box .qty button:hover { background: var(--tint); }
.mint-box .qty button:disabled { color: var(--mute-2); cursor: default; }
.mint-box .qty output { min-width: 40px; text-align: center; font: 500 14px/30px var(--mono); border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.mint-box .qty button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.mint-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.mint-row .total { font-family: var(--mono); font-size: 12.5px; }
.mint-box .as-btn-blue { width: 100%; height: 34px; font-size: 13px; }
.mint-tabs { margin-bottom: 10px; }

/* ---- dashboard -------------------------------------------------------- */
.book .tbl td { height: 40px; }

/* ---- learn ------------------------------------------------------------ */
.learn { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.learn-nav { position: sticky; top: calc(var(--top-h) + 16px); }
.learn-nav a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 12.5px; }
.learn-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--blue); padding-left: 10px; }
.learn-nav a:hover { color: var(--ink); }
.article h1 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.15; margin: 6px 0 12px; }
.article .lede { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin-bottom: 18px; }
.article p { font-size: 13.5px; line-height: 1.6; max-width: 66ch; margin-bottom: 12px; color: var(--ink); }
.article .ledger { max-width: 520px; margin: 6px 0 18px; }
.article .ledger dt { font-family: var(--sans); }
.article-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.article-nav a { text-decoration: none; color: var(--blue-ink); }

/* ---- 404 -------------------------------------------------------------- */
.nf { padding: 60px 0; max-width: 520px; }
.nf .code { font: 500 64px/1 var(--mono); letter-spacing: -0.04em; color: var(--line-2); }
.nf h1 { font-size: 22px; margin: 10px 0 8px; }

/* ---- responsive --------------------------------------------------------- */
@media (min-width: 900px) { :root { --gutter: 24px; } }
@media (max-width: 1100px) {
  .feed-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .sheet-grid, .form-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .qb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qb > div:nth-child(3n) { border-right: 0; }
  .qb > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .c-lg { display: none; }
  .feed-grid, .sheet-grid, .form-grid, .pick, .learn, .mast { grid-template-columns: minmax(0, 1fr); }
  .mast { gap: 14px; }
  .mast h1 { font-size: 24px; }
  .sheet-side, .learn-nav { position: static; }
  .sheet-grid > div { display: contents; }
  .sheet-grid .order { order: -1; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .phase-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embed { height: 360px; }
  .sheet-links { margin-left: 0; }
}
@media (max-width: 720px) {
  .as-top-in { gap: 12px; }
  .as-nav { display: none; position: absolute; left: 0; right: 0; top: var(--top-h); background: var(--paper); flex-direction: column; border-bottom: 1px solid var(--line); padding: 6px 0; height: auto; }
  .as-nav.is-open { display: flex; }
  .as-nav a { padding: 10px var(--gutter); border: 0; border-left: 2px solid transparent; }
  .as-nav a.is-on { border-left-color: var(--blue); background: var(--tint); }
  .as-tools .as-burger { display: inline-flex; width: 30px; padding: 0; }
  .as-chain { display: none; }
  .c-md, .c-idx, .c-ca { display: none; }
  .chg-m { display: block; }
  .ca-m { display: inline-flex; }
  .tbl td { height: 50px; }
  .tbl th, .tbl td { padding: 0 6px; }
  .tbl td.n, .tbl td .n { font-size: 11px; }
  .c-last .sub { display: none; }
  .c-spark { width: 60px; }
  .spark { width: 52px; }
  .lst { gap: 7px; }
  .lst-meta { flex-wrap: wrap; white-space: normal; }
  .qb > .last { grid-column: 1 / -1; border-right: 0; }
  .fs-body { grid-template-columns: minmax(0, 1fr); }
  .phase-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qb > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .qb > div:nth-child(2n) { border-right: 0; }
  .qb > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .qb .v.big { font-size: 22px; }
  .lst-txt .name { max-width: 128px; }
  .as-foot-in { grid-template-columns: minmax(0, 1fr); }
  .as-stamp { top: calc(var(--top-h) + 34px); }
  .embed { height: 320px; }
  .sheet-head h1 { font-size: 19px; }
  .sheet-ids { gap: 6px 10px; }
  .sheet-ids code { font-size: 10.5px; }
  .sheet-ids .id { gap: 4px; }
  .nf .code { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tbl tr.is-fresh { animation: none; }
  .as-toast { transition: none; }
  * { scroll-behavior: auto !important; }
}
