/* The vault.
 *
 * One dark room. Doors are steel, accounts are leather, networks are metal
 * cards: bronze (private), silver (public test), gold (main). Colour never
 * carries a meaning on its own; every lamp has a word beside it.
 *
 * Layout: the phone flow is one column about 24rem wide. Wider screens do not
 * stretch it; they put two or three such columns side by side (the wall, the
 * list behind the open door, the thing that is open). The viewport picks the
 * number of panes; inside a pane, container queries do the rest.
 */

:root {
  --ground: #05070A;      /* the brand's near-black */
  --room: #161c24;
  --room-2: #1f2630;
  --line: #2a323c;
  --line-2: #3a4452;
  --ink: #e8e6df;
  --ink-2: #f2efe6;
  --muted: #9aa3ad;
  --muted-2: #6b7684;
  --brass: #e9c46a;
  --brass-ink: #1a1407;
  /* the brand is the light: cyan is live, the ring's red is off */
  --cyan: #4FE3F3;
  --cyan-flat: #27BBC8;
  --cyan-ink: #05070A;
  --red: #D8403A;
  --red-glow: #F07A72;
  --ok: var(--cyan);
  --bad: var(--red-glow);
  --warn: #f1d27a;
  --blue: #7cc4ff;
  --cream: #f2efe6;
  --cream-ink: #1b1f24;
  --cream-muted: #6b7684;
  --evm: #9fb4ff;
  --xrpl: #63d2c5;
  --accent: var(--cyan);
  --bronze: linear-gradient(135deg, #d39a62 0%, #a66a35 45%, #e0ab76 100%);
  --bronze-ink: #2a1708;
  --silver: linear-gradient(135deg, #e6e6e6 0%, #a9adb3 45%, #f0f0f0 100%);
  --silver-ink: #1b1f24;
  --gold: linear-gradient(135deg, #f1d27a 0%, #c9962f 45%, #f7e2a1 100%);
  --gold-ink: #2a1e05;
  --steel: linear-gradient(160deg, #bfc4ca 0%, #9ba1a8 45%, #8c929a 55%, #b9bec4 100%);
  --steel-off: linear-gradient(160deg, #767c83 0%, #61676e 50%, #71777e 100%);
  --gunmetal: linear-gradient(160deg, #6b7178 0%, #4e545b 50%, #646a71 100%);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --pane: 24.375rem;      /* 390px: the phone column everything was designed at */
  box-sizing: border-box;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #0f1a24 0%, var(--ground) 60%) fixed;
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
  min-height: 100dvh;
}
.evm { --accent: var(--evm); }
.xrpl { --accent: var(--xrpl); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
h1:focus { outline: none; }

/* ---- panes ------------------------------------------------------------------------------- */

.panes { display: grid; min-height: 100dvh; }
.pane { min-width: 0; padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); container-type: inline-size; }
.pane.list, .pane.detail { display: flex; flex-direction: column; }
.pane.empty { display: none; }
.spacer { flex: 1; }

/* one pane: a phone. Only the deepest pane shows. */
.panes[data-depth="0"] > .list, .panes[data-depth="0"] > .detail,
.panes[data-depth="1"] > .wall, .panes[data-depth="1"] > .detail,
.panes[data-depth="2"] > .wall, .panes[data-depth="2"] > .list { display: none; }

/* two panes: the wall (390) and whatever is open (at least 390). */
@media (min-width: 48.75rem) {
  .panes { grid-template-columns: var(--pane) minmax(var(--pane), 1fr); gap: 0; }
  .panes > .wall { display: flex !important; flex-direction: column; border-right: 1px solid var(--line); min-height: 100dvh; position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow-y: auto; }
  .panes[data-depth="2"] > .list { display: none; }
  .panes[data-depth="0"] > .detail.empty { display: flex; align-items: center; justify-content: center; }
  .panes > .list, .panes > .detail { width: 100%; justify-self: stretch; }
  .panes > .list > *, .panes > .detail > * { width: 100%; max-width: 42rem; margin-inline: auto; }
  .back-round.to-vault { display: none; }
}

/* three panes: wall (390), list (390), and the open thing taking the rest */
@media (min-width: 73.125rem) {
  .panes { grid-template-columns: var(--pane) var(--pane) minmax(var(--pane), 1fr); }
  .panes > .list { display: flex !important; border-right: 1px solid var(--line); min-height: 100dvh; }
  .panes > .detail { display: flex !important; }
  .panes > .detail.empty { align-items: center; justify-content: center; }
  .pane.list .back-round { display: none; }
  .pane.detail .back-round.to-list { display: none; }
}

/* ---- type ---------------------------------------------------------------------------------- */

h1 { font-family: var(--display); font-size: 1.375rem; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
h2 { font-family: var(--display); font-size: 1.125rem; margin: 1.75rem 0 .25rem; }
h3 { font-family: var(--display); font-size: 1rem; margin: 0; }
p { margin: .5rem 0; max-width: 65ch; }
.lede { font-size: 1.0625rem; }
.blurb, .hint, .status { color: var(--muted); }
.hint, .status { font-size: .875rem; }
.legend { margin: .875rem 0 1.5rem; display: flex; justify-content: center; gap: 1.5rem; color: var(--muted-2); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
a { color: var(--cyan); text-underline-offset: .15em; }
code { font-family: var(--mono); font-size: .875rem; overflow-wrap: anywhere; }
.pane-head { display: flex; align-items: center; gap: .75rem; }
.pane-head > div { display: flex; flex-direction: column; min-width: 0; }
.pane-head .hint { margin: 0; font-size: .8125rem; }
.head-text { flex: 1; }
.name-row { display: flex; align-items: center; gap: .25rem; min-width: 0; }
.name-row h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rename { display: flex; gap: .5rem; align-items: center; width: 100%; }
.rename input { font-family: var(--display); font-weight: 700; font-size: 1.125rem; border-color: var(--cyan); }

/* ---- controls -------------------------------------------------------------------------------- */

button, .button, input, select, textarea { font: inherit; color: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .5rem 1rem;
  background: var(--room); border: 1px solid var(--line-2); border-radius: .875rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
}
button.primary { background: var(--cyan-flat); color: var(--cyan-ink); border-color: transparent; }
button.quiet { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: .2em; font-weight: 500; padding-inline: .5rem; color: var(--muted); }
button.quiet[aria-current="page"] { color: var(--ink-2); text-decoration: none; }
button.bad { border-color: var(--bad); color: var(--bad); }
button.small { min-height: 2.25rem; padding: .25rem .75rem; font-size: .875rem; border-radius: .75rem; }
button.dashed { width: 100%; border: 1px dashed var(--line-2); background: transparent; color: #c9ced6; font-weight: 500; border-radius: 1rem; margin-top: 1.25rem; }
button:disabled { opacity: .55; cursor: default; }
.back { padding-left: 0; }
.back::before { content: "‹"; margin-right: .4em; text-decoration: none; display: inline-block; }
.back-round { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; flex: none; }
.chev-back { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pencil { width: 2rem; height: 2rem; min-height: 0; padding: 0; border: none; background: transparent; color: var(--muted); border-radius: 50%; flex: none; }
.pencil svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }
.stack { display: grid; gap: .75rem; margin-top: 1.5rem; }
.actions { display: flex; gap: .625rem; margin-top: 1.25rem; }
.actions > * { flex: 1; min-height: 3.25rem; font-size: .9375rem; }

.field { margin: 1rem 0; }
.field label { display: block; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.field .hint { margin: .375rem 0 0; font-size: .8125rem; color: var(--muted-2); }
input[type="text"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 3rem; padding: .5rem .875rem;
  background: var(--room); border: 1px solid var(--line-2); border-radius: .75rem;
}
input[type="text"]:focus-visible, input[type="password"]:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cyan); outline: none; }
textarea { font-family: var(--mono); resize: vertical; }
.check, .switch { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; cursor: pointer; }
.check input, .switch input { width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--cyan-flat); }
.switch { font-size: .875rem; color: var(--muted); }
.error { color: var(--bad); font-weight: 600; }
.error::before { content: "Problem: "; }
.aside { margin-top: 2rem; color: var(--muted); }
.aside.blind { margin-top: 1rem; padding: 0 1rem; border-left: 4px solid var(--warn); background: var(--room); border-radius: 0 .5rem .5rem 0; }
.aside summary, .adjust summary, .fields summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; color: var(--muted); }
form.danger { border-left: 4px solid var(--bad); padding-left: 1rem; }
.narrow { max-width: 32rem; }
.acct, .sending, .dashboard { width: 100%; }

/* ---- the gate: before the vault opens --------------------------------------------------------- */

.gate { max-width: 32rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
/* the lock screen is the brand's hero: the lockup with its data flow, running to the edges on a phone and fading into the form */
.gate .top { margin: 0 -1.25rem .75rem; }
.gate .hero { display: block; width: 100%; height: auto; mask-image: linear-gradient(180deg, #000 72%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
@media (min-width: 48.75rem) {
  .gate .top { margin: 1rem 0 .5rem; }
  .gate .hero { width: min(100%, 24rem); margin: 0 auto; mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%); }
  /* behind the lock screen the room is the lockup's own black at the centre, lightening toward the edges, so the picture has no edge to find */
  body:has(.gate) { background: radial-gradient(ellipse 44rem 34rem at 50% 14rem, var(--ground) 0 38%, #0d1620 100%) fixed; }
}
.gate h1 { font-size: 1.75rem; margin: 1rem 0 .5rem; }
.phrase {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem 1rem;
  margin: 1.25rem 0; padding: 1rem 1rem 1rem 2.5rem;
  background: var(--room); border: 1px dashed var(--line-2); border-radius: .75rem;
  font-family: var(--mono);
}
.phrase li::marker { color: var(--muted); }

/* ---- the wall ------------------------------------------------------------------------------------ */

.wall { background: linear-gradient(180deg, var(--ground) 0 8rem, #0f161e 12rem, var(--ground) 100%); } /* true black behind the masthead, so the lockup's edges vanish into it */
.wall-head { display: flex; justify-content: space-between; align-items: center; padding: 0 .25rem; }
/* the masthead is the landscape lockup with its data flow, bleeding to the top and sides of the pane; the menu button sits over its dark corner */
.wall { padding-top: 0; }
.wall-head { position: relative; margin: 0 -1.25rem 0; padding: 0; display: block; }
.masthead { margin: 0; }
.masthead .lockup { display: block; width: 85%; /* the right edge stays clear for the menu button */ height: auto; }
.wall-head .menu-anchor { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1.25rem; }
.wall .wall-grid { margin-top: .25rem; }

/* the menu: a round steel button, and the panel it drops */
.menu-anchor { position: relative; flex: none; }
.menu-btn {
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; flex-direction: column; gap: 4px;
  background: var(--steel); border: none; color: #2a2f35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .5);
}
.menu-btn .bar { display: block; width: 1.125rem; height: 2px; border-radius: 1px; background: #2a2f35; box-shadow: 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu {
  position: absolute; right: 0; top: calc(100% + .625rem); z-index: 20; width: min(20rem, calc(100vw - 2.5rem));
  padding: .375rem; border-radius: 1rem;
  background: var(--room-2); border: 1px solid var(--line-2); border-top: 3px solid var(--cyan);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.menu-item, .learn {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.25rem; padding: .5rem .875rem;
  border: none; border-radius: .75rem; background: transparent; color: var(--ink); text-align: left; font-weight: 400; cursor: pointer;
}
.menu-item:hover, .learn:hover { background: rgba(255, 255, 255, .05); }
.menu-item[aria-current="page"] { background: rgba(79, 227, 243, .08); }
.menu-item .rr-title, .learn .rr-title { font-weight: 600; font-size: .9375rem; }
.menu-item .rr-sub, .learn .rr-sub { white-space: normal; }
.learn { border-bottom: 1px solid var(--line); border-radius: .75rem .75rem 0 0; margin-bottom: .25rem; }

/* the Learn switch: a steel track with a brass knob, and a lamp that lights when it is on */
.toggle { position: relative; flex: none; display: inline-block; width: 3.5rem; height: 2rem; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.toggle .track {
  position: absolute; inset: 0; border-radius: 1rem;
  background: var(--gunmetal); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .08);
  transition: background .25s;
}
.toggle .knob {
  position: absolute; top: 3px; left: 3px; width: calc(2rem - 6px); height: calc(2rem - 6px); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7e2a1, #c9962f 60%, #8a6318 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.toggle .toggle-lamp { position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); transition: background .25s, box-shadow .25s; }
.toggle input:checked + .track { background: linear-gradient(160deg, #3a3f46 0%, #2a2f35 50%, #363b42 100%); }
.toggle input:checked + .track .knob { transform: translateX(1.5rem); }
.toggle input:checked + .track .toggle-lamp { left: 9px; right: auto; background: var(--cyan); box-shadow: 0 0 8px var(--cyan), 0 0 2px var(--cyan); }
.toggle input:focus-visible + .track { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .toggle .knob, .menu-btn .bar { transition: none; } }
.wall-grid {
  margin-top: 1.375rem; padding: .5rem; border-radius: .375rem;
  background: linear-gradient(135deg, #30363d, #1a1f25);
  box-shadow: inset 0 0 0 1px #0b0e12, inset 0 0 0 2px #454c55, 0 20px 50px rgba(0, 0, 0, .6);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
}
.slot { position: relative; height: 9.375rem; border-radius: 3px; background: #07090c; box-shadow: inset 0 0 0 1px #000, inset 0 3px 10px rgba(0, 0, 0, .95); }
.door {
  position: absolute; inset: 0; margin: 0; padding: 0; border: none; border-radius: 3px; cursor: pointer;
  background: var(--steel); color: #cfd4da; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .32s;
  overflow: hidden;
}
.door.future { background: var(--steel-off); opacity: .8; cursor: default; }
.door.bench { background: var(--gunmetal); }
.door:hover:not(.future) { filter: brightness(1.06); }
.door.picked { transform: scale(1.04); box-shadow: 0 18px 36px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 2px var(--cyan); z-index: 2; }
.door .brushed { position: absolute; inset: 0; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 2px, rgba(0, 0, 0, .05) 2px 3px); opacity: .9; }
.door .panel { position: absolute; inset: 14px; border-radius: 2px; box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .45), inset -1px -1px 0 rgba(255, 255, 255, .18); }
.bolt { position: absolute; width: 8px; height: 8px; background: radial-gradient(circle at 35% 30%, #c9ced4, #4b5159 70%); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); box-shadow: 0 1px 1px rgba(0, 0, 0, .8); }
.bolt.tl { left: 5px; top: 5px; } .bolt.tr { right: 5px; top: 5px; } .bolt.bl { left: 5px; bottom: 5px; } .bolt.br { right: 5px; bottom: 5px; }
.door-lamp { position: absolute; right: 20px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok), inset 0 0 0 1px rgba(0, 0, 0, .4); }
.door-lamp.future { background: var(--bad); box-shadow: 0 0 5px var(--bad), inset 0 0 0 1px rgba(0, 0, 0, .4); }
.slot.vacant { box-shadow: inset 0 0 0 1px #000, inset 0 4px 14px rgba(0, 0, 0, .95); }
/* the mint and the market: one wide drawer under the wall with a low door each, lit because they are always open */
.bench-drawer {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 0; padding: .5rem; border-radius: .375rem;
  background: linear-gradient(135deg, #30363d, #1a1f25);
  box-shadow: inset 0 0 0 1px #0b0e12, inset 0 0 0 2px #454c55, 0 14px 36px rgba(0, 0, 0, .55);
}
.bench-drawer .slot { height: 4.6875rem; }
.door.bench { flex-direction: row; gap: 1.125rem; padding-left: 3.25rem; justify-content: flex-start; }
.door.bench .door-mark { width: 44px; height: 44px; }
.door.bench .door-mark svg { max-height: 44px; width: 44px; height: 44px; }
.door.bench .panel { inset: 10px; }
.door.bench .plate { font-size: .875rem; padding: 6px 14px; letter-spacing: .18em; }
.door.bench .stamp { top: 50%; transform: translateY(-50%); left: 16px; }
.stamp { position: absolute; left: 20px; top: 17px; font-family: var(--display); font-size: .625rem; font-weight: 700; letter-spacing: .12em; color: #3b4148; text-shadow: 1px 1px 0 rgba(255, 255, 255, .18); }
.door-mark { display: flex; align-items: center; justify-content: center; width: 72px; height: 52px; position: relative; }
.door-mark svg { max-height: 104px; filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .4)) drop-shadow(1px 1px 0 rgba(0, 0, 0, .7)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
/* the Ethereum diamond is tall: it hangs lower and its plate tucks up under it */
.door-mark:has(svg[viewBox="0 0 1920 1920"]) { height: 104px; top: -14px; }
.door-mark:has(svg[viewBox="0 0 1920 1920"]) + .plate { margin-top: -20px; position: relative; top: -14px; }
.plate {
  padding: 4px 10px; border-radius: 2px; position: relative;
  background: linear-gradient(180deg, #2a2f35, #15181c); color: #cfd4da;
  font-family: var(--display); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(255, 255, 255, .18);
}
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }

/* ---- the accounts: leather wallets ---------------------------------------------------------------- */

.wallets { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.wallet {
  display: block; width: 100%; height: 7.25rem; padding: 0; border: none; border-radius: 1rem; text-align: left; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2f3a4a, #1a222d); color: var(--ink-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .2s;
}
.wallet.ledger { background: linear-gradient(135deg, #3b2f2a, #1f1714); }
.wallet.trezor { background: linear-gradient(135deg, #2a3b33, #141f1a); }
.wallet:hover { transform: translateX(6px); }
.wallet.picked { box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 2px var(--cyan); }
.wallet .grain { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px), radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.3px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
.wallet .sheen { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .08), transparent 45%, rgba(0, 0, 0, .25)); }
.wallet .stitch { position: absolute; inset: 7px; border-radius: 11px; border: 1px dashed rgba(255, 255, 255, .18); }
.wallet-top { position: absolute; left: 16px; right: 16px; top: 18px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.wallet-name { font-family: var(--display); font-size: 1.25rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet-addr { position: absolute; left: 20px; right: 12px; bottom: 20px; display: block; font-family: var(--display); font-size: clamp(.5rem, 3.05cqi, .7rem); line-height: 1.3; color: rgba(242, 239, 230, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the maker's mark, raised in the leather, a shade lighter, lit from the top left */
.emboss { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; color: #3d4a5e; }
.wallet.ledger .emboss { color: #5a443c; }
.wallet.trezor .emboss { color: #3b5447; }
.emboss svg { fill: currentColor; filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .35)) drop-shadow(1px 1px 0 rgba(0, 0, 0, .6)); }
.emboss.thin svg { filter: drop-shadow(-.5px -.5px 0 rgba(255, 255, 255, .35)) drop-shadow(.5px .5px 0 rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: reduce) { .wallet { transition: none; } .wallet:hover { transform: none; } }

/* ---- the card ---------------------------------------------------------------------------------------- */

.tier-tabs { display: flex; gap: .5rem; margin-top: 1.5rem; }
.tier-tab { flex: 1; min-height: 2.5rem; border-radius: .75rem; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.tier-tab.on { background: #2b3440; border-color: var(--cyan); color: var(--ink-2); }
.card-wrap { margin-top: 1.5rem; perspective: 1200px; max-width: 26rem; }
.card3d { position: relative; width: 100%; aspect-ratio: 342 / 214; min-height: 13.375rem; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card3d.flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 1.125rem; padding: 1.25rem 1.375rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.face.front.private { background: var(--bronze); color: var(--bronze-ink); }
.face.front.test { background: var(--silver); color: var(--silver-ink); }
.face.front.main { background: var(--gold); color: var(--gold-ink); }
.face.rear { transform: rotateY(180deg); background: var(--room); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line-2); flex-direction: row; gap: 1rem; align-items: center; padding: 1.125rem; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-tier { display: flex; flex-direction: column; gap: 2px; }
.tier-word, .bal-word { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.net-name { font-family: var(--display); font-size: .9375rem; font-weight: 700; }
.card-mark { height: 40px; width: 48px; align-items: flex-start; justify-content: flex-end; min-width: 0; color: inherit; }
.card-mark svg { opacity: .7; filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .35)) drop-shadow(1px 1px 0 rgba(0, 0, 0, .45)); }
.card-bal { display: flex; flex-direction: column; gap: 2px; }
.card-bal .bal { font-family: var(--display); font-size: 1.875rem; font-weight: 700; letter-spacing: .01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card-bal .sym { font-size: 1rem; font-weight: 500; color: inherit; opacity: .8; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; }
.card-addr { font-family: var(--display); font-size: .8125rem; letter-spacing: .12em; }
.lamps { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lamp { display: inline-flex; align-items: center; gap: 6px; }
.lamp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted-2); }
.lamp.ok .lamp-dot { background: var(--ok); box-shadow: 0 0 5px var(--ok); }
.lamp.bad .lamp-dot { background: var(--bad); box-shadow: 0 0 5px var(--bad); }
.lamp.warn .lamp-dot { background: var(--warn); box-shadow: 0 0 5px var(--warn); }
.lamp.coins .lamp-dot, .lamp.nfts .lamp-dot { background: var(--ok); box-shadow: 0 0 5px var(--ok); } /* lit is lit: a lamp that is on is cyan, whatever it is for */
.lamp.checking .lamp-dot { background: var(--muted-2); }
.face.rear .qr { width: 8.5rem; height: 8.5rem; border-radius: .625rem; flex: none; }
.back-text { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.back-text .addr { margin: 0; padding: 0; background: none; border: none; font-family: var(--display); font-size: .75rem; word-break: break-all; color: var(--ink-2); }
.back-text .hint { font-size: .75rem; margin: 0; }
.back-text button { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .card3d { transition: none; } }
.real-notice { margin-top: 1rem; padding: .625rem .875rem; border-radius: .625rem; background: #3a2d0f; color: var(--warn); font-size: .8125rem; border-left: 4px solid var(--red); }
.real-notice strong { color: var(--warn); }
.real-check { flex-basis: 100%; font-weight: 600; }
.status:empty { display: none; }

/* ---- ruled lists: holdings, entries, tokens ---------------------------------------------------------- */

.ruled { margin-top: 1.5rem; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ruled-head { display: flex; justify-content: space-between; padding: .75rem 0 .5rem; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rows { display: flex; flex-direction: column; }
.rr { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; border: none; border-top: 1px dashed var(--line); background: transparent; color: var(--ink); text-align: left; width: 100%; border-radius: 0; font-weight: 400; min-height: 0; }
button.rr { cursor: pointer; }
button.rr:hover .rr-title { color: var(--cyan); }
.rr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rr-title { font-size: .875rem; color: var(--ink-2); }
.rr-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-right { font-family: var(--display); font-weight: 700; font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.rr-right .sym { font-weight: 500; font-size: .75rem; color: var(--muted); }
.chev { width: 1rem; height: 1rem; fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.coin-disc {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: .6875rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(255, 255, 255, .18), 0 2px 4px rgba(0, 0, 0, .6);
  text-shadow: -1px -1px 0 rgba(255, 255, 255, .35), 1px 1px 0 rgba(0, 0, 0, .5);
}
.coin-disc.silver { background: radial-gradient(circle at 35% 30%, #f2f4f6, #9ea5ad 60%, #6c737b); color: #2b3138; }
.coin-disc.bronze { background: radial-gradient(circle at 35% 30%, #e6b685, #a66a35 60%, #7d4c22); color: #2a1708; }
.coin-disc.large { width: 84px; height: 84px; font-size: 1.25rem; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 0 0 7px rgba(255, 255, 255, .18), 0 6px 14px rgba(0, 0, 0, .6); }
.card-stack { position: relative; width: 38px; height: 38px; flex: none; --art: linear-gradient(135deg, #2f6f8f, #1a3a4a); }
.cs { position: absolute; inset: 0; border-radius: 6px; background: var(--art); }
.cs1 { transform: rotate(-8deg) translate(-3px, 1px); opacity: .55; }
.cs2 { transform: rotate(4deg) translate(2px, 0); opacity: .8; }
.cs3 { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 4px rgba(0, 0, 0, .6); }
.entries-body .hint { margin: .5rem 0; }
.tx-list { list-style: none; padding: 0; margin: 0; }
.tx-list li { display: flex; flex-wrap: wrap; gap: .125rem .75rem; align-items: baseline; padding: .625rem 0; border-top: 1px dashed var(--line); font-size: .875rem; }
.tx-what { color: var(--ink-2); }
.tx-who, .tx-list time { color: var(--muted); font-size: .75rem; }
.tx-list li > :last-child { margin-left: auto; font-family: var(--display); font-size: .75rem; }
.tx-list .failed .tx-what { color: var(--bad); }
.token-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .75rem; }
.token { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem; background: var(--room); border: 1px solid var(--line); border-radius: .75rem; }
.token-art { flex: none; width: 5.5rem; height: 5.5rem; border-radius: .5rem; background: var(--ground); overflow: hidden; }
.token-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.token-text { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.token-text .who, .who { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.net { font-weight: 700; }
.bal { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.amount { font-weight: 700; }
.sym { color: var(--muted); font-weight: 600; }
.adjust { margin-top: .25rem; }
.adjust form { padding-bottom: .5rem; }
.faucet-msg { margin-top: 0; font-size: .875rem; }
.faucet-msg:empty { display: none; }

/* ---- the slip (review) and the tier strip ----------------------------------------------------------- */

.strip { margin-top: 1.25rem; height: 4rem; border-radius: .875rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1.125rem; box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.strip.private { background: var(--bronze); color: var(--bronze-ink); }
.strip.test { background: var(--silver); color: var(--silver-ink); }
.strip.main { background: var(--gold); color: var(--gold-ink); }
.strip > div { display: flex; flex-direction: column; gap: 1px; }
.strip > div:last-child { align-items: flex-end; }
.strip .net-name { font-size: .875rem; }
.strip .bal { font-family: var(--display); font-size: 1.125rem; font-weight: 700; }
.strip .sym { font-size: .75rem; font-weight: 500; color: inherit; opacity: .8; }
.slip { margin-top: 1.375rem; border-radius: .875rem; background: var(--cream); color: var(--cream-ink); padding: 1.125rem 1.25rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.slip-head { display: flex; justify-content: space-between; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-muted); }
.slip-rows { margin: .875rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .625rem .75rem; font-size: .875rem; }
.slip-rows dt { color: var(--cream-muted); }
.slip-rows dd { margin: 0; text-align: right; font-family: var(--display); overflow-wrap: anywhere; }
.slip-rows dd.big { font-size: 1.25rem; font-weight: 700; }
.slip-rows dd.rule { grid-column: 1 / -1; border-top: 1px dashed #b9bcc4; height: 0; margin: -.125rem 0; }
.slip-note { margin: .875rem 0 0; font-size: .75rem; color: var(--cream-muted); }
.slip a { color: #2a5a8f; }

/* ---- the tape: one transaction, one strip per step ----------------------------------------------------- */

.tape { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; }
.step { counter-increment: step; position: relative; padding: 0 0 1.5rem 3rem; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: -.2rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 2px solid var(--accent); border-radius: 50%;
  background: var(--ground); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
}
.step::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2rem; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.done::before { background: var(--accent); color: var(--ground); }
.step.failed::before { border-color: var(--bad); color: var(--bad); content: "!"; }
.step.active::before { animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .step.active::before { animation: none; border-style: dashed; } }
.explain { margin-top: .25rem; color: var(--muted); font-size: .9375rem; }
.progress { font-weight: 600; }
.step.done .progress { color: var(--ok); }
.step.failed .progress { color: var(--bad); }
.fields { margin-top: .5rem; }
.fields dl { margin: 0; padding: .25rem 1rem; background: var(--room); border: 1px solid var(--line); border-radius: .75rem; }
.fields dt { font-family: var(--mono); font-size: .8125rem; color: var(--accent); font-weight: 700; margin-top: .75rem; }
.fields dd { margin: 0 0 .75rem; }
.fields dd code { display: block; }
.note { display: block; color: var(--muted); font-size: .875rem; margin-top: .125rem; max-width: 60ch; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.after { position: sticky; bottom: env(safe-area-inset-bottom, 0px); padding: .75rem 0; background: var(--ground); margin-left: 3rem; }
.after:empty { display: none; }
.after .hint { flex-basis: 100%; margin: 0; }

/* ---- network status (the deep form, on detail pages) ---------------------------------------------------- */

.netstatus { font-size: .875rem; color: var(--muted); }
.netstatus p { margin: .25rem 0 0; }
span.netstatus { display: block; margin-top: .25rem; }
.netstatus strong { color: var(--ok); }
.netstatus[data-state="checking"] strong { color: var(--muted); }
.netstatus[data-state="stalled"] strong, .netstatus[data-state="degraded"] strong { color: var(--warn); }
.netstatus[data-state="unreachable"] strong, .netstatus[data-state="wrong"] strong { color: var(--bad); }
.status-details { margin: .25rem 0 0; padding-left: 1.1rem; }

/* ---- receive, settings, builders (kept from before, in the dark) ---------------------------------------- */

.receive-body { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.qr { width: 10rem; height: 10rem; border-radius: .5rem; flex: none; }
.addr { display: block; margin: .5rem 0 .75rem; padding: .75rem; background: var(--room); border: 1px solid var(--line); border-radius: .75rem; }
.tier { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier.main { color: var(--warn); }
.cards { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
.card { display: grid; gap: .125rem; justify-items: start; justify-content: stretch; align-content: start; text-align: left; width: 100%; height: 100%; padding: 1rem 1rem 1rem 1.125rem; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: .75rem; font-weight: 400; background: var(--room); }
.card:hover { border-color: var(--accent); }
.shared { display: grid; gap: .25rem; align-content: start; padding: 1rem; border: 1px dashed var(--line-2); border-radius: .75rem; color: var(--muted); font-size: .875rem; }
section.chain { margin-top: 1.25rem; }
section.chain h2, section.chain h3 { font-size: 1rem; color: var(--accent); }
.group { margin: 1.75rem 0 0; padding: 0 1rem .5rem; border: 1px solid var(--line); border-radius: .75rem; min-width: 0; }
.group legend { padding: 0 .5rem; font-weight: 700; font-size: 1.0625rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.guide-box { margin-top: 1.75rem; padding: .25rem 1rem .75rem; border-left: 4px solid var(--accent); background: var(--room); border-radius: 0 .5rem .5rem 0; }
.guide-box h2 { margin-top: .75rem; font-size: 1rem; }
.guide { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .875rem; }
input[type="range"] { width: 100%; min-height: 2.75rem; accent-color: var(--cyan-flat); }
.adjust output { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.designer { display: grid; gap: 1.5rem; align-items: start; }
.coin-stage { display: block; width: 100%; max-width: 26rem; aspect-ratio: 1; margin: 0 auto; }
.coin-still { width: 9rem; height: 9rem; flex: none; }
input[type="file"] { width: 100%; min-height: 2.75rem; padding: .5rem; background: var(--room); border: 1px dashed var(--line-2); border-radius: .75rem; }
.media-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.media-preview:empty { display: none; }
.media-preview img { max-width: 10rem; max-height: 10rem; border-radius: .5rem; border: 1px solid var(--line); }
pre.json { margin: 0; padding: 1rem; background: var(--room); border: 1px solid var(--line); border-radius: .75rem; font: .8125rem/1.5 var(--mono); overflow-x: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: 1rem 0; font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@container (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }
.project-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.slot-row { display: grid; gap: .375rem; align-content: start; justify-items: start; padding: 1rem; background: var(--room); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: .75rem; }
.cards .slot { height: auto; background: var(--room); box-shadow: none; border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: .75rem; display: grid; gap: .375rem; align-content: start; justify-items: start; padding: 1rem; }
.cards .slot.deployed { border-left-color: var(--accent); }
.slot-state { color: var(--muted); font-size: .875rem; }
.slot-state strong { color: var(--ok); }
.action { margin: 1.25rem 0; padding: 0 1rem 1rem; border: 1px solid var(--line); border-radius: .75rem; }
.action h3 { margin-top: 1rem; }
.action .group { margin-top: 1.25rem; }
.action .guide-box { margin-top: 1.25rem; }
.live { margin: 1rem 0; }
.version { margin-top: 2rem; }

/* ---- the send slip ---------------------------------------------------------------------------------- */

.send-slip { margin-top: .5rem; }
.with-button { position: relative; }
.with-button input { padding-right: 3.25rem; }
.with-button.amount input { font-family: var(--display); font-size: 1.625rem; font-weight: 700; min-height: 3.5rem; padding-right: 4.5rem; }
.with-button > button { position: absolute; right: .375rem; top: .375rem; min-height: 2.25rem; height: calc(100% - .75rem); padding: 0 .75rem; border-radius: .5625rem; border: none; background: #2b3440; color: var(--ink); font-size: .8125rem; }
.with-button > button.scan { width: 2.25rem; padding: 0; }
.with-button > button.max { color: var(--cyan); }

/* the scanner: the camera full-screen, a frame to aim with, one button out */
.scanner { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.25rem; background: rgba(6, 8, 11, .96); }
.scan-view { position: relative; width: min(100%, 24rem); aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 12%; border-radius: .75rem; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); outline: 2px solid var(--cyan); }
.scan-status { margin: 0; color: var(--ink); text-align: center; max-width: 24rem; }
.scanner .row { margin: 0; }
.scan svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fee-line { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); padding: 0 .125rem; }
.fee-line span:last-child { font-family: var(--display); color: #cfd4da; }
.slip-muted { color: var(--cream-muted); font-size: .75rem; }

/* ---- the workbench ----------------------------------------------------------------------------------- */

.workbench { display: flex; flex-direction: column; flex: 1; }
.tier-lamps { display: inline-flex; gap: 6px; }
.tier-lamp { width: 10px; height: 10px; border-radius: 50%; background: #1a1f25; box-shadow: inset 0 0 0 1px var(--line-2); }
.tier-lamp.lit.bronze { background: var(--bronze); box-shadow: 0 0 5px #d39a62; }
.tier-lamp.lit.silver { background: var(--silver); box-shadow: 0 0 5px #e6e6e6; }
.tier-lamp.lit.gold { background: var(--gold); box-shadow: 0 0 5px #f1d27a; }
.medal { width: 28px; height: 28px; border-radius: 50%; flex: none; opacity: .25; box-shadow: inset 0 0 0 1px var(--line-2); }
.medal.bronze { background: var(--bronze); } .medal.silver { background: var(--silver); } .medal.gold { background: var(--gold); }
.medal.lit { opacity: 1; }
.medal.lit.bronze { box-shadow: 0 0 8px #d39a62, inset 0 1px 0 rgba(255, 255, 255, .4); }
.medal.lit.silver { box-shadow: 0 0 8px #e6e6e6, inset 0 1px 0 rgba(255, 255, 255, .4); }
.medal.lit.gold { box-shadow: 0 0 8px #f1d27a, inset 0 1px 0 rgba(255, 255, 255, .4); }
.rr-dim { color: var(--muted-2); }
.lock { width: 18px; height: 18px; fill: none; stroke: #4a5563; stroke-width: 2; stroke-linecap: round; margin-right: 12px; }
.hero { margin-top: 1.375rem; display: flex; align-items: center; gap: 1.125rem; }
.hero-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hero-text .hint { margin: 0; font-size: .8125rem; }
.hero-sym { font-family: var(--display); font-size: 1.625rem; font-weight: 700; line-height: 1; }
.hero .addr { margin: 0; padding: .5rem .75rem; font-size: .75rem; }
.facts-box { margin-top: 1.375rem; border-radius: .875rem; background: var(--room); box-shadow: inset 0 0 0 1px var(--line); padding: .25rem 1rem; }
.facts-box .facts { margin: .5rem 0; font-size: .8125rem; }
.steps { margin-top: 1.125rem; display: flex; gap: .5rem; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--cyan); }
.options { margin-top: 1.375rem; display: flex; flex-direction: column; gap: .625rem; }
.option { display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem; border-radius: .875rem; border: 1px solid var(--line-2); background: var(--room); color: var(--ink); text-align: left; font-weight: 400; min-height: 0; }
.option[aria-disabled="true"] { opacity: .5; cursor: default; border-color: var(--line); }
.option .rr-title { font-size: .9375rem; font-weight: 600; }
.option .rr-sub { white-space: normal; }
.option .coin-disc:empty { width: 40px; height: 40px; }

/* adding an account: where the key lives, shown as the maker's mark or a stamped glyph */
.src-glyph, .src-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--steel); color: #2a2f35; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .5); }
.src-glyph { font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.src-mark { width: 56px; border-radius: 0; background: none; box-shadow: none; }
.src-mark svg { width: 54px; height: auto; max-height: 30px; filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .25)) drop-shadow(1px 1px 0 rgba(0, 0, 0, .7)); }
.preview { margin: 1rem 0; padding: .875rem 1rem; border-radius: .875rem; background: var(--room); border: 1px solid var(--line); display: grid; gap: .125rem; }
.preview .bal-word { margin-top: .5rem; }
.preview .bal-word:first-child { margin-top: 0; }
.preview .addr { display: block; margin: 0; padding: 0; background: none; border: none; }
.fixed { margin: 0; min-height: 3rem; display: flex; align-items: center; padding: .5rem .875rem; background: var(--room); border: 1px solid var(--line); border-radius: .75rem; color: var(--muted); }
.lamps.dark { opacity: 1; color: #cfd4da; margin-top: 4px; }
.facts-box .facts { grid-template-columns: max-content 1fr; gap: 0; }
.facts-box .facts dt, .facts-box .facts dd { padding: .625rem 0; border-top: 1px dashed var(--line); }
.facts-box .facts dt:first-of-type, .facts-box .facts dd:first-of-type { border-top: none; }
.facts-box .facts dd { text-align: right; font-family: var(--display); color: var(--ink-2); margin: 0; padding-left: .875rem; }
.defs { position: absolute; width: 0; height: 0; }
.token.offered { margin-top: 1.25rem; }
.mint-btn { margin-top: 1.25rem; }

/* ---- a coin's picture ------------------------------------------------------------------------------- */

.coin-face { width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden; display: block; background: var(--room); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 4px rgba(0, 0, 0, .6); }
.coin-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coin-face.large { width: 84px; height: 84px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .6); }
.coin-face.hero { width: 160px; height: 160px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.coin-disc.hero { width: 160px; height: 160px; font-size: 2rem; }
.coin-view { position: relative; width: 160px; height: 160px; flex: none; }
.coin-view canvas { display: block; width: 160px; height: 160px; }
.coin-view button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; background: transparent; border-radius: 50%; min-height: 0; }
.coin-view button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.hero.big { align-items: center; }

/* ---- NFTs: stacks, tiles, the item ------------------------------------------------------------------ */

.card-stack .cs { overflow: hidden; }
.card-stack .cs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-stack.large { width: 84px; height: 84px; }
.card-stack.large .cs { border-radius: 10px; }
.card-stack.large .cs1 { transform: rotate(-8deg) translate(-6px, 2px); }
.card-stack.large .cs2 { transform: rotate(4deg) translate(4px, 0); }
.card-stack.hero { width: 160px; height: 160px; }
.card-stack.hero .cs { border-radius: 14px; }
.card-stack.hero .cs1 { transform: rotate(-8deg) translate(-10px, 4px); }
.card-stack.hero .cs2 { transform: rotate(4deg) translate(8px, 0); }
.nft-grid { margin-top: .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .75rem; }
.nft-tile { display: flex; flex-direction: column; align-items: stretch; gap: .375rem; padding: 0; border: none; background: transparent; color: var(--ink); text-align: left; min-height: 0; border-radius: .75rem; }
.nft-tile:hover .nft-pic { box-shadow: 0 0 0 2px var(--cyan); }
.nft-pic { display: block; aspect-ratio: 1; border-radius: .75rem; background: linear-gradient(135deg, #2f6f8f, #1a3a4a); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.nft-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nft-label { font-size: .8125rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-hero { margin-top: 1.375rem; display: flex; flex-direction: column; gap: 1rem; }
.nft-big { width: 100%; max-width: 20rem; aspect-ratio: 1; border-radius: 1rem; background: linear-gradient(135deg, #2f6f8f, #1a3a4a); overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .15); }
.nft-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .5rem; margin-top: .75rem; }
.trait { padding: .5rem .75rem; border-radius: .625rem; background: var(--room); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trait dt { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trait dd { margin: 0; font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.offer-row .rr-right { font-weight: 500; }
.nft-desc { margin: 0; color: var(--ink); max-width: 60ch; }
.nft-big.model { background: transparent; box-shadow: none; position: relative; }
.nft-big canvas { display: block; width: 100%; height: 100%; }
.nft-big video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.media-toggle { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; background: transparent; border-radius: 1rem; min-height: 0; }
.media-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.nft-tile.still:hover .nft-pic { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }

/* sharing a token or collection: its link and QR */
.share { margin-top: 1.25rem; }
.share-body { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; padding-bottom: .5rem; }
.share-body .qr { width: 8.5rem; height: 8.5rem; flex: none; border-radius: .5rem; background: #fff; }
.share-text { flex: 1; min-width: 12rem; }
.share-url { font-size: .75rem; }

/* Find tokens */
.market select { width: 100%; margin: .25rem 0 .5rem; }
.market .source { margin-top: 1rem; }
