:root {
  --bg: #050B14;
  --panel-bg: rgba(7, 15, 28, 0.93);
  --panel-header-bg: rgba(11, 24, 44, 0.96);
  --panel-border: rgba(38, 198, 255, 0.36);
  --panel-border-strong: rgba(38, 198, 255, 0.82);
  --tile-bg: rgba(12, 26, 47, 0.88);
  --tile-hover: rgba(18, 42, 74, 0.97);
  --text: #EBF4FF;
  --text-muted: #84A6C9;
  --accent: #26C6FF;
  --accent-soft: rgba(38, 198, 255, 0.16);
  --amber: #FFB830;
  --amber-soft: rgba(255, 184, 48, 0.16);
  --warn: #FF5C5C;
  --ok: #38D996;
  --wiki: #B28DFF;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.68), 0 0 18px rgba(38, 198, 255, 0.10);
  --font: "Segoe UI", "Bahnschrift", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Consolas", "Cascadia Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 198, 255, 0.45) rgba(6, 13, 24, 0.85);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.42;
}

.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;
}

#map {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1;
}

.leaflet-container {
  background: var(--bg);
  font-family: var(--font);
}

.hidden {
  display: none !important;
}

.top-bar {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.icon-btn {
  background: var(--panel-bg);
  color: var(--accent);
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}

.icon-btn:hover {
  background: var(--tile-hover);
  border-color: var(--panel-border-strong);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(38, 198, 255, 0.35);
}

.icon-btn.small {
  width: 28px;
  height: 28px;
  font-size: 16px;
  border-top: 1px solid var(--panel-border);
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(13, 31, 56, 0.96) 0%, rgba(7, 16, 30, 0.95) 100%);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--amber);
  border-radius: 0;
  padding: 0 14px;
  height: 40px;
  cursor: pointer;
  box-shadow: var(--shadow);
  user-select: none;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.brand:hover {
  border-color: var(--amber);
  background: linear-gradient(135deg, rgba(20, 46, 82, 0.98) 0%, rgba(10, 23, 42, 0.96) 100%);
  box-shadow: 0 0 14px rgba(255, 184, 48, 0.25);
}

.brand-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(38, 198, 255, 0.50));
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 8px rgba(255, 184, 48, 0.65));
}

.brand-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #F4FAFF;
  white-space: nowrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 560px;
}

#search-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 13px;
  background: var(--panel-bg);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  font-family: var(--font);
  font-size: 13.5px;
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}

#search-input:focus {
  border-color: var(--accent);
  background: rgba(9, 20, 38, 0.98);
  box-shadow: 0 0 0 1px rgba(38, 198, 255, 0.45), 0 0 16px rgba(38, 198, 255, 0.22);
}

#search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
}

.search-clear:hover {
  color: var(--amber);
}

.search-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(6, 13, 25, 0.98);
  border: 1px solid var(--panel-border-strong);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  box-shadow: var(--shadow);
  z-index: 60;
  padding: 4px;
}

.search-group-title {
  padding: 7px 10px 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--amber);
  border-top: 1px solid rgba(38, 198, 255, 0.18);
  margin-top: 4px;
}

.search-group-title:first-child {
  border-top: none;
  margin-top: 0;
}

.search-item {
  padding: 8px 10px;
  margin-bottom: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--tile-bg);
  border: 1px solid rgba(38, 198, 255, 0.16);
  border-left: 3px solid var(--accent);
  transition: background 0.1s, border-color 0.1s;
}

.search-item:hover, .search-item.active {
  background: var(--tile-hover);
  border-color: var(--accent);
  border-left-color: var(--amber);
}

.search-item-main {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.search-item-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.search-empty {
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.breadcrumb-bar {
  position: fixed;
  top: 56px;
  left: 338px;
  z-index: 30;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--amber);
  border-radius: 0;
  padding: 4px 8px;
  font-size: 12px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 750px);
}

.breadcrumb-bar.nav-closed {
  left: 10px;
  max-width: calc(100vw - 420px);
}

.crumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tile-bg);
  border: 1px solid rgba(38, 198, 255, 0.22);
  color: var(--text);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 0;
  font-size: 11.5px;
  transition: background 0.1s, border-color 0.1s;
}

.crumb-btn:hover {
  background: var(--tile-hover);
  border-color: var(--accent);
  color: #FFFFFF;
}

.crumb-level {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(38, 198, 255, 0.14);
  border-radius: 0;
  padding: 1px 4px;
}

.crumb-sep {
  color: var(--amber);
  font-weight: 700;
}

.side-panel {
  position: fixed;
  top: 56px;
  bottom: 10px;
  z-index: 35;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(38, 198, 255, 0.025) 0px,
      rgba(38, 198, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(38, 198, 255, 0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.left-panel {
  left: 10px;
  width: 322px;
}

.right-panel {
  right: 10px;
  width: 400px;
  border-top-color: var(--amber);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(90deg, rgba(16, 36, 66, 0.96) 0%, rgba(8, 18, 34, 0.96) 100%);
}

.panel-header h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #EAF6FF;
}

.right-panel .panel-header h2 {
  color: var(--amber);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chip-btn {
  background: var(--tile-bg);
  color: var(--accent);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.chip-btn:hover {
  background: var(--tile-hover);
  border-color: var(--accent);
  color: #FFFFFF;
}

.coverage-note {
  padding: 7px 11px;
  font-size: 11.5px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(38, 198, 255, 0.18);
  background: rgba(5, 11, 21, 0.72);
}

.nav-tree {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.tree-node {
  margin-bottom: 3px;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  background: var(--tile-bg);
  border: 1px solid rgba(38, 198, 255, 0.18);
  border-left: 4px solid var(--row-color, var(--accent));
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s, border-color 0.1s, transform 0.08s;
}

.tree-row:hover {
  background: var(--tile-hover);
  border-color: var(--panel-border-strong);
}

.tree-row.active {
  background: rgba(38, 198, 255, 0.20);
  border-color: var(--accent);
  box-shadow: inset 0 0 10px rgba(38, 198, 255, 0.20);
}

.tree-chevron {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(38, 198, 255, 0.25);
  background: rgba(6, 14, 26, 0.7);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 0;
  flex-shrink: 0;
}

.tree-chevron:hover {
  background: var(--accent);
  color: #04101D;
}

.tree-chevron.empty {
  visibility: hidden;
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.tree-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}

.tree-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tree-children {
  margin-left: 12px;
  margin-top: 3px;
  border-left: 2px solid rgba(38, 198, 255, 0.25);
  padding-left: 5px;
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.detail-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.32;
  color: #F5FAFF;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 0;
  background: var(--tile-bg);
  border: 1px solid rgba(38, 198, 255, 0.30);
  color: var(--text);
}

.badge.warn {
  background: rgba(255, 92, 92, 0.16);
  border-color: var(--warn);
  color: #FFAEAE;
}

.badge.ok {
  background: rgba(56, 217, 150, 0.16);
  border-color: var(--ok);
  color: #93F5CB;
}

.badge.star-4 {
  background: rgba(255, 184, 48, 0.20);
  border-color: var(--amber);
  color: #FFE49E;
}

.badge.star-3 {
  background: rgba(38, 198, 255, 0.20);
  border-color: var(--accent);
  color: #B4EAFF;
}

.badge.wiki {
  background: rgba(178, 141, 255, 0.18);
  border-color: var(--wiki);
  color: #E3D4FF;
}

.tag-static {
  display: inline-flex;
  align-items: center;
  background: var(--tile-bg);
  color: var(--text);
  border: 1px solid rgba(38, 198, 255, 0.26);
  border-left: 3px solid var(--wiki);
  border-radius: 0;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.metric-card {
  background: linear-gradient(155deg, rgba(16, 36, 66, 0.94) 0%, rgba(8, 18, 35, 0.94) 100%);
  border: 1px solid rgba(38, 198, 255, 0.32);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  padding: 9px 10px;
  transition: border-color 0.12s, background 0.12s;
}

.metric-card:nth-child(even) {
  border-left-color: var(--amber);
}

.metric-card:hover {
  border-color: var(--panel-border-strong);
  background: linear-gradient(155deg, rgba(22, 48, 86, 0.96) 0%, rgba(10, 24, 46, 0.96) 100%);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  margin-top: 3px;
}

.metric-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.section-block {
  margin-top: 13px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--amber);
  padding-bottom: 4px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(38, 198, 255, 0.22);
}

.abstract-text {
  font-size: 12.5px;
  color: #D2E3F7;
  background: rgba(5, 11, 21, 0.78);
  border: 1px solid rgba(38, 198, 255, 0.20);
  border-left: 3px solid rgba(38, 198, 255, 0.55);
  border-radius: 0;
  padding: 9px 10px;
  max-height: 220px;
  overflow-y: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tile-bg);
  color: var(--text);
  border: 1px solid rgba(38, 198, 255, 0.28);
  border-radius: 0;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.tag-btn:hover {
  background: var(--tile-hover);
  border-color: var(--accent);
  color: #FFFFFF;
}

.tag-level {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(38, 198, 255, 0.16);
  border-radius: 0;
  padding: 1px 5px;
  flex-shrink: 0;
}

.tag-btn:hover .tag-level {
  color: #050E1B;
  background: var(--accent);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #EBF7FF;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 11px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(22, 66, 108, 0.92) 0%, rgba(12, 38, 66, 0.92) 100%);
  border: 1px solid var(--accent);
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}

.ext-link:hover {
  background: var(--accent);
  color: #04101D;
  box-shadow: 0 0 12px rgba(38, 198, 255, 0.45);
}

.tabs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.tab-btn {
  background: var(--tile-bg);
  color: var(--text-muted);
  border: 1px solid rgba(38, 198, 255, 0.24);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 6px 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.tab-btn:hover {
  background: var(--tile-hover);
  color: var(--text);
}

.tab-btn.active {
  background: rgba(38, 198, 255, 0.20);
  color: #FFFFFF;
  border-color: var(--accent);
  border-bottom-color: var(--amber);
}

.work-list-item {
  padding: 8px 10px;
  background: var(--tile-bg);
  border: 1px solid rgba(38, 198, 255, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.work-list-item:hover {
  border-color: var(--accent);
  border-left-color: var(--amber);
  background: var(--tile-hover);
}

.work-list-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.work-list-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-controls {
  position: fixed;
  left: 338px;
  bottom: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 4px;
  padding: 4px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  transition: left 0.15s;
}

.map-controls.nav-closed {
  left: 10px;
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  background: var(--tile-bg);
  color: var(--accent);
  border: 1px solid rgba(38, 198, 255, 0.30);
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.ctrl-btn:hover {
  background: var(--tile-hover);
  border-color: var(--amber);
  color: var(--amber);
}

.ctrl-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #FFFFFF;
}

.legend-box {
  position: fixed;
  left: 438px;
  bottom: 10px;
  z-index: 32;
  width: 274px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border-strong);
  border-top: 2px solid var(--amber);
  border-radius: 0;
  padding: 11px 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
}

.legend-box.nav-closed {
  left: 110px;
}

.legend-title {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--amber);
  margin-bottom: 8px;
  font-size: 11.5px;
}

.legend-domains {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #D2E3F7;
}

.legend-divider {
  height: 1px;
  background: rgba(38, 198, 255, 0.25);
  margin: 8px 0;
}

.legend-credit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.star-dot {
  display: inline-block;
  border-radius: 50%;
  background: #FFFFFF;
}

.star-dot.s-lg {
  width: 10px;
  height: 10px;
}

.star-dot.s-br {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px 3px rgba(38, 198, 255, 0.90);
}

.nebula-swatch {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 0;
  border: 1px solid rgba(38, 198, 255, 0.45);
  background: radial-gradient(circle, rgba(38, 198, 255, 0.85), rgba(56, 217, 150, 0.25));
}

.bottom-right-dock {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  transition: right 0.15s;
}

.bottom-right-dock.detail-open {
  right: 418px;
}

.minimap-wrap {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 0;
  overflow: hidden;
  border: 2px solid rgba(38, 198, 255, 0.65);
  background: var(--bg);
  box-shadow: var(--shadow), inset 0 0 12px rgba(38, 198, 255, 0.25);
  cursor: crosshair;
}

.minimap-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(38, 198, 255, 0.16) 49.5%, rgba(38, 198, 255, 0.16) 50.5%, transparent 50.5%),
    linear-gradient(180deg, transparent 49.5%, rgba(38, 198, 255, 0.16) 49.5%, rgba(38, 198, 255, 0.16) 50.5%, transparent 50.5%);
}

.minimap-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.minimap-viewport {
  position: absolute;
  border: 2px solid var(--amber);
  background: rgba(255, 184, 48, 0.16);
  pointer-events: none;
  z-index: 2;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.status-bar .sep {
  color: var(--amber);
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--amber);
  animation: pulse 0.9s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: rgba(7, 17, 34, 0.97);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--amber);
  color: #F4FAFF;
  padding: 9px 18px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .brand-title, .minimap-wrap, .breadcrumb-bar {
    display: none;
  }
  .left-panel {
    width: calc(100vw - 20px);
    max-width: 340px;
  }
  .right-panel {
    width: calc(100vw - 20px);
    max-width: 390px;
  }
  .map-controls, .map-controls.nav-closed {
    left: 10px;
  }
  .legend-box, .legend-box.nav-closed {
    left: 108px;
  }
  .bottom-right-dock.detail-open {
    right: 10px;
  }
}
