:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #657188;
  --soft: #8c97aa;
  --line: #dce3ec;
  --panel: rgba(255, 255, 255, 0.92);
  --page: #f3f6fa;
  --navy: #0b1220;
  --blue: #2463eb;
  --cyan: #0e9fbc;
  --green: #059669;
  --amber: #c66b04;
  --red: #d14343;
  --violet: #7c3aed;
  --shadow: 0 18px 50px rgba(27, 39, 61, 0.08), 0 2px 8px rgba(27, 39, 61, 0.04);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf3fb 0, var(--page) 280px, #f7f8fa 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.page-glow-a {
  top: -180px;
  left: -140px;
  background: #5fa4ff;
}

.page-glow-b {
  top: 80px;
  right: -220px;
  background: #8b5cf6;
}

.shell {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding-block: 28px 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, #0b1220, #24324a);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.22);
  font-size: 26px;
  font-weight: 900;
}

.eyebrow,
.section-index,
.card-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-block h1 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.version-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 8px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  letter-spacing: 0.06em;
}

.status-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.status-chip,
.model-badge,
.muted-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #526078;
  border: 1px solid rgba(165, 178, 197, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-chip strong {
  margin-left: 5px;
  color: #334155;
}

.status-chip.online {
  color: #047857;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

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

.button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 99, 235, 0.22);
  outline-offset: 2px;
}

.button-ghost {
  color: #43516a;
  border-color: #d4dce8;
  background: rgba(255, 255, 255, 0.72);
}

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 25px rgba(11, 18, 32, 0.18);
}

main {
  display: grid;
  gap: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-card,
.panel {
  border: 1px solid rgba(204, 214, 227, 0.76);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  min-height: 236px;
  padding: 24px;
  border-radius: 22px;
}

.hero-card-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 90% 5%, rgba(80, 139, 255, 0.35), transparent 35%),
    linear-gradient(140deg, #0b1220, #17233a 72%, #1e3a5f);
}

.hero-card-primary .card-kicker,
.hero-card-primary .card-caption,
.hero-card-primary .hero-subline {
  color: rgba(226, 232, 240, 0.72);
}

.hero-card-primary .hero-subline strong {
  color: #fff;
}

.hero-number {
  margin: 14px 0 12px;
  font-size: clamp(34px, 3.2vw, 54px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.hero-subline,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.hero-subline {
  flex-wrap: wrap;
}

.metric-row {
  margin-top: 9px;
  color: var(--muted);
}

.metric-row strong {
  color: #29364b;
}

.progress-track {
  height: 5px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  width: 51.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
}

.card-caption {
  margin-top: 16px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
}

.panel {
  padding: 28px;
  border-radius: var(--radius);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 2px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.model-badge {
  color: #5b21b6;
  border-color: #ddd0ff;
  background: #f5f0ff;
}

.muted-badge {
  color: #667085;
  background: #f8fafc;
}

.assumption-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.25fr);
  gap: 12px;
}

.field-card {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.field-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field-card input[type="number"],
.field-card input[type="date"] {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #172033;
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 850;
  outline: none;
}

.input-suffix,
.input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-suffix b,
.input-prefix b {
  color: #718096;
  font-size: 13px;
}

.switch-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.switch-card strong,
.switch-card small {
  display: block;
}

.switch-card strong {
  color: #243044;
  font-size: 12px;
}

.switch-card small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.35;
}

.switch-card input {
  width: 44px;
  height: 24px;
  accent-color: var(--blue);
}

.model-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.summary-tile {
  padding: 15px 17px;
  border-radius: 14px;
  background: #eef3f9;
}

.summary-tile span,
.summary-tile strong {
  display: block;
}

.summary-tile span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.summary-tile strong {
  margin-top: 4px;
  color: #172033;
  font-size: 19px;
}

.model-note {
  margin-top: 14px;
  padding: 12px 15px;
  color: #59451f;
  border: 1px solid #f3dfaa;
  border-radius: 13px;
  background: #fff9e9;
  font-size: 11px;
  font-weight: 650;
}

.daily-nav-panel {
  overflow: hidden;
}

.daily-nav-heading {
  align-items: center;
}

.daily-nav-status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  padding: 7px 13px;
  color: #5f6c80;
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  white-space: nowrap;
}

.daily-nav-status.is-live {
  color: #047857;
  border-color: #bee9d8;
  background: #ecfbf5;
}

.daily-nav-status.is-partial,
.daily-nav-status.is-stale {
  color: #8a550d;
  border-color: #f0dba8;
  background: #fff8e9;
}

.daily-nav-status.is-error {
  color: #9d3535;
  border-color: #edc8c8;
  background: #fff3f3;
}

.daily-nav-disclaimer {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px 16px;
  color: #654d1d;
  border: 1px solid #edd9a3;
  border-radius: 15px;
  background: #fff9e9;
}

.daily-nav-disclaimer > span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #b77312;
  font-size: 12px;
  font-weight: 900;
}

.daily-nav-disclaimer strong,
.daily-nav-disclaimer p {
  display: block;
}

.daily-nav-disclaimer strong {
  font-size: 12px;
}

.daily-nav-disclaimer p {
  margin: 3px 0 0;
  color: #7b6740;
  font-size: 10px;
}

.daily-nav-cards {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.daily-nav-card {
  min-width: 0;
  min-height: 126px;
  padding: 17px;
  border: 1px solid #e0e6ee;
  border-radius: 16px;
  background: #f8fafc;
}

.daily-nav-card > span,
.daily-nav-card > strong,
.daily-nav-card > small {
  display: block;
}

.daily-nav-card > span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .03em;
}

.daily-nav-card > strong {
  margin-top: 9px;
  overflow: hidden;
  color: #1f2b3e;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-nav-card > small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.daily-nav-card-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 94% 2%, rgba(56, 189, 248, .26), transparent 42%),
    linear-gradient(145deg, #0b1220, #1b2942);
}

.daily-nav-card-primary > span,
.daily-nav-card-primary > small {
  color: #aebbd0;
}

.daily-nav-card-primary > strong {
  color: #fff;
  font-size: clamp(26px, 2.8vw, 40px);
}

.daily-nav-quality {
  display: inline-flex !important;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  color: #59667b !important;
  border-radius: 999px;
  background: #e9eef5;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.daily-nav-quality.is-good {
  color: #047857 !important;
  background: #e4f8ef;
}

.daily-nav-quality.is-warning {
  color: #8a550d !important;
  background: #fff0cf;
}

.daily-nav-quality.is-error {
  color: #9d3535 !important;
  background: #ffe6e6;
}

.daily-nav-card > strong.is-positive,
.daily-nav-table td.is-positive {
  color: #047857;
}

.daily-nav-card > strong.is-negative,
.daily-nav-table td.is-negative {
  color: #b23a3a;
}

.daily-nav-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
  gap: 14px;
  margin-top: 14px;
}

.daily-nav-table-block,
.daily-nav-sources {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e0e6ee;
  border-radius: 16px;
  background: #fbfcfd;
}

.daily-nav-subheading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.daily-nav-subheading strong,
.daily-nav-subheading small {
  display: block;
}

.daily-nav-subheading strong {
  color: #263247;
  font-size: 12px;
}

.daily-nav-subheading small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 9px;
}

.daily-nav-subheading > span {
  color: #607087;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.daily-nav-table-scroll {
  background: #fff;
}

.daily-nav-table {
  min-width: 680px;
}

.daily-nav-loading-row td {
  padding-block: 28px;
  color: var(--soft);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}

.daily-nav-source-grid {
  display: grid;
  gap: 7px;
}

.daily-nav-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
  background: #fff;
}

.daily-nav-source-row strong,
.daily-nav-source-row small,
.daily-nav-source-row span {
  display: block;
}

.daily-nav-source-row strong {
  color: #2a3548;
  font-size: 10px;
}

.daily-nav-source-row small {
  margin-top: 1px;
  color: var(--soft);
  font-size: 8px;
}

.daily-nav-source-row > span {
  color: #526078;
  font-size: 9px;
  font-weight: 850;
  text-align: right;
}

.daily-nav-source-row > span.is-good {
  color: #047857;
}

.daily-nav-source-row > span.is-warning {
  color: #8a550d;
}

.daily-nav-source-row > span.is-error {
  color: #9d3535;
}

.daily-nav-source-placeholder {
  min-height: 96px;
  padding: 32px 14px;
  color: var(--soft);
  border: 1px dashed #d8e0ea;
  border-radius: 12px;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.daily-nav-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  color: #164e63;
  border: 1px solid #c5e5ec;
  border-radius: 14px;
  background: #eefbfe;
}

.daily-nav-note strong {
  flex: 0 0 auto;
  font-size: 11px;
}

.daily-nav-note p {
  margin: 0;
  color: #4f7180;
  font-size: 10px;
  text-align: right;
}

.allocation-ratio {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.allocation-ratio strong {
  color: #172033;
  font-size: 22px;
}

.allocation-ratio i {
  width: 1px;
  height: 24px;
  margin-inline: 5px;
  background: var(--line);
}

.allocation-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.allocation-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.donut {
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background: conic-gradient(#2463eb 0 38.24%, #0e9fbc 38.24% 61.18%, #7c3aed 61.18% 76.47%, #d18a24 76.47% 88.24%, #5b6b7f 88.24% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 20px 35px rgba(48, 64, 94, 0.12);
}

.donut::before {
  grid-area: 1 / 1;
  width: 126px;
  height: 126px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7ecf3;
}

.donut-center {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.donut-center strong,
.donut-center span {
  display: block;
}

.donut-center strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.donut-center span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.legend {
  display: grid;
  width: 100%;
  gap: 6px;
}

.legend-item {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #526078;
  font-size: 10px;
  font-weight: 750;
}

.legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-item b {
  color: #263247;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid #e7ebf1;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #6b778c;
  background: #f5f7fa;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td.numeric,
th.numeric {
  text-align: right;
  white-space: nowrap;
}

.asset-name {
  color: #1c273a;
  font-weight: 900;
}

.asset-role {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  padding: 4px 8px;
  color: #047857;
  border-radius: 999px;
  background: #e9f9f2;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.warning {
  color: #9a5b05;
  background: #fff4db;
}

.route-banner {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 18px;
  color: #163d72;
  border: 1px solid #cfe0f6;
  border-radius: 16px;
  background: #eef6ff;
}

.route-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 10px;
  background: var(--blue);
  font-weight: 900;
}

.route-banner strong {
  font-size: 12px;
}

.route-banner p {
  margin: 3px 0 0;
  color: #567090;
  font-size: 11px;
}

.market-panel {
  overflow: hidden;
}

.market-heading {
  align-items: center;
}

.market-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.market-data-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  color: #5f6c80;
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.market-data-status.is-live {
  color: #047857;
  border-color: #bee9d8;
  background: #ecfbf5;
}

.market-data-status.is-stale,
.market-data-status.is-partial {
  color: #8a550d;
  border-color: #f0dba8;
  background: #fff8e9;
}

.market-data-status.is-error {
  color: #9d3535;
  border-color: #edc8c8;
  background: #fff3f3;
}

.market-refresh {
  min-height: 44px;
}

.market-refresh:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.market-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
}

.market-thermometer {
  min-width: 0;
  padding: 22px;
  color: #fff;
  border-radius: 19px;
  background:
    radial-gradient(circle at 92% 2%, rgba(56, 189, 248, .25), transparent 42%),
    linear-gradient(145deg, #0b1220, #1b2942);
}

.market-temperature-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.market-temperature-heading span {
  color: #aab7ca;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
}

.market-temperature-heading strong {
  font-size: 28px;
  letter-spacing: -.04em;
}

.temperature-track {
  position: relative;
  height: 12px;
  margin-top: 20px;
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: linear-gradient(90deg, #c93c4f 0 25%, #d97706 25% 50%, #d6ad27 50% 70%, #10a879 70% 100%);
}

.temperature-track i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 24px;
  border: 2px solid #0b1220;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .32);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: left 240ms ease, opacity 160ms ease;
}

.temperature-track i.is-visible {
  opacity: 1;
}

.temperature-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  color: #8796ad;
  font-size: 8px;
  font-weight: 750;
}

.temperature-scale span:nth-child(2),
.temperature-scale span:nth-child(3) {
  text-align: center;
}

.temperature-scale span:last-child {
  text-align: right;
}

.market-thermometer p {
  margin: 18px 0 0;
  color: #c3cfdf;
  font-size: 10px;
}

.market-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-summary-item {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid #e0e6ee;
  border-radius: 16px;
  background: #f8fafc;
}

.market-summary-item span,
.market-summary-item small,
.market-summary-item strong {
  display: block;
}

.market-summary-item span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 850;
}

.market-summary-item strong {
  margin-top: 4px;
  color: #1f2b3e;
  font-size: 21px;
}

.market-summary-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.market-breadth {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.breadth-chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  color: #5b6678;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fbfcfd;
  font-size: 9px;
  font-weight: 800;
}

.breadth-chip strong {
  color: #263247;
  font-size: 12px;
}

.market-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.market-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #fff;
}

.market-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: #a9b4c4;
}

.market-card.signal-normal::before { background: #10a879; }
.market-card.signal-ma60::before { background: #d6ad27; }
.market-card.signal-ma200::before { background: #d97706; }
.market-card.signal-dd8::before { background: #df684f; }
.market-card.signal-dd15::before { background: #c93c4f; }
.market-card.is-unavailable::before { background: #a9b4c4; }

.market-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.market-card-name strong,
.market-card-name small {
  display: block;
}

.market-card-name strong {
  color: #182438;
  font-size: 14px;
}

.market-card-name small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 9px;
}

.market-weight {
  flex: 0 0 auto;
  color: #50617b;
  font-size: 10px;
  font-weight: 850;
}

.market-signal {
  display: inline-flex;
  margin-top: 13px;
  padding: 5px 8px;
  color: #445168;
  border-radius: 999px;
  background: #edf1f5;
  font-size: 9px;
  font-weight: 900;
}

.signal-normal .market-signal { color: #057554; background: #e9f9f2; }
.signal-ma60 .market-signal { color: #806711; background: #fff8d9; }
.signal-ma200 .market-signal { color: #8a550d; background: #fff1d6; }
.signal-dd8 .market-signal,
.signal-dd15 .market-signal { color: #9d3535; background: #ffe8e8; }

.market-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.market-card-metric {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: #f6f8fb;
}

.market-card-metric span,
.market-card-metric strong {
  display: block;
}

.market-card-metric span {
  color: var(--soft);
  font-size: 8px;
  font-weight: 800;
}

.market-card-metric strong {
  margin-top: 2px;
  overflow: hidden;
  color: #2a3548;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card-meta,
.market-card-note {
  margin: 11px 0 0;
  color: #7a8597;
  font-size: 8px;
  line-height: 1.45;
}

.market-card-note {
  padding: 8px 9px;
  color: #82500b;
  border: 1px solid #f0dda9;
  border-radius: 9px;
  background: #fff9e9;
  font-weight: 750;
}

.market-sop {
  margin-top: 14px;
  padding: 16px 18px;
  color: #354157;
  border: 1px solid #d6e1f0;
  border-radius: 15px;
  background: #f1f6fd;
}

.market-sop strong,
.market-sop span {
  display: block;
}

.market-sop strong {
  font-size: 11px;
}

.market-sop span {
  margin-top: 4px;
  color: #607087;
  font-size: 10px;
}

.market-source-note {
  margin: 11px 2px 0;
  color: var(--soft);
  font-size: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capital-stack {
  display: grid;
  gap: 11px;
}

.stack-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: center;
}

.stack-row > span {
  color: #526078;
  font-size: 11px;
  font-weight: 750;
}

.stack-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.stack-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.stack-row strong {
  min-width: 82px;
  text-align: right;
  font-size: 12px;
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.mini-kpis > div {
  padding: 13px;
  border-radius: 13px;
  background: #f5f7fa;
}

.mini-kpis span,
.mini-kpis strong {
  display: block;
}

.mini-kpis span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 800;
}

.mini-kpis strong {
  margin-top: 4px;
  color: #263247;
  font-size: 14px;
}

.asset-list {
  display: grid;
  gap: 8px;
}

.asset-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid #e4e9f0;
  border-radius: 13px;
  background: #fbfcfd;
}

.asset-list-row strong,
.asset-list-row small {
  display: block;
}

.asset-list-row strong {
  font-size: 12px;
}

.asset-list-row small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 9px;
}

.asset-list-row b {
  align-self: center;
  font-size: 13px;
}

.inline-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #354157;
  font-size: 12px;
  font-weight: 850;
}

.cashflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 24px;
}

.cash-source-list {
  display: grid;
  gap: 8px;
}

.cash-source {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #e7ebf1;
  color: #566176;
  font-size: 11px;
}

.cash-source strong {
  color: #263247;
}

.cash-source.total {
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: #17233a;
}

.cash-source.total strong {
  color: #fff;
}

.coverage-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coverage-card {
  min-height: 156px;
  padding: 16px;
  border-radius: 16px;
}

.coverage-card span,
.coverage-card strong,
.coverage-card small {
  display: block;
}

.coverage-card span {
  min-height: 40px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.coverage-card strong {
  margin: 12px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.coverage-card small {
  font-size: 9px;
  line-height: 1.4;
}

.coverage-card.safe {
  color: #12624b;
  background: #eaf8f2;
}

.coverage-card.caution {
  color: #86520d;
  background: #fff5df;
}

.coverage-card.danger {
  color: #9d3535;
  background: #fff0f0;
}

.scenario-list {
  display: grid;
  gap: 10px;
}

.scenario-row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 14px;
  align-items: center;
}

.scenario-label strong,
.scenario-label small {
  display: block;
}

.scenario-label strong {
  font-size: 12px;
}

.scenario-label small {
  color: var(--soft);
  font-size: 9px;
}

.scenario-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.scenario-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.scenario-number {
  min-width: 104px;
  text-align: right;
}

.scenario-number strong,
.scenario-number small {
  display: block;
}

.scenario-number strong {
  font-size: 12px;
}

.scenario-number small {
  color: var(--soft);
  font-size: 9px;
}

.guardrail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guardrail-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e8ecf2;
}

.guardrail-list li:last-child {
  border: 0;
}

.guardrail-list li > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.guardrail-list strong {
  font-size: 12px;
}

.guardrail-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.todo-item {
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfd;
}

.todo-item > span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 3px 7px;
  color: #5b6678;
  border-radius: 999px;
  background: #edf1f5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.todo-item.priority {
  border-color: #efc6c6;
  background: #fff8f8;
}

.todo-item.priority > span {
  color: #a62e2e;
  background: #ffe4e4;
}

.todo-item strong {
  display: block;
  font-size: 12px;
}

.todo-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.disclosure {
  padding: 20px 24px;
  color: #5e6674;
  border: 1px solid #d9dee6;
  border-radius: 18px;
  background: rgba(249, 250, 252, 0.85);
  font-size: 10px;
}

.disclosure strong {
  color: #303b4e;
}

.disclosure p {
  margin: 5px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px 36px;
  color: #8490a2;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.private-mode .private-value {
  filter: blur(9px);
  user-select: none;
}

.private-mode .hero-card-primary .private-value {
  opacity: 0.8;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

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

  .assumption-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .switch-card {
    grid-column: span 2;
  }

  .cashflow-grid {
    grid-template-columns: 1fr;
  }

  .market-overview {
    grid-template-columns: 1fr;
  }

  .daily-nav-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-nav-card-primary {
    grid-column: span 2;
  }

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

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 18px;
  }

  .status-cluster {
    justify-content: flex-start;
  }

  .header-actions {
    grid-column: auto;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 210px;
  }

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

  .switch-card {
    grid-column: 1 / -1;
  }

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

  .allocation-visual {
    grid-template-columns: auto minmax(150px, 220px);
    justify-content: center;
  }

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

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

  .daily-nav-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 520px);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand-block h1 {
    font-size: 19px;
  }

  .status-chip:nth-child(4) {
    display: none;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(4, max-content);
  }

  .button {
    padding-inline: 11px;
    font-size: 11px;
  }

  main {
    gap: 14px;
  }

  .hero-grid {
    gap: 10px;
  }

  .hero-card,
  .panel {
    padding: 20px;
    border-radius: 19px;
  }

  .hero-card {
    min-height: 194px;
  }

  .hero-number {
    font-size: 42px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .market-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-nav-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-nav-heading .daily-nav-status {
    width: max-content;
    max-width: 100%;
    align-self: flex-start;
  }

  .market-toolbar {
    justify-content: space-between;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .model-badge,
  .muted-badge,
  .allocation-ratio {
    display: none;
  }

  .assumption-grid,
  .model-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .field-card {
    min-height: 74px;
    padding: 12px;
  }

  .switch-card {
    grid-column: 1 / -1;
  }

  .summary-tile {
    padding: 12px;
  }

  .summary-tile strong {
    font-size: 16px;
  }

  .allocation-visual {
    grid-template-columns: 1fr;
  }

  .legend {
    width: min(100%, 280px);
  }

  .table-scroll {
    margin-inline: -20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  th,
  td {
    padding: 12px 10px;
  }

  .mini-kpis {
    grid-template-columns: 1fr;
  }

  .coverage-stack {
    grid-template-columns: 1fr;
  }

  .market-summary,
  .market-breadth,
  .market-card-grid {
    grid-template-columns: 1fr;
  }

  .daily-nav-cards {
    grid-template-columns: 1fr 1fr;
  }

  .daily-nav-card,
  .daily-nav-card-primary {
    min-height: 112px;
  }

  .daily-nav-card-primary {
    grid-column: 1 / -1;
  }

  .daily-nav-table-block,
  .daily-nav-sources {
    padding: 14px;
  }

  .daily-nav-table-scroll {
    margin-inline: -14px;
  }

  .daily-nav-subheading {
    flex-direction: column;
  }

  .daily-nav-note {
    display: block;
  }

  .daily-nav-note p {
    margin-top: 4px;
    text-align: left;
  }

  .market-thermometer {
    padding: 18px;
  }

  .coverage-card {
    min-height: auto;
  }

  .coverage-card span {
    min-height: auto;
  }

  .coverage-card strong {
    margin-block: 8px 4px;
  }

  .scenario-row {
    grid-template-columns: 105px 1fr;
  }

  .scenario-number {
    grid-column: 1 / -1;
    text-align: left;
  }

  .todo-grid {
    grid-template-columns: 1fr;
  }

  .todo-item {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
