/* SIGNASTRAT / NEXUS. Code-native interface; no remote fonts or ornamental assets. */
:root {
  color-scheme: dark;
  --bg: #070d14;
  --surface: #0b1520;
  --surface-raised: #101e2b;
  --surface-hover: #142737;
  --line: #213343;
  --line-soft: #172735;
  --text: #eaf3f8;
  --muted: #9bafbd;
  --dim: #758d9e;
  --accent: #67e7ec;
  --accent-ink: #05262d;
  --accent-soft: #102f3a;
  --green: #a0e5b3;
  --red: #ff9f9f;
  --yellow: #f1d193;
  --shadow: 0 18px 55px #00000025;
  --mono: 'Cascadia Code', 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #eaf0f3;
  --surface: #f9fcfd;
  --surface-raised: #eaf2f5;
  --surface-hover: #deecf1;
  --line: #c4d5de;
  --line-soft: #d9e5eb;
  --text: #102d3c;
  --muted: #496573;
  --dim: #5e7784;
  --accent: #006e7c;
  --accent-ink: #ffffff;
  --accent-soft: #deeff2;
  --green: #206b40;
  --red: #b1343c;
  --yellow: #7e5817;
  --shadow: 0 14px 40px #20405a0a;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scrollbar-color: var(--line) var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
body::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 75% 0, #12374338, transparent 65%);
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
button:hover, .button:hover { border-color: var(--accent); background: var(--surface-hover); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .58; transform: none; }
input, select, textarea {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--dim); opacity: 1; }
select { cursor: pointer; padding-right: 27px; }
textarea { width: 100%; resize: vertical; line-height: 1.7; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.cyan { color: var(--accent); }
.green { color: var(--green); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }
code, kbd { font-family: var(--mono); }
kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: .85em; }

/* Instrument header */
.top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
  padding: 16px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.top::after { content: ''; position: absolute; bottom: -1px; left: clamp(18px, 3vw, 48px); width: 88px; height: 2px; background: var(--accent); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 42px;
  border: 1px solid var(--accent);
  border-radius: 2px 10px 2px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 25px/1 var(--mono);
  box-shadow: inset 0 0 16px #61dbe511;
}
.brand-name { display: block; font: 650 18px/1.1 var(--mono); letter-spacing: 3.5px; }
.brand-sub { display: block; margin-top: 8px; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: 2.7px; text-transform: uppercase; }
.clock { margin-left: auto; color: var(--muted); font: 11px/1.65 var(--mono); letter-spacing: .5px; text-align: right; white-space: nowrap; }
.clock strong { color: var(--text); font-weight: 500; }
.themes { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.themes button { min-height: 30px; padding: 5px 10px; border-color: transparent; background: transparent; color: var(--muted); font: 11px/1.3 var(--mono); }
.themes button[aria-pressed='true'] { border-color: var(--line); background: var(--surface-raised); color: var(--accent); box-shadow: 0 1px 4px #0000001a; }
.themes button:hover { color: var(--text); }
.tabs { display: flex; gap: 27px; padding: 0 clamp(18px, 3vw, 48px); overflow: auto; border-bottom: 1px solid var(--line); background: var(--bg); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: 0 0 auto; min-height: 53px; padding: 13px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.tabs button:hover, .tabs button.active { color: var(--text); background: transparent; }
.tabs button.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); }
.tabs button.active::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 1px; background: var(--accent); box-shadow: 0 0 10px #67e7ec50; }

/* Search behaves as a single operation, with the type visibly part of it. */
.search-shell { padding: 18px clamp(18px, 3vw, 48px) 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
#search-form { display: flex; width: 100%; gap: 8px; }
#search-type { flex: 0 0 186px; min-height: 46px; border-color: var(--line); background: var(--bg); font: 12px var(--mono); }
#query { flex: 1 1 auto; width: 100%; min-height: 46px; padding-left: 17px; background: var(--bg); font-size: 15px; }
.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.primary:hover, .primary:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
#search-form .primary { flex: 0 0 126px; min-height: 46px; font: 700 12px var(--mono); letter-spacing: .4px; }
.search-hint { min-height: 16px; margin: 8px 0 0; color: var(--muted); font: 11px/1.6 var(--mono); }
.search-hint:empty { display: none; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 14px clamp(18px, 3vw, 48px); border-bottom: 1px solid var(--line); background: var(--bg); }
.country-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.country-chips button { min-height: 33px; padding: 6px 11px; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; }
.country-chips button.active { border-color: var(--line); background: var(--accent-soft); color: var(--accent); }
.country-chips button:hover { border-color: var(--line); color: var(--text); }
.controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px var(--mono); }
.controls select { min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
.language-select { margin-left: auto; }
.controls label:has(.language-select) { margin-left: auto; }
.controls label .language-select { margin-left: 0; }
.region-select { max-width: 230px; }

.workspace, main { width: 100%; max-width: 1840px; margin: 0 auto; padding: 25px clamp(18px, 3vw, 48px) 48px; }
.workspace main { padding: 0; }
.workspace > .view, main > .view { min-width: 0; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font: 10px/1.4 var(--mono); letter-spacing: 2px; text-transform: uppercase; }
h1 { margin: 0; color: var(--text); font-size: clamp(25px, 2.65vw, 40px); line-height: 1.15; font-weight: 580; letter-spacing: -1.2px; }
.hero p:not(.eyebrow) { max-width: 780px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.live-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--green); font: 10px/1.3 var(--mono); letter-spacing: .5px; white-space: nowrap; }
.live-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #a0e5b30b; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); box-shadow: var(--shadow); }
.stat { position: relative; min-width: 0; padding: 17px 20px; background: var(--surface); }
.stat::after { content: ''; position: absolute; right: 19px; top: 20px; width: 20px; height: 13px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.stat strong { display: block; color: var(--text); font: 450 clamp(22px, 2.1vw, 31px)/1.2 var(--mono); letter-spacing: -1px; }
.stat span { display: block; margin-top: 7px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: .7px; text-transform: uppercase; }
.stat:first-child strong { color: var(--accent); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); align-items: stretch; gap: 18px; margin-bottom: 25px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; color: var(--text); font: 600 12px/1.5 var(--mono); letter-spacing: .6px; }
.panel > header > span { color: var(--muted); font: 10px/1.5 var(--mono); text-align: right; }
.panel > header button, .panel > header select { min-height: 28px; padding: 4px 8px; font-size: 10px; }

/* The geographic instrument is always dark, independently of the UI theme. */
#map { position: relative; z-index: 1; height: 400px; min-height: 260px; background: #080f18; color: #eaf3f8; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; border-top: 1px solid #203142; background: #0b1520; color: #a7bdcc; font: 10px/1.6 var(--mono); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i, .map-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #67e7ec; }
.map-legend label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.map-legend input { width: 13px; min-height: 13px; margin: 0 3px 0 0; accent-color: #67e7ec; }
.map-caption { margin: 0; padding: 10px 16px; background: #0b1520; color: #9bafbd; font-size: 11px; line-height: 1.65; }
.map-caption:empty { display: none; }
.leaflet-container { font-family: var(--sans); }
.leaflet-container .leaflet-control-zoom { overflow: hidden; border: 1px solid #354d61; border-radius: 4px; box-shadow: 0 3px 14px #0005; }
.leaflet-container .leaflet-control-zoom a { border-color: #354d61; background: #101e2b; color: #eaf3f8; }
.leaflet-container .leaflet-control-zoom a:hover { background: #203949; color: #67e7ec; }
.leaflet-container .leaflet-control-zoom a.leaflet-disabled { color: #7d94a6; background: #101e2b; }
.leaflet-container .leaflet-control-attribution { padding: 2px 6px; background: #080f18e8; color: #9bafbd; font: 9px/1.5 var(--sans); }
.leaflet-container .leaflet-control-attribution a { color: #b4cbdc; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border: 1px solid #31495c; border-radius: 5px; background: #101e2b; color: #eaf3f8; box-shadow: 0 8px 26px #0005; }
.leaflet-popup-content { margin: 14px 17px; font-size: 12px; line-height: 1.65; }
.leaflet-popup-content a, .leaflet-popup-content button { color: #67e7ec; }
.leaflet-popup-content button { border-color: #31495c; background: #142737; font-size: 12px; }
.leaflet-popup-content p { margin: 7px 0; }
.leaflet-tooltip { border: 1px solid #31495c; border-radius: 3px; background: #101e2b; color: #eaf3f8; box-shadow: 0 3px 14px #0003; font: 11px/1.5 var(--mono); }
.leaflet-tooltip-top::before { border-top-color: #31495c; }
.leaflet-tooltip-bottom::before { border-bottom-color: #31495c; }
.leaflet-tooltip-left::before { border-left-color: #31495c; }
.leaflet-tooltip-right::before { border-right-color: #31495c; }
.leaflet-container a.leaflet-popup-close-button { top: 3px; right: 4px; color: #b4cbdc; }
.leaflet-interactive:focus-visible { outline: 2px solid #67e7ec; }
.map-marker, .news-marker { display: grid; place-items: center; border: 1px solid #86f3f3; border-radius: 50%; background: #102d39e8; color: #b0ffff; box-shadow: 0 0 0 4px #67e7ec15, 0 2px 12px #0008; font: 600 10px/1 var(--mono); }
.brief-content { padding: 7px 18px 18px; }
.brief-content > p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.brief-point { position: relative; padding: 17px 0 17px 17px; border-bottom: 1px solid var(--line-soft); }
.brief-point:last-child { border-bottom: 0; }
.brief-point::before { content: ''; position: absolute; top: 22px; left: 0; width: 5px; height: 5px; background: var(--accent); }
.brief-point h3, .brief-point strong { display: block; margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 600; }
.brief-point p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.brief-point small { display: block; margin-top: 8px; color: var(--dim); font: 10px/1.7 var(--mono); }
.brief-content .notice { margin: 12px 0 0; }

/* Chronological row-major waterfall. Never masonry: reading order remains clear. */
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.feed-toolbar h2 { font-size: 13px; }
.feed-toolbar p, .feed-toolbar > span { margin: 4px 0 0; color: var(--muted); font: 10px/1.7 var(--mono); }
.feed-toolbar > div { min-width: 0; }
.feed-toolbar button, .feed-toolbar select { min-height: 34px; font-size: 11px; }
.feed-toolbar label { color: var(--muted); font-size: 12px; }
.news-waterfall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.news-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 19px 20px 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: border-color 160ms ease, background 160ms ease; }
.news-card::before { content: ''; position: absolute; top: 0; left: 20px; width: 28px; height: 2px; background: var(--accent); opacity: .65; }
.news-card:hover { border-color: var(--dim); background: var(--surface-raised); }
.news-card:focus-within { border-color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 13px; color: var(--muted); font: 10px/1.6 var(--mono); }
.category { display: inline-flex; max-width: 100%; padding: 2px 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--accent-soft); color: var(--accent); font: 9px/1.5 var(--mono); letter-spacing: .45px; text-transform: uppercase; text-overflow: ellipsis; }
.time, .card-meta time { margin-left: auto; color: var(--muted); font: 10px/1.5 var(--mono); white-space: nowrap; }
.news-card h3 { margin: 0 0 11px; font-size: 16px; font-weight: 570; line-height: 1.5; letter-spacing: -.15px; overflow-wrap: anywhere; }
.card-title { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 1px; background: transparent; color: var(--text); font: inherit; line-height: inherit; text-align: left; }
.card-title:hover { border: 0; background: transparent; color: var(--accent); }
.card-title:active { transform: none; }
.card-summary { display: -webkit-box; margin: 0 0 16px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.card-actions button { flex-shrink: 0; min-height: 29px; padding: 4px 8px; border-color: var(--line); background: transparent; color: var(--accent); font: 10px var(--mono); }
.card-actions button:hover { border-color: var(--accent); background: var(--accent-soft); }
.origin { min-width: 0; overflow: hidden; color: var(--muted); font: 10px/1.6 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.card-actions .origin { margin-left: auto; text-align: right; }
.news-card > .origin { margin-top: 10px; }
.load-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 25px 0 7px; }
.load-row button { min-width: 180px; font: 11px var(--mono); }
.load-row span, .load-row p { color: var(--muted); font: 11px/1.6 var(--mono); }
.empty, .error, .notice { padding: 17px 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.empty { grid-column: 1 / -1; padding: 30px 24px; text-align: center; }
.empty strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 15px; }
.error { border-left: 3px solid var(--red); color: var(--red); }
.notice { border-left: 2px solid var(--accent); }
.notice:empty { display: none; }
#notice { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px clamp(18px, 3vw, 48px); background: var(--accent-soft); }
.skeleton { min-height: 210px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(100deg, var(--surface) 20%, var(--surface-raised) 40%, var(--surface) 60%); background-size: 220% 100%; animation: loading-sweep 1.9s ease-in-out infinite; }
@keyframes loading-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Research is an in-product dossier, not an outbound-link directory. */
.research-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.8fr); align-items: start; gap: 20px; }
.entity-list { display: grid; gap: 12px; min-width: 0; }
.entity-card { position: relative; min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.entity-card.selected, .entity-card.active { border-color: var(--accent); background: var(--accent-soft); }
.entity-card h2, .entity-card h3 { margin: 0 0 10px; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.entity-card p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.entity-card small { display: block; margin: 9px 0; color: var(--dim); font: 10px/1.7 var(--mono); overflow-wrap: anywhere; }
.entity-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 13px; margin: 17px 0; font-size: 12px; }
.entity-card dt { color: var(--muted); }
.entity-card dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.entity-card button { margin: 8px 5px 0 0; font-size: 11px; }
.entity-card img { float: right; width: 66px; height: 66px; margin: 0 0 12px 14px; border: 1px solid var(--line); border-radius: 5px; object-fit: cover; }
.related-news { min-width: 0; }
.related-news > h2 { margin: 0 0 15px; }
.related-news .news-waterfall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-news .news-card { padding: 17px; }
.related-news .news-card h3 { font-size: 15px; }
.related-news .notice { margin: 0 0 15px; }

/* Local context: measured data, available integrations and unknowns remain distinct. */
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.metric-card, .capability { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.metric-card h3, .capability h3 { margin: 0 0 12px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.metric-card > strong { display: block; margin: 12px 0; color: var(--accent); font: 400 29px/1.3 var(--mono); letter-spacing: -1px; }
.metric-card p, .capability p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.metric-card small, .capability small { color: var(--dim); font: 10px/1.7 var(--mono); }
.capability { border-top: 2px solid var(--line); }
.capability.available { border-top-color: var(--green); }
.capability.unavailable { border-top-color: var(--yellow); }
.local-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.local-form label { display: grid; flex: 1 1 180px; gap: 7px; color: var(--muted); font: 11px/1.5 var(--mono); }
.local-form input { width: 100%; font: 14px var(--sans); }
.local-form button { min-height: 42px; font-size: 12px; }
.local-form p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.source-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.source-card h3 { margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.source-card p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.source-card small { display: block; margin-top: 9px; color: var(--dim); font: 10px/1.7 var(--mono); overflow-wrap: anywhere; }
.source-card .status { color: var(--green); font: 10px/1.5 var(--mono); }
.source-card.error .status { color: var(--red); }
.source-card button { margin-top: 9px; font-size: 11px; }

/* In-place reading and processing. */
dialog { color: var(--text); }
#article-dialog { width: min(880px, calc(100vw - 40px)); max-width: 880px; max-height: calc(100dvh - 56px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 30px 100px #0009; }
#article-dialog::backdrop { background: #020811bf; backdrop-filter: blur(6px); }
.dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 58px); min-height: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 15px; padding: 15px 22px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.dialog-head h2 { color: var(--accent); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.dialog-head span { color: var(--muted); font: 10px var(--mono); }
.dialog-head button { min-width: 34px; min-height: 34px; padding: 5px; background: transparent; font-size: 18px; }
.dialog-body { min-height: 0; padding: 26px 28px 30px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-body > h2, .dialog-body > h3 { margin: 0 0 15px; font: 580 25px/1.4 var(--sans); letter-spacing: -.65px; }
.dialog-body > p { margin: 13px 0; color: var(--muted); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.dialog-body .card-meta { margin-bottom: 18px; }
.analysis-block { margin: 19px 0; padding: 20px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 5px; background: var(--bg); }
.analysis-block h3 { margin: 0 0 12px; color: var(--accent); font: 600 11px/1.5 var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.analysis-block p, .analysis-block li { color: var(--muted); font-size: 13px; line-height: 1.85; }
.analysis-block strong { color: var(--text); font-weight: 600; }
.analysis-block p:last-child { margin-bottom: 0; }
.analysis-block ul, .analysis-block ol { padding-left: 20px; }
.evidence-list { margin: 20px 0 0; padding: 0; list-style: none; }
.evidence-list li { margin: 0; padding: 11px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.evidence-list a { font-size: 12px; }
.evidence-list small { display: block; color: var(--dim); }
.dialog-body details { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; }
.dialog-body summary { color: var(--muted); font: 11px/1.5 var(--mono); cursor: pointer; }

/* Windows CMD mode: keyboard-first, real overflow, intentionally no decorative scanlines. */
html[data-theme='cmd'] { color-scheme: dark; --bg: #000; --text: #c9c9c9; --accent: #87d5ff; --mono: Consolas, 'Cascadia Mono', 'Courier New', monospace; }
html[data-theme='cmd'] body { height: 100dvh; overflow: hidden; background: #000; }
html[data-theme='cmd'] body::before { display: none; }
html[data-theme='cmd'] .top { height: 46px; min-height: 46px; padding: 5px 12px; border-bottom: 1px solid #383838; background: #161616; }
html[data-theme='cmd'] .top::after { display: none; }
html[data-theme='cmd'] .brand { gap: 9px; }
html[data-theme='cmd'] .brand-mark { width: 24px; height: 25px; border: 1px solid #777; border-radius: 0; background: #000; color: #ddd; box-shadow: none; font-size: 17px; }
html[data-theme='cmd'] .brand-name { color: #ddd; font: 12px/1 var(--mono); letter-spacing: 1px; }
html[data-theme='cmd'] .brand-sub { display: none; }
html[data-theme='cmd'] .clock { color: #a3a3a3; font: 10px/1.3 var(--mono); }
html[data-theme='cmd'] .themes { padding: 0; border: 0; border-radius: 0; background: transparent; }
html[data-theme='cmd'] .themes button { min-height: 28px; padding: 4px 9px; border: 1px solid #424242; border-radius: 0; background: #202020; color: #bfbfbf; font: 11px var(--mono); }
html[data-theme='cmd'] .themes button[aria-pressed='true'] { border-color: #919191; background: #303030; color: #fff; }
html[data-theme='cmd'] .tabs, html[data-theme='cmd'] .search-shell, html[data-theme='cmd'] .controls, html[data-theme='cmd'] .workspace, html[data-theme='cmd'] main, html[data-theme='cmd'] #notice, html[data-theme='cmd'] .statusbar { display: none; }
#terminal { display: flex; flex-direction: column; width: 100%; height: calc(100dvh - 46px); min-height: 0; background: #000; color: #c9c9c9; font: 14px/1.55 Consolas, 'Cascadia Mono', 'Courier New', monospace; }
.cmd-title { display: flex; align-items: center; justify-content: space-between; flex: 0 0 34px; gap: 12px; min-height: 34px; padding: 0 0 0 13px; border-bottom: 1px solid #363636; background: #232323; color: #dedede; font: 11px/1.2 var(--mono); }
.cmd-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-title button { flex-shrink: 0; min-width: 45px; min-height: 34px; padding: 4px 14px; border: 0; border-radius: 0; background: transparent; color: #ddd; font: 15px var(--mono); }
.cmd-title button:hover { background: #c42b1c; color: #fff; }
#cmd-output { flex: 1 1 auto; min-height: 0; padding: 16px 17px 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #515151 #0a0a0a; }
.cmd-line, #cmd-output p { margin: 0 0 5px; }
.cmd-line:empty { min-height: 1em; }
.cmd-article { padding:10px 0 14px; border-bottom:1px solid #26302d; margin-bottom:10px; white-space:normal; }
#cmd-output .cmd-index { color:#8dea97; font-weight:bold; }
#cmd-output .cmd-date { color:#e6be6a; }
#cmd-output .cmd-source { color:#c9a0ff; font-weight:bold; }
#cmd-output .cmd-headline { color:#f0f2f5; margin:7px 0 5px; line-height:1.55; }
#cmd-output .cmd-topic { color:#73d5ec; font-size:12px; text-transform:uppercase; }
#cmd-live-status { color:#8dea97; }
#cmd-output .cyan { color: #80d9fa; }
#cmd-output .green { color: #97df9b; }
#cmd-output .yellow { color: #e8d990; }
#cmd-output .red { color: #f59c9c; }
#cmd-output a, #cmd-output button { color: #87d5ff; }
#cmd-output button { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font: inherit; text-align: left; }
#cmd-output button:hover { text-decoration: underline; }
#cmd-output code { color: inherit; }
#cmd-form { display: flex; align-items: flex-start; flex: 0 0 auto; gap: 7px; margin: 0; padding: 10px 17px 18px; border: 0; background: #000; color: #c9c9c9; font: inherit; }
#cmd-form label, #cmd-form > span { flex: 0 0 auto; padding: 0; color: #c9c9c9; line-height: 1.55; white-space: nowrap; }
#cmd-input { flex: 1 1 auto; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: #000; color: #e5e5e5; font: inherit; line-height: 1.55; caret-color: #fff; outline: none; box-shadow: none; }
#cmd-input::placeholder { color: #696969; }
#cmd-form button { min-height: 24px; padding: 1px 8px; border: 1px solid #555; border-radius: 0; background: #151515; color: #ccc; font: 11px var(--mono); }
.cmd-footer { display: flex; justify-content: space-between; flex: 0 0 auto; gap: 15px; padding: 5px 14px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #363636; background: #1b1b1b; color: #aeaeae; font: 10px/1.5 var(--mono); }
.cmd-footer button { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #c9c9c9; font: inherit; }
.cmd-footer button:hover { color: #fff; text-decoration: underline; }

/* Responsive density, touch targets, and motion accessibility. */
@media (min-width: 1700px) {
  .news-waterfall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .related-news .news-waterfall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #map { height: 440px; }
}
@media (max-width: 1100px) {
  .top { gap: 18px; }
  .brand-name { font-size: 16px; letter-spacing: 2.5px; }
  .brand-sub { letter-spacing: 1.8px; }
  .overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(275px, 1fr); gap: 14px; }
  .news-waterfall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { gap: 10px; }
  .country-chips button { padding: 6px 9px; }
  .language-select { margin-left: 0; }
  .stat { padding: 15px; }
}
@media (max-width: 860px) {
  .clock { display: none; }
  .top { min-height: 74px; padding-top: 14px; padding-bottom: 14px; }
  .overview-grid { grid-template-columns: 1fr; }
  .brief-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .brief-content > p, .brief-content > .notice, .brief-content > .empty { grid-column: 1 / -1; }
  .brief-point { border-bottom: 0; }
  .research-layout { grid-template-columns: 1fr; }
  .entity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neighborhood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { gap: 24px; }
  .hero { align-items: flex-start; }
  .hero .live-badge { margin-top: 3px; }
}
@media (max-width: 600px) {
  body { background-size: 60px 60px; font-size: 13px; }
  .top { gap: 10px; min-height: 71px; padding: 13px 14px; }
  .top::after { left: 14px; width: 60px; }
  .brand { gap: 9px; }
  .brand-mark { width: 29px; height: 34px; font-size: 21px; border-radius: 2px 7px 2px 7px; }
  .brand-name { font-size: 12px; letter-spacing: 1.8px; }
  .brand-sub { margin-top: 7px; font-size: 7px; letter-spacing: 1.1px; }
  .themes { gap: 1px; padding: 2px; border-radius: 4px; }
  .themes button { min-height: 30px; padding: 5px 7px; font-size: 10px; }
  .tabs { gap: 23px; padding: 0 15px; }
  .tabs button { min-height: 48px; font-size: 10px; letter-spacing: .5px; }
  .search-shell { padding: 13px 14px 11px; }
  #search-form { flex-wrap: wrap; gap: 7px; }
  #search-type { flex: 1 1 100%; min-height: 40px; font-size: 12px; }
  #query { flex: 1 1 calc(100% - 102px); width: calc(100% - 102px); min-height: 44px; padding-left: 12px; font-size: 16px; }
  #search-form .primary { flex: 0 0 92px; min-height: 44px; padding: 8px; font-size: 11px; }
  .search-hint { margin-top: 8px; font-size: 10px; }
  .controls { align-items: stretch; gap: 9px; padding: 11px 14px; }
  .country-chips { flex: 1 1 100%; gap: 4px; }
  .country-chips button { flex: 1 1 auto; min-height: 36px; padding: 6px 8px; font-size: 11px; }
  .controls > select, .controls > label { flex: 1 1 45%; min-width: 0; max-width: 100%; }
  .controls label { align-items: stretch; flex-direction: column; gap: 4px; font-size: 9px; }
  .controls label:has(.language-select) { margin-left: 0; }
  .controls select { min-width: 0; max-width: 100%; min-height: 37px; font-size: 12px; }
  .workspace, main { padding: 22px 14px 30px; }
  .hero { display: block; margin-bottom: 20px; }
  h1 { font-size: 28px; letter-spacing: -.85px; }
  .eyebrow { margin-bottom: 8px; font-size: 9px; letter-spacing: 1.8px; }
  .hero p:not(.eyebrow) { margin-top: 10px; font-size: 12px; line-height: 1.7; }
  .hero .live-badge { margin-top: 13px; padding: 6px 9px; font-size: 9px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 15px; border-radius: 5px; }
  .stat { padding: 13px 14px; }
  .stat strong { font-size: 25px; }
  .stat span { margin-top: 5px; font-size: 9px; letter-spacing: .45px; }
  .stat::after { top: 16px; right: 14px; width: 15px; height: 9px; }
  .overview-grid { gap: 15px; margin-bottom: 25px; }
  .panel { border-radius: 5px; }
  .panel > header { gap: 9px; min-height: 47px; padding: 12px 14px; }
  .panel > header h2 { font-size: 10px; letter-spacing: .35px; }
  .panel > header > span { font-size: 9px; }
  #map { height: 280px; }
  .map-legend { gap: 8px 11px; padding: 9px 12px; font-size: 9px; }
  .map-caption { padding: 9px 12px; font-size: 10px; }
  .brief-content { display: block; padding: 2px 14px 12px; }
  .brief-point { padding: 14px 0 14px 15px; border-bottom: 1px solid var(--line-soft); }
  .brief-point::before { top: 20px; }
  .brief-point h3, .brief-point strong { font-size: 12px; }
  .brief-point p { font-size: 12px; }
  .feed-toolbar { gap: 10px; margin-bottom: 13px; }
  .feed-toolbar h2 { font-size: 12px; }
  .feed-toolbar button, .feed-toolbar select { min-height: 36px; }
  .news-waterfall, .related-news .news-waterfall { grid-template-columns: 1fr; gap: 11px; }
  .news-card { padding: 17px 16px 15px; border-radius: 5px; }
  .news-card::before { left: 16px; }
  .news-card h3 { font-size: 16px; line-height: 1.5; }
  .card-meta { margin-bottom: 11px; }
  .card-summary { font-size: 12px; }
  .card-actions button { min-height: 34px; padding: 6px 9px; }
  .card-actions .origin { font-size: 9px; }
  .entity-list, .neighborhood-grid, .source-grid { grid-template-columns: 1fr; gap: 12px; }
  .entity-card, .metric-card, .capability, .source-card { padding: 18px; }
  .local-form { gap: 10px; padding: 15px; }
  .local-form label { flex-basis: 100%; }
  .local-form input { font-size: 16px; }
  .local-form button { flex: 1 1 auto; min-height: 44px; }
  #notice { padding: 9px 14px; font-size: 11px; }
  .empty, .error, .notice { padding: 15px; font-size: 12px; }
  #article-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 20px); border-radius: 6px; }
  .dialog-shell { max-height: calc(100dvh - 22px); }
  .dialog-head { padding: 12px 15px; }
  .dialog-head button { min-width: 40px; min-height: 40px; }
  .dialog-body { padding: 21px 18px 26px; }
  .dialog-body > h2, .dialog-body > h3 { font-size: 22px; line-height: 1.4; letter-spacing: -.5px; }
  .dialog-body > p { font-size: 13px; }
  .analysis-block { margin: 17px 0; padding: 16px; }
  html[data-theme='cmd'] .top { padding: 5px 9px; }
  html[data-theme='cmd'] .brand-name { font-size: 10px; letter-spacing: .7px; }
  html[data-theme='cmd'] .brand-mark { width: 21px; height: 23px; font-size: 15px; }
  html[data-theme='cmd'] .themes button { padding: 4px 7px; font-size: 10px; }
  #terminal { font-size: 12px; line-height: 1.6; }
  .cmd-title { padding-left: 10px; font-size: 10px; }
  #cmd-output { padding: 14px 10px 10px; }
  #cmd-form { gap: 4px; padding: 10px 10px 16px; }
  #cmd-input { font-size: 16px; line-height: 1.2; }
  .cmd-footer { gap: 9px; padding-left: 10px; padding-right: 10px; font-size: 9px; }
  .cmd-footer span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 370px) {
  .brand-name { font-size: 10px; letter-spacing: 1.2px; }
  .brand-sub { font-size: 6px; letter-spacing: .8px; }
  .brand-mark { width: 25px; height: 31px; font-size: 19px; }
  .themes button { padding: 5px; font-size: 9px; }
  .top { padding-left: 11px; padding-right: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Simultaneous geographic instrument and chronological stream. */
.working-grid { display: grid; grid-template-columns: minmax(310px, .85fr) minmax(0, 1.85fr); gap: 24px; align-items: start; }
.working-grid .overview-grid { grid-template-columns: 1fr; gap: 18px; }
.news-stream { min-width: 0; }
.news-stream .news-waterfall { grid-template-columns: repeat(2,minmax(0,1fr)); }
.working-grid #map { height: 330px; }
.working-grid .brief-panel { max-height: 530px; }
@media(min-width:1800px){.news-stream .news-waterfall { grid-template-columns: repeat(3,minmax(0,1fr)); }}
@media(max-width:1050px){.working-grid { grid-template-columns: 1fr; }.working-grid .overview-grid { grid-template-columns: 1fr 1fr; }.working-grid .brief-panel { max-height: 435px; }}
@media(max-width:680px){.working-grid .overview-grid { grid-template-columns: 1fr; }.news-stream .news-waterfall { grid-template-columns: 1fr; }.working-grid #map { height: 250px; }}
/* Readable instrument text and local-map integration. */
body { font-size: 16px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100000; padding: 10px 14px; background: #fff; color: #000; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.brand-sub, .clock, .eyebrow, .live-badge, .stat span, .panel > header > span,
.card-meta, .category, .card-meta time, .origin, .map-legend, .map-caption,
.search-hint, .controls label, .themes button { font-size: 12px; }
.card-summary, .hero p:not(.eyebrow), .brief-content, .source-card p { font-size: 14px; }
.card-title { font-size: 18px; line-height: 1.45; }
.tabs button, .card-actions button, .feed-toolbar select, .local-form label { font-size: 14px; }
#zone-map { height: 430px; background: #090f15; }
.osm-dark-tiles .leaflet-tile, .leaflet-tile.osm-dark-tiles { filter: grayscale(.75) invert(1) hue-rotate(180deg) brightness(.72) contrast(1.28) saturate(.7); }
.leaflet-container { background: #071018; }
.local-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.local-form input { flex: 1; min-width: 220px; }
#view-zone > .panel, #view-sources > .panel, #document-panel { margin: 20px 0; }
#view-zone > .panel > p, #view-zone > .panel > .local-form, #observations, #view-sources > .panel { padding: 16px 20px; }
.metric-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.metric-card strong { display: block; margin: 14px 0; font-size: 23px; }
.metric-card p { color: var(--muted); }
.signal-card { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, var(--accent) 12%), var(--surface)); }
.signal-card strong { color: var(--accent); }
.source-strip { margin: -4px 0 20px; padding: 11px 14px; border: 1px solid var(--line); color: var(--muted); font: 12px/1.6 var(--mono); }
.source-strip a { color: var(--accent); }
.space-status { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); color: #c9a9ef; background: #0b111b; font: 11px/1.55 var(--mono); overflow-wrap: anywhere; }
.business-panel > p { padding: 0 20px; color: var(--muted); }
.business-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 20px 20px; }
.business-card { padding: 15px; border: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 94%,#ef9f53 6%); }
.business-card h3 { margin: 7px 0; font-size: 15px; }
.business-card p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.business-card .occupancy-na { color: #f4c27a; font: 11px/1.5 var(--mono); }
@media(max-width:900px){.business-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){.business-grid{grid-template-columns:1fr;padding:0 14px 14px}.business-panel>p{padding:0 14px}.business-card{padding:16px}}
@media(max-width:680px){
 .neighborhood-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .neighborhood-grid .metric-card{padding:12px;min-width:0}
 .neighborhood-grid .metric-card span{font-size:10px;line-height:1.35}
 .neighborhood-grid .metric-card strong{margin:8px 0;font-size:16px;line-height:1.25;overflow-wrap:anywhere}
 .neighborhood-grid .metric-card p{font-size:11px;line-height:1.45}
}
.map-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.evidence-list { display: grid; gap: 7px; margin-top: 20px; }
.evidence-list button { text-align: left; justify-content: flex-start; white-space: normal; font-size: 13px; }
.evidence-ref { color: var(--accent); font-family: var(--mono); }
.brief-panel { display: flex; flex-direction: column; max-height: 570px; overflow-y: auto; }
.brief-panel > button, .brief-panel > p { margin: 10px 18px; }
.brief-content ul, .analysis-block ul { padding-left: 20px; }
.brief-content li, .analysis-block li { margin-bottom: 10px; }
.research-layout { align-items: start; }
.research-layout .panel { max-height: 700px; overflow-y: auto; }
.entity-card { padding: 18px; }
.entity-card h3 { overflow-wrap: anywhere; }
.credit-card { border-color: color-mix(in srgb,#ffb24a 64%,var(--line)); background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 86%,#ff9d2f 14%),var(--surface)); }
.credit-records { display:grid; gap:9px; margin:14px 0; }
.credit-row { display:grid; grid-template-columns:minmax(150px,.9fr) minmax(220px,1.6fr); gap:12px; padding:10px 12px; border-left:3px solid #ffb24a; background:color-mix(in srgb,var(--surface) 92%,#ffb24a 8%); }
.credit-row strong { color:#ffca7a; }
.credit-row span { color:var(--muted); }
@media(max-width:680px){.credit-row{grid-template-columns:1fr;gap:4px}}
#article-evidence { overflow-wrap: anywhere; }
html[data-theme=cmd] #terminal { font-size: 15px; }
@media(max-width:680px){
 .top { gap: 8px; flex-wrap: wrap; }
 .brand-sub { max-width: 180px; font-size: 10px; line-height: 1.4; letter-spacing: .5px; }
 .brand-name { font-size: 15px; }
 .themes button { font-size: 12px; min-height: 36px; }
 .card-title { font-size: 18px; }
 .card-summary { font-size: 14px; }
 .stat span, .map-caption, .map-legend, .origin { font-size: 12px; }
 #zone-map { height: 340px; }
 .local-form input { width: 100%; }
 .local-form button { min-height: 44px; }
 .brief-panel { max-height: 380px; }
 html[data-theme=cmd] .top { flex-wrap: nowrap; }
 html[data-theme=cmd] #terminal { font-size: 14px; }
 html[data-theme=cmd] .brand-name { font-size: 12px; }
}
.commerce-form { display:grid; gap:12px; margin:20px 0; }
.commerce-form label { display:grid; gap:6px; }
.commerce-form input { width:100%; min-height:44px; }
.traffic-value { border:1px solid #41757d; padding:18px; margin:12px 0; }
.traffic-value strong { display:block; font:32px monospace; color:#4fa8ab; }
.traffic-day { margin:22px 0; }
.traffic-hours { display:grid; grid-template-columns:repeat(24,minmax(22px,1fr)); overflow-x:auto; gap:3px; }
.traffic-hours div { text-align:center; font:11px monospace; }
.traffic-hours i { display:block; height:64px; background:linear-gradient(to top,#459d9b var(--level),#459d9b18 var(--level)); }
.business-card button { margin-top:10px; min-height:44px; }
@media print {
  body { background: #fff; color: #111; }
  .top, .tabs, .search-shell, .controls, .card-actions, .load-row, #terminal, .live-badge { display: none !important; }
  main, .workspace { max-width: none; padding: 0; }
  .news-waterfall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card, .panel, .stat { break-inside: avoid; background: #fff; color: #111; box-shadow: none; border-color: #ccc; }
  .card-title, h1, h2, h3 { color: #111; }
  .card-summary, .origin, .card-meta { color: #444; }
}
.tools-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0; }
.tool-card { border:1px solid var(--line); background:var(--panel); padding:16px; min-height:150px; }
.tool-card header, .tool-runner header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.tool-card h2 { margin:14px 0 8px; font-size:18px; }
.tool-card p { min-height:40px; color:var(--text); }
.tool-card small, .tool-state { color:var(--muted); font-family:monospace; font-size:11px; text-transform:uppercase; }
.tool-card[data-decision=excluded] { opacity:.58; }
.tool-card[data-decision=local-adapter] { border-color:#4b8f91; }
.tool-card[data-decision=native-safe] { border-color:#c49a52; }
.tool-runner { margin-top:18px; }
.check-row { display:flex !important; grid-template-columns:none; align-items:center; gap:8px; }
.check-row input { width:auto !important; min-height:auto !important; }
.tool-result { margin-top:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.tool-result pre { max-height:280px; overflow:auto; background:#050708; border:1px solid var(--line); padding:12px; }
@media(max-width:900px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){.tools-grid{grid-template-columns:1fr;}.tool-card{min-height:0;}}
