/* Orblivion: the trading wallet's page (wallet.orblivion.com). Self-contained: this origin loads nothing else. */

:root {
  color-scheme: dark;
  --bg: rgb(3 4 12); --surface: rgb(11 14 32); --surface-2: rgb(17 21 44); --surface-3: rgb(24 29 58); --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(150 170 255 / 0.2);
  --text: rgb(232 236 248); --text-2: rgb(170 178 205); --text-3: rgb(125 133 160);
  --accent: rgb(109 147 255); --up: rgb(98 240 200); --down: rgb(255 122 156); --amber: rgb(242 192 99);
  --accent-soft: rgb(109 147 255 / 0.12); --accent-line: rgb(109 147 255 / 0.5); --focus: rgb(111 231 255);
  --accent-grad: linear-gradient(90deg, #6fe7ff, #6d93ff 55%, #8a5cff);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* each redraw rebuilds the page and puts the focus back on an activity row: no scroll anchoring, or the page drifts */
#wallet-root { overflow-anchor: none; }

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: rgb(244 246 251); --surface: rgb(255 255 255); --surface-2: rgb(238 241 248); --surface-3: rgb(228 232 244); --line: rgb(0 0 0 / 0.12);
    --line-strong: rgb(24 32 80 / 0.2);
    --text: rgb(18 22 40); --text-2: rgb(70 78 104); --text-3: rgb(105 112 135);
    --accent: rgb(48 82 214); --up: rgb(10 140 104); --down: rgb(196 40 82); --amber: rgb(150 100 0);
    --accent-soft: rgb(61 107 255 / 0.09); --accent-line: rgb(54 86 224 / 0.42); --focus: rgb(54 86 224);
    --accent-grad: linear-gradient(90deg, #0b8fb5, #3656e0 55%, #6a43e0);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); overflow-wrap: anywhere; }
a { color: var(--accent); }
/* ---------- the page: a top bar, then a dashboard that uses the width. Spacing: 4, 8, 12, 16, 20, 24 ---------- */
.top {
  position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.brand { font: 600 13px var(--mono); letter-spacing: 0.24em; }
.tag { font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.host { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.5px; color: var(--text-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.shell { max-width: 1680px; margin: 0 auto; padding: 20px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px; align-items: start;
  /* the screen's height: the footer sits at the bottom, not under a short view in the middle of the page */
  min-height: calc(100vh - 54px); min-height: calc(100dvh - 54px); grid-template-rows: 1fr auto; }
/* before the wallet is made and backed up (a short view): the view and Safety in the middle of a tall screen */
@media (min-width: 1200px) and (min-height: 760px) { .shell.early { align-items: center; } .shell.early > .safety { position: static; } }
.root { min-width: 0; }
h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.3; }
h3 { margin: 16px 0 8px; font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.card { margin: 0 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.card p { margin: 0 0 12px; }
.small { font-size: 13px; }
/* side by side: make or restore; download or check */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pair > .card { margin: 0; }
.pair.start { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
/* the wallet (left) and the task (centre) */
.dash { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.wallet { position: sticky; top: 76px; margin: 0; }
.whead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.whead h2 { margin: 0; }
/* the address on one line, shortened (the Fund step shows it whole) */
.addrrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.addrrow .addr { flex: 1 1 auto; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addrrow .link { flex: none; }
.wstate { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.wstate .lbl { overflow: visible; }
.bals { display: grid; gap: 6px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.bal { display: flex; justify-content: space-between; gap: 12px; }
.bal .sym { font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--text-3); }
/* the passphrase box while locked: one row, and a line on why it locked */
.unlock { margin: 4px 0 8px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.unlockrow { display: flex; gap: 8px; align-items: center; }
.unlockrow input { flex: 1 1 auto; width: auto; min-width: 0; }
.unlockrow button { flex: none; }
.unlock p { margin: 8px 0 0; }
/* the steps: one panel at a time */
.task { min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.step {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text-2); font: 500 14px/1.25 var(--font);
}
.step .short { display: none; }
.step .n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-3); font: 600 12px var(--mono); color: var(--text-2); }
.step:hover { border-color: var(--accent-line); }
.step.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.step.on .n { background-image: var(--accent-grad); color: white; }
.step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel[hidden] { display: none; }
.panel > .card { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.panel > .card + .card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.stepnav { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.stepnav .btn:last-child { margin-left: auto; }
/* a step's body beside what comes next, or the form beside what it will do; one column when narrow */
.panel { container-type: inline-size; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px; align-items: start; }
.cols.form { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.preview { padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.preview h3 { margin: 0 0 8px; }
.preview h3 ~ h3 { margin-top: 16px; }
.preview .summary { margin: 0 0 10px; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.preview .gas { margin: 0; color: var(--text-2); }
.preview .row { margin-top: 14px; }
/* stacked under the form: the setup's list in two columns, only the step it is on (or stopped at) with its line */
@container (max-width: 760px) {
  .cols, .cols.form { grid-template-columns: minmax(0, 1fr); }
  .preview .wsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
  .preview .wstep:not(.now):not(.failed) .wsd { display: none; }
}
/* a live agent's setup: done, the step it is on, what is left */
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wstep { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 8px; border-radius: 8px; color: var(--text-2); }
.wstep .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-3); font: 600 11px var(--mono); color: var(--text-2); }
.wst { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; }
.wst strong { font-weight: 600; color: var(--text); }
.wsd { font-size: 12px; color: var(--text-3); }
.wstep.done .n { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.wstep.now { background: var(--accent-soft); }
.wstep.now .n { background-image: var(--accent-grad); color: white; }
.wstep.failed { background: color-mix(in srgb, var(--down) 10%, transparent); }
.wstep.failed .n { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
/* the whole way, before the wallet is made and backed up */
.journey { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.journey li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--text-2); }
.journey .n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-3); font: 600 12px var(--mono); color: var(--text-2); }
.journey .jt { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; }
.journey .jt strong { font-weight: 600; }
.journey .jd { font-size: 12.5px; color: var(--text-3); }
.journey li.done .n { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.journey li.now { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.journey li.now .n { background-image: var(--accent-grad); color: white; }
/* the backup's download, confirmed */
.saved { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin: 12px 0 0; padding: 10px 12px;
  border-left: 3px solid var(--up); border-radius: 8px; background: var(--surface-2); }
.saved code { font-size: 13px; overflow-wrap: anywhere; }
.saved p { margin: 4px 0 0; }
.fundaddr code { display: block; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2);
  font-size: 15px; overflow-wrap: anywhere; }
/* the safety panel (right): always there, the long text one click away */
.safety { position: sticky; top: 76px; padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 12px; background: var(--surface); min-width: 0; }
.safe { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.safe li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.safe strong { color: var(--text); }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font: 700 11px var(--font); }
.ico.warn { color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); }
.ico.stop { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
.ico.ok { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.more { margin: 0 0 12px; font-size: 13.5px; color: var(--text-2); }
.more summary { cursor: pointer; color: var(--text); font-weight: 500; }
.more[open] summary { margin-bottom: 8px; }
.more p { margin: 0 0 8px; }
.safety > p { margin: 0 0 4px; }
.offswitch { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.offswitch h3 { margin-top: 0; }
.offswitch p { margin: 0 0 8px; }
.list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
.addr { font-size: 13px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; }
/* fields and buttons: the same standard as the agents page (web/hosted-page.css) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; margin: 0 0 4px; }
.grid .wl-ai-note { grid-column: 1 / -1; margin: 2px 0 12px; }
.fld { display: grid; grid-template-rows: auto auto; gap: 6px; align-content: start; margin: 0 0 12px; min-width: 0; }
.lbl { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field {
  display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background-color: var(--surface-2); color: var(--text);
  font: 400 14px/1.2 var(--mono); -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--text-3); opacity: 1; }
.field:hover { border-color: var(--accent-line); }
.field:disabled { opacity: 0.55; cursor: not-allowed; }
select.field {
  padding-right: 40px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
select.field option { background-color: var(--surface-2); color: var(--text); }
select.field option:checked { background-color: var(--surface-3); }
@supports (appearance: base-select) {
  select.field, select.field::picker(select) { appearance: base-select; }
  select.field { display: flex; align-items: center; gap: 10px; padding-right: 14px; background-image: none; }
  select.field::picker-icon { color: var(--text-2); }
  select.field::picker(select) {
    margin-top: 6px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 10px;
    background: var(--surface-2); color: var(--text); box-shadow: 0 14px 34px rgb(0 0 0 / 0.35);
  }
  select.field option { padding: 9px 12px; border-radius: 7px; font: 400 14px/1.2 var(--mono); }
  select.field option:hover, select.field option:focus-visible { background-color: var(--accent-soft); outline: none; }
  select.field option:checked { background-color: var(--surface-3); font-weight: 600; }
  select.field option::checkmark { color: var(--accent); }
}
/* a file field: the input visually hidden but focusable, a label as its button, the chosen file's name beside it */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; border: 0; }
.filerow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.filebtn { display: inline-flex; align-items: center; cursor: pointer; }
.sr-only:focus-visible + .filebtn, .sr-only:focus + .filebtn { outline: 2px solid var(--accent); outline-offset: 1px; }
.filename { font: 13px var(--mono); overflow-wrap: anywhere; }
/* a suggested passphrase, shown once, to write down */
.suggest { margin: 4px 0 14px; padding: 12px 14px; border: 1px dashed var(--amber); border-radius: 10px; background: var(--surface-2); }
.suggest-head { margin: 0 0 6px; font-weight: 600; color: var(--amber); }
/* the six words as chips (the spaces between them are still in the text) */
.suggest-words { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 2px 0 8px; font-size: 17px; line-height: 1.4; color: var(--text); }
.suggest-words .w { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.suggest-how { margin: 0 0 6px; font-weight: 500; color: var(--text-2); }
/* how strong a new passphrase is, as it is typed */
.strength { margin: -4px 0 10px; min-height: 1.2em; font-size: 13px; }
.strength.weak { color: var(--down); }
.strength.almost { color: var(--amber); }
.strength.strong { color: var(--up); }
/* whether "the passphrase again" matches the first */
.matchnote { margin: -4px 0 10px; min-height: 1.2em; font-size: 13px; color: var(--text-3); }
.matchnote.ok { color: var(--up); }
.matchnote.off { color: var(--amber); }
.field:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent-line); }
.btn:focus-visible, .link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; color: var(--text-2); }
.check input { margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 8px; }
.row .field { flex: 1 1 200px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background-color: transparent; color: var(--text);
  font: 500 14px/1.25 var(--font); white-space: nowrap;
  transition: border-color .15s, background-color .15s, box-shadow .2s, filter .15s, opacity .15s, transform .06s;
}
.btn:hover { border-color: var(--accent-line); background-color: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn:disabled:hover { opacity: 0.5; cursor: not-allowed; transform: none; border-color: var(--line-strong); background-color: transparent; }
/* the primary action: the gradient painted from the border box, so it fills the pill exactly */
.btn.primary, .btn.primary:hover {
  border-color: transparent; color: white; text-shadow: 0 1px 1px rgb(0 0 0 / 0.22);
  background-color: var(--accent); background-image: var(--accent-grad); background-origin: border-box; background-clip: border-box;
}
.btn.primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 1px 2px rgb(0 0 0 / 0.25); }
.btn.primary:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.34), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 6px 22px -6px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn.primary:active { filter: brightness(0.94); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.3); }
.btn.primary:disabled, .btn.primary:disabled:hover {
  border-color: transparent; background-image: var(--accent-grad); filter: saturate(0.25); opacity: 0.45; box-shadow: none; text-shadow: none;
}
.btn.primary:focus-visible { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 0 0 5px color-mix(in srgb, var(--focus) 22%, transparent); }
.btn.danger, .btn.danger:hover { border-color: var(--down); color: var(--down); }
.btn.wrap { white-space: normal; text-align: center; padding-block: 8px; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.badge.warn { color: var(--amber); }
.btn.danger:hover { background-color: rgb(255 122 156 / 0.1); }
.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 600 11px var(--mono); text-transform: uppercase;
  letter-spacing: 0.05em; background: var(--surface-2); color: var(--text-2); }
.badge.up { color: var(--up); }
.err { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--down); border-radius: 8px; background: var(--surface-2); }
.err.warn { border-left-color: var(--amber); }
.err strong { display: block; }
.err code { font: 12px var(--mono); color: var(--text-3); }
.status { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); }
.notice { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--up); border-radius: 8px; background: var(--surface); }
/* activity scrolls inside its panel, not the page */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: min(60vh, 640px); overflow: auto; }
.item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.confirm { margin: 8px 0; padding: 10px; border-left: 3px solid var(--down); }
.log { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; max-height: 220px; overflow: auto; font-size: 13px; color: var(--text-2); }
.shell > footer { grid-column: 1 / -1; align-self: end; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.shell > footer p { margin: 0; }
/* a tablet: the wallet and the task, with Safety as a strip on top */
@media (max-width: 1199px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .journey .jd { display: none; }
  .safety { order: -1; position: static; }
  .safe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash { grid-template-columns: 300px minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a phone: one column, the wallet, the step, then Safety (its off switch above the footer); the top bar on two rows:
   the brand and the lock, then the host */
@media (max-width: 767px) {
  .top { position: static; padding: 10px 16px; }
  .top .host { order: 3; flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .shell { padding: 16px; gap: 16px; grid-template-rows: 1fr auto auto; }
  .safety { order: 1; }
  .shell > footer { order: 2; }
  .journey { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .journey li { padding: 6px 10px; align-items: center; }
  .journey li:not(.now) .jt { display: none; }
  .journey .jd { display: none; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .step { flex-direction: column; gap: 4px; min-height: 56px; padding: 6px 4px; text-align: center; justify-content: center; font-size: 12.5px; }
  .step .long { display: none; }
  .step .short { display: inline; }
  .bals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .bal { flex-direction: column; gap: 2px; min-width: 0; }
  .bal .mono { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .wstate.ok { display: none; }
  .unlock { padding: 10px; }
  .safe { grid-template-columns: minmax(0, 1fr); }
  .dash, .pair, .pair.start { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wallet { position: static; }
  .card, .panel { padding: 16px; }
}
/* a narrow phone: the brand, the lock state and Lock now on one row (the card names the wallet) */
@media (max-width: 480px) {
  .top .tag { display: none; }
}
@media (max-width: 640px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .wallet .kv { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; }
  .wallet .kv dd { margin-bottom: 0; }
  .row > .btn { flex: 1 1 auto; white-space: normal; text-align: center; padding-block: 8px; }
}
