/* Hallmark · shape: intelligence workbench · genre: modern-minimal · theme: brand · scope: app
 * nav: retained · footer: retained · signature: region-linked vulnerability records · v3.0.0 */
/* Critique: keep the map subordinate to decisions; make evidence, severity and next actions easy to inspect. */
/* Data: real public sources through /api/threats. Crimson marks critical severity and errors only;
 * focus is calm ink; nothing loops, pulses or lingers after a click. */
:root {
  --th-danger: var(--crimson-600);
  --th-map-ink: #f5f5f7;
  --th-map-muted: #b5b5bf;
  --th-map-faint: #7c7c86;
  --th-map-bg: #0b0b0d;
  --th-map-line: #303035;
  --th-map-control-line: #45454e;
  --th-map-control: #151518;
  --th-map-grid: #26262d;
  --th-map-land: #9C9CA6;
  --th-map-label: #dedee4;
  --th-map-label-bg: #0b0b0ded;
  --th-map-critical: #ff8799;
  --th-backdrop: #05050699;
  --th-toast-shadow: #0002;
  --th-sheet-shadow: 0 24px 64px rgb(0 0 0 / 0.18);
}
:root[data-theme="dark"] { --th-danger: #ff7288; --th-sheet-shadow: 0 24px 64px rgb(0 0 0 / 0.5); }
.th { padding: calc(var(--header-h) + 56px) 0 80px; }
/* On the site grid: the content edge lines up with the header logo. */
.th__wrap { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.th__breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 24px; }
.th__breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .th__breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.th__intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.th__title-line { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.th h1 { font-size: 48px; font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
.th__intro p { color: var(--ink-2); font-size: 18px; margin-top: 12px; }
.th__intro .th__fresh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.th__fresh a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .th__fresh a:hover { text-decoration-color: currentColor; } }

/* ---- Page entry (MOTION-SPEC: interior hero, CSS only, first paint) ------------ */
@media (prefers-reduced-motion: no-preference) {
  .th__enter { animation: vm-enter var(--t-enter, 600ms) var(--ease-out) backwards; }
  .th__enter--1 { animation-delay: var(--stagger, 60ms); }
  .th__enter--2 { animation-delay: calc(var(--stagger, 60ms) * 2); }
  /* Arriving through the page cross-fade (theme-boot.js .vt-arrival): the fade is the entrance */
  .vt-arrival .th__enter { animation: none; }
}

/* ---- Global outlook ------------------------------------------------------------ */
.th__intelligence { display: grid; grid-template-columns: minmax(0, 1fr) 304px; background: var(--th-map-bg); color: var(--th-map-ink); border: 1px solid var(--th-map-line); border-radius: 12px; overflow: hidden; }
.th__map-panel { min-width: 0; padding: 24px 28px 16px; display: flex; flex-direction: column; }
.th__map-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.th__map-toolbar h2 { font-size: 24px; font-weight: 550; letter-spacing: -.025em; margin-top: 4px; color: inherit; }
.th__map-sub { color: var(--th-map-muted); font-size: 12px; margin-top: 6px; }
.th__time { display: grid; gap: 4px; font-size: 11px; color: var(--th-map-muted); }

/* Selects: one shape everywhere, 8px corners, an ink chevron that never moves */
.th__select { position: relative; display: block; }
.th__select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--paper); color: var(--ink); padding: 0 36px 0 12px; font: inherit; font-size: 13px; cursor: pointer; transition: border-color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .th__select select:hover { border-color: var(--ink-3); } }
.th__select > vm-icon { position: absolute; right: 12px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-2); display: flex; }
.th__select--night select { min-width: 164px; background: var(--th-map-control); border-color: var(--th-map-control-line); color: var(--th-map-ink); color-scheme: dark; }
@media (hover: hover) { .th__select--night select:hover { border-color: var(--th-map-muted); } }
.th__select--night > vm-icon { color: var(--th-map-muted); }

.th__map { position: relative; margin: 20px -8px 0; aspect-ratio: 1000 / 430; }
.th__world { width: 100%; height: 100%; display: block; }
.th__graticule { stroke: var(--th-map-grid); stroke-width: .8; vector-effect: non-scaling-stroke; }
/* Land is one path of zero-length segments; round caps turn each into a dot on the 4.4-unit grid */
.th__continents { fill: none; stroke: var(--th-map-land); stroke-width: 2.2; stroke-linecap: round; }
.th__map-points { display: none; }
.th__hotspots { position: absolute; inset: 0; }
.th__hotspot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--th-map-ink); background: transparent; padding: 0; }
button.th__hotspot { cursor: pointer; }
.th__hotspot::before { content: ''; position: absolute; width: 26px; height: 26px; border: 1px solid rgb(255 255 255 / 0.32); border-radius: 50%; transition: border-color var(--t-fast) var(--ease-soft), scale var(--t-ui, 280ms) var(--ease-out); }
.th__hotspot::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--th-map-ink); border-radius: 50%; transition: background-color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { button.th__hotspot:hover::before { border-color: rgb(255 255 255 / 0.7); } }
.th__hotspot[aria-pressed="true"]::before { border-color: var(--th-map-ink); scale: 1.35; }
.th__hotspot[data-empty="true"]::after { background: var(--th-map-faint); }
.th__hotspot:is([data-muted], [data-pending])::before { border-style: dashed; border-color: rgb(255 255 255 / 0.18); }
.th__hotspot:is([data-muted], [data-pending])::after { background: transparent; box-shadow: inset 0 0 0 1px var(--th-map-faint); }
.th__hotspot-label { position: absolute; top: 42px; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 11px; line-height: 1; color: var(--th-map-label); background: var(--th-map-label-bg); padding: 4px 8px; border-radius: 4px; pointer-events: none; }
.th__hotspot-label b { color: var(--th-map-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.th__hotspot-label small { color: var(--th-map-faint); font-size: 10px; }
.th__hotspot[data-muted] .th__hotspot-label, .th__hotspot[data-pending] .th__hotspot-label { color: var(--th-map-muted); }
/* The markers drop in once, when the data arrives: a fade and a 6px settle, four steps at most */
@keyframes th-drop { from { opacity: 0; translate: 0 -6px; } }
@keyframes th-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .th__intelligence[data-state="ready"] .th__hotspot:not([data-pending]) { animation: th-drop var(--t-ui, 280ms) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * var(--stagger, 60ms)); }
  .th__intelligence[data-state="ready"] .th__signal { animation: th-fade 240ms var(--ease-soft) backwards; animation-delay: calc(var(--i, 0) * var(--stagger, 60ms)); }
}

.th__map-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.th__map-reset { display: inline-flex; align-items: center; gap: 8px; color: var(--th-map-label); min-height: 44px; font-size: 12px; border: 0; background: transparent; padding: 0 4px; cursor: pointer; border-radius: var(--r-xs); transition: color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .th__map-reset:hover { color: var(--white); } }
#region-clear { color: var(--th-map-muted); text-decoration: underline; text-underline-offset: 3px; }
.th__map-fresh { font-size: 12px; color: var(--th-map-muted); font-variant-numeric: tabular-nums; }
.th__map-note { font-size: 11px; line-height: 1.6; color: var(--th-map-muted); margin-top: 4px; max-width: 70ch; }

.th__priority { border-left: 1px solid var(--th-map-line); padding: 28px 24px 20px; display: flex; flex-direction: column; min-width: 0; }
.th__priority-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.th__priority-title h2 { font-size: 14px; font-weight: 550; color: inherit; }
.th__priority-title > span { color: var(--th-map-muted); font-family: var(--font-mono); font-size: 12px; }
.th__signal { width: 100%; text-align: left; display: grid; gap: 8px; padding: 16px 0; color: inherit; border: 0; border-bottom: 1px solid var(--th-map-line); background: transparent; cursor: pointer; border-radius: 0; }
@media (hover: hover) { .th__signal:hover strong { text-decoration: underline; text-underline-offset: 4px; } }
.th__signal-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--th-map-label); font-variant-numeric: tabular-nums; }
.th__signal-meta [data-critical] { color: var(--th-map-critical); }
.th__signal-meta time { color: var(--th-map-muted); margin-left: auto; }
.th__signal strong { font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.th__signal small { color: var(--th-map-muted); font-size: 11px; overflow-wrap: anywhere; }
.th__priority-empty { color: var(--th-map-muted); font-size: 13px; line-height: 1.6; padding-block: 24px; }
/* Loading: still bars in the final layout, so nothing jumps when the data arrives */
.th__placeholder { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--th-map-line); }
.th__placeholder span { display: block; height: 10px; border-radius: 4px; background: rgb(255 255 255 / 0.07); }
.th__placeholder span:nth-child(1) { width: 40%; }
.th__placeholder span:nth-child(2) { width: 92%; height: 14px; }
.th__placeholder span:nth-child(3) { width: 55%; }
.th__priority-foot { margin-top: auto; padding-top: 24px; font-size: 11px; color: var(--th-map-muted); display: flex; align-items: center; gap: 8px; }

.th__data-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.th__data-note > span { color: var(--ink); font-weight: 600; }

/* ---- Feed ------------------------------------------------------------------------ */
.th__feed { padding-top: 40px; }
.th__feed-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.th__feed h2, .th__side-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
#result-count { font-size: 13px; margin-top: 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.th__feed-actions { display: flex; gap: 8px; }
.th__button, .th__icon-btn { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: transparent; color: var(--ink); font-size: 12px; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; cursor: pointer; transition: background-color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft), opacity var(--t-fast) var(--ease-soft), transform var(--t-exit, 200ms) var(--ease-out); }
@media (hover: hover) { .th__button:hover, .th__icon-btn:hover { background: var(--paper-2); border-color: var(--ink-3); } }
.th__icon-btn { width: 44px; padding: 0; flex-shrink: 0; }
.th__button:disabled { color: var(--ink-3); background: var(--paper-2); border-color: var(--line); cursor: not-allowed; }
.th__button[aria-disabled="true"] { color: var(--ink-2); cursor: progress; }
.th__search-row { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.th__search { flex: 1; max-width: 540px; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-xs); color: var(--ink-2); padding: 0 16px; transition: border-color 160ms var(--ease-soft), box-shadow 200ms var(--ease-soft); }
/* Text fields focus calmly: an ink border and a soft halo. Crimson is kept for errors. */
.th__search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(var(--ink-rgb) / 0.08); }
.th__search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 12px 0; font: inherit; font-size: 14px; outline: none; }
.th__search input::placeholder { color: var(--ink-2); opacity: 1; }
.th__views { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xs); }
.th__views button { min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink-2); font-size: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft); }
.th__views button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) { .th__views button:hover { color: var(--ink); } }
#watch-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.th__filters { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.th__severity-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.th__severity-filters button { min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r-xs); background: transparent; color: var(--ink-2); font-size: 12px; cursor: pointer; transition: color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft); }
.th__severity-filters button span { margin-left: 8px; font-variant-numeric: tabular-nums; }
.th__severity-filters button[aria-pressed="true"] { background: var(--paper-2); border-color: var(--line-2); color: var(--ink); }
@media (hover: hover) { .th__severity-filters button:hover { color: var(--ink); } }
.th__selects { display: flex; flex-wrap: wrap; gap: 12px; }
.th__selects label { display: grid; gap: 4px; color: var(--ink-2); font-size: 12px; }
.th__selects .th__select { width: 172px; }
.th__active { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper-2); padding: 4px 4px 4px 12px; margin-bottom: 16px; font-size: 12px; color: var(--ink-2); border-radius: var(--r-xs); }
.th__active button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; border-radius: var(--r-xs); }
.th__notice { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.th__notice > vm-icon { flex-shrink: 0; color: var(--ink-2); }
.th__notice strong { color: var(--ink); font-weight: 600; display: block; }
.th__notice .th__button { margin-left: auto; flex-shrink: 0; }
.th__notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.th__table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.th__table th { font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 16px 12px; border-block: 1px solid var(--line-2); }
.th__table th:first-child { width: 46%; padding-left: 0; }
.th__table th:nth-child(2) { width: 15%; }
.th__table th:nth-child(3) { width: 20%; }
.th__table th:nth-child(4) { width: 13%; }
.th__table th:last-child { width: 6%; }
.th__table td { border-bottom: 1px solid var(--line); padding: 20px 12px; font-size: 12px; vertical-align: middle; }
.th__table td:first-child { padding-left: 0; }
.th__table td:last-child { text-align: right; padding-right: 0; }
.th__table tbody tr { transition: background-color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .th__table tbody tr:hover { background: var(--paper-2); } }
.th__finding { display: flex; flex-direction: column; align-items: start; gap: 6px; min-height: 44px; text-align: left; color: var(--ink); border-radius: 4px; }
.th__finding code { font-size: 12px; font-family: var(--font-mono); color: var(--ink-2); }
.th__finding strong { font-size: 14px; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; }
@media (hover: hover) { .th__finding:hover strong { text-decoration: underline; text-underline-offset: 4px; } }
.th__finding small { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.th__severity { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.th__severity[data-severity="critical"] { color: var(--th-danger); }
.th__severity:is([data-severity="medium"], [data-severity="low"], [data-severity="none"]) { color: var(--ink-2); font-weight: 500; }
.th__score { display: block; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.th__signal-label { display: block; line-height: 1.5; color: var(--ink-2); }
.th__signal-label[data-exploited] { color: var(--ink); font-weight: 550; }
.th__source { display: block; color: var(--ink-2); margin-top: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.th__age { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.th__age small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 4px; white-space: normal; }
.th__watch { width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r-xs); display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--ink-2); cursor: pointer; transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft), transform var(--t-exit, 200ms) var(--ease-out); }
@media (hover: hover) { .th__watch:hover { border-color: var(--line-2); color: var(--ink); } }
.th__watch[aria-pressed="true"] { color: var(--ink); background: var(--paper-2); border-color: var(--line-2); }
.th__empty { padding: 56px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.th__empty > vm-icon { color: var(--ink-2); display: inline-block; margin-bottom: 16px; }
.th__empty h3 { font-size: 20px; }
.th__empty p { font-size: 14px; color: var(--ink-2); margin: 8px 0 20px; }
.th__more { display: flex; justify-content: center; padding-top: 24px; }
.th__feed-foot { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px 32px; padding-top: 20px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.th__feed-foot p { max-width: 72ch; }
.th__feed-foot b { color: var(--ink); font-weight: 600; }
.th__feed-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); }
@media (hover: hover) { .th__feed-foot a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ---- Reporting and sources -------------------------------------------------------- */
.th__reporting, .th__sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--line); }
.th__side-head p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin-top: 12px; max-width: 36ch; }
.th__news { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.th__news li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.th__news a { color: var(--ink); display: inline-flex; align-items: baseline; gap: 6px; min-height: 24px; }
.th__news a vm-icon, .th__news a svg { flex-shrink: 0; color: var(--ink-2); translate: 0 2px; }
@media (hover: hover) { .th__news a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.th__news time { flex-shrink: 0; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.th__source-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-2); }
.th__source-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.th__source-list a { color: var(--ink); font-size: 14px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; justify-self: start; position: relative; }
.th__source-list a::before { content: ""; position: absolute; inset: -12px 0; }   /* the link keeps its size; the area that takes a tap is 44px */
.th__source-list a svg { color: var(--ink-2); }
@media (hover: hover) { .th__source-list a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.th__source-list small { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.th__source-list small:empty { display: none; }

/* ---- Dialogs ---------------------------------------------------------------------- */
.th__dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); padding: 28px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--th-sheet-shadow); }
.th__dialog::backdrop { background: var(--th-backdrop); }
.th__detail { width: min(640px, calc(100% - 32px)); max-width: none; height: calc(100dvh - 32px); margin: 16px 16px 16px auto; border-radius: 12px; }
.th__alert { width: min(560px, calc(100% - 32px)); max-width: none; margin: auto; border-radius: 12px; }
/* In 280ms with a short rise (the record sheet slides 16px from its edge); out in 200ms */
@media (prefers-reduced-motion: no-preference) {
  .th__dialog { transition: opacity var(--t-exit, 200ms) var(--ease-soft), translate var(--t-exit, 200ms) var(--ease-soft), overlay var(--t-exit, 200ms) allow-discrete, display var(--t-exit, 200ms) allow-discrete; }
  .th__dialog:not([open]) { opacity: 0; }
  .th__alert:not([open]) { translate: 0 8px; }
  .th__detail:not([open]) { translate: 16px 0; }
  .th__dialog[open] { opacity: 1; translate: 0 0; transition-duration: var(--t-ui, 280ms); transition-timing-function: var(--ease-out); }
  @starting-style { .th__dialog[open] { opacity: 0; } .th__alert[open] { translate: 0 8px; } .th__detail[open] { translate: 16px 0; } }
  .th__dialog::backdrop { transition: opacity var(--t-exit, 200ms) var(--ease-soft), overlay var(--t-exit, 200ms) allow-discrete, display var(--t-exit, 200ms) allow-discrete; opacity: 0; }
  .th__dialog[open]::backdrop { opacity: 1; transition-duration: 240ms; }
  @starting-style { .th__dialog[open]::backdrop { opacity: 0; } }
}
.th__dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; font-size: 12px; color: var(--ink-2); }
.th__dialog h2 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.th__detail-id { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: block; margin-bottom: 12px; }
.th__detail-vendor { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.th__detail-badges { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; margin: 20px 0; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.th__detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.th__detail-actions [aria-pressed="true"] { background: var(--paper-2); }
.th__tabs { display: flex; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; gap: 24px; }
.th__tabs button { min-height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; transition: color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .th__tabs button:hover { color: var(--ink); } }
.th__tabs button[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .th__panel:not([hidden]) { animation: th-fade 240ms var(--ease-soft); } }
.th__panel > p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.th__panel code { font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
.th__facts { margin-top: 24px; }
.th__facts > div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.th__facts dt { color: var(--ink-2); }
.th__facts dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.th__evidence-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.th__evidence-list li { padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; gap: 6px; }
.th__evidence-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.th__evidence-head b { font-size: 14px; font-weight: 600; }
.th__evidence-head span, .th__evidence-list time { font-size: 11px; color: var(--ink-2); }
.th__evidence-list p { color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.th__link { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 32px; font-size: 12px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
@media (hover: hover) { .th__link:hover { text-decoration-color: currentColor; } }
.th__panel-note { margin-top: 16px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.th__required { margin: 0 0 24px; padding: 16px 20px; background: var(--paper-2); border-radius: 12px; }
.th__required b { font-size: 12px; font-weight: 600; }
.th__required p { font-size: 14px; line-height: 1.6; margin-top: 4px; }
.th__steps { list-style: decimal; padding-left: 20px; }
.th__steps li { padding: 0 0 16px 8px; font-size: 14px; line-height: 1.7; }
.th__refs-title { font-size: 13px; font-weight: 600; margin: 12px 0 8px; }
.th__refs { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.th__refs li { border-bottom: 1px solid var(--line); }
.th__ref { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--ink); }
.th__ref small { color: var(--ink-2); font-size: 11px; margin-left: auto; overflow-wrap: anywhere; text-align: right; }
.th__ref svg { flex-shrink: 0; color: var(--ink-2); }
@media (hover: hover) { .th__ref:hover { text-decoration: underline; text-underline-offset: 4px; } }
.th__assessment-note { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.th__dialog-lead { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 12px; }
.th__channels { border: 0; padding: 0; margin: 28px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.th__channels legend { font-size: 13px; margin-bottom: 12px; }
.th__channels label { display: flex; align-items: center; gap: 8px; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 0 12px; font-size: 12px; cursor: pointer; transition: border-color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft); }
.th__channels label:has(:checked) { border-color: var(--ink-2); background: var(--paper-2); }
.th__channels input { accent-color: var(--ink); width: 16px; height: 16px; }
.th__channels { margin-bottom: 10px; }
.th__channels label:has(:disabled) { color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.th__channels label:has(:disabled) > * { opacity: 0.55; }
.th__channels-note { margin: 0 0 24px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.th__local-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#alerts-on[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.th__field { display: grid; gap: 8px; font-size: 13px; margin-bottom: 20px; }
.th__field input { min-width: 0; width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--paper); color: var(--ink); padding: 8px 12px; font: inherit; font-size: 14px; transition: border-color 160ms var(--ease-soft), box-shadow 200ms var(--ease-soft); }
.th__field .th__select select { min-height: 48px; font-size: 14px; }
.th__field input::placeholder { color: var(--ink-2); }
.th__field input[aria-invalid="true"] { border-color: var(--th-danger); }
.th__field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.th__local-note { display: flex; align-items: start; gap: 8px; color: var(--ink-2); background: var(--paper-2); border-radius: var(--r-xs); padding: 16px; font-size: 12px; line-height: 1.65; }
.th__local-note vm-icon { flex-shrink: 0; margin-top: 4px; }
.th__form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#alert-message { font-size: 13px; line-height: 1.6; margin-top: 16px; }
#alert-message[data-error="true"] { color: var(--th-danger); }
.th__toast { position: fixed; bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px)); left: 50%; transform: translateX(-50%); z-index: 10000; width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); padding: 16px 20px; border-radius: var(--r-xs); font-size: 13px; box-shadow: 0 4px 24px var(--th-toast-shadow); }
@media (prefers-reduced-motion: no-preference) { .th__toast:not([hidden]) { animation: th-fade var(--t-fast) var(--ease-soft); } }
.page-thymos [hidden] { display: none !important; }

/* ---- Press, focus ------------------------------------------------------------------ */
/* Press: in over 90ms, back over 200ms. Nothing stays highlighted once the pointer lifts. */
:is(.th, .th__dialog) :is(.th__button, .th__icon-btn, .th__watch, .th__views button, .th__severity-filters button):active:not(:disabled) { transform: scale(.97); transition-duration: var(--t-press, 90ms); }
/* Keyboard focus: an instant, calm ink ring (white on the dark map). Never after a mouse click. */
:is(.th, .th__dialog) :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.th__intelligence :focus-visible { outline-color: var(--th-map-ink); }
.th__hotspot:focus-visible { outline-offset: -4px; }
.th__signal:focus-visible { outline-offset: 2px; }
.page-thymos[data-input="pointer"] :is(.th, .th__dialog) :focus-visible { outline: none; }
/* Text fields keep their own calm focus: ink border and halo, no ring */
.page-thymos .th__search input:focus-visible { outline: none; }
.page-thymos .th__field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(var(--ink-rgb) / 0.08); }
.page-thymos .th__field input[aria-invalid="true"]:focus-visible { border-color: var(--th-danger); box-shadow: 0 0 0 4px rgb(var(--crimson-rgb, 200 16 46) / 0.12); }

@media (min-width: 1500px) { .th__intelligence { grid-template-columns: minmax(0,1fr) 320px; } }
@media (max-width: 1100px) {
  .th__intelligence { grid-template-columns: minmax(0,1fr) 260px; } .th__map-panel { padding-inline: 20px; } .th__priority { padding-inline: 20px; } .th__hotspot-label { font-size: 10px; }
  .th__table th:first-child { width: 42%; } .th__table th:nth-child(2) { width: 16%; } .th__table th:nth-child(3) { width: 21%; } .th__table th:nth-child(4) { width: 14%; }
  .th__selects .th__select { width: 150px; }
}
@media (max-width: 860px) {
  .th__intelligence { grid-template-columns: minmax(0,1fr); }
  .th__priority { border-left: 0; border-top: 1px solid var(--th-map-line); padding: 20px; }
  .th__priority-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .th__signal, .th__placeholder { border-bottom: 0; padding: 8px 0; }
  .th__priority-empty { grid-column: 1 / -1; }
  .th__priority-foot { display: none; }
  .th__signal-meta { flex-wrap: wrap; } .th__signal-meta time { margin-left: 0; }
  .th__search-row { gap: 16px; }
  .th__table th:nth-child(3), .th__table td:nth-child(3) { display: none; }
  .th__table th:first-child { width: 56%; } .th__table th:nth-child(2) { width: 20%; } .th__table th:nth-child(4) { width: 15%; } .th__table th:last-child { width: 9%; }
  .th__reporting, .th__sources { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .th { padding-top: calc(var(--header-h) + 40px); padding-bottom: 48px; }
  .th__breadcrumb { margin-bottom: 16px; }
  .th__intro { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .th__title-line { gap: 12px; } .th h1 { font-size: 38px; }
  .th__intro p { font-size: 16px; } .th__intro > .btn { width: 100%; }
  .th__map-panel { padding: 20px 16px 16px; } .th__map-toolbar h2 { font-size: 21px; }
  .th__map-toolbar { flex-wrap: wrap; } .th__map-sub { font-size: 11px; }
  .th__time { width: 100%; } .th__select--night select { min-width: 0; }
  .th__map { aspect-ratio: auto; margin: 16px 0 8px; }
  .th__world { height: auto; aspect-ratio: 1000 / 430; }
  .th__map-points { display: block; fill: var(--th-map-ink); }
  .th__map-points circle[data-muted="true"] { fill: transparent; stroke: var(--th-map-faint); stroke-width: 2; }
  .th__map-points circle[data-active="true"] { stroke: var(--th-map-ink); stroke-width: 10; stroke-opacity: .3; }
  .th__hotspots { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; margin-top: 12px; }
  .th__hotspot { position: static; transform: none; width: 100%; height: 44px; border: 1px solid var(--th-map-line); border-radius: var(--r-xs); display: flex; align-items: center; padding: 0 12px; transition: border-color var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft); }
  .th__hotspot::before, .th__hotspot::after { display: none; }
  .th__hotspot-label { position: static; width: 100%; justify-content: space-between; font-size: 12px; background: transparent; padding: 0; }
  .th__hotspot:is([data-muted], [data-pending]) { border-style: dashed; }
  .th__hotspot { height: auto; min-height: 48px; padding: 6px 12px; }
  .th__hotspot[data-muted] .th__hotspot-label { flex-direction: column; align-items: start; gap: 3px; }
  .th__hotspot[aria-pressed="true"] { background: var(--th-map-control); border-color: var(--th-map-muted); }
  @media (hover: hover) { button.th__hotspot:hover { background: var(--th-map-control); border-color: var(--th-map-muted); } }
  .th__hotspot[aria-pressed="true"] { border-color: var(--th-map-ink); }
  .th__map-bottom { flex-wrap: wrap; gap: 0 8px; } .th__map-reset, .th__map-fresh { font-size: 11px; }
  .th__priority-list { display: block; } .th__priority { padding: 20px 16px 12px; }
  .th__signal, .th__placeholder { padding: 12px 0; border-bottom: 1px solid var(--th-map-line); }
  .th__signal:last-child { border-bottom: 0; }
  .th__signal strong { font-size: 13px; }
  .th__data-note { line-height: 1.6; }
  .th__feed { padding-top: 32px; } .th__feed-head { align-items: start; flex-direction: column; gap: 16px; }
  .th__feed h2, .th__side-head h2 { font-size: 24px; } .th__feed-actions { width: 100%; } .th__feed-actions > button { flex: 1; }
  .th__search-row { align-items: stretch; flex-direction: column; margin-bottom: 16px; } .th__search { max-width: none; }
  .th__views { align-self: start; } .th__views button { min-height: 44px; }
  .th__filters { gap: 12px; } .th__severity-filters { width: 100%; gap: 0; } .th__severity-filters button { padding-inline: 8px; font-size: 11px; }
  .th__severity-filters button span { margin-left: 4px; }
  .th__selects { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; } .th__selects .th__select { width: auto; } .th__select select { padding: 0 28px 0 8px; font-size: 12px; } .th__select > vm-icon { right: 8px; }
  .th__notice { flex-wrap: wrap; } .th__notice .th__button { margin-left: 0; width: 100%; }
  .th__table, .th__table tbody { display: block; } .th__table thead { display: none; }
  .th__table tr { display: grid; grid-template-columns: minmax(0,1fr) auto 44px; gap: 12px 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .th__table tr:first-child { border-top: 1px solid var(--line-2); }
  .th__table td { display: block; border: 0; padding: 0; } .th__table td:first-child { grid-column: 1 / -1; }
  .th__table td:nth-child(3) { display: block; grid-column: 1 / -1; grid-row: 3; } .th__signal-label, .th__source { display: inline; } .th__source { margin-left: 8px; }
  .th__table td:nth-child(2) { align-self: center; } .th__table td:nth-child(4) { align-self: center; text-align: right; } .th__table td:last-child { grid-column: 3; grid-row: 2; }
  .th__score { display: inline; padding-left: 8px; }
  .th__finding strong { font-size: 15px; }
  .th__news li { flex-direction: column; gap: 4px; }
  .th__source-list { grid-template-columns: minmax(0,1fr); }
  .th__reporting, .th__sources { padding-top: 40px; margin-top: 40px; }
  .th__dialog { padding: 20px; } .th__detail { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; } .th__alert { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .th__dialog h2 { font-size: 24px; } .th__dialog-top { margin-bottom: 20px; } .th__facts > div { grid-template-columns: 112px minmax(0,1fr); gap: 12px; }
  .th__field-pair { grid-template-columns: minmax(0,1fr); gap: 0; } .th__channels label { flex: 1 0 auto; }
  .th__field input, .th__field select, .th__search input { font-size: 16px; }
}
@media print {
  .th__enter, .th__hotspot, .th__signal { animation: none !important; opacity: 1 !important; translate: none !important; }
}
.th h1, .th h2, .th__dialog h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
