/* Quiver — the one stylesheet.
   The palette is indigo: noticeable without shouting, which is what a wallet
   wants. Nothing is fully saturated, and the danger red is desaturated on
   purpose so it only alarms when it should. */

/* The active plan paints the card; app.js swaps these three when it changes. */
:root {
  --tier-a: var(--classic-a); --tier-b: var(--classic-b); --tier-c: var(--classic-c);
  --tier-ink: var(--classic-ink); --tier-veil: var(--classic-veil); --tier-veil2: var(--classic-veil2);
}

:root {
  --bg:        #F4F5FB;
  --bg-2:      #E8EBF8;
  --surface:   #FFFFFF;
  --surface-2: #F8F9FF;
  --ink:       #101430;
  --ink-2:     #545878;
  --ink-3:     #8C90AE;
  --line:      #E3E5F5;
  --line-2:    #CFD2ED;

  --brand:      #5250E4;
  --brand-deep: #3B37BE;
  --brand-soft: #E6E7FD;
  --iris:       #8A7BF0;
  --sky:        #6FA8E8;

  --ok:     #1E9E6A;
  --warn:   #926519;
  --warn-bg:#FCF3E2;
  --danger: #B2484F;
  --danger-bg:#FBECEE;

  /* The three cards. They do not follow the theme: they carry white text, and a
     gradient tied to --brand would lighten in dark mode until it stopped being
     readable. */
  --classic-a:  #6E70EC;
  --classic-b:  #4D4BCB;
  --classic-c:  #2E2B87;
  --gold-a:     #F0C160;
  --gold-b:     #C9922F;
  --gold-c:     #8A6018;
  --plat-a:     #C6CEDC;
  --plat-b:     #8C97AB;
  --plat-c:     #566175;

  /* Gold and Platinum are light metals. White lettering on them is unreadable —
     which is why real cards in those finishes use dark type — so each card
     carries its own ink and its own veil for the pills sitting on it. */
  --classic-ink: #FFFFFF;
  --classic-veil: rgba(255,255,255,.18);
  --classic-veil2: rgba(255,255,255,.28);
  --gold-ink: #3A2708;
  --gold-veil: rgba(58,39,8,.15);
  --gold-veil2: rgba(58,39,8,.24);
  --plat-ink: #1B2230;
  --plat-veil: rgba(27,34,48,.13);
  --plat-veil2: rgba(27,34,48,.21);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;

  --shadow-1: 0 1px 2px rgba(20,22,46,.04), 0 4px 14px rgba(20,22,46,.06);
  --shadow-2: 0 2px 6px rgba(20,22,46,.06), 0 18px 40px rgba(20,22,46,.11);
  --shadow-brand: 0 6px 18px rgba(90,92,224,.3);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Below this point the dark rules are written twice: once behind the media
   query, guarded so an explicit light choice beats the system, and once under
   an explicit dark choice. Where the guard is only a prefix on some other
   selector it is wrapped in :where(), which matches the same elements but
   contributes nothing to specificity — without it the guard silently outranks
   every rule the plain selector used to lose to. That is not hypothetical:
   ":root:not([data-theme=\"light\"]) .cta" beat ".cta.ghost" and painted the
   ghost buttons' label near-black on a dark page. The two :root blocks that
   carry the tokens are the exception and keep their specificity, because there
   the guard IS the whole selector and it has to outrank the plain :root above. */
@media (prefers-color-scheme: dark) {:root:not([data-theme="light"]) {
    --bg:        #080A16;
    --bg-2:      #0E1126;
    --surface:   #14162C;
    --surface-2: #1A1D38;
    --ink:       #EDEEFA;
    --ink-2:     #A9ADCE;
    --ink-3:     #727697;
    --line:      #242743;
    --line-2:    #333758;

    --brand:      #8385F0;
    --brand-deep: #9B9DF7;
    --brand-soft: #22234A;
    --iris:       #A99BF7;

    --ok:     #35C289;
    --warn:   #DFA945;
    --warn-bg:#2A2314;
    --danger: #E4767E;
    --danger-bg:#2C1A1D;

    --shadow-1: 0 1px 2px rgba(0,0,0,.34), 0 4px 14px rgba(0,0,0,.3);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.5);
    --shadow-brand: 0 6px 18px rgba(131,133,240,.24);
  }
}
/* The same again for a deliberate choice, so the switch beats the system
   in both directions rather than only when the system says light. */
:root[data-theme="dark"] {
    --bg:        #080A16;
    --bg-2:      #0E1126;
    --surface:   #14162C;
    --surface-2: #1A1D38;
    --ink:       #EDEEFA;
    --ink-2:     #A9ADCE;
    --ink-3:     #727697;
    --line:      #242743;
    --line-2:    #333758;

    --brand:      #8385F0;
    --brand-deep: #9B9DF7;
    --brand-soft: #22234A;
    --iris:       #A99BF7;

    --ok:     #35C289;
    --warn:   #DFA945;
    --warn-bg:#2A2314;
    --danger: #E4767E;
    --danger-bg:#2C1A1D;

    --shadow-1: 0 1px 2px rgba(0,0,0,.34), 0 4px 14px rgba(0,0,0,.3);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.5);
    --shadow-brand: 0 6px 18px rgba(131,133,240,.24);
  }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── ambient background ──────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.b1 { width: 60vmax; height: 60vmax; top: -28vmax; left: -22vmax; background: var(--iris); opacity: .2; }
.b2 { width: 45vmax; height: 45vmax; bottom: -20vmax; right: -16vmax; background: var(--sky); opacity: .2; }
.b3 { width: 38vmax; height: 38vmax; top: 40%; left: 55%; background: var(--brand-soft); opacity: .55; }
@media (prefers-color-scheme: dark) {:where(:root:not([data-theme="light"])) .b1 { opacity: .13; }:where(:root:not([data-theme="light"])) .b2 { opacity: .1; }:where(:root:not([data-theme="light"])) .b3 { opacity: .2; }
}
/* The same again for a deliberate choice, so the switch beats the system
   in both directions rather than only when the system says light. */
:where(:root[data-theme="dark"]) .b1 { opacity: .13; }:where(:root[data-theme="dark"]) .b2 { opacity: .1; }:where(:root[data-theme="dark"]) .b3 { opacity: .2; }


.shell {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  margin: 0 auto;
  padding: 0 18px calc(40px + env(safe-area-inset-bottom));
}

/* ── top bar ─────────────────────────────────────── */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(to bottom, var(--bg) 62%, rgba(0,0,0,0));
}
.brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.brand-name { font-weight: 640; letter-spacing: -.01em; font-size: 17px; }
/* The mark. One shape, drawn once as a mask, so every place it appears takes
   its colour from whatever it is sitting on: brand indigo on a page, the card's
   own ink on a card face. */
:root {
  --mark: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2032%2032%22%20fill=%22none%22%20stroke=%22%23000%22%3E%3Cpath%20d=%22M19.6%207.6A8.9%208.9%200%201%200%2024.9%2016%22%20stroke-width=%225%22%20stroke-linecap=%22round%22/%3E%3Cpath%20d=%22M24.9%2016h-5.6%22%20stroke-width=%225%22%20stroke-linecap=%22round%22/%3E%3Ccircle%20cx=%2224.2%22%20cy=%227.2%22%20r=%223.2%22%20fill=%22%23000%22%20stroke=%22none%22/%3E%3C/svg%3E') center / contain no-repeat;
}
/* The tick that marks the chosen one in a long list. Same trick as the mark:
   one shape, drawn as a mask, so it takes the colour of whatever row it is on. */
:root { --tick: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2016%2016%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222.4%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M3%208.6%206.3%2012%2013%204.6%22/%3E%3C/svg%3E'); }

.mark {
  width: 26px; height: 26px; display: block; flex: none;
  background: var(--brand);
  -webkit-mask: var(--mark); mask: var(--mark);
}

.bar-right { display: flex; align-items: center; gap: 8px; }
/* The theme button is the one pill with no label: a sun or a moon and nothing
   else, so it stays the same width in every language. */
.recv-takes { margin: -6px 0 14px; font-size: 14px; font-weight: 560; color: var(--ink-2); }
.note.warn {
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  color: var(--warn); border-radius: 14px; padding: 12px 14px; margin-top: 14px;
  font-size: 13px; line-height: 1.45; font-weight: 540;
}
.pill.icon-only { padding: 7px; }
.pill.icon-only svg, .lang-btn.icon-only svg {
  width: 17px; height: 17px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px 7px 11px;
  font: inherit; font-size: 13.5px; font-weight: 560; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow-1); transition: border-color .18s, transform .18s;
  max-width: 190px;
}
.pill:hover { border-color: var(--line-2); }
.pill:active { transform: scale(.97); }
.pill span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

/* The language pill is two or three characters wide and must stay legible:
   the generic pill rule ellipsises its second span, which turned "ES" into
   "E" as soon as the bar ran short of room. It never shrinks; the network
   name, which can afford to be clipped, gives way instead. */
#langPill { flex: none; padding: 7px 11px; gap: 6px; max-width: none; }
#langPill span { overflow: visible; text-overflow: clip; }
#netPill { min-width: 0; }
.globe { width: 15px; height: 15px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; flex: none; }
/* On a narrow phone the wordmark is the one thing the bar can spare. */
@media (max-width: 420px) { .bar .brand-name { display: none; } }
.chev { width: 14px; height: 14px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* One of these is an <a> out to the site rather than a <button>, so the rule
   carries the bits an anchor does not inherit: no underline, no shrinking. */
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-1); transition: transform .18s, border-color .18s;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── views ───────────────────────────────────────── */
.view { display: none; animation: rise .32s cubic-bezier(.22,.9,.3,1); }
.view.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1 { font-size: clamp(34px, 9vw, 42px); line-height: 1.08; letter-spacing: -.035em; font-weight: 680; margin: 0 0 14px; }
h2 { font-size: 26px; letter-spacing: -.028em; font-weight: 660; margin: 0 0 8px; }
h3 { font-size: 17px; letter-spacing: -.015em; font-weight: 620; margin: 0 0 6px; }
.sub { color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; }
.sub.center { text-align: center; }
.lede { color: var(--ink-2); font-size: 16px; margin: 0; max-width: 34ch; }

.hero { padding: 26px 0 30px; }
.hero.sm { padding: 40px 0 26px; text-align: center; }
.hero.sm .hero-mark { margin: 0 auto 20px; }
.hero-mark {
  width: 62px; height: 62px; margin-bottom: 26px;
  background: var(--brand);
  -webkit-mask: var(--mark); mask: var(--mark);
}
.hero-mark span { display: none; }

.back {
  background: none; border: 0; padding: 6px 0; margin: 4px 0 14px -2px;
  color: var(--ink-2); font: inherit; font-size: 14.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.back::before { content: "←"; font-size: 16px; }
.back:hover { color: var(--brand); }

/* ── assurances ──────────────────────────────────── */
.assur { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 2px; }
.assur li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; }
.assur b { display: block; font-size: 14.5px; font-weight: 600; }
.assur small { color: var(--ink-3); font-size: 13px; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); flex: none; margin-top: 2px; position: relative; }
.tick::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(43deg);
}

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: block; width: 100%; border: 1px solid transparent; border-radius: var(--r);
  padding: 14px 18px; font: inherit; font-size: 15.5px; font-weight: 600;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .16s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn.lg { padding: 16px 18px; border-radius: 20px; }
.btn.wide { margin-bottom: 10px; }
.btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

.btn.primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn.primary:hover:not([disabled]) { background: var(--brand-deep); }
@media (prefers-color-scheme: dark) {:where(:root:not([data-theme="light"])) .btn.primary { color: #05201C; } }
/* The same again for a deliberate choice, so the switch beats the system
   in both directions rather than only when the system says light. */
:where(:root[data-theme="dark"]) .btn.primary { color: #05201C; }


.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn.ghost:hover { border-color: var(--line-2); }
.btn.flat { background: none; color: var(--ink-2); box-shadow: none; font-weight: 520; }
.btn.flat:hover { color: var(--brand); }
.btn.danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

.stack { display: grid; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--brand); cursor: pointer; font-weight: 560; }

.fineprint { color: var(--ink-3); font-size: 12.5px; text-align: center; margin: 16px 0 0; line-height: 1.5; }

/* ── form fields ─────────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 580; color: var(--ink-2); margin-bottom: 7px; }
.field > span i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .select-wrap select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 14px 15px;
  transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; font-family: var(--mono); font-size: 14.5px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .select-wrap select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.hint { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 7px; min-height: 1em; }
.hint.good { color: var(--ok); }
.hint.bad { color: var(--danger); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px;
  border: solid var(--ink-3); border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select { padding-right: 40px; cursor: pointer; }

.amount-row { position: relative; display: flex; align-items: center; }
.amount-row input { padding-right: 76px; font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.max {
  position: absolute; right: 10px; background: var(--brand-soft); color: var(--brand-deep);
  border: 0; border-radius: 10px; padding: 7px 11px; font: inherit; font-size: 12px;
  font-weight: 700; letter-spacing: .04em; cursor: pointer;
}

.err {
  background: var(--danger-bg); color: var(--danger); font-size: 13.5px;
  padding: 11px 14px; border-radius: var(--r-sm); margin: 0 0 14px;
}
.note {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; font-size: 13.5px;
  color: var(--ink-2); margin-bottom: 18px;
}
.note b { color: var(--ink); }

.warn-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--warn-bg); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px;
}
.warn-card svg { width: 21px; height: 21px; flex: none; margin-top: 1px; fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.warn-card p { margin: 0; font-size: 13.5px; color: var(--warn); font-weight: 520; }

.check { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check span {
  width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid var(--line-2);
  flex: none; margin-top: 1px; background: var(--surface); position: relative; transition: .18s;
}
.check input:checked + span { background: var(--brand); border-color: var(--brand); }
.check input:checked + span::after {
  content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(43deg);
}
.check input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }
.check em { font-style: normal; font-size: 14px; color: var(--ink-2); }

/* ── recovery phrase ─────────────────────────────── */
.seed {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-1);
  transition: filter .3s;
}
.seed.hidden { filter: blur(7px); user-select: none; }
.seed li, .seed div.word {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--surface-2); border-radius: 11px; padding: 9px 8px;
  font-size: 14px; font-weight: 560; letter-spacing: -.005em;
}
.seed .n { color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; min-width: 14px; }

.verify { display: grid; gap: 12px; margin-bottom: 18px; }
.verify .vf { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; box-shadow: var(--shadow-1); }
.verify .vf b { font-size: 12.5px; color: var(--ink-3); min-width: 74px; font-weight: 560; }
.verify .vf input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; padding: 8px 0; color: var(--ink); }
.verify .vf input:focus { outline: none; }
.verify .vf.ok { border-color: var(--brand); background: var(--brand-soft); }

/* ── password meter ──────────────────────────────── */
.meter { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin: -8px 0 6px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--danger); transition: width .3s, background .3s; }
.meter-label { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }

/* ── balance ─────────────────────────────────────── */
.balance-card {
  background: linear-gradient(150deg, var(--tier-a) 0%, var(--tier-b) 55%, var(--tier-c) 100%);
  border-radius: var(--r-lg); padding: 22px 24px 20px; color: var(--tier-ink);
  box-shadow: var(--shadow-brand); margin-bottom: 18px; position: relative; overflow: hidden;
}
.balance-card::after {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255,255,255,.1); top: -80px; right: -50px;
}
.bal-label { margin: 0 0 4px; font-size: 13px; opacity: .8; font-weight: 520; }
.bal { margin: 0 0 16px; font-size: 38px; font-weight: 680; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.addr-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tier-veil);
  border: 0; border-radius: 999px; padding: 7px 13px; color: inherit; font: inherit;
  font-size: 13px; font-family: var(--mono); cursor: pointer; position: relative; z-index: 1;
  transition: background .18s;
}
.addr-chip:hover { background: var(--tier-veil2); }
.addr-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.act {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 8px 13px; font: inherit; font-size: 13px; font-weight: 580; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow-1); display: grid; gap: 9px; justify-items: center;
  transition: transform .16s, border-color .18s;
}
.act:hover { border-color: var(--brand); }
.act:active { transform: scale(.96); }
.act-i { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.act-i svg { width: 19px; height: 19px; fill: none; stroke: var(--brand-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 620; margin: 26px 0 10px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; }
.sec-head .sec-title { margin-bottom: 10px; }

/* ── lists ───────────────────────────────────────── */
.tokens, .activity { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.tokens li, .activity li {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px 15px; box-shadow: var(--shadow-1);
}
.coin {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: -.02em;
}
.tok-mid { flex: 1; min-width: 0; }
.tok-mid b { display: block; font-size: 14.5px; font-weight: 600; }
.tok-mid small { color: var(--ink-3); font-size: 12.5px; }
.tok-amt { text-align: right; font-size: 14.5px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }

.activity li { text-decoration: none; color: inherit; }
.activity a { text-decoration: none; color: inherit; display: contents; }
.act-badge { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface-2); }
.act-badge svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act-badge.pend { background: var(--warn-bg); }
.act-badge.pend svg { stroke: var(--warn); }
.act-badge.ok { background: var(--brand-soft); }
.act-badge.ok svg { stroke: var(--ok); }
.act-badge.fail { background: var(--danger-bg); }
.act-badge.fail svg { stroke: var(--danger); }
.st-tag { font-size: 11.5px; font-weight: 600; }
.st-tag.pend { color: var(--warn); }
.st-tag.ok { color: var(--ok); }
.st-tag.fail { color: var(--danger); }

.empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 26px 16px; background: var(--surface-2); border-radius: var(--r); border: 1px dashed var(--line-2); }

.skeleton { display: inline-block; height: 1em; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.35), rgba(255,255,255,.18)); background-size: 200% 100%; animation: shimmer 1.3s infinite; vertical-align: middle; }
.w-40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── QR / receive ────────────────────────────────── */
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); text-align: center; }
.qr { display: grid; place-items: center; margin-bottom: 16px; }
.qr img, .qr canvas { width: 100%; max-width: 230px; height: auto; image-rendering: pixelated; border-radius: 14px; }
.qr.sm img { max-width: 170px; }
.net-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); padding: 5px 12px; border-radius: 999px; margin: 0 0 12px; }
.addr-full { font-family: var(--mono); font-size: 13px; line-height: 1.7; word-break: break-all; color: var(--ink); margin: 0; }

.link-out { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); text-align: center; }
.link-text { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; word-break: break-all; color: var(--ink-2); background: var(--surface-2); padding: 12px; border-radius: var(--r-sm); margin: 0; }

.pay-note { background: var(--brand-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; color: var(--brand-deep); }
.pay-note b { display: block; font-size: 15px; margin-bottom: 2px; }

/* ── modal sheets ────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
/* Every .btn sets display:block, which beats the display:none a browser gives
   [hidden]. So hiding a button did nothing at all, anywhere in this app: the
   launch screen showed "Use Phantom" next to an already-linked Phantom. One
   rule, rather than a hidden-class of its own, because the attribute is the
   right tool and it only needed to win. */
[hidden] { display: none !important; }

/* The display:flex above beats the display:none the browser gives [hidden], so
   it has to be handed back or a closed sheet keeps covering the screen. */
.sheet-wrap[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8,32,30,.45); backdrop-filter: blur(3px); animation: fade .25s; }
.sheet {
  position: relative; width: 100%; max-width: 480px;
  background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom));
  max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow-2);
  animation: slideUp .34s cubic-bezier(.22,.9,.3,1);
}
@media (min-width: 520px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 28px; max-height: 84dvh; }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0; } }
.grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 4px auto 14px; }
.sheet h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }

.net-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.net-list button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; font: inherit; cursor: pointer; color: var(--ink); transition: .18s;
}
.net-list button:hover { border-color: var(--line-2); }
.net-list button.sel { border-color: var(--brand); background: var(--brand-soft); }
.net-list .nl-mid { flex: 1; min-width: 0; }
/* Holds its width whether or not it is showing a tick, so names do not shift
   sideways as the selection moves down the list. */
.net-list .nl-tick { width: 16px; height: 16px; flex: none; }
.net-list button.sel .nl-tick {
  background: var(--brand);
  -webkit-mask: var(--tick) center / contain no-repeat;
  mask: var(--tick) center / contain no-repeat;
}
/* Twenty-one languages: the sheet's own list is the thing that scrolls, so the
   heading and the grab handle stay put above it. */
#langList { max-height: min(56vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.net-list b { display: block; font-size: 14.5px; font-weight: 600; }
.net-list small { color: var(--ink-3); font-size: 12.5px; }

.cf-amount { font-size: 34px; font-weight: 680; letter-spacing: -.035em; text-align: center; margin: 14px 0 18px; font-variant-numeric: tabular-nums; }
.cf-rows { margin: 0 0 18px; display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cf-rows > div { display: flex; justify-content: space-between; gap: 14px; background: var(--surface); padding: 13px 15px; }
.cf-rows dt { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.cf-rows dd { margin: 0; font-size: 13.5px; font-weight: 580; text-align: right; word-break: break-all; }
.cf-rows .total dd, .cf-rows .total dt { font-weight: 640; }

.status-body { text-align: center; padding: 26px 0 8px; }
.status-icon { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--brand-soft); }
.status-icon.ok { background: var(--brand-soft); }
.status-icon.fail { background: var(--danger-bg); }
.status-icon svg { width: 30px; height: 30px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.status-icon.ok svg { stroke: var(--ok); }
.status-icon.fail svg { stroke: var(--danger); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-body .btn { margin-top: 12px; }

/* ── toasts ──────────────────────────────────────── */
/* Sits under the bar, above everything else, and does not go away on its own. */
.chain-warn {
  position: sticky; top: 62px; z-index: 40;
  margin: 0 var(--pad, 18px) 10px;
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  color: var(--danger);
  border-radius: 14px; padding: 11px 14px;
  font-size: 13.5px; font-weight: 560; line-height: 1.4;
}
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 18px; }
.toast {
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 540;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-2);
  animation: toastIn .3s cubic-bezier(.22,.9,.3,1); max-width: 100%;
}
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The QR always needs a white ground: on a dark surface a camera stops being
   able to read it. */
.qr img { background: #fff; padding: 12px; }

/* ── Balance card: plan header ───────────────────── */
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; position: relative; z-index: 1; }
.bc-tier {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--tier-veil); padding: 5px 11px; border-radius: 999px;
}
.bc-acct {
  background: var(--tier-veil); border: 0; border-radius: 999px; padding: 5px 12px;
  color: inherit; font: inherit; font-size: 12px; font-weight: 560; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .18s;
}
.bc-acct::after { content: "⌄"; font-size: 13px; line-height: 1; margin-top: -3px; opacity: .8; }
.bc-acct:hover { background: var(--tier-veil2); }

.actions.four { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.actions.four .act { font-size: 12px; padding: 13px 4px 11px; }
.actions.four .act-i { width: 34px; height: 34px; border-radius: 11px; }
.actions.four .act-i svg { width: 17px; height: 17px; }

/* ── Plans ───────────────────────────────────────── */
.plans { display: grid; gap: 14px; margin-bottom: 20px; }
.plan {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1);
}
.plan.current { border-color: var(--brand); }
.plan h3 { font-size: 19px; margin-bottom: 2px; }
.plan-line { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-3); }
.plan-price { margin: 0 0 16px; font-size: 27px; font-weight: 690; letter-spacing: -.03em; }
.plan-price small { font-size: 14px; font-weight: 520; color: var(--ink-3); letter-spacing: 0; }
.perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.perks li { font-size: 14px; color: var(--ink-2); padding-left: 25px; position: relative; line-height: 1.5; }
.perks li::before {
  content: ""; position: absolute; left: 3px; top: 5px; width: 5px; height: 9px;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(43deg);
}

.plan-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px 15px; box-shadow: var(--shadow-1); margin-bottom: 8px;
}
.pr-badge {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.pr-badge.classic { background: linear-gradient(145deg, var(--classic-a), var(--classic-c)); }
.pr-badge.gold    { background: linear-gradient(145deg, var(--gold-a), var(--gold-c)); }
.pr-badge.plat    { background: linear-gradient(145deg, var(--plat-a), var(--plat-c)); }

/* ── External wallets ────────────────────────────── */
.wallet-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.wallet-list button {
  width: 100%; display: flex; align-items: center; gap: 13px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; font: inherit; cursor: pointer; color: var(--ink); transition: .18s;
}
.wallet-list button:hover { border-color: var(--brand); }
.li-icon { width: 34px; height: 34px; border-radius: 10px; flex: none; object-fit: cover; background: var(--surface-2); display: block; }
.li-icon.gen { background: linear-gradient(145deg, var(--iris), var(--brand-deep)); }
.li-mid { flex: 1; min-width: 0; }
.li-mid b { display: block; font-size: 14.5px; font-weight: 600; }
.li-mid small { color: var(--ink-3); font-size: 12.5px; }

.linked {
  display: flex; align-items: center; gap: 13px;
  background: var(--brand-soft); border-radius: var(--r); padding: 13px 15px; margin-bottom: 8px;
}
.linked img { width: 34px; height: 34px; border-radius: 10px; display: block; }
#linkedIcon { width: 34px; height: 34px; flex: none; }

/* ── Saved payees ────────────────────────────────── */
.payees { display: flex; flex-wrap: wrap; gap: 7px; margin: -6px 0 16px; }
.payee {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 540; color: var(--ink-2);
  cursor: pointer; transition: .18s; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.payee:hover { border-color: var(--brand); color: var(--brand); }

.note code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }

/* ── The card, as it appears in the plan list ────── */
.plan .tcard {
  aspect-ratio: 1.6 / 1; border-radius: 16px; padding: 15px; margin-bottom: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 26px -12px rgba(16,20,48,.5);
}
.plan .tc-sheen { position: absolute; inset: 0; background: radial-gradient(60% 90% at 30% 0%, rgba(255,255,255,.32), transparent 62%); }
.plan .tcard.classic { background: linear-gradient(145deg, var(--classic-a), var(--classic-b) 52%, var(--classic-c)); color: var(--classic-ink); }
.plan .tcard.gold    { background: linear-gradient(145deg, var(--gold-a), var(--gold-b) 52%, var(--gold-c)); color: var(--gold-ink); }
.plan .tcard.plat    { background: linear-gradient(145deg, var(--plat-a), var(--plat-b) 52%, var(--plat-c)); color: var(--plat-ink); }
.plan .tc-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.plan .tc-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 640; font-size: 13.5px; }
.plan .tc-net { font-size: 10.5px; font-weight: 600; opacity: .8; }
.mark.sm { width: 20px; height: 20px; background: currentColor; }
.plan .tc-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.plan .tc-addr { font-family: var(--mono); font-size: 11px; opacity: .85; }
.plan .tc-name { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

/* ── The EMV chip, on every card face ────────────── */
.chip { width: 40px; height: 30px; display: block; position: relative; z-index: 1; }
.plan .chip { width: 32px; height: 24px; }
.c-body { fill: url(#chipgold); }
.c-lines { fill: none; stroke: rgba(92,62,10,.5); stroke-width: 1.1; }
.balance-card .chip { margin-bottom: 12px; }

/* ── the card's own face ─────────────────────────────────────────────────────
   The name and the stickers are the only parts a person chooses, so they sit
   where a real card puts them: the name embossed along the bottom, and the
   stickers stuck in the corner rather than lined up in the layout. */
.bc-name {
  margin: 0 0 12px; font-size: 14px; font-weight: 640;
  letter-spacing: .1em; text-transform: uppercase;
  position: relative; z-index: 1; overflow-wrap: anywhere;
}
.bc-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-edit {
  background: var(--tier-veil); border: 0; border-radius: 999px; padding: 7px 13px;
  color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  position: relative; z-index: 1; transition: background .18s; flex: none;
}
.bc-edit:hover { background: var(--tier-veil2); }
.addr-chip.as-text { cursor: default; }
/* The network on the card face is a button, but it should look like the label
   it replaced until you go near it. */
.bc-net.as-btn {
  font: inherit; font-size: inherit; color: inherit; cursor: pointer;
  background: var(--tier-veil); border: 0; border-radius: 999px;
  padding: 5px 11px; transition: background .18s;
}
.bc-net.as-btn:hover { background: var(--tier-veil2); }
.bc-net.as-btn::after { content: ' ⌄'; opacity: .7; }

/* Beside the balance rather than above it: the top corner already has the
   network on one card and the account on the other, and the bottom corner has
   the Customise button. */
.bc-stickers {
  position: absolute; top: 50%; inset-inline-end: 22px; z-index: 1;
  display: flex; gap: 8px; line-height: 1;
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.24));
  pointer-events: none;
}
.bc-stickers .st { width: 34px; height: 34px; display: block; }
/* Stuck on by hand, not printed: the second one sits at a slightly different
   angle so a pair does not read as a logo lockup. */
.bc-stickers .st:nth-child(2) { transform: rotate(13deg); }
.card-big { margin-bottom: 26px; }

.coin-pick { display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 24px; }
.coin-pick button {
  padding: 11px 18px; font: inherit; font-size: 14.5px; font-weight: 620; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform .16s, border-color .16s, background .16s, color .16s;
}
.coin-pick button:hover { transform: translateY(-2px); border-color: var(--line-2); }
.coin-pick button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.coin-pick button:active { transform: scale(.96); }

.sticker-pick { display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 22px; }
.sticker-pick button {
  width: 52px; height: 52px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: var(--shadow-1); transition: transform .16s, border-color .16s, background .16s;
}
.sticker-pick .st { width: 32px; height: 32px; display: block; }
.sticker-pick button:hover { transform: translateY(-2px); border-color: var(--line-2); }
.sticker-pick button.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.sticker-pick button:active { transform: scale(.94); }

/* ── launching a coin ─────────────────────────────────────────────────── */
/* The entry point sits under the four everyday actions rather than among
   them: it is the one thing on this screen that creates something public and
   permanent, and it should not sit in a row with "Receive". */
.launch-cta {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px;
  text-align: start; cursor: pointer; color: inherit;
  box-shadow: var(--shadow-1); transition: transform .16s, border-color .2s;
}
.launch-cta:hover { transform: translateY(-1px); border-color: var(--line-2); }
.launch-cta:active { transform: translateY(0); }
.lc-i {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep);
}
.lc-i svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7;
            stroke-linecap: round; stroke-linejoin: round; }
.lc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lc-t b { font-size: 15px; font-weight: 640; }
.lc-t small { font-size: 12.5px; color: var(--ink-3); }
.lc-go { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3);
         stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.note.warn .btn { margin-top: 10px; }

/* The heading in a notice is a heading, not the first words of the sentence. */
.note b { display: block; margin-bottom: 5px; }
.note .btn { margin-top: 10px; }

/* ── the launch form ──────────────────────────────────────────────────── */
.lc-sec { margin: 26px 0 14px; }
.lc-sec b { display: block; font-size: 17px; font-weight: 660; letter-spacing: -.015em; }
.lc-sec small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.lc-sec:first-child { margin-top: 4px; }

.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr; gap: 0; } }

/* A required field says so in the label rather than only when it is rejected. */
.field > span i.req { color: var(--danger); font-weight: 700; }
.field > span i.count { float: inline-end; font-variant-numeric: tabular-nums; }
/* The description is prose, not an address, so it does not want the mono face
   the other multi-line fields use. */
#lcDesc { font-family: var(--font); font-size: 15px; line-height: 1.5; }

.lc-drop-row { display: grid; grid-template-columns: 1fr 132px; gap: 12px; align-items: start; }
@media (max-width: 480px) { .lc-drop-row { grid-template-columns: 1fr; } }

.lc-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center; cursor: pointer;
  min-height: 132px; padding: 18px 16px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: var(--surface-2); transition: border-color .18s, background .18s;
}
.lc-drop:hover, .lc-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.lc-drop svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.7;
               stroke-linecap: round; stroke-linejoin: round; }
.lc-drop b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.lc-drop small { font-size: 12px; color: var(--ink-3); }

.lc-prev { display: flex; flex-direction: column; gap: 6px; }
.lc-prev-l { font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
             font-weight: 650; color: var(--ink-3); }
.lc-prev-box {
  width: 100%; aspect-ratio: 1; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--surface-2);
  overflow: hidden; display: grid; place-items: center;
}
.lc-prev-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The label text sits in an <em> so the required mark and the counter can be
   separate elements beside it; it is a label, not emphasis. */
.field > span em { font-style: normal; }
/* Stacked, the preview would otherwise become a full-width square taller than
   the form it belongs to. */
@media (max-width: 480px) {
  .lc-drop-row { grid-template-columns: 1fr; }
  .lc-prev-box { width: 124px; }
}

/* ── the standing notice on a wallet with no password ─────────────────── */
/* Sits with the wrong-chain warning rather than among the toasts: both
   describe a condition that is still true, and a toast that expires would be
   the wrong shape for something that has not stopped being the case. */
.quick-warn {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 14px;
  padding: 12px 14px; margin: 0 0 16px;
  font-size: 13px; line-height: 1.45; font-weight: 500;
}
/* The one coloured thing is a small dot, because the notice is a standing
   condition rather than something going wrong, and a whole panel in warning
   colour reads as an error on a screen where nothing is broken. */
.quick-warn::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn); align-self: flex-start; margin-top: 6px;
}
.quick-warn > div { flex: 1 1 220px; min-width: 0; }
.quick-warn b { display: block; font-weight: 650; color: var(--ink); margin-bottom: 3px; }
.quick-warn .btn { flex: none; }

/* ── who signs the launch ─────────────────────────────────────────────── */
.lc-signer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; margin-bottom: 18px;
}
.lc-who { flex: 1 1 150px; min-width: 0; }
.lc-who b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3);
            text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.lc-who span { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-signer .btn { flex: none; }
