/* Threat Briefing. The shared Command Center CSS supplies the header and rail. */
.threat-body .cyber-rail-nav a:first-child {
  border-left-color: transparent;
  background: transparent;
  color: var(--cyber-muted);
}
.threat-body .cyber-rail-nav a:first-child > span { color: var(--cyber-subtle); }
.threat-body .cyber-rail-nav a[aria-current="page"] {
  border-left: 2px solid var(--cyber-cyan);
  background: #173c49;
  color: var(--cyber-cyan);
}
.threat-body .cyber-rail-nav a[aria-current="page"] > span { color: var(--cyber-cyan); }
.threat-page {
  display: block;
  min-width: 0;
  padding: 0 24px 76px;
}
.threat-page .cyber-utility a { color: var(--cyber-muted); text-decoration: none; }
.threat-page .cyber-utility a:hover { color: var(--cyber-cyan); }
.threat-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 22px;
}
.threat-eyebrow,
.threat-kicker {
  margin: 0 0 9px;
  color: var(--cyber-cyan);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.threat-eyebrow { display: flex; align-items: center; gap: 10px; }
.threat-eyebrow > span { width: 15px; height: 2px; background: currentColor; }
.threat-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.threat-heading h1 span { color: var(--cyber-cyan); }
.threat-heading p:last-child { max-width: 730px; margin: 8px 0 0; color: var(--cyber-muted); font-size: .86rem; }
.threat-refresh,
.threat-clear,
.threat-more {
  border: 1px solid #3d6074;
  border-radius: 6px;
  background: #142838;
  color: var(--cyber-ink);
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}
.threat-refresh { flex: 0 0 auto; padding: 11px 15px; }
.threat-refresh > span { margin-right: 6px; color: var(--cyber-cyan); font-size: 1.05rem; }
.threat-refresh:hover,
.threat-clear:hover,
.threat-more:hover { border-color: var(--cyber-cyan); background: #1b3b4b; }
.threat-refresh:disabled { cursor: wait; opacity: .7; }
.threat-source-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 15px 18px;
  border: 1px solid #335367;
  border-left: 3px solid var(--cyber-cyan);
  border-radius: 7px;
  background: #112132;
}
.threat-source-status[data-tone="live"] { border-left-color: var(--cyber-mint); }
.threat-source-status[data-tone="fallback"] { border-left-color: #f1ba70; background: #292319; }
.threat-source-status[data-tone="error"] { border-left-color: #f27183; background: #2a1d28; }
.threat-source-status h2 {
  margin: 0 0 5px;
  color: var(--cyber-subtle);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.threat-source-status p { margin: 0; font-size: .82rem; font-weight: 650; }
.threat-source-status p::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cyber-cyan);
  content: "";
}
.threat-source-status[data-tone="live"] p::before { background: var(--cyber-mint); }
.threat-source-status[data-tone="fallback"] p::before { background: #f1ba70; }
.threat-source-status[data-tone="error"] p::before { background: #f27183; }
.threat-source-dates { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0; }
.threat-source-dates div { min-width: 120px; }
.threat-source-dates dt { color: var(--cyber-subtle); font-size: .61rem; }
.threat-source-dates dd { margin: 3px 0 0; color: var(--cyber-ink); font-size: .74rem; font-weight: 750; }
.threat-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.threat-summary-card {
  min-width: 0;
  min-height: 119px;
  padding: 17px;
  border: 1px solid var(--cyber-line);
  border-radius: 7px;
  background: var(--cyber-surface);
}
.threat-summary-card > span { display: block; color: var(--cyber-muted); font-size: .68rem; }
.threat-summary-card strong {
  display: block;
  margin: 7px 0 3px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.threat-summary-card:nth-child(2) strong { color: var(--cyber-cyan); }
.threat-summary-card:nth-child(3) strong { font-size: clamp(1rem, 1.5vw, 1.45rem); }
.threat-summary-card small { color: var(--cyber-subtle); font-size: .62rem; }
.threat-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 16px;
  align-items: start;
}
.threat-queue,
.threat-context {
  min-width: 0;
  border: 1px solid var(--cyber-line);
  border-radius: 8px;
  background: #0f1927;
}
.threat-queue { padding: 20px; }
.threat-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 17px;
}
.threat-section-heading h2,
.threat-context h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.threat-section-heading > p {
  margin: 0 0 2px;
  color: var(--cyber-muted);
  font-size: .7rem;
  text-align: right;
}
.threat-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 150px) minmax(120px, 150px) auto;
  gap: 9px;
  align-items: end;
  padding: 13px;
  border: 1px solid var(--cyber-line-soft);
  border-radius: 6px;
  background: #111e2e;
}
.threat-field { min-width: 0; }
.threat-field label { display: block; margin-bottom: 6px; color: var(--cyber-muted); font-size: .65rem; font-weight: 750; }
.threat-field :is(input, select) {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #34465d;
  border-radius: 5px;
  background: #0b1421;
  color: var(--cyber-ink);
  font: inherit;
  font-size: .75rem;
}
.threat-field input::placeholder { color: #75879d; }
.threat-field :is(input, select):focus-visible {
  border-color: var(--cyber-cyan);
  outline: 2px solid var(--cyber-cyan);
  outline-offset: 2px;
}
.threat-clear { min-height: 39px; padding: 8px 11px; white-space: nowrap; }
.threat-queue-note { margin: 13px 0 17px; color: var(--cyber-subtle); font-size: .7rem; }
.threat-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.threat-results li { min-width: 0; }
.threat-record {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(0, 2fr) minmax(90px, .7fr);
  gap: 12px 18px;
  padding: 15px;
  border: 1px solid var(--cyber-line);
  border-radius: 6px;
  background: #142134;
}
.threat-record:hover { border-color: #3a6580; }
.threat-record > div { min-width: 0; }
.threat-field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--cyber-subtle);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.threat-record-id {
  color: var(--cyber-cyan);
  font-size: .9rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.threat-record h3 { margin: 0; font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere; }
.threat-record p { margin: 5px 0 0; color: var(--cyber-muted); font-size: .72rem; line-height: 1.42; }
.threat-record time { color: var(--cyber-ink); font-size: .76rem; font-weight: 750; }
.threat-record-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 9px; border-top: 1px solid #2b3b50; }
.threat-record-links a { color: var(--cyber-cyan); font-size: .7rem; font-weight: 750; text-decoration: none; }
.threat-record-links a:hover { color: #fff; text-decoration: underline; }
.threat-more { display: block; margin: 17px auto 0; padding: 10px 17px; }
.threat-more[hidden], .threat-empty[hidden] { display: none; }
.threat-empty { padding: 32px 18px; border: 1px dashed #456078; border-radius: 6px; text-align: center; }
.threat-empty h3 { margin: 0 0 7px; font-size: 1rem; }
.threat-empty p { margin: 0 auto 12px; max-width: 410px; color: var(--cyber-muted); font-size: .78rem; }
.threat-empty a { color: var(--cyber-cyan); font-size: .75rem; font-weight: 750; }
.threat-context { padding: 20px; }
.threat-context > p:not(.threat-kicker) { margin: 12px 0 0; color: var(--cyber-muted); font-size: .75rem; }
.threat-context-links { display: grid; gap: 0; margin-top: 17px; border-top: 1px solid var(--cyber-line); }
.threat-context-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cyber-line);
  color: var(--cyber-cyan);
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
}
.threat-context-links a:hover { color: #fff; }
.threat-method { margin-top: 20px; padding: 13px; border: 1px solid #2e4c58; border-radius: 5px; background: #112331; }
.threat-method h3 { margin: 0 0 5px; color: var(--cyber-mint); font-size: .7rem; }
.threat-method p { margin: 0; color: var(--cyber-muted); font-size: .69rem; }
@media (max-width: 1350px) {
  .threat-workspace { grid-template-columns: 1fr; }
  .threat-context { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .threat-context .threat-kicker,
  .threat-context h2,
  .threat-context-links,
  .threat-method { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .threat-filters { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(115px, .5fr)); }
  .threat-clear { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 960px) {
  .threat-page { padding: 0 16px 58px; }
  .threat-workspace { grid-template-columns: 1fr; }
  .threat-filters { grid-template-columns: minmax(200px, 1fr) minmax(120px, .5fr) minmax(120px, .5fr) auto; }
  .threat-clear { grid-column: auto; }
}
@media (max-width: 720px) {
  .threat-heading { align-items: start; flex-direction: column; gap: 13px; padding: 23px 0 17px; }
  .threat-refresh { align-self: flex-start; }
  .threat-source-status { align-items: start; flex-direction: column; }
  .threat-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .threat-summary-card:last-child { grid-column: 1 / -1; }
  .threat-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .threat-search-field { grid-column: 1 / -1; }
  .threat-clear { grid-column: 1 / -1; }
  .threat-record { grid-template-columns: minmax(0, 1fr) auto; }
  .threat-record-target { grid-column: 1 / -1; grid-row: 2; }
  .threat-context { display: block; }
}
@media (max-width: 440px) {
  .threat-heading h1 { font-size: 2rem; }
  .threat-heading p:last-child { font-size: .78rem; }
  .threat-summary-card { padding: 13px; min-height: 111px; }
  .threat-summary-card strong { font-size: 1.45rem; }
  .threat-summary-card:nth-child(3) strong { font-size: 1.35rem; }
  .threat-queue, .threat-context { padding: 15px; }
  .threat-section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .threat-section-heading > p { text-align: left; }
  .threat-filters { grid-template-columns: 1fr; }
  .threat-search-field, .threat-clear { grid-column: auto; }
  .threat-record { grid-template-columns: 1fr; padding: 13px; }
  .threat-record-target { grid-column: auto; grid-row: auto; }
  .threat-record-links { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .threat-refresh, .threat-more { scroll-behavior: auto; }
}
