/* Epic Wallet pairing demo: page styles. No build step. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* page, dark */
  --bg: #141925;
  --bg-2: #1a2130;
  --bg-3: #212a3b;
  --text: #e8ebf1;
  --muted: #9aa5b8;
  --line: #2a3344;
  --line-2: #3a465c;
  --accent: #e2b86b;
  --accent-ink: #1d1605;
  --accent-soft: rgba(226, 184, 107, 0.14);
  --ok: #6fd3a3;
  --bad: #ff8a80;
  --warn: #f2c66d;
  --focus: #ffd98a;

  /* the device screen keeps its own face in both themes */
  --dv-bg: #0c1018;
  --dv-bg-2: #121826;
  --dv-bg-3: #1a2233;
  --dv-text: #f2f4f8;
  --dv-muted: #8d97ab;
  --dv-line: #232c3d;
  --dv-line-2: #324059;
  --dv-accent: #e2b86b;
  --dv-accent-ink: #1d1605;
  --dv-ok: #6fd3a3;
  --dv-bad: #ff8a80;
  --dv-warn: #f2c66d;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  --max: 1760px;
  --gutter: clamp(16px, 3vw, 56px);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-2: #ffffff;
  --bg-3: #eceef3;
  --text: #1b2130;
  --muted: #566075;
  --line: #d9dee8;
  --line-2: #c3cad8;
  --accent: #8a5f12;
  --accent-ink: #ffffff;
  --accent-soft: rgba(138, 95, 18, 0.12);
  --ok: #1f7a4d;
  --bad: #b3261e;
  --warn: #8a5f12;
  --focus: #8a5f12;
  --shadow: 0 20px 50px -30px rgba(20, 30, 50, 0.45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button, a, .seg, .item { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
em { font-style: normal; font-weight: 600; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.offscreen { position: absolute; width: 1px; height: 1px; left: -9999px; opacity: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -48px;
  padding: 8px 12px; background: var(--accent); color: var(--accent-ink);
  border-radius: 6px; z-index: 50; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand h1 { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 24px; height: 24px; fill: var(--accent); flex: none; }
.net {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px;
}
.net:empty { display: none; }
.h1-short { display: none; }

.tabs [role="tablist"] {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--bg-3); border-radius: 999px;
}
.tabs [role="tab"] {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  padding: 8px 20px; min-height: 40px; border-radius: 999px; cursor: pointer;
  font-weight: 500;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }

.top-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: var(--bad); color: var(--bad); background: transparent; }
.btn.danger:hover { background: rgba(255, 138, 128, 0.1); }
.btn.big { min-height: 52px; padding: 12px 24px; font-size: 17px; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  color: var(--accent-ink); animation: spin 800ms linear infinite;
}
.btn:not(.primary).is-busy::after { color: var(--text); }

/* buttons inside a device take the device palette */
.device .btn { border-color: var(--dv-line-2); background: var(--dv-bg-3); color: var(--dv-text); }
.device .btn:hover { border-color: var(--dv-accent); }
.device .btn.primary { background: var(--dv-accent); border-color: var(--dv-accent); color: var(--dv-accent-ink); }
.device .btn.ghost { background: transparent; }
.device .btn.danger { border-color: var(--dv-bad); color: var(--dv-bad); background: transparent; }
.device .btn.is-busy::after { color: var(--dv-text); }
.device .btn.primary.is-busy::after { color: var(--dv-accent-ink); }
.device :focus-visible { outline-color: #ffd98a; }

/* ---------- layout ---------- */

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 64px; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(560px, 720px); gap: clamp(40px, 5vw, 96px); align-items: start; }
}
@media (min-width: 1800px) {
  .cols { grid-template-columns: minmax(0, 1fr) 840px; }
  main { padding-top: 56px; }
}

.col-text { max-width: 68ch; }
.col-live { position: sticky; top: 92px; display: grid; gap: 24px; }
@media (max-width: 1099px) {
  .col-live { position: static; order: -1; }
  .col-text { max-width: none; }
}

.intro h2 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.intro p { font-size: 17px; color: var(--muted); max-width: 62ch; }
.intro p + p { margin-top: 10px; }
.phone-note { display: none; padding: 10px 14px; background: var(--accent-soft); border-radius: 8px; color: var(--text) !important; font-size: 15px !important; }
@media (max-width: 1099px) { .phone-note { display: block; } }

/* steps */
.steps { list-style: none; margin-top: 40px; counter-reset: step; display: grid; gap: 4px; }
.step {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.step::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line-2);
}
.step h3 { font-size: 18px; color: var(--muted); }
.step p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.step.is-current { background: var(--bg-2); border-color: var(--line); box-shadow: var(--shadow); }
.step.is-current::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step.is-current h3, .step.is-current p { color: var(--text); }
.step.is-done::before { content: "✓"; color: var(--ok); border-color: var(--ok); }
.step.is-done h3 { color: var(--text); }

.explain { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.explain h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.explain ul { list-style: none; display: grid; gap: 8px; }
.explain li { position: relative; padding-left: 18px; font-size: 15px; color: var(--muted); }
.explain li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: 0.8; }
.explain .fine { margin-top: 16px; }

/* ---------- device ---------- */

.device {
  background: var(--dv-bg);
  color: var(--dv-text);
  border: 1px solid var(--dv-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 6px var(--bg-3), 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  color-scheme: dark;
}
.device-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  background: var(--dv-bg-2);
  border-bottom: 1px solid var(--dv-line);
  font-family: var(--mono); font-size: 13px;
}
.device-name { color: var(--dv-muted); white-space: nowrap; }
.device-state { text-align: right; }
.device-state { color: var(--dv-accent); display: inline-flex; align-items: center; gap: 8px; }
.device-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.device-state.is-ok { color: var(--dv-ok); }
.device-state.is-bad { color: var(--dv-bad); }
.device-state.is-idle { color: var(--dv-muted); }
.device-body { padding: 24px; }
.card-device .device-body { padding: 20px 24px; }
.card-device .btn.primary { background: var(--dv-bg-3); color: var(--dv-text); border-color: var(--dv-line-2); }
.card-device .btn.primary:hover { border-color: var(--dv-accent); }

.view { display: grid; gap: 16px; }
.lead { font-size: 17px; line-height: 1.45; }
.fine { font-size: 13.5px; color: var(--dv-muted); line-height: 1.5; }
.col-text .fine { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }

.notice {
  padding: 10px 14px; margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(242, 198, 109, 0.12); border: 1px solid rgba(242, 198, 109, 0.4);
  color: var(--dv-text); font-size: 14px;
}
.notice.is-bad { background: rgba(255, 138, 128, 0.1); border-color: rgba(255, 138, 128, 0.45); }

.wait { display: flex; align-items: center; gap: 10px; color: var(--dv-muted); font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dv-accent); animation: pulse 1.6s ease-in-out infinite; }

.qr-tile {
  background: #fff; border-radius: 12px; padding: 12px;
  width: fit-content; max-width: 100%;
}
.qr-tile img { width: 280px; height: 280px; max-width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.pairgrid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.pairside { display: grid; gap: 12px; }
.pairside .btn { justify-self: start; }
@media (max-width: 640px) {
  .pairgrid { grid-template-columns: 1fr; }
  .pairside { order: -1; }
  .pairside .btn { justify-self: stretch; }
  .qr-tile img { width: 200px; height: 200px; }
  .qr-tile { padding: 8px; }
}

/* emoji check */
.sas {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 20px 8px; border-radius: 12px; background: var(--dv-bg-2); border: 1px solid var(--dv-line);
}
.sas li { display: grid; justify-items: center; gap: 8px; }
.sas .glyph { font-size: 60px; line-height: 1; font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.sas .name { font-family: var(--mono); font-size: 14px; color: var(--dv-muted); }
@media (max-width: 640px) { .sas .glyph { font-size: 44px; } }

.paired { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ok-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--dv-ok); color: var(--dv-bg); display: grid; place-items: center; flex: none; }
.ok-mark::before { content: "✓"; font-size: 14px; font-weight: 700; }

/* invoice form */
.invoice-form fieldset { border: 1px solid var(--dv-line); border-radius: 12px; padding: 16px; margin: 0; display: grid; gap: 12px; }
.invoice-form legend { padding: 0 6px; font-size: 14px; color: var(--dv-muted); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets .btn { min-height: 38px; padding: 6px 14px; font-family: var(--mono); }
.presets .btn.is-on { border-color: var(--dv-accent); color: var(--dv-accent); }
.amount-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.amount-row label { font-size: 14px; color: var(--dv-muted); }
.amount-input { display: flex; align-items: center; border: 1px solid var(--dv-line-2); border-radius: var(--radius); background: var(--dv-bg-2); padding: 0 12px; min-height: 44px; }
.amount-input:focus-within { border-color: var(--dv-accent); }
.amount-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--mono); font-size: 17px; }
.amount-input .unit { font-size: 13px; color: var(--dv-muted); }
.amount-input.is-bad { border-color: var(--dv-bad); }
@media (max-width: 560px) {
  .amount-row { grid-template-columns: 1fr; }
}

/* invoice timeline */
.invoices { list-style: none; display: grid; gap: 10px; }
.invoice {
  border: 1px solid var(--dv-line); border-radius: 12px; padding: 14px 16px;
  display: grid; gap: 10px; background: var(--dv-bg-2);
}
.invoice-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.invoice-ref { font-family: var(--mono); font-size: 14px; color: var(--dv-muted); }
.invoice-amount { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.timeline li { position: relative; display: grid; gap: 6px; justify-items: center; font-size: 12.5px; color: var(--dv-muted); }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--dv-line-2); background: var(--dv-bg-2); z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: var(--dv-line-2); }
.timeline li.is-done::before { background: var(--dv-ok); border-color: var(--dv-ok); }
.timeline li.is-done:not(:last-child)::after { background: var(--dv-ok); }
.timeline li.is-done { color: var(--dv-text); }
.timeline li.is-now::before { background: var(--dv-accent); border-color: var(--dv-accent); animation: pulse 1.6s ease-in-out infinite; }
.timeline li.is-now { color: var(--dv-accent); }
.timeline li.is-bad::before { background: var(--dv-bad); border-color: var(--dv-bad); }
.timeline li.is-bad { color: var(--dv-bad); }
.invoice-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--dv-muted); }
.kernel-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--dv-muted); }
.kernel-row .mono { color: var(--dv-text); }

/* ---------- till ---------- */

.method { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 999px; background: var(--dv-bg-3); border: 1px solid var(--dv-line); }
.seg {
  appearance: none; border: 0; background: transparent; color: var(--dv-muted);
  padding: 8px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14.5px;
}
.seg:hover { color: var(--dv-text); }
.seg.is-on { background: var(--dv-bg); color: var(--dv-text); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.seg:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 480px) { .method { grid-auto-flow: row; width: 100%; border-radius: 12px; } .seg { border-radius: 9px; } }

.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.item {
  appearance: none; cursor: pointer; text-align: left;
  display: grid; gap: 8px; padding: 16px;
  border: 1px solid var(--dv-line-2); border-radius: 12px; background: var(--dv-bg-3); color: var(--dv-text);
  min-height: 92px;
}
.item:hover { border-color: var(--dv-accent); }
.item:disabled { opacity: 0.5; cursor: not-allowed; }
.item .item-name { font-size: 17px; font-weight: 600; }
.item .item-price { font-family: var(--mono); font-size: 14px; color: var(--dv-muted); }
@media (max-width: 480px) { .items { grid-template-columns: 1fr; } .item { grid-template-columns: 1fr auto; align-items: center; min-height: 0; } }

.order-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.order-item { font-size: 20px; font-weight: 600; }
.amount-display {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 12px;
  background: var(--dv-bg-2); border: 1px solid var(--dv-line);
}
.amount-big { font-size: clamp(34px, 3vw, 48px); font-weight: 500; letter-spacing: 0.01em; line-height: 1; user-select: all; }
.amount-big .tag { color: var(--dv-accent); }
.amount-unit { font-size: 16px; color: var(--dv-muted); }
.amount-display .btn { margin-left: auto; align-self: center; }

.pay { display: grid; gap: 16px; }
.sub { display: grid; gap: 12px; }
.sub label { font-size: 14px; color: var(--dv-muted); }
textarea {
  width: 100%; resize: vertical; min-height: 96px;
  padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--dv-line-2); background: var(--dv-bg-2); color: var(--dv-text);
  font-family: var(--mono); font-size: 13px; line-height: 1.45;
}
textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--dv-accent); }

.cam-wrap { position: relative; width: min(100%, 480px); aspect-ratio: 4 / 3; background: #000; border-radius: 12px; overflow: hidden; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; }
.cam-frame { position: absolute; inset: 12%; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 12px; pointer-events: none; }
.cam-status { font-family: var(--mono); font-size: 13px; color: var(--dv-muted); }

.meter { height: 10px; border-radius: 999px; background: var(--dv-bg-3); border: 1px solid var(--dv-line); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--dv-accent); transition: width 200ms ease; }

.answer-tile img { width: 320px; height: 320px; }
.uri { font-size: 13px; color: var(--dv-muted); overflow-wrap: anywhere; user-select: all; }

.outcome { display: grid; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid var(--dv-line); background: var(--dv-bg-2); }
.outcome.is-ok { border-color: rgba(111, 211, 163, 0.5); }
.outcome.is-bad { border-color: rgba(255, 138, 128, 0.5); }
.outcome.is-sim { border-color: rgba(242, 198, 109, 0.5); }

/* ---------- footer, toast ---------- */

.foot { padding: 20px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot p { max-width: var(--max); margin: 0 auto; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px);
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- dev panel (web/dev, only with ?dev=1) ---------- */
.devpanel {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: grid; gap: 6px; padding: 10px; width: 220px;
  background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 10px;
  font-size: 12.5px;
}
.devpanel h2 { font-size: 12px; color: var(--muted); }
.devpanel .btn { min-height: 30px; padding: 2px 8px; font-size: 12.5px; justify-content: flex-start; }
.devpanel:not(.is-open) { width: auto; padding: 0; border: 0; background: transparent; }
.devpanel:not(.is-open) > :not(.devpanel-toggle) { display: none; }
.devpanel-toggle { justify-self: end; }

/* ---------- motion ---------- */

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .dot, .timeline li.is-now::before { animation: none; }
  .btn.is-busy::after { animation: none; border-top-color: currentColor; opacity: 0.5; }
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; row-gap: 10px; padding: 10px 16px; }
  .brand h1 { font-size: 15px; }
  .tabs { grid-column: 1 / -1; justify-self: stretch; }
  .tabs [role="tablist"] { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .top-actions .btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }
  #theme-toggle { min-width: 40px; padding: 6px 10px; }
  #theme-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .net { display: none; }
  .h1-long { display: none; }
  .h1-short { display: inline; }
  main { padding-top: 24px; }
  .device-body { padding: 18px 16px; }
  .device-bar { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px; }
  .device-state { text-align: left; }
  .steps { margin-top: 28px; }
  .step { padding-left: 56px; }
  .step::before { left: 14px; }
  .amount-display .btn { margin-left: 0; }
  .row:not(.wrap) { flex-wrap: wrap; }
  .pairside .btn.big { width: 100%; }
}
