:root {
  --ink: #17202a;
  --muted: #607080;
  --line: #d8e0e8;
  --paper: #ffffff;
  --panel: #f6f8fb;
  --blue: #164b7a;
  --blue-2: #0e6f9f;
  --gold: #b68a2d;
  --green: #287d54;
  --red: #b4443e;
  --amber: #a76f12;
  --violet: #5b5aa8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2f6;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: var(--blue-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
}

.topbar {
  background: #102f4a;
  color: #ffffff;
}

.topbar__inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1380px;
  min-height: 68px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: #ffffff;
  border-radius: 6px;
  color: var(--blue);
  display: flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  color: #b8cad9;
  font-size: 12px;
  margin-top: 2px;
}

.source-switch {
  align-items: center;
  display: flex;
  gap: 8px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #e8f2fb;
  font-size: 12px;
  padding: 7px 11px;
}

.pill.active {
  background: #ffffff;
  color: #102f4a;
  font-weight: 700;
}

.page {
  margin: 0 auto;
  max-width: 1380px;
  padding: 22px 24px 32px;
}

.status-row {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  margin-bottom: 16px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 47, 74, 0.05);
}

.metric {
  padding: 15px 16px;
}

.metric__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric__value {
  font-size: 25px;
  font-weight: 800;
  margin-top: 6px;
}

.metric__note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.metric.good .metric__value {
  color: var(--green);
}

.metric.warn .metric__value {
  color: var(--amber);
}

.metric.hawkish .metric__value {
  color: var(--red);
}

.main-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
}

.section {
  padding: 18px;
}

.section-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: -2px 0 16px;
  padding-bottom: 12px;
}

.section-title {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-meta {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.hero-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: 270px minmax(0, 1fr);
}

.gauge {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gauge-ring {
  align-items: center;
  background:
    conic-gradient(from 225deg, #4f8bc9 0deg 76deg, #d6dee6 76deg 117deg, #c8554f 117deg 205deg, transparent 205deg 360deg),
    #ffffff;
  border-radius: 50%;
  display: flex;
  height: 190px;
  justify-content: center;
  position: relative;
  width: 190px;
}

.gauge-ring::after {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 132px;
  position: absolute;
  width: 132px;
}

.gauge-value {
  color: var(--red);
  font-size: 34px;
  font-weight: 850;
  position: relative;
  z-index: 1;
}

.gauge-caption {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.narrative {
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.narrative h1 {
  font-size: 27px;
  line-height: 1.18;
  margin: 0 0 10px;
}

.narrative p {
  color: #394a59;
  margin: 0 0 14px;
  max-width: 760px;
}

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

.tag {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #384b5c;
  font-size: 12px;
  padding: 6px 9px;
}

.chart {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex;
  gap: 8px;
  height: 220px;
  margin-top: 18px;
  padding: 12px 10px 0;
}

.bar {
  background: linear-gradient(180deg, #2a78a6, #8bb7d3);
  border-radius: 4px 4px 0 0;
  flex: 1;
  min-width: 18px;
}

.bar.red {
  background: linear-gradient(180deg, #b4443e, #e0a09c);
}

.bar.gold {
  background: linear-gradient(180deg, #b68a2d, #dfc17b);
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.prob-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px 1fr 42px;
  margin: 12px 0;
}

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

.fill {
  background: var(--blue-2);
  height: 100%;
}

.fill.red {
  background: var(--red);
}

.fill.green {
  background: var(--green);
}

.timeline {
  display: grid;
  gap: 10px;
}

.event {
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

.event strong {
  display: block;
}

.event span {
  color: var(--muted);
  font-size: 12px;
}

.admin-strip {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #ead49d;
  border-radius: 8px;
  color: #5a4210;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 14px;
}

.button {
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
}

.footer {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 1040px) {
  .status-row,
  .main-grid,
  .hero-panel,
  .two-col {
    grid-template-columns: 1fr;
  }

  .source-switch {
    display: none;
  }
}
