:root {
  --bg: #07090c;
  --panel: #0c1016;
  --panel-2: #111720;
  --line: #1b2330;
  --line-2: #263142;
  --fg: #e6edf3;
  --muted: #7d8a9c;
  --dim: #4a5566;
  --accent: #3ee6c1;
  --accent-dim: rgba(62, 230, 193, 0.12);
  --warn: #f5b544;
  --down: #f2617a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --r: 10px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(62, 230, 193, 0.06), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
  background-attachment: fixed;
  color: var(--fg);
  font: 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
kbd {
  font: 500 11px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 5px;
  background: var(--panel-2);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.75; flex: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); white-space: nowrap; }
.brand-mark {
  width: 10px; height: 10px; align-self: center; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.brand-name { font-weight: 700; letter-spacing: 0.12em; }
.brand-sub { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; }

.search {
  flex: 1; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; height: 38px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); height: 100%; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px var(--mono); letter-spacing: 0.08em; color: var(--muted);
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status.synced .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status.local .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel-2);
  cursor: pointer; font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--dim); }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04110d; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn[aria-pressed="true"] { border-color: var(--warn); color: var(--warn); background: rgba(245,181,68,0.08); }
.btn.small { height: 28px; font-size: 12px; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 6px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); }

/* Grid */
.grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px; padding: 16px 20px 8px; max-width: 1680px; margin: 0 auto;
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }
.top-panel { grid-column: span 3; display: flex; flex-direction: column; }
.radar-panel { grid-column: span 6; }
.chrono-panel { grid-column: span 3; }
.wx-panel { grid-column: span 7; }
.mk-panel { grid-column: span 5; }

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 120px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  min-width: 0;
  position: relative;
}
.panel::after {
  content: ""; position: absolute; top: -1px; left: 14px; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px; opacity: .8;
}
.panel-head, .section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.panel-head h2, .section-head h2, .sub-head {
  margin: 0; font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.sub-head { margin: 14px 0 8px; }
.meta { font: 11px var(--mono); color: var(--dim); white-space: nowrap; }

/* Radar */
.radar-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg-btn {
  background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line);
  font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; cursor: pointer;
}
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { color: var(--fg); }
.seg-btn.is-active { background: var(--accent); color: #000; }
.radar-open { color: var(--accent); text-decoration: none; }
.radar-open:hover { text-decoration: underline; }
.radar-panel { display: flex; flex-direction: column; }
.radar-wrap { position: relative; flex: 1; min-height: clamp(280px, 42vh, 460px); }
.radar { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.radar iframe { width: 100%; height: 100%; border: 0; display: block; }
.radar-shield {
  position: absolute; inset: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
}
.radar-shield span {
  font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
  background: rgba(5,8,10,0.78); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px;
  opacity: 0; transition: opacity .15s;
}
.radar-shield:hover span, .radar-shield:focus-visible span { opacity: 1; }
.radar-shield:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.radar-wrap.is-live .radar-shield { display: none; }

/* Top 12 */
.top-grid {
  flex: 1; display: grid; gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(52px, 1fr));
}
.top-grid .tile { justify-content: center; height: 100%; padding: 8px; }
.top-grid .t-label { font-size: 12.5px; }
.top-grid .t-count { margin-left: auto; flex: none; font: 10px var(--mono); color: var(--dim); }
.top-grid .tile.is-fixed { border-color: var(--line-2); }
.top-grid .tile.is-fixed .t-count { color: var(--accent); }
.top-grid .slot-empty { border: 1px dashed var(--line); border-radius: 8px; }

/* Chrono */
.chrono-panel { display: flex; flex-direction: column; container-type: inline-size; }
.chrono-top { display: flex; align-items: stretch; justify-content: space-between; gap: 4cqi; }
.chrono-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.chrono-panel .clock {
  font: 500 min(96px, 20cqi)/0.92 "Oswald", "Bahnschrift", "Arial Narrow", sans-serif;
  letter-spacing: 0; display: flex; align-items: stretch; margin-top: 2px;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(230,237,243,.08);
}
.clock-side { display: inline-flex; flex-direction: column; justify-content: space-between; margin-left: 0.07em; padding: 0.06em 0 0.04em; }
.chrono-panel .clock .sec, .chrono-panel .clock .ampm { margin-left: 0; line-height: 1; font-family: var(--mono); }
.chrono-panel .clock .sec { font-size: 0.26em; font-weight: 700; color: var(--accent); }
.chrono-panel .clock .ampm { font-size: 0.17em; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.chrono-main .date { font-size: min(14px, 3.6cqi); margin-top: 8px; text-align: center; white-space: nowrap; }
.cal { flex: none; width: clamp(120px, 41cqi, 178px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.cal-title {
  background: none; border: 0; cursor: pointer; padding: 0 2px;
  font: 700 min(14px, 3.6cqi) var(--mono); letter-spacing: .04em; color: #a6e36b;
}
.cal-title:hover { text-decoration: underline; }
.cal-nav {
  background: none; border: 0; cursor: pointer; color: var(--dim); width: 20px; height: 20px;
  font: 700 15px/1 var(--mono); border-radius: 4px; padding: 0;
}
.cal-nav:hover { color: var(--fg); background: var(--line); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center;
  font: 700 min(12.5px, 3.3cqi)/min(20px, 5.4cqi) var(--mono);
}
.cal-grid .dow { color: var(--dim); font-size: .78em; font-weight: 600; }
.cal-grid .day { color: var(--fg); border-radius: 5px; font-variant-numeric: tabular-nums; }
.cal-grid .day.wknd { color: var(--muted); font-weight: 500; }
.cal-grid .day.today { background: #1e90ff; color: #fff; box-shadow: 0 0 12px rgba(30,144,255,.55); }
.chrono-panel .stats { margin-top: auto; padding-top: 14px; }
.chrono-panel .stats { grid-template-columns: 1.2fr .8fr 1.2fr; }
.chrono-panel .stats > div {
  min-height: 52px; padding: 6px 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 4px; align-content: center; align-items: center;
}
.chrono-panel .stats dt, .chrono-panel .stats dd { grid-column: 1; }
.chrono-panel .stats #moon { white-space: normal; line-height: 1.2; }
.chrono-panel .stats dd { font-size: min(13px, 4.1cqi); }
.stat-gfx { grid-column: 2; grid-row: 1 / span 2; width: min(44px, 10cqi); height: min(44px, 10cqi); display: block; }

.clock { font: 700 52px/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock .sec { font-size: 20px; color: var(--accent); margin-left: 6px; vertical-align: top; }
.clock .ampm { font-size: 14px; color: var(--muted); margin-left: 6px; letter-spacing: .08em; }
.date { margin-top: 6px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 12px; }
.stats div, .wx-grid div {
  background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-width: 0;
}
dt { font: 10px var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
dd { margin: 2px 0 0; font: 500 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-list { display: grid; gap: 7px; }
.prog { display: grid; grid-template-columns: 44px 1fr 38px; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--muted); }
.prog .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.prog b { text-align: right; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.world { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.world li { display: flex; justify-content: space-between; font: 12px var(--mono); }
.world li span:first-child { color: var(--muted); }

/* Weather */
.wx-now { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.wx-temp { font: 700 56px/1 var(--mono); letter-spacing: -0.03em; }
.wx-temp sup { font-size: 18px; color: var(--muted); margin-left: 2px; }
.wx-cond { font-size: 16px; font-weight: 600; }
.wx-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; margin: 10px 0 0; }
.spark-wrap { margin-top: 12px; }
.spark-label { display: flex; justify-content: space-between; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.spark { width: 100%; height: 56px; display: block; }
.forecast { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.forecast li {
  text-align: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.02);
  font: 12px var(--mono); display: grid; gap: 4px; justify-items: center;
}
.forecast .d { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.forecast .hi { font-weight: 700; }
.forecast .lo { color: var(--dim); }
.forecast .pp { color: #6cb6ff; font-size: 10px; }
.forecast svg.lucide { color: var(--accent); width: 18px; height: 18px; }

/* Markets */
.ticker { width: 100%; border-collapse: collapse; font: 13px var(--mono); }
.ticker td { padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ticker tr:last-child td { border-bottom: 0; }
.ticker .sym { font-weight: 700; }
.ticker .name { color: var(--dim); font-size: 11px; padding-left: 8px; }
.ticker .px { text-align: right; }
.ticker .ch { text-align: right; width: 76px; }
.up { color: var(--accent); }
.down { color: var(--down); }
.fx { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.fx div { display: flex; justify-content: space-between; font: 12px var(--mono); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.fx span { color: var(--muted); }

/* Launch */
.launch { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.015); min-width: 0;
  transition: border-color .15s, background .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); background: var(--accent-dim); }
.tile .t-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tile .t-label { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-host { font: 10px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind { font: 700 9px var(--mono); letter-spacing: .1em; padding: 1px 4px; border-radius: 3px; margin-left: auto; flex: none; }
.kind.web { color: #6cb6ff; background: rgba(108,182,255,0.1); }
.kind.lab { color: var(--accent); background: var(--accent-dim); }
.kind.sys { color: var(--warn); background: rgba(245,181,68,0.1); }
.fav { width: 14px; height: 14px; border-radius: 3px; flex: none; background: var(--line); }

/* HN */
.hn { list-style: none; margin: 0; padding: 0; counter-reset: hn; }
.hn li { counter-increment: hn; display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hn li:last-child { border-bottom: 0; }
.hn li::before { content: counter(hn, decimal-leading-zero); font: 11px var(--mono); color: var(--dim); padding-top: 2px; }
.hn a { font-size: 13px; line-height: 1.35; display: block; }
.hn a:hover { color: var(--accent); }
.hn .sub { font: 10px var(--mono); color: var(--dim); margin-top: 2px; }
.hn .sub a { display: inline; font-size: 10px; color: var(--muted); }

/* Viewport */
.chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  font: 500 11px var(--mono); padding: 4px 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
}
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: #04110d; background: var(--accent); border-color: var(--accent); }
.viewport {
  height: 320px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; background: #05070a;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.015) 10px 20px);
}
.viewport iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }

/* Directory */
.cats-wrap { margin-top: 4px; }
.cats { columns: 5 220px; column-gap: 12px; }
.cat {
  break-inside: avoid; margin: 0 0 12px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); }
.cat-head svg.lucide { color: var(--accent); }
.cat-head h3 { margin: 0; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.cat-head .meta { margin-left: auto; }
.cat ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cat li { position: relative; min-width: 0; }
.cat li a {
  display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 5px; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat li a span { overflow: hidden; text-overflow: ellipsis; }
.cat li a:hover { background: var(--accent-dim); color: var(--accent); }
.cat .empty-cat { grid-column: 1 / -1; color: var(--dim); font: 11px var(--mono); padding: 4px 6px; }
.rm {
  display: none; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--down); color: #fff; font: 700 12px/20px var(--mono); padding: 0;
}
body.editing .rm { display: block; }
body.editing .cat li a, body.editing .tile { padding-right: 26px; }
body.editing .tile .kind { display: none; }
mark { background: rgba(62,230,193,0.25); color: var(--fg); border-radius: 2px; }
.empty { color: var(--muted); text-align: center; padding: 24px; font-family: var(--mono); font-size: 12px; }
[hidden] { display: none !important; }

.footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1680px; margin: 0 auto; padding: 8px 20px 24px;
  font: 11px var(--mono); color: var(--dim);
}

/* Dialog */
.dialog {
  width: min(460px, calc(100vw - 24px)); padding: 0; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--fg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(62,230,193,0.08);
}
.dialog::backdrop { background: rgba(2,4,6,0.7); backdrop-filter: blur(4px); }
.dialog form { padding: 18px; display: grid; gap: 12px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.field { display: grid; gap: 5px; min-width: 0; }
.field span { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  height: 38px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--bg); outline: none; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row:has(> [hidden]) { grid-template-columns: 1fr; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
#pass-wrap { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.form-msg { margin: 0; min-height: 18px; font: 12px var(--mono); color: var(--muted); }
.form-msg.err { color: var(--down); }
.form-msg.ok { color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.anywhere { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--muted); }
.anywhere summary { cursor: pointer; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.anywhere ol { padding-left: 18px; margin: 10px 0; display: grid; gap: 8px; }
.anywhere strong { color: var(--fg); font-weight: 600; }
.anywhere code { font: 11px var(--mono); color: var(--accent); word-break: break-all; }
.bookmarklet {
  display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 6px; cursor: grab;
  border: 1px dashed var(--accent); color: var(--accent); font: 600 12px var(--mono);
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  padding: 10px 14px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--accent);
  font: 12px var(--mono); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.skeleton { color: var(--dim); font: 12px var(--mono); }

/* Responsive */
@media (max-width: 1280px) {
  .span-3 { grid-column: span 5; }
  .span-5 { grid-column: span 7; }
  .span-4 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
  .row-2 { grid-row: auto; }
  .span-8, .cats-wrap { order: 2; }
  .top-panel { grid-column: span 4; }
  .radar-panel { grid-column: span 8; }
  .chrono-panel { grid-column: span 4; }
  .wx-panel { grid-column: span 8; }
  .mk-panel { grid-column: span 6; }
  .hn { max-height: 360px; overflow: auto; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; padding: 12px; }
  .span-3, .span-4, .span-5, .span-8, .span-12,
  .top-panel, .radar-panel, .chrono-panel, .wx-panel, .mk-panel { grid-column: 1 / -1; }
  .top-grid { grid-template-rows: repeat(4, 48px); }
  .topbar { flex-wrap: wrap; padding: 10px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search kbd, .btn span, .brand-sub { display: none; }
  .topbar-right { margin-left: auto; }
  .wx-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .viewport { height: 260px; }
  .radar-wrap { min-height: 300px; }
  .radar-panel .panel-head { flex-wrap: wrap; }
  .footer { padding: 8px 12px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
