/* Kaola Nav · Apple Light / Obsidian Dark Bento */
:root {
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --body: #6E6E73;
  --muted: #86868B;
  --faint: #AEAEB2;
  --line: rgba(0, 0, 0, 0.08);
  --line-hair: rgba(0, 0, 0, 0.06);
  --accent: #0071E3;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --focus: 0 0 0 3px rgba(0, 113, 227, 0.35);
  --shadow:
    0 0 0 0.5px var(--line-hair),
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover:
    0 0 0 0.5px var(--line-hair),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.10);
  --shadow-press:
    0 0 0 0.5px var(--line-hair),
    0 1px 2px rgba(0, 0, 0, 0.06);
  --inset: 0 0 0 0 transparent;
  --wash: rgba(0, 0, 0, 0.04);
  --overlay: rgba(0, 0, 0, 0.32);
  --top-bg: rgba(245, 245, 247, 0.72);
  --radius: 18px;
  --radius-sm: 14px;
  --switch-on: #1D1D1F;
  --switch-on-ink: #FFFFFF;
  --kbd-bg: rgba(255, 255, 255, 0.9);
  --icon-tray: #FFFFFF;
  --icon-inset: inset 0 0.5px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  --map-bg: #F5F5F7;
  --map-glow: rgba(0, 113, 227, 0.08);
  --map-grid: rgba(0, 0, 0, 0.05);
  --map-star: #0071E3;
  --map-star-alt: #34C759;
  --map-dust: #1D1D1F;
  --map-node-fill: #FFFFFF;
  --map-node-core: #F5F5F7;
  --map-label: #1D1D1F;
  --map-label-on: #0071E3;
  --map-label-muted: #6E6E73;
  --map-sel-glow: 0.28;
  --map-core-glow: 0.16;
  --hud-bg: rgba(255, 255, 255, 0.78);
  --ico-bg: var(--card);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  --content: 1180px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B0D10;
  --card: #14171D;
  --ink: #F5F5F7;
  --body: #A1A1A6;
  --muted: #6E6E73;
  --faint: #636366;
  --line: rgba(255, 255, 255, 0.10);
  --line-hair: rgba(255, 255, 255, 0.08);
  --accent: #3ECF8E;
  --accent-ink: #07140E;
  --accent-soft: rgba(62, 207, 142, 0.16);
  --focus: 0 0 0 3px rgba(0, 113, 227, 0.45);
  --shadow:
    0 0 0 1px var(--line-hair),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-hover:
    0 0 0 1px var(--line-hair),
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-press:
    0 0 0 1px var(--line-hair),
    0 1px 2px rgba(0, 0, 0, 0.5);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --wash: rgba(255, 255, 255, 0.05);
  --overlay: rgba(0, 0, 0, 0.58);
  --top-bg: rgba(11, 13, 16, 0.72);
  --switch-on: #3ECF8E;
  --switch-on-ink: #07140E;
  --kbd-bg: #1A1E26;
  --icon-tray: #1A1E26;
  --icon-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --map-bg: #0B0D10;
  --map-glow: rgba(62, 207, 142, 0.07);
  --map-grid: rgba(255, 255, 255, 0.05);
  --map-star: #3ECF8E;
  --map-star-alt: #7C8BFF;
  --map-dust: #F5F5F7;
  --map-node-fill: #14171D;
  --map-node-core: #0B0D10;
  --map-label: #F5F5F7;
  --map-label-on: #3ECF8E;
  --map-label-muted: #A1A1A6;
  --map-sel-glow: 0.4;
  --map-core-glow: 0.18;
  --hud-bg: rgba(20, 23, 29, 0.82);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html { height: 100%; }
body { min-height: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 10px; }
input { caret-color: var(--ink); }
::selection { background: rgba(0, 113, 227, 0.18); color: inherit; }
[data-theme="dark"] ::selection { background: rgba(0, 113, 227, 0.32); }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.app.is-map { height: 100vh; height: 100dvh; overflow: hidden; }
.app.is-map .foot { display: none; }

.top {
  position: sticky; top: 0; z-index: 40;
  height: 52px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  background: var(--top-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; border-radius: 8px; }
.brand-en { font-size: 15px; font-weight: 600; letter-spacing: -0.03em; }
.brand-zh { font-size: 13px; color: var(--body); font-weight: 400; letter-spacing: -0.01em; }
.secs { display: flex; justify-content: center; gap: 4px; flex: 1; min-width: 0; }
.sec {
  height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: 13px; color: var(--body); font-weight: 400;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.2s var(--ease);
}
.sec:hover { background: var(--wash); color: var(--ink); }
.sec.is-on { background: var(--switch-on); color: var(--switch-on-ink); font-weight: 600; letter-spacing: -0.015em; }
.sec:active { transform: scale(0.96); }
.sec .n { font-size: 11px; opacity: 0.7; font-variant-numeric: tabular-nums; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn, .ghost {
  height: 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow), var(--inset);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.icon-btn { width: 30px; }
.icon-btn .ico-moon { display: none; }
[data-theme="dark"] .icon-btn .ico-sun { display: none; }
[data-theme="dark"] .icon-btn .ico-moon { display: block; }
.ghost { padding: 0 11px; font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; }
.ghost kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  background: var(--kbd-bg); border-radius: 4px; padding: 1px 5px;
  box-shadow: 0 0 0 0.5px var(--line);
}
.cta {
  height: 30px; padding: 0 13px;
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: -0.015em;
  box-shadow: 0 1px 2px rgba(0, 113, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease);
}
[data-theme="dark"] .cta { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.cta:hover { filter: brightness(1.06); }
.icon-btn:hover, .ghost:hover { box-shadow: var(--shadow-hover), var(--inset); }
.icon-btn:active, .ghost:active, .cta:active { transform: scale(0.96); }

.switch {
  display: flex; padding: 2px;
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow), var(--inset);
}
.switch button {
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--body);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.2s var(--ease);
}
.switch button[aria-selected="true"] {
  background: var(--switch-on); color: var(--switch-on-ink); font-weight: 600;
}
.switch button:active { transform: scale(0.96); }

.view { display: none; flex: 1; min-height: 0; }
.view.is-on { display: flex; flex-direction: column; }
.shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 10px 0 48px; }

/* ===== Bento ===== */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 10px;
  margin-bottom: 16px;
}
.search-card,
.stat,
.feature,
.scene,
.coming,
.tile,
.hud,
.modal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--inset);
  border: 0;
}
.search-card {
  grid-column: 1; grid-row: 1;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100px;
}
.hello {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.15;
  margin-bottom: 10px;
}
.search {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  background: var(--bg);
  border: 0.5px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.search:focus-within {
  background: var(--card);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: var(--focus);
}
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 14.5px; letter-spacing: -0.01em; }
.search input::placeholder { color: var(--muted); }
.search:focus-within input { box-shadow: none; }
.search kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  background: var(--card); border-radius: 5px; padding: 2px 6px;
  box-shadow: 0 0 0 0.5px var(--line);
}
.stats { grid-column: 2 / 4; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stat {
  padding: 14px 16px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100px;
}
.stat b {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; color: var(--body); margin-top: 8px; display: block; font-weight: 400; }

.feature {
  grid-column: 1; grid-row: 2 / 4;
  padding: 14px 16px 12px;
  display: flex; flex-direction: column;
  min-width: 0;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.feat-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.feat-mainlink { display: flex; flex-direction: column; flex: 1; min-width: 0; border-radius: 12px; }
.feature .body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.feature h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.feature p { margin-top: 3px; font-size: 14px; color: var(--body); font-weight: 400; }
.feature .host { margin-top: 3px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.feat-go {
  margin-top: 10px; align-self: flex-start;
  height: 30px; padding: 0 14px;
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: -0.015em;
  transition: transform 0.22s var(--ease);
}
.feat-go:active { transform: scale(0.96); }
.feat-rel {
  display: flex; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 0.5px solid var(--line);
}
.feat-rel a {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 12px; background: var(--bg);
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.02em;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.feat-rel a:hover { background: var(--wash); }
.feat-rel a:active { transform: scale(0.975); }
.feat-rel small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scene {
  padding: 14px 14px 12px;
  text-align: left;
  min-height: 80px;
  display: flex; flex-direction: column;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
}
.scene:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover), var(--inset); }
.scene:active { transform: scale(0.975); }
.scene.is-on { background: var(--switch-on); color: var(--switch-on-ink); }
.scene h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.scene p { font-size: 12px; color: var(--body); margin-top: 3px; line-height: 1.4; font-weight: 400; }
.scene.is-on p { color: rgba(255, 255, 255, 0.68); }
[data-theme="dark"] .scene.is-on p { color: rgba(7, 20, 14, 0.72); }
.scene-icons { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; }
.scene-1 { grid-column: 2; grid-row: 2; }
.scene-2 { grid-column: 3; grid-row: 2; }
.scene-3 { grid-column: 2; grid-row: 3; }
.scene-4 { grid-column: 3; grid-row: 3; }

.coming {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: none;
  background: transparent;
  border: 0.5px dashed var(--line);
}
.coming h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.coming p { font-size: 14px; color: var(--body); line-height: 1.6; }

/* ===== Wall ===== */
.wall-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 4px 8px; }
.wall-h h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.wall-h p { font-size: 13px; color: var(--body); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.pill {
  height: 28px; padding: 0 11px; border-radius: 999px;
  border: 0.5px solid var(--line); background: var(--card);
  color: var(--body); font-size: 12.5px; font-weight: 500;
  box-shadow: var(--inset);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.2s var(--ease);
}
.pill:hover { color: var(--ink); }
.pill.is-on { background: var(--switch-on); color: var(--switch-on-ink); border-color: transparent; font-weight: 600; }
.pill:active { transform: scale(0.96); }
.pill .n { margin-left: 4px; opacity: 0.7; font-variant-numeric: tabular-nums; }

.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tile {
  position: relative;
  border-radius: var(--radius-sm);
  min-height: 108px;
  padding: 13px 12px 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.tile:hover, .tile.is-hot { transform: translateY(-2px); box-shadow: var(--shadow-hover), var(--inset); }
.tile:active { transform: scale(0.975); box-shadow: var(--shadow-press), var(--inset); }
.tile .name { font-size: 13px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; padding-right: 16px; }
.tile .tag {
  margin-top: auto;
  font-size: 11px; color: var(--body);
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 400;
}
.tile .go {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px; line-height: 1;
  opacity: 0; transform: translate(2px, -2px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
.tile:hover .go, .tile:focus-visible .go { opacity: 1; transform: none; }
.tile .tip {
  display: none;
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px 9px;
  z-index: 2;
}
.tile:hover .tip, .tile:focus-visible .tip { display: block; }
.tile:hover .tag { visibility: hidden; }
.tip .blurb { display: block; font-size: 12px; color: var(--body); line-height: 1.4; }
.tip .host { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 0; }

/* macOS App Icon tray */
.logo { display: block; flex-shrink: 0; }
.favicon, .mono {
  width: 36px; height: 36px; box-sizing: border-box;
  border-radius: 22%;
  display: block;
}
.favicon {
  padding: 4px;
  background: var(--icon-tray);
  box-shadow: var(--icon-inset), 0 0.5px 1px rgba(0, 0, 0, 0.06);
  object-fit: contain;
}
.mono {
  display: none; align-items: center; justify-content: center;
  background: var(--icon-tray);
  color: var(--body); font-size: 13px; font-weight: 600;
  box-shadow: var(--icon-inset);
  letter-spacing: -0.03em;
}
.logo.is-fallback .favicon { display: none; }
.logo.is-fallback .mono { display: flex; }
.feature .logo, .feature .favicon, .feature .mono { width: 48px; height: 48px; border-radius: 22%; }
.scene-icons .logo, .scene-icons .favicon, .scene-icons .mono { width: 18px; height: 18px; border-radius: 22%; padding: 2px; }
.feat-rel .logo, .feat-rel .favicon, .feat-rel .mono { width: 22px; height: 22px; border-radius: 22%; padding: 2px; }

.empty { text-align: center; padding: 48px 16px; color: var(--body); line-height: 1.65; }
.empty h2 { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 6px; }

/* ===== Map ===== */
#view-map.is-on { min-height: 0; }
.map-stage {
  flex: 1; min-height: 0; position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 40% 45%, var(--map-glow), transparent 62%),
    var(--map-bg);
}
.map-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--map-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--map-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 50%, #000 36%, transparent 82%);
}
.map-canvas { position: absolute; inset: 0 360px 0 0; }
.map-canvas svg { width: 100%; height: 100%; display: block; }
.map-canvas text { pointer-events: none; font-family: var(--sans); }
.map-node, .map-hub { cursor: pointer; }
.map-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.map-empty h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 8px; }
.map-empty p { font-size: 14px; color: var(--body); line-height: 1.65; margin-bottom: 18px; max-width: 360px; }
.btn-ghost {
  height: 36px; padding: 0 14px;
  border: 0.5px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow), var(--inset);
  transition: transform 0.22s var(--ease);
}
.btn-ghost:active { transform: scale(0.96); }
.hud {
  position: absolute; top: 16px; right: 16px; width: 332px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--hud-bg);
  border-radius: 18px; padding: 16px;
  color: var(--ink); max-height: calc(100% - 32px); overflow: auto;
}
.hud .focus-k {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
}
.hud-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 20px; padding: 0 8px; border-radius: 999px;
  border: 0.5px solid var(--line); color: var(--body); font-size: 10px; font-weight: 500;
}
.hud-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hud h2 { margin-top: 12px; font-size: 24px; letter-spacing: -0.035em; font-weight: 600; line-height: 1.15; }
.hud .domain { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.hud .badge { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--body); }
.hud .badge svg { color: var(--accent); flex-shrink: 0; }
.hud .blurb { margin-top: 8px; font-size: 14px; color: var(--body); line-height: 1.6; }
.hud .note { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.hud-cta {
  margin-top: 14px; height: 40px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.015em;
  transition: transform 0.22s var(--ease);
}
.hud-cta:active { transform: scale(0.96); }
.sibs { margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--line); }
.sibs h3 { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.sib {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: baseline;
  width: 100%; padding: 7px 0; border-bottom: 0.5px solid var(--line);
  font-size: 13px; text-align: left; color: var(--ink);
  border-radius: 0;
  transition: color 0.2s var(--ease);
}
.sib .sn { font-family: var(--mono); font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sib .shost { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.sib:hover { color: var(--accent); }
.map-dock {
  position: absolute; left: 16px; bottom: 16px; right: 364px;
  display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.map-dock button {
  pointer-events: auto; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 0.5px solid var(--line); background: var(--hud-bg);
  color: var(--body); font-size: 12px;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.2s var(--ease);
}
.map-dock button.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.map-dock button:active { transform: scale(0.96); }
.hud.is-off, .map-dock.is-off { display: none; }

/* ===== Footer / overlays ===== */
.foot {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 24px;
  font-size: 12px; color: var(--body); line-height: 1.6;
  display: flex; gap: 14px; align-items: baseline;
  border-top: 0.5px solid var(--line);
}
.foot b { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.foot a { color: var(--accent); font-weight: 600; }

.overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 16px 16px; z-index: 80;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}
.overlay.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.overlay[hidden] { display: flex !important; }
.overlay:not(.is-on)[hidden] { display: flex !important; }
.modal {
  width: min(640px, 100%);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 0.38s var(--ease-out), opacity 0.32s var(--ease);
}
.overlay.is-on .modal { transform: none; opacity: 1; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.modal-h h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.025em; }
.modal-x {
  width: 28px; height: 28px; border-radius: 50%;
  color: var(--body); font-size: 18px;
  background: var(--wash);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.modal-x:hover { background: var(--line); color: var(--ink); }
.modal-x:active { transform: scale(0.92); }
.palette-input {
  width: 100%; padding: 14px 16px 12px; background: transparent; border: 0; outline: none;
  font-size: 17px; color: var(--ink); letter-spacing: -0.02em;
  border-bottom: 0.5px solid var(--line);
}
.palette-input:focus, .palette-input:focus-visible { box-shadow: none; }
.palette-list { max-height: 380px; overflow: auto; padding: 8px; }
.palette-item {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 12px; border-radius: 12px; text-align: left;
  transition: background 0.2s var(--ease);
}
.palette-item small { display: block; color: var(--body); font-size: 12.5px; margin-top: 3px; font-weight: 400; }
.palette-item .host { font-family: var(--mono); font-size: 11px; color: var(--muted); align-self: center; }
.palette-item.is-active, .palette-item:hover { background: var(--wash); }
.palette-item:active { transform: scale(0.975); }
.palette-empty, .palette-msg { padding: 18px 12px; text-align: center; color: var(--body); font-size: 13px; line-height: 1.55; }
.palette-cmds { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; border-top: 0.5px solid var(--line); }
.chip {
  height: 24px; padding: 0 9px; border-radius: 999px;
  border: 0.5px solid var(--line); color: var(--body);
  font-family: var(--mono); font-size: 11px; background: transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.submit-body { padding: 8px 20px 20px; }
.submit-body p { font-size: 14px; color: var(--body); line-height: 1.65; margin-bottom: 10px; }
.submit-body p b { color: var(--ink); font-weight: 600; }
.submit-body ul { margin: 0 0 14px 18px; color: var(--body); font-size: 13.5px; line-height: 1.7; }
.submit-body .warn { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.submit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-lime {
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.015em;
  transition: transform 0.22s var(--ease);
}
.btn-lime:active { transform: scale(0.96); }
.submit-actions .btn-ghost { height: 40px; padding: 0 14px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--card); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px;
  box-shadow: var(--shadow), var(--inset);
  backdrop-filter: saturate(180%) blur(16px);
  opacity: 0; pointer-events: none; transition: all 0.32s var(--ease); z-index: 90;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.noscript { padding: 40px 20px; text-align: center; color: var(--body); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile:hover, .tile.is-hot, .scene:hover { transform: none; }
  .tile:active, .scene:active, .cta:active, .pill:active, .sec:active,
  .icon-btn:active, .ghost:active, .btn-lime:active, .hud-cta:active, .feat-go:active {
    transform: none;
  }
  .overlay, .modal { transition: none !important; }
}

@media (max-width: 1100px) {
  .wall { grid-template-columns: repeat(4, 1fr); }
  .map-canvas { inset: 0 0 0 0; height: 58%; }
  .hud { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 36%; }
  .map-dock { right: 12px; bottom: calc(36% + 16px); }
}
@media (max-width: 860px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .search-card { grid-column: 1 / -1; grid-row: auto; }
  .stats { grid-column: 1 / -1; grid-row: auto; }
  .feature { grid-column: 1 / -1; grid-row: auto; }
  .scene-1, .scene-2, .scene-3, .scene-4 { grid-column: auto; grid-row: auto; }
  .feat-rel { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .search kbd { display: none; }
  .feat-rel small { display: none; }
  .bento { margin-bottom: 28px; }
  .wall-h { margin-top: 4px; margin-bottom: 10px; }
  .cats { margin-top: 28px; margin-bottom: 12px; }
  .top { height: auto; flex-wrap: wrap; padding: 10px 12px 8px; gap: 8px; }
  .brand-zh { display: none; }
  .secs { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .top-actions { margin-left: auto; }
  .ghost kbd { display: none; }
  .shell, .foot { width: calc(100% - 24px); }
  .shell { padding-top: 12px; }
  .search-card, .stat { min-height: 0; }
  .search-card { padding: 14px; }
  .hello { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { min-height: 88px; padding: 12px; }
  .stat b { font-size: 22px; }
  .wall { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { min-height: 108px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .foot { flex-direction: column; gap: 4px; }
  .map-stage { min-height: 720px; }
  .map-canvas { position: relative; inset: auto; height: 420px; width: 100%; }
  .hud { position: relative; top: auto; right: auto; left: auto; bottom: auto; width: auto; margin: 0 12px 12px; max-height: none; }
  .map-dock { position: relative; left: 12px; right: 12px; bottom: auto; margin: 0 0 10px; }
}
