/* Beam shared stylesheet */

:root {
  --bg: #f3f5f2;
  --bg-2: #e9ede8;
  --panel: #ffffff;
  --ink: #16211b;
  --ink-2: #3a4740;
  --muted: #6b7772;
  --line: #d9dfda;
  --line-2: #e8ece8;
  --chip: #f1f4f1;
  --go: #1f7a55;
  --go-ink: #ffffff;
  --go-soft: #dff1e6;
  --warn: #b0432f;
  --warn-soft: #f9e5e0;
  --info-soft: #e4ecf7;
  --shadow: 0 1px 2px rgba(20, 30, 25, 0.05), 0 6px 20px -8px rgba(20, 30, 25, 0.12);
  --radius: 16px;
  --radius-s: 10px;
  --focus: #2f9a6c;
  --topo: rgba(31, 122, 85, 0.20);
  --panel-glass: rgba(255, 255, 255, 0.86);
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513;
    --bg-2: #151d19;
    --panel: #18211d;
    --ink: #e7ece8;
    --ink-2: #c3ccc6;
    --muted: #8f9b95;
    --line: #2b3630;
    --line-2: #222b26;
    --chip: #202a25;
    --go: #4fc48e;
    --go-ink: #0b1a12;
    --go-soft: #1b3428;
    --warn: #f0917c;
    --warn-soft: #3b231d;
    --info-soft: #1f2a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
    --focus: #6fd6a4;
    --topo: rgba(111, 214, 164, 0.16);
    --panel-glass: rgba(24, 33, 29, 0.84);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513;
  --bg-2: #151d19;
  --panel: #18211d;
  --ink: #e7ece8;
  --ink-2: #c3ccc6;
  --muted: #8f9b95;
  --line: #2b3630;
  --line-2: #222b26;
  --chip: #202a25;
  --go: #4fc48e;
  --go-ink: #0b1a12;
  --go-soft: #1b3428;
  --warn: #f0917c;
  --warn-soft: #3b231d;
  --info-soft: #1f2a38;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  --focus: #6fd6a4;
  --topo: rgba(111, 214, 164, 0.16);
  --panel-glass: rgba(24, 33, 29, 0.84);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
/* Topographic background canvas, drawn by topo.js */
#topo {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, rgba(0,0,0,0.35) 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, rgba(0,0,0,0.35) 100%);
}
main, .toast, .modal, .drop-overlay { position: relative; z-index: 1; }
h1, h2, .brand small, .code, .drop strong { font-family: var(--font-display); }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 700; letter-spacing: -0.005em; }
.code, kbd, textarea.mono, input.mono, .chip .sub { font-family: var(--font-mono); }
a { color: var(--go); }
main { max-width: 680px; margin: 0 auto; padding: 20px 20px 72px; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 15.5px; margin: 0 0 12px; }
h2 .count { color: var(--muted); font-weight: 500; margin-left: 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 0 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--go); color: var(--go-ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.2; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.me { text-align: right; font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.me b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cards */
.panel {
  background: var(--panel-glass);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }

/* Segmented control */
.seg {
  display: inline-flex; background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.seg button:hover { color: var(--ink); border-color: transparent; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.seg-wrap { display: flex; justify-content: center; margin: 4px 0 14px; }

/* Buttons and inputs */
button, .btn {
  font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3;
  transition: background 120ms, border-color 120ms, transform 80ms;
}
button:hover, .btn:hover { border-color: var(--muted); background: var(--chip); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: default; transform: none; }
button:focus-visible, .btn:focus-visible, .drop:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.primary { background: var(--go); border-color: var(--go); color: var(--go-ink); }
.primary:hover { background: var(--go); border-color: var(--go); filter: brightness(0.94); }
.small { font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.ghost { background: transparent; }
.danger { color: var(--warn); }
.icon-btn { padding: 7px; width: 36px; height: 36px; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; }
button svg, .btn svg { width: 16px; height: 16px; flex-shrink: 0; }

input[type="text"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], textarea, select {
  font: inherit; font-size: 15px; padding: 9px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
input:focus, textarea:focus, select:focus { background: var(--panel); }
textarea { resize: vertical; min-height: 72px; }
textarea.mono, input.mono { font-size: 13px; }
label.field { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
label.field > span { display: block; margin-bottom: 5px; font-weight: 500; color: var(--ink-2); }
label.field small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.row.center { justify-content: center; }
.row.tight { margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* Switch rows (settings) */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line-2); cursor: pointer;
}
.switch-row:first-of-type { border-top: 0; }
.switch-row .text { flex: 1; min-width: 0; }
.switch-row .text b { display: block; font-weight: 550; }
.switch-row .text small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 140ms;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: transform 140ms;
}
.switch input:checked + i { background: var(--go); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + i { opacity: 0.5; }

/* Status pill */
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 500; font-size: 14px;
  padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--ink-2); max-width: 100%;
}
.status:empty { display: none; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status.go { background: var(--go-soft); color: var(--go); }
.status.go::before { background: var(--go); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.warn::before { background: var(--warn); }
.status.busy::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Room / QR */
.qr-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
#qr {
  width: 236px; height: 236px; display: flex; align-items: center; justify-content: center; padding: 8px;
  background: #fff; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in;
}
#qr img, #qr canvas { display: block; }
.placeholder {
  width: 220px; height: 220px; border: 2px dashed #cfd6d2; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #66737e; font-size: 14px;
}
.code {
  font-size: 26px; letter-spacing: 0.14em; font-weight: 600; margin-top: 14px;
  font-variant-numeric: tabular-nums;
  cursor: pointer; user-select: all;
}
.code:empty { display: none; }
.pin { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pin b { letter-spacing: 0.22em; color: var(--ink); font-family: var(--font-mono); }
.link { margin-top: 8px; font-size: 12.5px; color: var(--muted); word-break: break-all; user-select: all; }

/* Device chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--chip); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 6px 5px 12px;
  font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); flex-shrink: 0; }
.chip .dot.relay { background: #d39b2a; }
.chip .sub { color: var(--muted); font-size: 12.5px; }
.chip button { padding: 2px 8px; font-size: 12.5px; border-radius: 999px; }

/* Drop zone */
.drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 26px 20px; text-align: center;
  color: var(--muted); cursor: pointer; transition: background 120ms, border-color 120ms; background: var(--bg);
}
.drop:hover { border-color: var(--muted); }
.drop.over { background: var(--go-soft); border-color: var(--go); color: var(--go); }
.drop strong { color: var(--ink); font-weight: 600; }
.drop svg { width: 28px; height: 28px; display: block; margin: 0 auto 8px; opacity: 0.7; }
input[type="file"] { display: none; }
.drop-overlay {
  position: fixed; inset: 0; background: rgba(31, 122, 85, 0.12); backdrop-filter: blur(2px);
  border: 4px dashed var(--go); z-index: 50; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: var(--go); pointer-events: none;
}

/* Transfer lists */
ul.list { list-style: none; margin: 12px 0 0; padding: 0; }
ul.list li { padding: 12px 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; }
ul.list li:first-child { border-top: 0; padding-top: 4px; }
ul.list li > .ficon {
  grid-row: 1 / span 5; width: 36px; height: 36px; border-radius: 9px; background: var(--chip);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
}
ul.list li > .ficon svg { width: 18px; height: 18px; }
.fname { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-width: 0; }
.fname .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.fname .n small { color: var(--muted); font-weight: 400; }
.fsize { color: var(--muted); font-size: 13px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--go), #4fc48e); transition: width 120ms linear; border-radius: 3px; }
.bar.done i { background: var(--go); }
.bar.warn i { background: var(--warn); }
.fstate { font-size: 13px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.fstate.go { color: var(--go); }
.fstate.warn { color: var(--warn); }
.actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.actions:empty { display: none; }
.preview { margin-top: 10px; max-width: 100%; }
.preview:empty { display: none; }
.preview img, .preview video { max-width: 100%; max-height: 280px; border-radius: 10px; display: block; background: #000; }
.preview audio { width: 100%; }
.textmsg {
  white-space: pre-wrap; word-break: break-word; background: var(--chip); border-radius: 10px;
  padding: 10px 12px; margin-top: 8px; font-size: 14.5px; max-height: 240px; overflow: auto;
}
.empty { font-size: 14px; color: var(--muted); padding: 8px 0 0; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(10, 15, 12, 0.6); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal .sheet { background: #fff; color: #17232e; border-radius: 20px; padding: 24px; text-align: center; max-width: 100%; }
.modal .sheet .code { color: #17232e; }
.modal #qr-big { display: flex; justify-content: center; }
.modal .close { margin-top: 14px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 160ms, transform 160ms; max-width: 90vw; z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.stats { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.foot { display: flex; justify-content: center; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.foot a { color: var(--muted); }

/* Connection check */
ul.checks { list-style: none; margin: 12px 0 0; padding: 0; }
.check { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); animation: rise 260ms ease-out both; }
.check:first-child { border-top: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.check .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; background: var(--muted); }
.check.ok .dot { background: var(--go); box-shadow: 0 0 0 3px var(--go-soft); }
.check.warn .dot { background: #d39b2a; box-shadow: 0 0 0 3px rgba(211, 155, 42, 0.2); }
.check.fail .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.check .body { min-width: 0; flex: 1; }
.check b { font-weight: 600; margin-right: 8px; }
.check .d { color: var(--muted); font-size: 13.5px; word-break: break-word; }
.check .advice { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); background: var(--chip); border-radius: 8px; padding: 8px 10px; }
.verdict { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 600; background: var(--chip); }
.verdict.ok { background: var(--go-soft); color: var(--go); }
.verdict.warn { background: rgba(211, 155, 42, 0.16); color: #a8731a; }
.verdict.fail { background: var(--warn-soft); color: var(--warn); }
:root[data-theme="dark"] .verdict.warn { color: #e6b45a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.warn { color: #e6b45a; } }

/* Settings page */
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.settings-nav a {
  font-size: 13px; color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 999px; background: var(--chip);
}
.settings-nav a:hover { color: var(--ink); }
.section { scroll-margin-top: 16px; }
.section h2 { display: flex; align-items: center; gap: 8px; }
.section h2 svg { width: 16px; height: 16px; color: var(--muted); }
.save-state { font-size: 13px; color: var(--muted); min-height: 18px; }
.save-state.go { color: var(--go); }
.field-error { color: var(--warn); font-size: 12.5px; margin-top: 4px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.radio-cards label {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; font-size: 13.5px; background: var(--bg);
}
.radio-cards label:has(input:checked) { border-color: var(--go); background: var(--go-soft); color: var(--go); font-weight: 600; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards svg { width: 20px; height: 20px; }
.radio-cards label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Offline pairing */
#direct-qr { width: 276px; height: 276px; display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
#direct-qr img, #direct-qr canvas { display: block; }
#direct details summary::-webkit-details-marker { display: none; }
#direct details summary { list-style: none; }
#direct details summary::before { content: "+ "; color: var(--go); font-weight: 700; }
#direct details[open] summary::before { content: "- "; }
#direct-code-out, #direct-code-in { font-size: 11.5px; word-break: break-all; }

/* Summit mode (easter egg) */
body.summit .brand .mark { animation: spin 1.6s cubic-bezier(0.6, 0, 0.3, 1) 1; background: linear-gradient(135deg, #1f7a55, #d39b2a 60%, #f4f1ea); }
@keyframes spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.25); } to { transform: rotate(360deg) scale(1); } }
body.summit #topo { mask-image: none; -webkit-mask-image: none; }
body.summit .panel { background: color-mix(in srgb, var(--panel-glass) 82%, transparent); }

/* QR scanner */
.scanner { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.viewfinder {
  position: relative; width: min(340px, 100%); aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: #05080a; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .mask {
  position: absolute; inset: 14%; border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(5, 8, 10, 0.55);
}
.viewfinder .corner {
  position: absolute; width: 30px; height: 30px; border: 3px solid var(--go); border-radius: 4px;
  filter: drop-shadow(0 0 6px rgba(79, 196, 142, 0.6));
  transition: border-color 200ms, transform 200ms;
}
.viewfinder .corner.tl { top: 14%; left: 14%; border-right: 0; border-bottom: 0; }
.viewfinder .corner.tr { top: 14%; right: 14%; border-left: 0; border-bottom: 0; }
.viewfinder .corner.bl { bottom: 14%; left: 14%; border-right: 0; border-top: 0; }
.viewfinder .corner.br { bottom: 14%; right: 14%; border-left: 0; border-top: 0; }
.viewfinder .laser {
  position: absolute; left: 16%; right: 16%; top: 14%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #7ff0b8 20%, #b8ffd9 50%, #7ff0b8 80%, transparent);
  box-shadow: 0 0 12px 3px rgba(111, 240, 184, 0.55), 0 0 40px 10px rgba(79, 196, 142, 0.25);
  animation: sweep 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
.viewfinder .laser::after {
  content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 46px;
  background: linear-gradient(180deg, rgba(111, 240, 184, 0.28), transparent);
}
@keyframes sweep { from { top: 15%; } to { top: calc(86% - 2px); } }
.viewfinder .grid {
  position: absolute; inset: 14%; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(127, 240, 184, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 240, 184, 0.25) 1px, transparent 1px);
  background-size: 25% 25%;
}
.viewfinder .hint {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #cfe9da; font-size: 12.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8); font-family: var(--font-mono); letter-spacing: 0.04em;
}
.viewfinder.found .corner { border-color: #b8ffd9; transform: scale(1.12); }
.viewfinder.found .laser { animation: none; opacity: 0; }
.viewfinder.found::after {
  content: ""; position: absolute; inset: 0; background: rgba(127, 240, 184, 0.35); animation: flash 500ms ease-out forwards;
}
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.viewfinder.starting::before {
  content: "Starting camera"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #8fb3a0; font-size: 14px; font-family: var(--font-mono);
}
.scanner .row { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .viewfinder .laser { animation: none; top: 50%; } }
kbd { font-size: 12px; background: var(--chip); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; }

@media (max-width: 520px) {
  main { padding: 14px 14px 64px; }
  .panel { padding: 16px; border-radius: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .me b { max-width: 120px; }
  .radio-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bar i, .drop, .toast, .switch i, .switch i::after, button { transition: none; }
  .status.busy::before { animation: none; }
  .viewfinder .corner { transition: none; }
}
