html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef1f5;
  color: #1f2937;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #d7dde6;
  padding: 12px 24px 10px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #0f766e;
}

.topbar-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #4b5563;
  word-break: break-all;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav a:hover {
  text-decoration: none;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trend-subnav {
  gap: 8px;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.subnav a.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.18);
}

.subnav a:hover {
  text-decoration: none;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.subnav a.active:hover {
  background: #0f766e;
  border-color: #0f766e;
}

.page {
  padding: 16px 24px 20px;
}

.site-footer {
  border-top: 1px solid #d7dde6;
  background: #ffffff;
  margin-top: 24px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px 18px;
  color: #4b5563;
  font-size: 13px;
}

.site-footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.static-page {
  max-width: 960px;
  margin: 0 auto;
}

.static-page-header {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  margin-bottom: 14px;
}

.static-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.static-page-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.static-intro {
  margin: 12px 0 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.static-updated {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.static-sections {
  display: grid;
  gap: 12px;
}

.static-section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.static-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.static-section p,
.static-section li {
  color: #374151;
  line-height: 1.7;
}

.static-section ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ops-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ops-status strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.ops-date {
  display: block;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.ops-actions a:hover {
  text-decoration: none;
  border-color: #0f766e;
}

.ops-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ops-summary article {
  min-height: 70px;
  padding: 12px 14px;
  border-left: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.ops-summary article:first-child {
  border-left: 0;
}

.ops-summary span {
  display: block;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(420px, 2.3fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.ops-main {
  display: grid;
  gap: 12px;
}

.ops-panel {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  min-width: 0;
  overflow: hidden;
}

.ops-panel-header {
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ops-panel-header.compact {
  border-top: 1px solid #e5e7eb;
}

.ops-panel-header h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ops-panel-header span,
.ops-panel-header a {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.incident-feed,
.attention-stack,
.report-list,
.regional-list,
.severity-bars {
  padding: 8px 12px;
}

.incident-feed-item,
.attention-item,
.report-list a,
.regional-list div {
  display: block;
  padding: 11px 2px;
  border-top: 1px solid #e5e7eb;
  color: #111827;
}

.incident-feed-item:first-child,
.attention-item:first-child,
.report-list a:first-child,
.regional-list div:first-child {
  border-top: 0;
}

.incident-feed-item:hover,
.attention-item:hover,
.report-list a:hover {
  text-decoration: none;
}

.incident-time {
  display: block;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.incident-feed-item strong,
.attention-item strong,
.report-list strong,
.regional-list strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.incident-feed-item small,
.attention-item span,
.report-list span,
.regional-list span {
  display: block;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.incident-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.dashboard-map {
  min-height: 380px;
  width: 100%;
  background: #e5e7eb;
}

.trend-panel {
  min-height: 132px;
}

.trend-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #e5e7eb;
}

.trend-snapshot-grid div {
  background: #ffffff;
  padding: 16px 14px;
  min-height: 76px;
}

.trend-snapshot-grid span {
  display: block;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.trend-snapshot-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.ops-panel-divider {
  height: 8px;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.empty-state {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 2px;
}

.ops-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.severity-row {
  display: grid;
  grid-template-columns: 86px minmax(90px, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.severity-row:first-child {
  border-top: 0;
}

.severity-track {
  height: 9px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.severity-track span {
  display: block;
  height: 100%;
  background: #0f766e;
}

.severity-row strong {
  text-align: right;
}

.metric,
.panel {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.metric {
  padding: 16px;
}

.metric-label {
  display: block;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 26px;
}

.panel {
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.trend-metric {
  margin-bottom: 0;
}

.trend-hero-panel {
  padding: 18px;
}

.trend-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.trend-kicker {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.trend-scope-line {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
}

.trend-filters {
  min-width: min(100%, 380px);
}

.trend-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.trend-rolling-card,
.trend-signal-card,
.trend-visual-panel {
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.trend-rolling-card .panel-header,
.trend-signal-card .panel-header,
.trend-visual-panel .panel-header {
  margin-bottom: 14px;
}

.trend-rolling-card .panel-header h3,
.trend-signal-card .panel-header h3 {
  margin: 0;
  font-size: 15px;
}

.trend-window-list,
.trend-rank-list {
  display: grid;
  gap: 12px;
}

.trend-window-row,
.trend-rank-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.trend-window-meta,
.trend-rank-head,
.trend-rank-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.trend-window-meta strong,
.trend-rank-head strong {
  font-size: 14px;
}

.trend-window-bars {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.trend-compare-bars {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.trend-window-bar {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.trend-compare-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.trend-window-bar span,
.trend-compare-row span,
.trend-rank-meta span,
.trend-signal-grid span,
.trend-window-bar strong {
  font-size: 12px;
}

.trend-compare-row strong {
  font-size: 12px;
  text-align: right;
}

.trend-bar-track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.trend-bar-track.large {
  height: 12px;
  margin-top: 10px;
}

.trend-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.trend-bar-fill.current {
  background: #0f766e;
}

.trend-bar-fill.prior {
  background: #94a3b8;
}

.trend-bar-fill.persistent {
  background: #2563eb;
}

.trend-bar-fill.watch {
  background: #b45309;
}

.trend-bar-fill.month {
  background: #7c3aed;
}

.trend-delta,
.trend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.trend-delta.up {
  background: #dcfce7;
  color: #166534;
}

.trend-delta.down {
  background: #fee2e2;
  color: #991b1b;
}

.trend-delta.flat,
.trend-pill.neutral {
  background: #e5e7eb;
  color: #374151;
}

.trend-rank-meta {
  margin-top: 10px;
  color: #4b5563;
  flex-wrap: wrap;
}

.trend-rank-list.compact .trend-rank-item {
  padding: 10px 12px;
}

.trend-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trend-signal-grid article {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 12px;
}

.trend-signal-grid article span {
  display: block;
  color: #4b5563;
  font-weight: 700;
}

.trend-signal-grid article strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.trend-signal-grid article small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  line-height: 1.35;
}

.trend-subnav-panel {
  padding-top: 12px;
  padding-bottom: 12px;
}

.trend-overview-grid {
  align-items: start;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.panel-header span,
.panel-header a {
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.filters select,
.filters input,
.filter-actions button,
.filter-actions a {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.filters select,
.filters input {
  padding: 8px 10px;
  background: #ffffff;
}

.checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-actions button,
.filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #0f766e;
  color: #ffffff;
}

.filter-actions a {
  background: #e5e7eb;
  color: #111827;
}

.table-wrap {
  overflow-x: auto;
}

.incident-map {
  width: 100%;
  min-height: 520px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-top: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

thead th {
  border-top: 0;
  color: #4b5563;
  font-weight: 700;
  background: #f8fafc;
}

.subtle {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
}

.summary-cell {
  max-width: 520px;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.late-breaking {
  background: #dbeafe;
  color: #1d4ed8;
}

.severity-high,
.review-needs_followup {
  background: #fee2e2;
  color: #991b1b;
}

.severity-medium,
.review-new {
  background: #fef3c7;
  color: #92400e;
}

.severity-low,
.review-reviewed,
.review-posted {
  background: #dcfce7;
  color: #166534;
}

.review-dismissed {
  background: #e5e7eb;
  color: #374151;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.stack-item:first-child {
  border-top: 0;
}

.detail-list {
  margin: 0;
}

.detail-list div {
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.detail-list div:first-child {
  border-top: 0;
}

.detail-list dt {
  font-size: 12px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}

.detail-list dd {
  margin: 0;
}

.summary-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

.special-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.special-topic-card {
  display: flex;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
}

.special-topic-card:hover {
  text-decoration: none;
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.10);
}

.special-topic-folder {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 36px;
  margin-top: 5px;
  border-radius: 4px;
  background: #0f766e;
}

.special-topic-folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 24px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  background: #0f766e;
}

.special-topic-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.special-topic-content strong {
  color: #0f766e;
  font-size: 18px;
}

.special-topic-content span {
  line-height: 1.45;
}

.special-topic-content small,
.special-topic-meta {
  color: #6b7280;
  line-height: 1.4;
}

.artifact-list {
  padding-left: 18px;
  margin: 0;
  word-break: break-word;
}

.trend-notes {
  margin: 0;
  padding-left: 18px;
}

.trend-notes li + li {
  margin-top: 10px;
}

.report-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

.report-text {
  margin: 14px 0 0;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.auth-shell {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 24px;
}

.auth-card h2 {
  margin: 8px 0 10px;
}

.auth-copy {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.5;
}

.auth-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
}

.auth-success {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.auth-form input,
.auth-form button,
.auth-form textarea {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.auth-form input {
  padding: 8px 10px;
  background: #ffffff;
}

.auth-form textarea {
  padding: 10px;
  background: #ffffff;
  resize: vertical;
}

.auth-form button {
  background: #0f766e;
  color: #ffffff;
  padding: 0 14px;
}

.auth-alt-link {
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 14px;
}

@media (max-width: 720px) {
  .page {
    padding: 16px;
  }

  .topbar {
    padding: 16px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: start;
  }

  .ops-status {
    flex-direction: column;
    align-items: stretch;
  }

  .ops-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-summary article {
    border-top: 1px solid #e5e7eb;
  }

  .ops-summary article:nth-child(-n + 2) {
    border-top: 0;
  }

  .ops-summary article:nth-child(odd) {
    border-left: 0;
  }

  .ops-layout,
  .ops-bottom-grid {
    grid-template-columns: 1fr;
  }

  .trend-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-map {
    min-height: 320px;
  }
}

/* Operations console refresh */
:root { --bg:#f3f6fa; --surface:#fff; --surface-2:#f7f9fc; --ink:#172033; --muted:#64748b; --line:#dce4ee; --accent:#158f89; --accent-soft:#e4f6f3; --shadow:0 14px 34px rgba(24,39,75,.07); }
:root[data-theme="dark"] { --bg:#0c1422; --surface:#121d2d; --surface-2:#182638; --ink:#edf4ff; --muted:#91a1b8; --line:#26374d; --accent:#43c5bb; --accent-soft:#173b3c; --shadow:0 18px 42px rgba(0,0,0,.24); }
html,body { background:var(--bg); color:var(--ink); transition:background .2s ease,color .2s ease; } a { color:var(--accent); }
.topbar,.site-footer,.panel,.metric,.ops-panel,.console-card,.static-page-header,.static-section { background:var(--surface); border-color:var(--line); box-shadow:var(--shadow); }
.topbar { padding:15px 30px; position:sticky; top:0; z-index:20; } .topbar-inner { align-items:center; max-width:1600px; margin:auto; }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; min-width:205px; }.brand:hover{text-decoration:none}.brand strong{display:block;font-size:15px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff;font-size:12px;font-weight:800}
.nav { gap:3px; }.nav a { color:var(--muted); min-height:35px; padding:0 12px; border-radius:9px; font-size:13px; font-weight:700; }.nav a.active,.nav a:hover{color:var(--ink);background:var(--accent-soft);border-color:transparent;text-decoration:none}.topbar-tools{display:flex;align-items:center;gap:10px}.theme-toggle{display:flex;gap:5px;align-items:center;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);border-radius:20px;padding:7px 10px;cursor:pointer}.theme-toggle:hover{color:var(--ink);border-color:var(--accent)}.profile-chip{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:800;text-decoration:none}
.page{max-width:1600px;margin:auto;padding:32px 30px 42px}.site-footer{margin-top:0;border-top:1px solid var(--line);box-shadow:none}.site-footer-inner{max-width:1600px;margin:auto;color:var(--muted);padding:20px 30px}.site-footer-nav{gap:18px}.site-footer-nav a{color:var(--muted)}
.console-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}.console-kicker,.section-label{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.console-heading h1{margin:5px 0 7px;font-size:30px;letter-spacing:-.03em}.console-heading p{margin:0;color:var(--muted)}.window-controls{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--line);padding:4px;border-radius:10px}.window-controls span{font-size:11px;color:var(--muted);font-weight:700;padding:0 8px}.window-controls a{padding:7px 11px;border-radius:7px;color:var(--muted);font-size:12px;font-weight:800}.window-controls a.active,.window-controls a:hover{background:var(--accent);color:#fff;text-decoration:none}
.briefing-strip{display:flex;align-items:center;gap:13px;padding:14px 17px;background:linear-gradient(90deg,var(--accent-soft),var(--surface));border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.briefing-icon{font-size:24px;color:var(--accent)}.briefing-strip strong,.briefing-strip span{display:block}.briefing-strip strong{font-size:14px}.briefing-strip span{color:var(--muted);font-size:12px;margin-top:3px}.briefing-strip a{margin-left:auto;font-size:12px;font-weight:800;white-space:nowrap}
.console-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.console-metrics article{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 17px;box-shadow:var(--shadow)}.console-metrics span,.console-metrics small{display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.console-metrics strong{display:block;font-size:29px;letter-spacing:-.04em;margin:8px 0 3px}.console-metrics small{font-size:11px;text-transform:none;letter-spacing:0;font-weight:500}
.workspace-grid{display:grid;grid-template-columns:285px minmax(420px,1fr) 285px;gap:14px;align-items:stretch;margin-bottom:14px}.console-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;min-width:0}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 17px 13px;border-bottom:1px solid var(--line)}.card-heading h2{font-size:16px;margin:4px 0 0}.card-heading>a,.card-meta{font-size:11px;color:var(--muted);font-weight:700}.feed-tabs{display:flex;gap:15px;padding:10px 15px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);font-weight:700}.feed-tabs .selected{color:var(--accent)}.incident-feed{padding:0 14px}.incident-row{display:flex;align-items:flex-start;gap:9px;padding:13px 2px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}.incident-row:first-child{border-top:0}.incident-row:hover{text-decoration:none}.incident-row-body{flex:1;min-width:0}.incident-row-body strong,.incident-row-body small{display:block}.incident-row-body strong{font-size:12px;line-height:1.35}.incident-row-body small{font-size:10px;color:var(--muted);margin-top:4px}.status-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;margin-top:4px;background:var(--muted)}.severity-dot-high{background:#ef5b63;box-shadow:0 0 0 3px rgba(239,91,99,.13)}.severity-dot-medium{background:#e8ad4d}.severity-dot-low{background:#31b7ad}.badge{border-radius:6px;font-size:9px;min-height:20px;padding:0 6px}.incident-row>.badge{margin-left:auto}.map-workspace{display:flex;flex-direction:column}.dashboard-map{min-height:492px;flex:1;background:#dce5e8}.map-legend{display:flex;align-items:center;gap:14px;padding:10px 15px;color:var(--muted);font-size:11px}.map-legend span{display:flex;align-items:center;gap:5px}.map-legend a{margin-left:auto;font-weight:800}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.legend-dot.high{background:#ef5b63}.legend-dot.medium{background:#e8ad4d}.legend-dot.low{background:#31b7ad}.card-intro{font-size:12px;color:var(--muted);line-height:1.45;padding:13px 17px;margin:0;border-bottom:1px solid var(--line)}.count-bubble{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:11px}.watch-items{padding:4px 15px}.watch-items>a,.topic-list>a,.report-list>a{display:flex;align-items:flex-start;gap:9px;padding:13px 2px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}.watch-items>a:first-child,.topic-list>a:first-child,.report-list>a:first-child{border-top:0}.watch-items strong,.watch-items small,.topic-list strong,.topic-list small,.report-list strong,.report-list small{display:block}.watch-items strong,.topic-list strong,.report-list strong{font-size:12px;line-height:1.35}.watch-items small,.topic-list small,.report-list small{color:var(--muted);font-size:10px;margin-top:4px}.watch-footer{margin:9px 15px 15px;padding-top:12px;border-top:1px solid var(--line)}.watch-footer span{display:block;color:var(--muted);font-size:10px}.watch-footer strong{display:block;margin-top:4px;font-size:13px}.lower-grid{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:14px}.signal-list{padding:8px 16px 14px}.signal-list>div{display:grid;grid-template-columns:65px 1fr 25px;align-items:center;gap:9px;padding:10px 0;border-top:1px solid var(--line)}.signal-list>div:first-child{border-top:0}.signal-track{height:7px;background:var(--surface-2);border-radius:99px;overflow:hidden}.signal-track i{display:block;height:100%;background:var(--accent);border-radius:99px}.signal-list strong{font-size:12px;text-align:right}.topic-list,.report-list{padding:4px 15px}.topic-list>a>b,.report-list>a>b{margin-left:auto;color:var(--muted);font-size:20px;font-weight:400;line-height:1}.topic-icon,.report-type{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:800}.report-type{font-size:9px}
:root[data-theme="dark"] .leaflet-tile{filter:brightness(.72) saturate(.8) hue-rotate(8deg)}:root[data-theme="dark"] .leaflet-container{background:#172536}.leaflet-control-zoom a{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root[data-theme="dark"] .incident-feed-item,:root[data-theme="dark"] .attention-item,:root[data-theme="dark"] .report-list a,:root[data-theme="dark"] .regional-list div,:root[data-theme="dark"] .report-list strong,:root[data-theme="dark"] .topic-list strong,:root[data-theme="dark"] .static-section p,:root[data-theme="dark"] .static-section li{color:var(--ink)}
:root[data-theme="dark"] .subtle,:root[data-theme="dark"] .report-list span,:root[data-theme="dark"] .topic-list small,:root[data-theme="dark"] .report-list small,:root[data-theme="dark"] .topbar-meta,:root[data-theme="dark"] .static-intro,:root[data-theme="dark"] .static-updated{color:var(--muted)}
@media(max-width:1100px){.workspace-grid{grid-template-columns:250px minmax(380px,1fr)}.watch-rail{grid-column:1/-1}.lower-grid{grid-template-columns:1fr 1fr}.lower-grid article:last-child{grid-column:1/-1}} @media(max-width:760px){.topbar{padding:12px 16px}.topbar-inner{flex-wrap:wrap}.brand{min-width:auto}.nav{order:3;width:100%;overflow:auto}.nav a{white-space:nowrap}.page{padding:22px 15px}.console-heading{display:block}.window-controls{margin-top:16px;width:max-content}.briefing-strip{align-items:flex-start;flex-wrap:wrap}.briefing-strip a{margin-left:0}.console-metrics{grid-template-columns:1fr 1fr}.workspace-grid,.lower-grid{grid-template-columns:1fr}.watch-rail,.lower-grid article:last-child{grid-column:auto}.dashboard-map{min-height:370px}}

@media (min-width: 721px) and (max-width: 1180px) {
  .ops-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ops-layout {
    grid-template-columns: 1fr;
  }

  .ops-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dashboard refinement layer */
.ops-status {
  margin-bottom: 10px;
}

.ops-status strong {
  font-size: 21px;
  line-height: 1.1;
}

.ops-actions {
  gap: 8px;
}

.ops-actions a {
  min-height: 34px;
  padding: 0 13px;
  border-color: #c8d1dd;
  color: #334155;
}

.ops-summary {
  margin-bottom: 10px;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ops-summary article {
  min-height: 58px;
  padding: 10px 14px;
  border-left-color: #dbe2ea;
  background: #ffffff;
}

.ops-summary span,
.trend-snapshot-grid span {
  color: #64748b;
  font-size: 11px;
}

.ops-summary strong {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.ops-layout {
  grid-template-columns: minmax(245px, 0.8fr) minmax(520px, 2.15fr) minmax(270px, 0.95fr);
  gap: 10px;
  margin-bottom: 10px;
}

.ops-main {
  gap: 10px;
}

.ops-panel {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(30, 41, 59, 0.05);
}

.ops-panel-header {
  min-height: 40px;
  border-bottom-color: #dfe5ec;
}

.ops-panel-header h2 {
  font-size: 13px;
  color: #1f2937;
}

.incident-feed,
.attention-stack,
.report-list,
.regional-list,
.severity-bars {
  padding: 6px 12px;
}

.incident-feed-item,
.attention-item,
.report-list a,
.regional-list div {
  padding: 10px 2px;
  border-top-color: #edf1f5;
}

.incident-feed-item strong,
.attention-item strong,
.report-list strong,
.regional-list strong {
  color: #1f2937;
}

.incident-feed-item small,
.attention-item span,
.report-list span,
.regional-list span {
  color: #64748b;
}

.dashboard-map {
  min-height: 340px;
  background: #e2e8f0;
}

.trend-panel {
  min-height: 112px;
}

.trend-snapshot-grid {
  background: #dfe5ec;
}

.trend-snapshot-grid div {
  padding: 13px 14px;
  min-height: 66px;
}

.trend-snapshot-grid strong {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
}

.empty-state {
  margin: 0;
  padding: 14px 2px;
  color: #64748b;
}

.ops-bottom-grid {
  gap: 10px;
}

.severity-row {
  padding: 9px 0;
  border-top-color: #edf1f5;
}

.severity-track {
  height: 8px;
  background: #e2e8f0;
}

.ops-panel .subnav a {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .ops-layout,
  .ops-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-map {
    min-height: 310px;
  }
}

/* Compact dashboard pass */
.ops-layout {
  align-items: start;
}

.incident-list-panel,
.attention-panel {
  max-height: 462px;
}

.incident-list-panel {
  max-height: none;
}

.incident-feed,
.attention-stack {
  max-height: 421px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.incident-list-panel .incident-feed {
  max-height: none;
  overflow-y: visible;
}

.incident-feed::-webkit-scrollbar,
.attention-stack::-webkit-scrollbar {
  width: 8px;
}

.incident-feed::-webkit-scrollbar-thumb,
.attention-stack::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.dashboard-map {
  height: 282px;
  min-height: 282px;
  cursor: default;
}

.dashboard-map .leaflet-control-container {
  display: none;
}

.dashboard-map .leaflet-interactive {
  cursor: pointer;
}

.trend-panel {
  min-height: 92px;
}

.trend-snapshot-grid div {
  min-height: 52px;
  padding: 10px 14px;
}

.trend-snapshot-grid strong {
  margin-top: 4px;
  font-size: 21px;
}

.ops-panel-header {
  min-height: 36px;
}

.incident-feed-item,
.attention-item,
.report-list a,
.regional-list div {
  padding: 8px 2px;
}

.ops-bottom-grid .ops-panel {
  min-height: 98px;
}

@media (max-width: 720px) {
  .incident-list-panel,
  .attention-panel {
    max-height: none;
  }

  .incident-feed,
  .attention-stack {
    max-height: 280px;
  }

  .dashboard-map {
    height: 260px;
    min-height: 260px;
  }
}

@media (max-width: 980px) {
  .trend-hero-header,
  .trend-window-meta,
  .trend-rank-head,
  .trend-rank-meta {
    align-items: start;
  }

  .trend-hero-grid,
  .trend-signal-grid {
    grid-template-columns: 1fr;
  }

  .trend-window-bar {
    grid-template-columns: 48px minmax(0, 1fr) 38px;
  }
}

@media (max-width: 720px) {
  .trend-hero-header,
  .trend-window-meta,
  .trend-rank-head,
  .trend-rank-meta {
    flex-direction: column;
  }

  .trend-signal-grid article strong {
    font-size: 22px;
  }

  .trend-window-bar {
    grid-template-columns: 1fr;
  }
}
