
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:       #07070e;
  --sur:      #0d0d18;
  --sur2:     #121220;
  --sur3:     #181828;
  --glass:    rgba(7,7,14,.96);
  --text:     #dddde8;
  --text2:    #7a7a96;
  --text3:    #3e3e58;
  --border:   #191928;
  --border2:  #222238;
  --accent:   #6366f1;
  --accent2:  #818cf8;
  --adim:     rgba(99,102,241,.1);
  --aborder:  rgba(99,102,241,.22);
  --red:      #f87171;
  --redim:    rgba(248,113,113,.1);
  --reborder: rgba(248,113,113,.22);
  --amber:    #fbbf24;
  --amdim:    rgba(251,191,36,.1);
  --amborder: rgba(251,191,36,.2);
  --green:    #34d399;
  --gredim:   rgba(52,211,153,.1);
  --greborder:rgba(52,211,153,.2);
  --cyan:     #22d3ee;
  --cyandim:  rgba(34,211,238,.1);
  --cyanborder:rgba(34,211,238,.2);
  --gold:     #f59e0b;
  --golddim:  rgba(245,158,11,.1);
  --goldborder:rgba(245,158,11,.2);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Fira Code', Consolas, monospace;
}

html, body { overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-rows: 48px 1fr;
  grid-template-columns: 220px 1fr;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ TOP BAR */
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  z-index: 100;
  padding: 0 16px 0 0;
}
.topbar-brand {
  width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  height: 100%;
  flex-shrink: 0;
}
.brand-mark {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: -.5px; flex-shrink: 0;
}
.brand-text { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: .04em; text-transform: uppercase; }
.brand-module { font-size: 10px; color: var(--text3); margin-top: 1px; letter-spacing: .02em; }
.hub-link { font-size: 10px; color: var(--text3); text-decoration: none; letter-spacing: .02em; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--border2); transition: all .15s; flex-shrink: 0; margin: 0 8px; }
.hub-link:hover { color: var(--text2); border-color: var(--border2); background: var(--bg3); }

.topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 8px 12px;
  background: var(--sur2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.topbar-search:focus-within { border-color: var(--aborder); box-shadow: 0 0 0 3px rgba(99,102,241,.06); }
.search-icon { padding: 0 12px; color: var(--text3); font-size: 14px; flex-shrink: 0; pointer-events: none; }
.topbar-input {
  flex: 1;
  background: none; border: none; outline: none;
  font-size: 13px; font-family: var(--font);
  color: var(--text); padding: 9px 0;
}
.topbar-input::placeholder { color: var(--text3); }
.topbar-run {
  padding: 0 16px; height: 100%;
  background: var(--accent); border: none;
  font-size: 12px; font-weight: 600; font-family: var(--font);
  color: #fff; cursor: pointer; letter-spacing: .03em;
  transition: background .15s; flex-shrink: 0;
}
.topbar-run:hover { background: var(--accent2); }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-btn {
  padding: 6px 12px;
  font-size: 11px; font-weight: 500;
  color: var(--text2); background: var(--sur2);
  border: 1px solid var(--border2); border-radius: 6px;
  cursor: pointer; font-family: var(--font);
  transition: all .15s; letter-spacing: .02em; position: relative;
}
.topbar-btn:hover { color: var(--text); background: var(--sur3); }
.topbar-btn.primary { color: var(--accent2); border-color: var(--aborder); background: var(--adim); }
.topbar-btn.primary:hover { background: rgba(99,102,241,.16); }
.badge-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 10px;
  min-width: 16px; text-align: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SIDEBAR */
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--sur);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-nav { padding: 12px 10px; border-bottom: 1px solid var(--border); }
.sidebar-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 8px; padding: 0 4px;
}
.nav-items { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 6px;
  font-size: 12px; color: var(--text2);
  cursor: pointer; transition: all .1s;
  user-select: none;
}
.nav-item:hover { background: var(--sur2); color: var(--text); }
.nav-item.active { background: var(--adim); color: var(--accent2); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); flex-shrink: 0; }
.nav-dot.green  { background: var(--green); }
.nav-dot.blue   { background: #60a5fa; }
.nav-dot.amber  { background: var(--amber); }
.nav-dot.purple { background: var(--accent2); }
.nav-dot.red    { background: var(--red); }

.sidebar-stats {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-stat-row { font-size: 10px; color: var(--text3); line-height: 1.8; font-family: var(--mono); }
.sidebar-stat-val { color: var(--text2); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ MAIN */
.main { overflow-y: auto; position: relative; background: var(--bg); }
.main::-webkit-scrollbar { width: 4px; }
.main::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.view { display: none; height: 100%; }
.view.active { display: flex; flex-direction: column; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FILTER BAR */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--sur);
  flex-shrink: 0; flex-wrap: wrap;
}
.filter-select, .filter-input {
  background: var(--sur2); border: 1px solid var(--border2);
  color: var(--text2); font-family: var(--font); font-size: 11px;
  padding: 5px 10px; border-radius: 6px; outline: none;
  transition: border-color .15s;
  cursor: pointer;
}
.filter-select:focus, .filter-input:focus { border-color: var(--aborder); color: var(--text); }
.filter-input { cursor: text; min-width: 160px; }
.filter-select option { background: var(--sur3); }
.filter-label { font-size: 10px; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; }
.filter-sep { width: 1px; height: 18px; background: var(--border2); flex-shrink: 0; }
.view-header {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.view-title { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.view-count { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.view-sub { font-size: 11px; color: var(--text3); margin-left: auto; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ TABLE */
.table-wrap { flex: 1; overflow-y: auto; }
.table-wrap::-webkit-scrollbar { width: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border2); }

table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 0; z-index: 10;
  text-align: left; padding: 8px 14px;
  font-size: 9px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text3); background: var(--sur);
  border-bottom: 1px solid var(--border2);
  white-space: nowrap; cursor: pointer;
  user-select: none;
}
thead th:hover { color: var(--text2); }
thead th.sorted { color: var(--accent2); }

tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .08s;
}
tbody tr:hover { background: rgba(99,102,241,.04); }
tbody tr.expanded { background: var(--sur); }
tbody td {
  padding: 9px 14px;
  font-size: 12px; color: var(--text2);
  vertical-align: middle;
  white-space: nowrap;
}
tbody td.addr { color: var(--text); font-weight: 500; font-size: 12px; }
tbody td.mono { font-family: var(--mono); font-size: 11px; }

/* Expand row */
.expand-row td {
  padding: 0;
  background: var(--sur2);
  border-bottom: 2px solid var(--border2);
  cursor: default;
}
.expand-row:hover { background: var(--sur2) !important; }
.expand-inner { padding: 16px 20px; }
.expand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.expand-field { }
.expand-field-label { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: 3px; }
.expand-field-val { font-size: 12px; color: var(--text2); line-height: 1.4; }
.expand-field-val.prominent { font-size: 13px; color: var(--text); font-weight: 600; }
.expand-narrative {
  font-size: 12px; color: var(--text2); line-height: 1.7;
  padding: 10px 14px; background: var(--sur3); border-radius: 6px;
  border-left: 3px solid var(--accent); margin-top: 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ CHIPS / BADGES */
.chip {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--mono); white-space: nowrap;
}
.chip.green  { color: var(--green);  background: var(--gredim); border: 1px solid var(--greborder); }
.chip.amber  { color: var(--amber);  background: var(--amdim);  border: 1px solid var(--amborder); }
.chip.red    { color: var(--red);    background: var(--redim);  border: 1px solid var(--reborder); }
.chip.blue   { color: #60a5fa;       background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.2); }
.chip.cyan   { color: var(--cyan);   background: var(--cyandim); border: 1px solid var(--cyanborder); }
.chip.indigo { color: var(--accent2); background: var(--adim);  border: 1px solid var(--aborder); }
.chip.gold   { color: var(--gold);   background: var(--golddim); border: 1px solid var(--goldborder); }
.chip.gray   { color: var(--text3);  background: var(--sur3);   border: 1px solid var(--border2); }
.chip.stale  { color: var(--red); background: var(--redim); border: 1px solid var(--reborder); font-size: 9px; }

/* Signal strength bar */
.sig-bar-wrap { display: flex; align-items: center; gap: 6px; }
.sig-bar { display: flex; gap: 1px; }
.sig-seg {
  width: 5px; height: 10px; border-radius: 1px;
  background: var(--border2);
}
.sig-seg.on { background: var(--accent); }
.sig-num { font-family: var(--mono); font-size: 11px; color: var(--text2); }

/* Score ring */
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-ring {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.score-ring-num { font-size: 14px; font-weight: 700; font-family: var(--mono); }
.score-ring-label { font-size: 9px; color: var(--text3); letter-spacing: .05em; text-transform: uppercase; text-align: center; }

/* Price / scope tier */
.tier-badge {
  display: inline-block; padding: 2px 6px; border-radius: 3px;
  font-size: 9px; font-weight: 700; font-family: var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
}
.tier-luxury  { color: var(--gold);  background: var(--golddim); }
.tier-mid     { color: #60a5fa;      background: rgba(96,165,250,.1); }
.tier-basic   { color: var(--text3); background: var(--sur3); }

/* Performance tier */
.perf-a { color: var(--green); font-weight: 700; font-family: var(--mono); font-size: 11px; }
.perf-b { color: #60a5fa;     font-weight: 700; font-family: var(--mono); font-size: 11px; }
.perf-c { color: var(--amber); font-weight: 700; font-family: var(--mono); font-size: 11px; }
.perf-d { color: var(--red);   font-weight: 700; font-family: var(--mono); font-size: 11px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SKELETON */
@keyframes shimmer { 0%,100%{opacity:.35} 50%{opacity:.65} }
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }
.skel {
  background: var(--sur2); border-radius: 3px;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skel-row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ EMPTY / ERROR */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; padding: 40px; text-align: center;
}
.empty-icon {
  width: 44px; height: 44px;
  background: var(--adim); border: 1px solid var(--aborder);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.empty-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-sub { font-size: 12px; color: var(--text2); line-height: 1.6; max-width: 320px; }
.error-msg {
  margin: 16px 20px; padding: 10px 14px;
  background: var(--redim); border: 1px solid var(--reborder);
  border-radius: 6px; font-size: 12px; color: var(--red);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ VIEW 2: BUILDING */
.building-layout {
  display: flex; flex: 1; overflow: hidden;
}
.building-left {
  width: 300px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--sur);
  overflow-y: auto; padding: 16px;
}
.building-left::-webkit-scrollbar { width: 3px; }
.building-left::-webkit-scrollbar-thumb { background: var(--border2); }
.building-right { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

.bldg-card { margin-bottom: 16px; }
.bldg-addr { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 10px; letter-spacing: -.02em; }
.bldg-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bldg-meta-item { font-size: 10px; color: var(--text3); font-family: var(--mono); }
.bldg-meta-item span { color: var(--text2); }

.rings-row { display: flex; gap: 16px; justify-content: center; margin: 16px 0; }

.bldg-sep { height: 1px; background: var(--border); margin: 12px 0; }

/* Tabs */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab-btn {
  padding: 9px 16px;
  font-size: 11px; font-weight: 500;
  color: var(--text3); background: none;
  border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: var(--font);
  transition: all .1s; letter-spacing: .02em;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text2); }
.tab-btn.active { color: var(--accent2); border-bottom-color: var(--accent2); }
.tab-panel { display: none; flex: 1; overflow-y: auto; }
.tab-panel.active { display: block; }
.tab-panel::-webkit-scrollbar { width: 4px; }
.tab-panel::-webkit-scrollbar-thumb { background: var(--border2); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ VIEW 3: FLIPS */
.stats-banner {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--sur); flex-shrink: 0;
}
.stat-block {
  flex: 1; padding: 10px 16px;
  border-right: 1px solid var(--border);
}
.stat-block:last-child { border-right: none; }
.stat-block-label { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: 3px; }
.stat-block-val { font-size: 18px; font-weight: 700; color: var(--text); font-family: var(--mono); letter-spacing: -.03em; }
.stat-block-sub { font-size: 10px; color: var(--text3); margin-top: 1px; }

/* Timeline */
.flip-timeline {
  display: flex; align-items: center; gap: 0;
  margin: 12px 0; padding: 10px 14px;
  background: var(--sur3); border-radius: 6px;
}
.tl-node {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--accent2);
}
.tl-label { font-size: 9px; font-weight: 700; color: var(--text3); letter-spacing: .05em; margin-top: 4px; text-transform: uppercase; }
.tl-date  { font-size: 9px; color: var(--text2); font-family: var(--mono); margin-top: 2px; }
.tl-line {
  flex: 1; height: 1px; background: var(--border2);
  min-width: 20px;
  position: relative; top: -8px;
}
.tl-line.done { background: var(--accent); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ VIEW 4: ENTITIES */
.entities-layout { display: flex; flex: 1; overflow: hidden; }
.entities-list { flex: 1; overflow-y: auto; padding: 16px; }
.entities-list::-webkit-scrollbar { width: 4px; }
.entities-list::-webkit-scrollbar-thumb { background: var(--border2); }
.entity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.entity-card {
  background: var(--sur); border: 1px solid var(--border2);
  border-radius: 8px; padding: 14px;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.entity-card:hover { border-color: var(--aborder); background: var(--sur2); }
.entity-card.selected { border-color: var(--accent); background: var(--adim); }
.entity-card-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.entity-card-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.entity-card-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.entity-stat { font-size: 10px; color: var(--text3); font-family: var(--mono); }
.entity-stat span { color: var(--text2); }
.entity-brands { margin-top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.brand-tag {
  font-size: 9px; padding: 2px 5px;
  background: var(--sur3); border: 1px solid var(--border2);
  border-radius: 3px; color: var(--text3); font-family: var(--mono);
}

.entity-profile {
  width: 380px; flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--sur); overflow-y: auto;
  padding: 0;
}
.entity-profile::-webkit-scrollbar { width: 3px; }
.entity-profile::-webkit-scrollbar-thumb { background: var(--border2); }
.profile-header {
  padding: 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--sur); z-index: 5;
}
.profile-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 6px; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-body { padding: 16px; }
.profile-section { margin-bottom: 18px; }
.profile-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 8px; padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.profile-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-stat { background: var(--sur2); border-radius: 6px; padding: 8px 10px; }
.profile-stat-label { font-size: 9px; color: var(--text3); margin-bottom: 3px; letter-spacing: .04em; }
.profile-stat-val { font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--mono); }
.profile-list { display: flex; flex-direction: column; gap: 4px; }
.profile-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px; background: var(--sur2); border-radius: 5px;
  font-size: 11px; color: var(--text2);
}
.profile-list-item span { color: var(--text3); font-family: var(--mono); font-size: 10px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ VIEW 5: PERMITS */
.permit-card {
  margin: 12px 20px;
  background: var(--sur); border: 1px solid var(--border2);
  border-radius: 8px; overflow: hidden;
}
.permit-card.stale-card { border-color: var(--reborder); }
.permit-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.permit-job { font-size: 12px; font-weight: 600; color: var(--text); font-family: var(--mono); }
.permit-scope { font-size: 11px; color: var(--text2); flex: 1; }
.permit-age { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.permit-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0; }
.permit-field {
  padding: 8px 14px; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.permit-field:last-child { border-right: none; }
.permit-field-label { font-size: 9px; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.permit-field-val { font-size: 11px; color: var(--text2); font-family: var(--mono); }
.superseder-btn {
  margin: 10px 14px; padding: 7px 14px;
  background: var(--redim); border: 1px solid var(--reborder);
  border-radius: 6px; font-size: 11px; font-weight: 600;
  color: var(--red); cursor: pointer; font-family: var(--font);
  transition: all .15s; display: inline-block;
}
.superseder-btn:hover { background: rgba(248,113,113,.18); }
.superseder-list { padding: 0 14px 12px; }
.superseder-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--sur2);
  border-radius: 6px; margin-top: 6px;
}
.superseder-name { font-size: 12px; font-weight: 500; color: var(--text); flex: 1; }
.superseder-days { font-size: 11px; color: var(--amber); font-family: var(--mono); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ENTITY SEARCH BAR */
.entity-search-bar {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--sur); flex-shrink: 0;
}
.entity-search-input {
  width: 100%; background: var(--sur2);
  border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text); font-family: var(--font); font-size: 13px;
  padding: 8px 14px; outline: none;
  transition: border-color .15s;
}
.entity-search-input:focus { border-color: var(--aborder); }
.entity-search-input::placeholder { color: var(--text3); }

/* ROI colors */
.roi-pos { color: var(--green); font-weight: 600; }
.roi-neg { color: var(--red); font-weight: 600; }

/* Donut placeholder via conic-gradient */
.donut {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.donut-inner {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sur); display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-family: var(--mono);
  color: var(--text2);
}

/* Building placeholder (empty left panel) */
.bldg-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; padding: 24px; text-align: center; color: var(--text3);
  font-size: 12px; line-height: 1.6;
}
@media (max-width: 768px) {
  #mobile-banner { display: flex !important; }
}
#mobile-banner {
  display: none;
  align-items: center; gap: 10px;
  padding: 10px 16px;
  background: #0c1225;
  border-bottom: 1px solid #1a2840;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7d90b0;
  position: sticky; top: 0; z-index: 9999; flex-shrink: 0;
}
#mobile-banner strong { color: #eef1f8; }
#mobile-banner a { color: #4080e0; text-decoration: none; }
#mobile-banner-close {
  margin-left: auto; background: none; border: none;
  color: #3d5070; font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1;
}


