.sec-shell { max-width: 1152px; }
.sec-shell a { color: #2453a6; }
.sec-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.sec-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid var(--calc-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 650;
}
.sec-nav a[aria-current="page"] { background: #eaf1ff; border-color: #cbdafa; color: #1d458d; }
.sec-nav a.sec-admin-link,
.sec-nav button.sec-admin-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid #d6dfec;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #415371;
  background: #f8fafd;
  text-decoration: none;
  cursor: pointer;
}
.sec-nav > a.sec-admin-link,
.sec-nav .sec-admin-nav {
  margin-left: auto;
}
.sec-admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sec-nav a.sec-admin-link:hover,
.sec-nav button.sec-admin-link:hover {
  background: #eef4ff;
  border-color: #bdd0f6;
  color: #1d458d;
}
.sec-nav a.sec-admin-link.is-logged-in {
  background: #eaf1ff;
  border-color: #bfd3fa;
  color: #1d458d;
}
.sec-nav button.sec-admin-logout {
  color: #a32236;
  background: #fff8f9;
  border-color: #f0c5cc;
}
.sec-nav button.sec-admin-logout:hover {
  background: #fcecef;
  border-color: #e4a3ae;
  color: #8b1a2b;
}
.sec-filters { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.sec-period {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 20px 0 10px;
}
.sec-period h2, .sec-period p { margin: 0; font-size: 15px; font-weight: 700; }
.sec-source-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sec-period a, .sec-data-link { font-size: 13px; }
.sec-metrics { margin-bottom: 18px; }
.sec-mmf-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sec-table-card h2, .sec-chart-card h2 { margin-bottom: 4px; }
.sec-table-card .suite-hint, .sec-chart-card .suite-hint { margin-top: 0; }
.sec-table-scroll { overflow-x: auto; margin-top: 14px; }
.sec-holdings { width: 100%; min-width: 445px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sec-holdings th, .sec-holdings td { padding: 11px 8px; border-bottom: 1px solid var(--calc-line); }
.sec-holdings thead { background: #f3f6fb; color: #415371; font-size: 12px; }
.sec-holdings th { text-align: left; }
.sec-holdings td, .sec-holdings thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.sec-holdings tbody th { font-weight: 650; font-size: 13px; }
.sec-holdings tbody tr:last-child > * { border-bottom: 0; }
.sec-holdings small { display: block; color: #53647d; font-weight: 450; }
.sec-rise { color: #08714d; }
.sec-fall { color: #a52343; }
.sec-new { color: #2453a6; }
.sec-donut, .sec-line { position: relative; width: 100%; }
.sec-donut { height: 242px; margin: 14px 0; }
.sec-line { height: 350px; margin-top: 12px; }
.sec-legend { list-style: none; padding: 0; margin: 0; }
.sec-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 12px; }
.sec-legend li span:first-child { width: 9px; height: 9px; border-radius: 3px; }
.sec-legend li span:last-child { font-variant-numeric: tabular-nums; color: #415371; }
.sec-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-chart-controls { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sec-chart-controls button { min-height: 38px; padding-inline: 9px; }
.sec-mmf-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.sec-mmf-navigation .suite-hint { flex: 1 1 230px; }
.sec-mmf-navigation-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.sec-mmf-viewport { color: #415371; font-size: 0.83rem; font-variant-numeric: tabular-nums; }
.sec-chart-reset { min-height: 36px; padding: 5px 10px; background: #f3f6fb; color: #2453a6; border: 1px solid #cbdafa; border-radius: 7px; font-size: 0.85rem; font-weight: 650; }
.sec-chart-reset:disabled { opacity: 0.55; cursor: default; }
.sec-chart-interactive canvas { touch-action: pan-y !important; }
.sec-chart-interactive.is-zoomed canvas { cursor: grab; }
.sec-chart-interactive.is-zoomed canvas:active { cursor: grabbing; }
.sec-gesture-touch { display: none; }
@media (pointer: coarse) {
  .sec-gesture-desktop { display: none; }
  .sec-gesture-touch { display: inline; }
  .sec-chart-reset { min-height: 44px; }
}
.sec-mmf-kpi-value { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; }
.sec-mmf-badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}
.sec-mmf-badge[data-state="calm"] { color: #176044; background: #edf7f2; border-color: #cce6d8; }
.sec-mmf-badge[data-state="accelerated"] { color: #8a4b08; background: #fff4df; border-color: #f4dbad; }
.sec-mmf-badge[data-state="spike"] { color: #a32236; background: #fcecef; border-color: #f2cbd2; }
.sec-mmf-reactions { margin-top: 16px; }
.sec-mmf-reactions .suite-hint { margin: 6px 0; }
.sec-mmf-reaction-periods { width: fit-content; max-width: 100%; margin-top: 12px; }
.sec-mmf-reaction-periods button { min-height: 44px; }
.sec-mmf-reactions h3 { margin: 18px 0 6px; font-size: 1rem; }
.sec-mmf-reaction-count { margin: 8px 0; color: #415371; font-size: 0.875rem; font-weight: 700; }
.sec-mmf-reaction-scroll { margin-top: 0; }
.sec-mmf-reaction-table { min-width: 310px; }
.sec-mmf-reaction-table th, .sec-mmf-reaction-table td { padding: 8px 5px; font-size: 0.83rem; }
.sec-mmf-reaction-table thead th { white-space: normal; }
.sec-mmf-reaction-table tbody th { white-space: nowrap; }
.sec-mmf-reaction-growth summary { cursor: pointer; }
.sec-mmf-reaction-growth small { color: #53647d; display: block; line-height: 1.5; margin-top: 3px; }
.sec-mmf-interpretation { margin-top: 16px; }
.sec-mmf-interpretation h2 { margin-bottom: 8px; }
.sec-mmf-interpretation p { margin: 0; color: #465974; }
.sec-mmf-interpretation p + p { margin-top: 3px; }
.sec-data-link { display: inline-block; margin-top: 12px; }
.sec-status { padding: 10px 0; color: #53647d; }
.sec-faq { margin-top: 24px; }
.sec-faq h2 { margin-bottom: 8px; }
.sec-faq details + details { border-top: 1px solid var(--calc-line); }
.sec-faq summary { padding: 12px 2px; cursor: pointer; font-weight: 650; }
.sec-faq details p { margin: 0; padding: 0 2px 14px; color: #465974; }
.sec-shell .suite-footer a { color: #52657f; }
.sec-mmf-sources { display: grid; gap: 3px; }

@media (max-width: 850px) {
  .sec-columns { grid-template-columns: minmax(0, 1fr); }
  .sec-columns .sec-chart-card { grid-row: 1; }
  .sec-legend { display: grid; column-gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .sec-filters, .sec-legend { grid-template-columns: minmax(0, 1fr); }
  .sec-mmf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sec-mmf-metrics > :first-child { grid-column: 1 / -1; }
  .sec-line { height: 260px; }
  .sec-chart-controls { width: 100%; }
  .sec-chart-controls .suite-tabs { flex: 1 0 100%; }
  .sec-chart-controls button { min-height: 42px; }
  .sec-mmf-badge { padding-inline: 6px; }
  .sec-donut { height: 205px; }
  .sec-metrics .suite-stat { padding: 13px 12px; }
  .sec-metrics .suite-stat strong { font-size: 18px; }
}
