:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0c;
  --surface-hover: #121216;
  --field: #050507;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.42);
  --white: #ffffff;
  --ink-soft: #e4e4e7;
  --muted: #8e8e99;
  --dim: #686874;
  --accent: #ffffff;
  --accent-soft: #00e676;
  --accent-bg: rgba(255, 255, 255, 0.08);
  --danger: #ff6b86;
  --led-g: #00e676;
  --led-g-ring: rgba(0, 230, 118, 0.18);
  --led-g-glow: rgba(0, 230, 118, 0.5);
  --led-b: #2979ff;
  --led-b-ring: rgba(41, 121, 255, 0.2);
  --led-b-glow: rgba(41, 121, 255, 0.55);
  --led-r: #ff2d55;
  --led-r-ring: rgba(255, 45, 85, 0.2);
  --led-r-glow: rgba(255, 45, 85, 0.55);
  --r-card: 10px;
  --r-ctrl: 6px;
  --ctrl-h: 44px;
  --ctrl-sm: 34px;
  --width: 800px;
  --edge: clamp(16px, 4vw, 24px);
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font: 14px/1.5 var(--font-sans);
  background: var(--bg);
  color: var(--white);
}

html { scrollbar-gutter: stable; background: var(--bg); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, code, pre {
  user-select: text;
  -webkit-user-select: text;
}
::selection { background: #ffffff; color: #000000; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
button, select, summary, label:has(input[type="checkbox"]) { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--led-b); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; font-family: var(--mono); }
input[type="search"] { -webkit-appearance: none; appearance: none; }

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  background-color: var(--field);
  display: inline-grid;
  place-content: center;
}
input[type="checkbox"]:checked {
  background-color: #ffffff;
  border-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px var(--led-g-ring), 0 0 8px var(--led-g-glow); }
  50% { opacity: .55; box-shadow: 0 0 0 1px var(--led-g-ring), 0 0 2px var(--led-g-glow); }
}
@keyframes pulseBlue {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px var(--led-b-ring), 0 0 8px var(--led-b-glow); }
  50% { opacity: .48; box-shadow: 0 0 0 1px var(--led-b-ring), 0 0 2px var(--led-b-glow); }
}
@keyframes pulseRed {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px var(--led-r-ring), 0 0 8px var(--led-r-glow); }
  50% { opacity: .5; box-shadow: 0 0 0 1px var(--led-r-ring), 0 0 2px var(--led-r-glow); }
}

.led {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: rgba(255, 255, 255, 0.28);
}
.led.mono { width: 5px; height: 5px; border-radius: 1px; background: rgba(255, 255, 255, 0.65); }
.led.g { background: var(--led-g); box-shadow: 0 0 0 3px var(--led-g-ring), 0 0 8px var(--led-g-glow); }
.led.b { background: var(--led-b); box-shadow: 0 0 0 3px var(--led-b-ring), 0 0 8px var(--led-b-glow); }
.led.r { background: var(--led-r); box-shadow: 0 0 0 3px var(--led-r-ring), 0 0 8px var(--led-r-glow); }
.led.pulse-g { animation: pulseGreen 2.2s infinite ease-in-out; }
.led.pulse-b { animation: pulseBlue 1.5s infinite ease-in-out; }
.led.pulse-r { animation: pulseRed 1.7s infinite ease-in-out; }

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 56px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 max(var(--edge), calc((100% - var(--width)) / 2 + var(--edge)));
}
.wordmark { display: flex; gap: 10px; align-items: center; min-width: 0; }
.mark {
  flex: none;
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: var(--r-ctrl);
  background: #ffffff;
  position: relative;
}
.mark::before, .mark::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #000000;
  transform: skew(-14deg);
}
.mark::before { top: 9px; bottom: 5px; left: 6px; }
.mark::after { top: 5px; bottom: 5px; left: 13px; }
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; color: #ffffff; white-space: nowrap; flex: none; }
.mode-tag { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); font: 600 10px/1.2 var(--mono); letter-spacing: 0.08em; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; flex: none; }
.header-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--ctrl-sm);
  padding: 0 10px;
  border-radius: var(--r-ctrl);
  font: 600 11.5px/1 var(--mono);
  color: #ffffff;
  background: var(--surface);
  border: 1px solid var(--line);
}
.live-pill > span { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
.live-pill[data-status="live"] > span { background: var(--led-g); animation: pulseGreen 2.2s infinite ease-in-out; }
.live-pill[data-status="demo"] > span { background: var(--led-b); animation: pulseBlue 1.5s infinite ease-in-out; }
.live-pill[data-status="error"] { border-color: rgba(255, 45, 85, 0.45); color: #ff6b86; }
.live-pill[data-status="error"] > span { background: var(--led-r); animation: pulseRed 1.7s infinite ease-in-out; }
.live-pill b { font-weight: 600; }

/* Sub-navigation */
.subnav {
  position: sticky;
  top: 56px;
  z-index: 15;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(var(--width) + var(--edge) * 2);
  margin: 0 auto;
  padding: 8px var(--edge);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-ctrl);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
  flex: none;
}
.subnav button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.subnav button:hover { background: var(--surface); color: #ffffff; border-color: var(--line); }
.subnav button[aria-current] { background: #ffffff; color: #000000; border-color: #ffffff; font-weight: 650; }

/* Main Shell & Telemetry Bar (Exact Parity with Parser) */
.main { min-width: 0; }
.content { max-width: calc(var(--width) + var(--edge) * 2); margin: 0 auto; padding: 20px var(--edge) calc(84px + env(safe-area-inset-bottom)); transition: max-width .15s ease; }
body[data-page="map"] .content { max-width: 1140px; }

.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.telemetry-kpi {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
}
.telemetry-action:hover { border-color: #ffffff; background: var(--surface-hover); }
.telemetry-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.telemetry-kpi-top span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.telemetry-kpi strong {
  font: 700 16px/1.2 var(--mono);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom 4-Tab Mode Dock (Exact Parity with Parser) */
.mode-dock {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  width: min(420px, calc(100vw - 20px));
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.82);
}
.mode-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  height: 46px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .14s ease, color .14s ease;
}
.mode-dock-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.mode-dock-item:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.mode-dock-item.active, .mode-dock-item.active:hover { background: #ffffff; color: #000000; }

/* Typography & Section Headers (Canon 3x14 White Bar) */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 16px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 700; }
h2 {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 1px;
  background: #ffffff;
  flex: none;
}
.page-head p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.head-actions { display: flex; gap: 8px; align-items: center; }

/* Unified 44px Controls */
.button, select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--ctrl-h);
  padding: 0 16px;
  background: #101014;
  border: 1px solid var(--line-strong);
  color: var(--white);
  border-radius: var(--r-ctrl);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
select {
  -webkit-appearance: none;
  appearance: none;
  height: var(--ctrl-h);
  padding: 0 38px 0 14px;
  min-width: 118px;
  max-width: 220px;
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  font-weight: 500;
}
.button:hover:not(:disabled), select:hover:not(:disabled) { border-color: #ffffff; background-color: #18181e; }
.button:disabled, select:disabled, input:disabled { cursor: default; opacity: .36; }
.button.primary { background: #ffffff; color: #000000; border-color: #ffffff; font-weight: 650; }
.button.primary:hover:not(:disabled) { background: #e8e8ec; border-color: #ffffff; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.button.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: #ffffff; color: #ffffff; }
.button.danger { color: var(--danger); background: rgba(255, 45, 85, 0.1); border-color: rgba(255, 45, 85, 0.42); }
.button.danger:hover:not(:disabled) { color: #ffffff; background: rgba(255, 45, 85, 0.24); border-color: var(--led-r); }
.button.btn-sm { min-height: var(--ctrl-sm); padding: 0 12px; font-size: 12.5px; }
.icon-button { padding: 0 10px; min-width: var(--ctrl-sm); font-size: 18px; }

/* Panels & Filters */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: clip; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; gap: 10px; }
.time-note { color: var(--muted); font: 11.5px var(--mono); text-align: right; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 12px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  flex: 1 1 220px;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  padding: 0 12px;
  min-height: var(--ctrl-h);
}
.search-field span { color: var(--muted); font-size: 17px; line-height: 1; }
input { color: var(--white); }
.search-field input { min-height: 42px; background: transparent; border: 0; width: 100%; outline: none; }
.search-field:focus-within { border-color: #ffffff; box-shadow: 0 0 0 2px var(--led-b-ring); }
input::placeholder, textarea::placeholder { color: #5c5c66; }

input:not([type="checkbox"]):not([type="range"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #ffffff;
  background-color: #0b0b0f;
  box-shadow: 0 0 0 2px var(--led-b-ring);
}

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; }
.tabs button {
  min-height: var(--ctrl-sm);
  padding: 0 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 560;
}
.tabs button:hover { border-color: #ffffff; color: var(--white); }
.tabs button[aria-pressed="true"] { background: #ffffff; border-color: #ffffff; color: #000000; font-weight: 650; }

/* Stalker Feed Table & LED Chips */
.table-wrap { overflow: auto; }
table { border-collapse: collapse; table-layout: fixed; width: 100%; text-align: left; }
th { color: var(--muted); background: #0d0d11; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow-wrap: normal; }
th, td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td { overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 20px; width: 12%; }
th:nth-child(2) { width: 22%; }
th:nth-child(3) { width: 16%; }
th:nth-child(4) { width: 18%; }
th:nth-child(5) { width: 16%; }
th:last-child { width: 44px; }
tbody tr:hover { background: var(--surface-hover); }
.event-time, .event-volume, .event-token small, .wallet-data small { font: 12px var(--mono); }
.event-time, .event-venue, .event-token small, .wallet-data small { color: var(--muted); }
.event-token strong, .wallet-data strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-data small, .event-token small { display: block; margin-top: 3px; }
.event-date { display: block; margin-top: 3px; color: var(--dim); font-size: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink-soft);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex: none;
}
.chip.emerald, .chip[data-kind="buy"], .chip[data-kind="transfer_in"] {
  color: var(--led-g);
  border-color: rgba(0, 230, 118, 0.35);
  background: rgba(0, 230, 118, 0.08);
}
.chip.emerald::before, .chip[data-kind="buy"]::before, .chip[data-kind="transfer_in"]::before {
  background: var(--led-g);
  box-shadow: 0 0 6px var(--led-g-glow);
}
.chip[data-kind="sell"], .chip[data-kind="transfer_out"] {
  color: #ff6b86;
  border-color: rgba(255, 45, 85, 0.38);
  background: rgba(255, 45, 85, 0.08);
}
.chip[data-kind="sell"]::before, .chip[data-kind="transfer_out"]::before {
  background: var(--led-r);
  box-shadow: 0 0 6px var(--led-r-glow);
}
.chip[data-kind="swap"], .chip[data-kind="liquidity"] {
  color: #7ab0ff;
  border-color: rgba(41, 121, 255, 0.38);
  background: rgba(41, 121, 255, 0.08);
}
.chip[data-kind="swap"]::before, .chip[data-kind="liquidity"]::before {
  background: var(--led-b);
  box-shadow: 0 0 6px var(--led-b-glow);
}
.chip[data-kind="creation"] {
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.42);
  background: rgba(168, 85, 247, 0.12);
}
.chip[data-kind="creation"]::before { background: #c084fc; }

.event-open { border: 1px solid transparent; background: transparent; color: var(--white); border-radius: var(--r-ctrl); width: 32px; height: 32px; padding: 0; }
.event-open:hover { background: var(--accent-bg); border-color: var(--line); }
.event-details td:first-child { padding: 14px 20px 16px; width: auto; background: #0d0d12; color: var(--muted); }
.event-details p { margin-bottom: 5px; }
.event-details code { font: 11.5px var(--mono); color: var(--white); overflow-wrap: anywhere; }
.event-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.empty-state { padding: 28px 20px; text-align: center; color: var(--muted); }
.feed-footer { display: flex; justify-content: center; border-top: 1px solid var(--line); padding: 14px; }

/* Digest */
.digest-entries { list-style: none; padding: 0; margin: 0; }
.digest-entry { display: grid; gap: 7px; padding: 14px 20px; }
.digest-entry + .digest-entry { border-top: 1px solid var(--line); }
.digest-entry-head, .digest-entry-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.digest-entry-head time { margin-inline-start: auto; color: var(--muted); font: 12px var(--mono); }
.digest-entry-note { min-width: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.digest-entry a { width: fit-content; color: var(--white); padding: 6px 0; font-size: 13px; font-weight: 550; }

/* Wallets */
.wallet-panel .filters { padding-top: 16px; }
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; min-height: 68px; border-top: 1px solid var(--line); transition: background-color .12s ease; }
.wallet-row:hover { background: var(--surface-hover); }
.wallet-monogram {
  width: 40px;
  height: 40px;
  border-radius: var(--r-ctrl);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--field);
  color: var(--white);
  flex: none;
  font: 600 12px var(--mono);
}
.wallet-row .wallet-data { flex: 1; min-width: 0; }
.wallet-row .wallet-data small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* Bubble Maps & Multi-Hop Trail */
.graph-form { padding: 20px; margin-bottom: 16px; overflow: visible; }
.graph-search, .graph-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.graph-search label, .graph-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; min-width: 0; }
.graph-address { flex: 1 1 220px; }
.graph-search input, .graph-filters input {
  width: 100%;
  min-width: 0;
  height: var(--ctrl-h);
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  background: var(--field);
}
.graph-filters label { flex: 1 1 130px; }
.graph-filters select { max-width: none; width: 100%; }
.graph-filter-box { margin-top: 12px; }
.graph-filter-box summary, .graph-accessible summary, .graph-crawl-limits summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  padding: 4px 0;
}
.graph-filter-box summary:hover, .graph-accessible summary:hover { color: #ffffff; }
.graph-filter-box[open] .graph-filters { padding-top: 10px; }
.graph-crawl-limits { margin-top: 10px; }
.graph-workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.map-panel .panel-head { border-bottom: 1px solid var(--line); padding: 12px 16px; min-height: 52px; }
.graph-toolbar .time-note { text-align: left; }
.graph-toolbar-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.graph-actions { position: relative; }
.graph-actions summary { list-style: none; }
.graph-actions summary::-webkit-details-marker { display: none; }
.graph-actions summary::after { content: " ⌄"; }
.graph-actions[open] summary::after { content: " ⌃"; }
.graph-actions > div {
  z-index: 6;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: max-content;
  display: grid;
  gap: 4px;
  background: #101014;
  padding: 6px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  border-radius: var(--r-card);
}
.graph-actions > div .button { justify-content: flex-start; }

/* Multi-Hop Breadcrumb Trail Bar */
.graph-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #060609;
  border-bottom: 1px solid var(--line);
}
.graph-trail-back, .graph-trail-reset { flex: none; }
.graph-trail-track {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
}
.graph-trail-track::-webkit-scrollbar { display: none; }
.graph-trail-sep { color: var(--dim); font-size: 13px; flex: none; }
.graph-trail-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 550 11.5px/1 var(--mono);
  white-space: nowrap;
  flex: none;
}
.graph-trail-chip:hover { border-color: #ffffff; color: #ffffff; }
.graph-trail-chip.active { background: #ffffff; border-color: #ffffff; color: #000000; font-weight: 650; }

.map-viewport {
  position: relative;
  height: clamp(330px, 56vh, 560px);
  background-color: #050507;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }
.graph-initial { position: absolute; top: 44%; inset-inline: 20px; text-align: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.map-controls { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 6px; }
.map-controls button {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  background: rgba(16, 16, 20, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--white);
  border-radius: var(--r-ctrl);
  font: 18px var(--mono);
}
.map-controls button:hover { border-color: #ffffff; background: #18181e; }

.map-legend {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 72px);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: var(--r-ctrl);
  font-size: 11px;
  font-weight: 550;
  pointer-events: none;
}
.legend-item, .legend-mode { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-mode { display: none; }
.map-legend[data-mode="route"] .legend-mode,
.map-legend[data-mode="treasury"] .legend-mode {
  display: inline-flex;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: #ffffff;
}
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend-dot.in { background: #00e676; box-shadow: 0 0 6px rgba(0, 230, 118, 0.55); }
.legend-dot.out { background: #ff3b69; box-shadow: 0 0 6px rgba(255, 59, 105, 0.55); }
.legend-dot.hop { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.5); }
.map-legend[data-mode="route"] .legend-dot.mode { background: #ffb300; }
.map-legend[data-mode="treasury"] .legend-dot.mode { background: #38bdf8; }

.graph-footer { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.graph-footer p { color: var(--muted); font-size: 12px; flex: 1 1 160px; }
.graph-footer button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.graph-accessible { padding: 0 16px 12px; }
#graph-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
#graph-list button { font-size: 11.5px; min-height: 30px; padding: 0 10px; white-space: normal; }

/* Graph Inspector */
.graph-inspector .panel-head { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.graph-inspector h2 { overflow-wrap: anywhere; }
#graph-detail { padding: 14px 16px 16px; }
.graph-full-address {
  display: block;
  padding: 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  font: 12px var(--mono);
  overflow-wrap: anywhere;
  user-select: all;
}
.graph-note { color: var(--muted); margin: 8px 0; font-size: 12px; line-height: 1.45; }
.graph-pivot-bar { margin: 10px 0 6px; }
.graph-pivot-cta { width: 100%; min-height: 40px; font-size: 13px; }
.graph-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.graph-edge-arrow { color: var(--muted); font-family: var(--mono); }
.graph-connection-row { display: flex; align-items: stretch; gap: 5px; margin-top: 6px; }
.graph-connection {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 6px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.graph-connection-text { flex: 1; min-width: 0; font-size: 12px; }
.graph-dir {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font: 700 11px/1 var(--mono);
  flex: none;
}
.graph-dir.in { color: #00e676; background: rgba(0, 230, 118, 0.14); }
.graph-dir.out { color: #ff6b86; background: rgba(255, 45, 85, 0.14); }
.graph-jump-btn { padding: 0 10px; flex: none; font-family: var(--mono); }

.graph-field { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 12px; }
.graph-field span { color: var(--muted); }
.graph-field strong { font: 500 11.5px var(--mono); text-align: right; overflow-wrap: anywhere; }
#graph-detail h3 { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 6px; }
.graph-transfer-list { list-style: none; padding: 0; margin: 0; max-height: 330px; overflow: auto; }
.graph-transfer-list li { display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 11.5px; }
.graph-transfer-list li strong { font: 500 11.5px var(--mono); overflow-wrap: anywhere; }
.graph-transfer-list li span { color: var(--muted); }
.graph-transfer-list a { color: var(--white); width: fit-content; font-weight: 550; }
.graph-tooltip {
  position: fixed;
  z-index: 25;
  max-width: calc(100vw - 18px);
  background: rgba(10, 10, 12, 0.96);
  border: 1px solid var(--line-strong);
  color: var(--white);
  border-radius: var(--r-ctrl);
  padding: 6px 10px;
  font: 550 11.5px var(--mono);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}
@media (min-width: 1080px) {
  .graph-workspace:has(.graph-inspector:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(265px, 315px); }
}

/* Settings & Choice Cards (Exact Canon Parity) */
.settings-panel { max-width: 800px; }
.settings-row, .settings-events, .settings-footer { padding: 20px; border-bottom: 1px solid var(--line); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.settings-row p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-ctrl);
  border: 1px solid var(--line);
  background: var(--field);
  font-size: 13px;
  font-weight: 500;
}
.choice-card:hover { border-color: var(--line-strong); }
.choice-card:has(input:checked) { border-color: #ffffff; background: rgba(255, 255, 255, 0.04); }

.switch { display: inline-grid; width: 44px; height: 24px; position: relative; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { border-radius: 999px; background: #1c1c22; border: 1px solid var(--line-strong); pointer-events: none; transition: background-color .15s ease, border-color .15s ease; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); top: 4px; left: 4px; transition: transform .15s ease, background-color .15s ease; }
.switch input:checked + span { background: #ffffff; border-color: #ffffff; }
.switch input:checked + span::before { transform: translateX(20px); background: #000000; }
.switch input:focus-visible + span { outline: 2px solid var(--led-b); outline-offset: 2px; }

.amount-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 124px;
  min-width: 124px;
  height: var(--ctrl-h);
  color: var(--muted);
  font: 13px var(--mono);
  padding: 0 12px;
  background: var(--field);
  border-radius: var(--r-ctrl);
  border: 1px solid var(--line-strong);
}
.amount-control input { background: transparent; border: 0; width: 100%; min-width: 0; outline: none; font-family: var(--mono); }
.amount-control:focus-within { border-color: #ffffff; box-shadow: 0 0 0 2px var(--led-b-ring); }
.settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-bottom: 0; }
.settings-footer p { color: var(--muted); font-size: 12.5px; }

/* Access Box, Dialogs & Toast */
.access-box { padding: 20px; margin-bottom: 16px; }
.access-box p { margin: 8px 0 14px; color: var(--muted); }
dialog {
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: var(--surface);
  border-radius: var(--r-card);
  width: min(440px, calc(100vw - 24px));
  padding: 20px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-actions { justify-content: flex-end; margin-top: 12px; }
.dialog-head { margin-bottom: 14px; }
#wallet-form > label:not(.dialog-switch) { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; margin: 12px 0; }
#wallet-form select { width: 100%; max-width: none; }
#wallet-form input:not([type="checkbox"]) {
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  height: var(--ctrl-h);
  padding: 0 14px;
  min-width: 0;
}
.dialog-switch { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13.5px; }
.form-error { color: var(--danger); min-height: 20px; padding-top: 4px; font-size: 12px; }
.toast {
  position: fixed;
  bottom: calc(66px + env(safe-area-inset-bottom));
  right: 16px;
  padding: 10px 14px;
  z-index: 35;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  background: #101014;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  font-size: 13px;
  font-weight: 550;
}

/* Graph Dialogs */
#graph-add-form > label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; margin: 12px 0; }
#graph-add-address { width: 100%; height: var(--ctrl-h); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctrl); background: var(--field); }
#graph-tools-dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
.graph-tool-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.graph-tool-tabs .button { min-height: 40px; padding-inline: 6px; }
.graph-tool-tabs .button[aria-pressed="true"] { background: #ffffff; color: #000000; border-color: #ffffff; font-weight: 650; }
.graph-tool-content { margin-top: 14px; }
.graph-tool-field { display: grid; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.graph-tool-field input, .graph-tool-results select {
  height: var(--ctrl-h);
  min-width: 0;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  background: var(--field);
  color: var(--white);
}
.graph-tool-field input { font-size: 15px; }
.graph-tool-results { display: grid; gap: 6px; }
.graph-tool-results select { display: block; text-overflow: ellipsis; padding-right: 38px; }
.graph-tool-choice {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: var(--ctrl-h);
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--white);
  border-radius: var(--r-ctrl);
  text-align: start;
  overflow-wrap: anywhere;
}
.graph-tool-choice:hover { border-color: #ffffff; background: var(--surface-hover); }
.graph-tool-choice small, .graph-tool-timeline span, .graph-tool-timeline small { color: var(--muted); }
.graph-tool-choice small, .graph-tool-timeline small { font: 11px var(--mono); }
.graph-tool-timeline { display: grid; gap: 6px; list-style: none; padding: 0; margin: 6px 0; }
.graph-tool-timeline li { display: grid; gap: 3px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 12px; overflow-wrap: anywhere; }
.graph-tool-timeline li span:empty, .graph-tool-timeline li small:empty { display: none; }
.graph-tool-timeline a { width: fit-content; padding: 4px 0; color: var(--white); font-weight: 550; }
.graph-tool-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.graph-tool-actions .button { min-height: 40px; }
.graph-route-import { margin-top: 10px; }
.graph-route-import summary { color: var(--white); cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 550; }
.graph-route-import textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  background: var(--field);
  color: var(--white);
  font: 13px/1.5 var(--mono);
  resize: vertical;
}
.graph-route-import-results { margin: 8px 0 0; padding: 0; list-style: none; }
.graph-route-import-results:empty, #graph-route-import-status:empty { display: none; }
.graph-route-import-results li { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-block: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

/* Treasuries */
.treasury-list { display: grid; }
.treasury-warning { padding: 0 20px 12px; color: var(--muted); font-size: 12.5px; }
.treasury-row { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.treasury-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 10px; }
.treasury-row-head h3 { margin: 0; font-size: 15.5px; font-weight: 620; overflow-wrap: anywhere; }
.treasury-address { display: block; margin-top: 4px; font: 11.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.treasury-status { padding: 4px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: 11px; font-weight: 600; }
.treasury-status.active { color: var(--led-g); border-color: rgba(0, 230, 118, 0.35); background: rgba(0, 230, 118, 0.08); }
.treasury-status.error { color: var(--danger); border-color: rgba(255, 45, 85, 0.38); background: rgba(255, 45, 85, 0.08); }
.treasury-meta { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 4px 16px; color: var(--muted); font-size: 12px; }
.treasury-error { color: var(--danger); font-size: 12px; overflow-wrap: anywhere; }
.treasury-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.treasury-actions > .button { min-height: var(--ctrl-sm); padding-inline: 11px; font-size: 12px; }
.treasury-history { margin-top: 16px; }
.treasury-event { padding: 14px 20px; border-top: 1px solid var(--line); }
.treasury-event-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 12px; font-size: 12px; }
.treasury-event-head a { color: var(--white); font-weight: 550; }
.treasury-transfers { margin: 8px 0 0; padding-left: 16px; }
.treasury-transfers li { margin-top: 7px; overflow-wrap: anywhere; font-size: 12px; }
.treasury-fresh { color: var(--led-g); font-weight: 600; }
.treasury-transfers .treasury-address { display: inline; margin: 0; margin-right: 7px; }
.treasury-graph-link { background: none; color: var(--white); border: 0; padding: 2px 0; font-size: 12px; font-weight: 550; text-decoration: underline; }
.treasury-trade-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-block: 4px 8px; color: var(--muted); font-size: 12px; }
.treasury-trades-list { list-style: none; margin: 0 0 12px; padding: 0; overflow-wrap: anywhere; }
.treasury-trades-list li { display: grid; gap: 5px; padding: 9px 0; border-top: 1px solid var(--line); }
.treasury-trade-caption, .treasury-trade-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; font-size: 12px; }
.treasury-trade-meta { color: var(--muted); }
.treasury-trade-meta a { color: var(--white); }
#treasury-trades-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.treasury-form-fields { display: grid; gap: 10px; }
.treasury-form-fields label, .treasury-threshold { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
.treasury-threshold { margin-top: 10px; }
.treasury-form-fields input, .treasury-threshold input {
  width: 100%;
  height: var(--ctrl-h);
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  background: var(--field);
}
.treasury-form-fields select { width: 100%; max-width: none; }

/* Status Telemetry Cards */
.status-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.status-card { padding: 20px; overflow-wrap: anywhere; }
.status-body { margin-top: 12px; display: grid; gap: 6px; }
.status-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.status-kv span { color: var(--muted); }
.status-kv strong { font: 550 12px var(--mono); color: #ffffff; text-align: right; }
.status-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; padding-top: 6px; border-top: 1px solid var(--line); }
.status-body > :first-child { border-top: 0; padding-top: 0; }

/* Responsive Refinements */
.feed-filters summary { display: none; }
@media (max-width: 800px) {
  .content { padding: 16px 14px calc(86px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 14px; }
  .panel-head, .filters, .tabs, .wallet-row, .treasury-row, .treasury-event, .treasury-warning, .digest-entry { padding-inline: 14px; }
  th:first-child, td:first-child { padding-left: 14px; }
  .search-field { width: 100%; }
}
@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .telemetry-bar { gap: 8px; }
  .telemetry-kpi { padding: 10px 12px; }
  .telemetry-kpi strong { font-size: 14.5px; }
  .feed-filters summary { display: block; cursor: pointer; color: var(--muted); padding: 0 14px 10px; font-weight: 560; font-size: 12.5px; }
  .feed-filters summary::after { content: " ⌄"; }
  .feed-filters[open] summary::after { content: " ⌃"; }
  .tabs { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; }
  .feed thead { display: none; }
  .feed table, .feed tbody { display: block; width: 100%; }
  .feed tbody tr:not(.event-details) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "wallet status time"
      "token volume action";
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }
  .feed tbody tr:not(.event-details) td {
    padding: 0;
    border: 0;
    width: auto !important;
    min-width: 0;
  }
  .feed tbody tr:not(.event-details) td:nth-child(1) { grid-area: time; text-align: right; font-size: 11px; }
  .feed tbody tr:not(.event-details) td:nth-child(2) { grid-area: wallet; }
  .feed tbody tr:not(.event-details) td:nth-child(3) { grid-area: status; }
  .feed tbody tr:not(.event-details) td:nth-child(4) { grid-area: token; }
  .feed tbody tr:not(.event-details) td:nth-child(5) { grid-area: volume; text-align: right; font-weight: 600; color: #ffffff; white-space: nowrap; }
  .feed tbody tr:not(.event-details) td:nth-child(6) { display: none; }
  .feed tbody tr:not(.event-details) td:nth-child(7) { grid-area: action; justify-self: end; }
  .event-date { display: none; }
  .feed tbody tr.event-details { display: block; border-top: 1px solid var(--line); }
  .feed tbody tr.event-details td { display: block; width: 100%; padding: 12px 14px 14px; border: 0; }
  .chip { font-size: 10.5px; padding: 2px 7px; gap: 4px; }
  .wallet-row { flex-wrap: wrap; gap: 10px; padding-inline: 12px; }
  .wallet-actions { margin-left: auto; }
  .graph-form { padding: 14px; }
  .graph-search { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .graph-search button { grid-column: 1 / -1; width: 100%; }
  .graph-search select { min-width: 0; width: 100%; }
  .map-viewport { height: clamp(300px, 50dvh, 460px); }
  #graph-tools-dialog { margin: auto auto max(10px, env(safe-area-inset-bottom)); max-height: min(76dvh, calc(100dvh - 20px)); padding: 14px; }
  .settings-row, .settings-events, .settings-footer { padding: 14px; }
}

/* Web Login & Dedicated Call Bot Sync Banner */
.web-login-box {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
  text-align: left;
}

.web-login-bots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.web-login-bots .button {
  justify-content: center;
  text-align: center;
}

.web-login-form {
  display: grid;
  gap: 8px;
}

.web-login-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.web-login-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-login-row input {
  flex: 1 1 220px;
  min-width: 0;
  height: var(--ctrl-h);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctrl);
  background: var(--field);
  color: var(--white);
  font: 13px var(--mono);
}

.callbot-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(10, 10, 12, 0.95));
}

.callbot-banner-copy {
  display: grid;
  gap: 3px;
  flex: 1 1 240px;
  min-width: 0;
}

.callbot-banner-copy strong {
  font-size: 13.5px;
  font-weight: 650;
  color: #ffffff;
}

.callbot-banner-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.callbot-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lang-switch select {
  height: 30px;
  min-height: 30px;
  min-width: 58px;
  padding: 0 24px 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: #ffffff;
  font: 600 11.5px/1 var(--mono);
  cursor: pointer;
}
