/* WhaleSonar — naval sonar console. Phosphor on abyss, hairline instruments, Chakra Petch + Plex Mono. */
:root {
  --abyss: #01090c;
  --deep: #03151b;
  --panel: rgba(4, 22, 27, 0.72);
  --panel-2: rgba(7, 33, 38, 0.6);
  --line: rgba(82, 255, 196, 0.14);
  --line-2: rgba(82, 255, 196, 0.32);
  --phos: #52ffc4;
  --phos-2: #2bd6a0;
  --phos-dim: #237a63;
  --ice: #5ad8ff;
  --lilac: #a99bff;
  --sand: #ffc861;
  --amber: #ff9d2e;
  --text: #d6f6ec;
  --muted: #74a197;
  --faint: #3d625a;
  --danger: #ff6b6b;
  --display: 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 4px;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--abyss);
  color: var(--text);
  font: 14px/1.45 var(--mono);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--phos); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--phos); outline-offset: 2px; }

.sea {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 50% 38%, rgba(16, 92, 84, 0.28), transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(18, 60, 92, 0.25), transparent 60%),
    linear-gradient(180deg, #021117 0%, #01090c 55%, #010608 100%);
}
.sea::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(82, 255, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 255, 196, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(12px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(1, 9, 12, 0.94), rgba(1, 9, 12, 0.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.mark:hover { text-decoration: none; }
.glyph { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--phos); stroke-width: 1.2; opacity: 0.95; }
.glyph .beam { fill: rgba(82, 255, 196, 0.35); stroke: none; transform-origin: 20px 20px; animation: spin 6s linear infinite; }
.glyph .dot { fill: var(--amber); stroke: none; animation: blink 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.word { display: flex; flex-direction: column; min-width: 0; }
.word > span { font: 700 19px/1 var(--display); letter-spacing: 0.24em; }
.word small { font: 500 11px/1.3 var(--display); letter-spacing: 0.06em; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.readouts { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.ro {
  display: flex; align-items: baseline; gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(4, 22, 27, 0.55);
  white-space: nowrap;
}
.ro i { font: 600 10px/1 var(--display); letter-spacing: 0.16em; color: var(--muted); font-style: normal; }
.ro b { font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.ro-status b { font: 600 11px/1 var(--display); letter-spacing: 0.16em; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); align-self: center; box-shadow: 0 0 0 0 transparent; }
.led.live { background: var(--phos); box-shadow: 0 0 10px var(--phos); animation: blink 2.4s ease-in-out infinite; }
.led.warn { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.led.bad { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

.audio-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(4, 22, 27, 0.6);
  font: 600 11px/1 var(--display); letter-spacing: 0.18em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.audio-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.audio-btn svg path:first-child { fill: currentColor; stroke: none; }
.audio-btn .wave { display: none; }
.audio-btn[aria-pressed='true'] { color: var(--abyss); background: var(--phos); border-color: var(--phos); box-shadow: 0 0 22px rgba(82, 255, 196, 0.35); }
.audio-btn[aria-pressed='true'] .wave { display: inline; }
.audio-btn[aria-pressed='true'] .mute { display: none; }
.audio-btn:hover { border-color: var(--phos); }

/* ---------------------------------------------------------------- brand bar */
.brandbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px clamp(12px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(82, 255, 196, 0.05);
  font-size: 12px;
}
.bb-ticker { font: 700 13px/1 var(--display); letter-spacing: 0.14em; color: var(--phos); }
.bb-label { font: 600 10px/1 var(--display); letter-spacing: 0.16em; color: var(--muted); }
.bb-ca { font: 500 12px/1.3 var(--mono); color: var(--text); overflow-wrap: anywhere; word-break: break-all; min-width: 0; flex: 1 1 260px; }
.bb-copy, .bb-x {
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent;
  font: 600 11px/1 var(--display); letter-spacing: 0.1em; cursor: pointer; color: var(--phos); white-space: nowrap;
}
.bb-copy:hover, .bb-x:hover { background: rgba(82, 255, 196, 0.1); text-decoration: none; }

/* ---------------------------------------------------------------- deck layout */
.deck {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(250px, 310px);
  grid-template-areas: 'log scope ctrl';
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(10px, 1.6vw, 20px) clamp(12px, 2.4vw, 28px) 0;
  align-items: start;
}
.scope { grid-area: scope; position: relative; min-width: 0; }
.ctrl { grid-area: ctrl; }
.log { grid-area: log; }

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  min-width: 0;
}
.panel::before, .panel::after {
  content: ''; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border: 1px solid var(--phos); opacity: 0.6;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel h2 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 12px;
  font: 600 11px/1 var(--display); letter-spacing: 0.2em; color: var(--muted);
}
.panel h2 span { display: flex; align-items: center; gap: 8px; }
.panel h2 span::before { content: ''; width: 6px; height: 6px; background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.panel h2 em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--phos); }
.panel h2 + * { margin-top: 0; }
.ctrl h2:not(:first-child) { margin-top: 20px; }

/* ---------------------------------------------------------------- scope */
.scope-frame {
  position: relative;
  width: min(100%, calc(100svh - 190px));
  min-width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: clip;
  isolation: isolate;
}
.scope-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }
.overlay, .labels { position: absolute; inset: 0; pointer-events: none; }
.ov-ring { position: absolute; transform: translate(6px, -50%); font: 500 10px/1 var(--mono); color: rgba(82, 255, 196, 0.55); letter-spacing: 0.04em; white-space: nowrap; }
.ov-sector { position: absolute; transform: translate(-50%, -50%); font: 600 10px/1 var(--display); letter-spacing: 0.24em; color: rgba(214, 246, 236, 0.55); white-space: nowrap; }
.ov-sector i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.lbl {
  position: absolute; transform: translate(10px, -50%);
  padding: 3px 7px 3px 6px;
  border-left: 1px solid currentColor;
  background: linear-gradient(90deg, rgba(1, 9, 12, 0.85), rgba(1, 9, 12, 0));
  font: 500 11px/1.25 var(--mono); white-space: nowrap; color: var(--phos);
  transition: opacity 0.6s;
}
.lbl b { font-weight: 600; color: var(--text); }
.lbl small { display: block; font-size: 10px; color: var(--muted); }
.lbl.flip { transform: translate(calc(-100% - 10px), -50%); border-left: 0; border-right: 1px solid currentColor; text-align: right; background: linear-gradient(270deg, rgba(1, 9, 12, 0.85), rgba(1, 9, 12, 0)); }
.lbl.mega { color: var(--amber); }

.reticle { position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%); pointer-events: none; animation: lock 0.35s ease-out; }
.reticle span { position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--amber); }
.reticle span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticle span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticle span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticle span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
@keyframes lock { from { width: 80px; height: 80px; opacity: 0; } }

.hover-tip {
  position: absolute; z-index: 3; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 7px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: rgba(1, 9, 12, 0.92);
  font: 500 11px/1.4 var(--mono); white-space: nowrap;
}
.hover-tip b { color: var(--phos); font-weight: 600; }

.scope-msg {
  position: absolute; left: 50%; top: 62%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  width: min(70%, 340px);
  pointer-events: none;
  transition: opacity 0.8s;
}
.scope-msg b { font: 600 12px/1 var(--display); letter-spacing: 0.4em; color: var(--phos); animation: blink 2.2s ease-in-out infinite; }
.scope-msg span { font-size: 11px; color: var(--muted); }
.scope-msg.err b { color: var(--amber); }

.corner { position: absolute; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.corner i { font: 600 9px/1 var(--display); letter-spacing: 0.22em; color: var(--muted); font-style: normal; }
.corner b { font: 500 13px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.c-tl { top: 3%; left: 3%; } .c-tr { top: 3%; right: 3%; text-align: right; }
.c-bl { bottom: 3%; left: 3%; } .c-br { bottom: 3%; right: 3%; text-align: right; }
.scope-frame { overflow: visible; border-radius: 0; }
.scope-frame canvas { border-radius: 0; }

/* detail card */
.detail {
  position: absolute; right: 0; bottom: 0; z-index: 5;
  width: min(340px, 100%);
  padding: 16px 16px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(6, 34, 38, 0.96), rgba(2, 13, 17, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 157, 46, 0.12) inset;
  animation: rise 0.28s ease-out;
}
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.detail-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; }
.detail-x:hover { color: var(--text); }
.d-kind { font: 600 10px/1 var(--display); letter-spacing: 0.3em; color: var(--amber); }
.d-usd { font: 700 34px/1.05 var(--display); letter-spacing: 0.02em; margin-top: 8px; color: var(--text); text-shadow: 0 0 22px rgba(82, 255, 196, 0.25); }
.d-amt { font: 500 13px/1.3 var(--mono); color: var(--phos); margin-top: 4px; overflow-wrap: anywhere; }
.d-story { margin: 10px 0 12px; font-size: 12px; color: var(--muted); }
.d-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: 12px; }
.d-grid dt { font: 600 10px/1.6 var(--display); letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.d-grid dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.d-links a, .d-links button {
  padding: 7px 11px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(82, 255, 196, 0.06);
  font: 600 11px/1 var(--display); letter-spacing: 0.1em; color: var(--phos); cursor: pointer;
}
.d-links a:hover, .d-links button:hover { background: rgba(82, 255, 196, 0.14); text-decoration: none; }

/* ---------------------------------------------------------------- controls */
.field { display: block; margin-bottom: 14px; }
.field.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.f-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font: 600 10px/1 var(--display); letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.f-head b { font: 600 13px/1 var(--mono); color: var(--phos); letter-spacing: 0; }
.f-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 4px; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--phos-dim), var(--phos)); border-radius: 2px; }
input[type='range']::-moz-range-track { height: 3px; background: linear-gradient(90deg, var(--phos-dim), var(--phos)); border-radius: 2px; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 2px; background: var(--abyss); border: 1.5px solid var(--phos); box-shadow: 0 0 10px rgba(82, 255, 196, 0.5); transform: rotate(45deg); }
input[type='range']::-moz-range-thumb { width: 12px; height: 12px; border-radius: 2px; background: var(--abyss); border: 1.5px solid var(--phos); transform: rotate(45deg); }
select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: rgba(1, 9, 12, 0.7); font-size: 12px; cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font: 500 11px/1 var(--mono); color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.chip.on { color: var(--text); border-color: var(--line-2); background: rgba(82, 255, 196, 0.07); }
.sw { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.chip.on .sw-sol, .sw-sol { --c: var(--phos); } .sw-stable { --c: var(--ice); } .sw-blue { --c: var(--lilac); } .sw-token { --c: var(--sand); }
.chip .sw { background: var(--c); box-shadow: 0 0 8px var(--c); opacity: 0.35; }
.chip.on .sw { opacity: 1; }
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.top-list li { counter-increment: t; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 12px; }
.top-list li::before { content: counter(t, decimal-leading-zero); font-size: 10px; color: var(--faint); }
.top-list li:hover { color: var(--phos); }
.top-list li.empty { display: block; color: var(--muted); cursor: default; border: 0; }
.top-list li.empty::before { content: none; }
.top-list .amt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list .usd { color: var(--phos); font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { margin: 14px 0 0; font-size: 11px; color: var(--faint); }

/* ---------------------------------------------------------------- log */
.log { max-height: calc(100svh - 170px); display: flex; flex-direction: column; }
.log-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--phos-dim) transparent; min-height: 0; }
.log-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px;
  padding: 8px 6px 8px 8px; border-left: 2px solid var(--c, var(--phos));
  border-bottom: 1px solid rgba(82, 255, 196, 0.06);
  cursor: pointer; font-size: 12px;
  transition: background 0.2s;
}
.log-list li:hover, .log-list li.sel { background: rgba(82, 255, 196, 0.06); }
.log-list li.new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(82, 255, 196, 0.22); } }
.log-list time { font-size: 10px; color: var(--faint); grid-row: 1; }
.log-list .k { font: 600 9px/1.6 var(--display); letter-spacing: 0.2em; color: var(--muted); grid-row: 1; }
.log-list .u { grid-row: 1; justify-self: end; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.log-list .a { grid-column: 1 / -1; color: var(--c, var(--phos)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-list .w { grid-column: 1 / -1; font-size: 10px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-list li.mega .u { color: var(--amber); }
.log-empty { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- depth */
.depth { margin: clamp(10px, 1.4vw, 18px) clamp(12px, 2.4vw, 28px) 0; }
.depth canvas { display: block; width: 100%; height: 90px; }
.depth-tip { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, -110%); padding: 5px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(1, 9, 12, 0.94); font-size: 11px; white-space: nowrap; }

.foot { padding: 18px clamp(12px, 2.4vw, 28px) 28px; }
.foot p { margin: 0; max-width: 980px; font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- personal sonar + burn ledger */
:root { --mine: #f4fbff; }
.to-vault {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 10px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  font: 600 10px/1.3 var(--display); letter-spacing: 0.16em; color: var(--muted);
}
.to-vault i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--mine); box-shadow: 0 0 8px var(--mine); flex: none; }
.to-vault span { margin-left: auto; color: var(--phos); }
.to-vault:hover { color: var(--text); border-color: var(--phos); text-decoration: none; }

.vault {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(10px, 1.4vw, 18px) clamp(12px, 2.4vw, 28px) 0; align-items: start;
  scroll-margin-top: 80px;
}
.vault h2 em { letter-spacing: 0.12em; color: var(--muted); }
.vault h2 em.on { color: var(--phos); text-shadow: 0 0 10px rgba(82, 255, 196, 0.5); }
.v-lead { margin: 0 0 12px; font-size: 12px; color: var(--muted); max-width: 640px; }
.v-lead b { color: var(--text); font-weight: 600; }
.mine-swatch { color: var(--mine); text-shadow: 0 0 8px rgba(244, 251, 255, 0.6); }
.v-soon { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); margin: 0; }
.v-soon b { font: 600 12px/1 var(--display); letter-spacing: 0.4em; color: var(--sand); }
.v-soon span { font-size: 12px; color: var(--muted); }
.v-terms { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; font-size: 12px; }
.v-terms dt { font: 600 10px/1.7 var(--display); letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.v-terms dd { margin: 0; overflow-wrap: anywhere; }
.v-terms dd b { color: var(--phos); font-weight: 600; }
.v-terms small { color: var(--faint); }
.v-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v-btn {
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(82, 255, 196, 0.07);
  font: 600 11px/1 var(--display); letter-spacing: 0.16em; color: var(--phos); cursor: pointer; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.v-btn:hover:not(:disabled) { background: rgba(82, 255, 196, 0.15); border-color: var(--phos); }
.v-btn:disabled { opacity: 0.45; cursor: progress; }
.v-btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.v-btn.ghost:hover:not(:disabled) { color: var(--text); }
.v-btn.hot { color: var(--abyss); background: var(--amber); border-color: var(--amber); box-shadow: 0 0 18px rgba(255, 157, 46, 0.3); }
.v-btn.hot:hover:not(:disabled) { background: #ffb257; border-color: #ffb257; }
.v-wallet { font: 500 12px/1 var(--mono); color: var(--text); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); }
.v-wallet:empty { display: none; }
.v-wallets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.v-wallets p { margin: 0; }
.v-wbtn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(1, 9, 12, 0.7); cursor: pointer; font: 500 12px/1 var(--mono); }
.v-wbtn img { width: 18px; height: 18px; border-radius: 4px; }
.v-wbtn:hover { border-color: var(--phos); }
.v-until { margin: 10px 0 0; font-size: 12px; color: var(--phos); }
.v-confirm {
  margin-top: 12px; padding: 14px; border: 1px solid rgba(255, 157, 46, 0.55); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(56, 30, 6, 0.55), rgba(2, 13, 17, 0.9));
  animation: rise 0.25s ease-out;
}
.v-amt { display: flex; flex-direction: column; gap: 6px; }
.v-amt i { font: 600 10px/1 var(--display); letter-spacing: 0.3em; color: var(--amber); font-style: normal; }
.v-amt b { font: 700 28px/1.05 var(--display); letter-spacing: 0.02em; color: var(--text); overflow-wrap: anywhere; }
.v-confirm p { margin: 10px 0 12px; font-size: 12px; color: var(--muted); }
.v-confirm strong { color: var(--text); font-weight: 600; }
.v-confirm code, .v-row code { font: 500 11px/1 var(--mono); color: var(--text); }
.v-honest { margin: 12px 0 0; padding: 9px 11px; border-left: 2px solid var(--sand); background: rgba(255, 200, 97, 0.06); font-size: 11.5px; color: var(--text); }
.v-msg { margin: 10px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.v-msg.ok { color: var(--phos); }
.v-msg.err { color: var(--danger); }
.v-recover { margin-top: 12px; font-size: 12px; color: var(--muted); }
.v-recover summary { cursor: pointer; font: 600 10px/1.6 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.v-recover .v-row { margin-top: 8px; }
.v-recover input { flex: 1 1 220px; min-width: 0; }
.vault input, .vault select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(1, 9, 12, 0.7); font-size: 12px; color: var(--text); min-width: 0; }
.vault input:focus, .vault select:focus { border-color: var(--phos); outline: none; }

.v-mine { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.v-mine h3 { display: flex; justify-content: space-between; margin: 0 0 10px; font: 600 10px/1 var(--display); letter-spacing: 0.2em; color: var(--muted); }
.v-mine h3 em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--mine); }
.v-list { list-style: none; margin: 0 0 12px; padding: 0; }
.v-list li {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 7px 4px 7px 10px; border-left: 2px solid var(--mine); border-bottom: 1px solid rgba(82, 255, 196, 0.06); font-size: 12px;
}
.v-list li.empty { display: block; border-left-color: var(--line); color: var(--muted); }
.v-list b { color: var(--mine); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-list i { font: 600 9px/1 var(--display); letter-spacing: 0.18em; color: var(--muted); font-style: normal; }
.v-list a { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-th { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.v-th input { width: 92px; padding: 5px 7px; }
.v-rm { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.v-rm:hover { color: var(--danger); border-color: var(--danger); }
.v-add { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(92px, 0.6fr) minmax(0, 0.7fr) auto; gap: 8px; align-items: end; }
.v-add label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.v-add label span { font: 600 9px/1 var(--display); letter-spacing: 0.18em; color: var(--muted); }

.l-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0 0 12px; font-size: 12px; }
.l-grid dt { font: 600 10px/1.7 var(--display); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.l-grid dd { margin: 0; text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.l-grid dd:first-of-type { color: var(--amber); }
.l-list { list-style: none; margin: 0; padding: 0; }
.l-list li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.l-list li.empty { display: block; color: var(--muted); border: 0; }
.l-list time { font-size: 10px; color: var(--faint); }
.l-list .w { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-list .u { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.l-list a { font-size: 11px; }

/* personal contacts on the scope + log */
.lbl.mine { color: var(--mine); }
.lbl.mine b::before { content: '◆ '; font-size: 9px; }
.log-list li.mine .k { color: var(--mine); }
.log-list .nm { grid-column: 1 / -1; font: 600 10px/1.4 var(--display); letter-spacing: 0.14em; color: var(--mine); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .deck { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: 'scope ctrl' 'log log'; }
  .log { max-height: 420px; }
}
@media (max-width: 1000px) {
  .vault { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .top { flex-wrap: wrap; gap: 10px; }
  .readouts { order: 3; width: 100%; justify-content: flex-start; margin-left: 0; }
  .audio-btn { margin-left: auto; }
  .deck { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'scope' 'ctrl' 'log'; }
  .scope-frame { width: 100%; }
  .detail { position: relative; width: 100%; margin-top: 12px; }
  .log { max-height: 460px; }
}
@media (max-width: 480px) {
  body { font-size: 13px; }
  .word > span { font-size: 16px; letter-spacing: 0.18em; }
  .word small { display: none; }
  .ro { padding: 5px 7px; gap: 5px; }
  .ro b { font-size: 12px; }
  .ro-hide-s { display: none; }
  .audio-btn { padding: 7px 10px; }
  .corner b { font-size: 11px; }
  .ov-ring { font-size: 9px; }
  .ov-sector { font-size: 9px; letter-spacing: 0.14em; }
  .lbl { font-size: 10px; }
  .lbl small { display: none; }
  .v-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .v-add .v-addr { grid-column: 1 / -1; }
  .v-add .v-btn { grid-column: 1 / -1; }
  .v-list li { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 4px; }
  .v-list li b { grid-area: 1 / 1; }
  .v-list li i { grid-area: 1 / 2; }
  .v-list li .v-rm { grid-area: 1 / 3; }
  .v-list li a { grid-area: 2 / 1; }
  .v-list li .v-th { grid-area: 2 / 2 / 3 / 4; justify-self: end; }
  .l-list li { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .l-list li a { grid-column: 3; }
  .l-list .u { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
