:root {
  color-scheme: light;
  --ink: #1a2330;
  --ink-soft: #3e4a57;
  --ink-faint: #5c6774;
  --canvas: #f3f5f7;
  --canvas-deep: #eceff2;
  --panel: #ffffff;
  --panel-raised: #f7f8fa;
  --line: rgba(26, 35, 48, 0.10);
  --line-strong: rgba(26, 35, 48, 0.18);
  --aqua: #0e7a72;
  --aqua-dim: rgba(14, 122, 114, 0.12);
  --gold: #8a5a12;
  --gold-dim: rgba(138, 90, 18, 0.12);
  --coral: #c44732;
  --coral-dim: rgba(196, 71, 50, 0.12);
  --violet: #5b4fd1;
  --violet-dim: rgba(91, 79, 209, 0.12);
  --radius: 16px;
  --shadow: 0 12px 32px rgba(26, 35, 48, 0.08);
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "D2Coding", ui-monospace, monospace;
  --card: #ffffff;
  --well: #eef1f4;
  --notice-error-bg: rgba(196, 71, 50, 0.08);
  --notice-error-border: rgba(196, 71, 50, 0.28);
  --panel-bg: #ffffff;
  --segmented-bg: #eef1f4;
  --segment-active-bg: rgba(14, 122, 114, 0.12);
  --segment-active-ring: rgba(14, 122, 114, 0.22);
  --select-bg: #ffffff;
  --focus-ring: rgba(14, 122, 114, 0.18);
  --refresh-border: rgba(14, 122, 114, 0.32);
  --refresh-bg: rgba(14, 122, 114, 0.10);
  --refresh-hover-bg: rgba(14, 122, 114, 0.16);
  --card-latest-border: rgba(14, 122, 114, 0.28);
  --card-latest-bg: linear-gradient(145deg, rgba(14, 122, 114, 0.10), #ffffff 65%);
  --row-hover: rgba(14, 122, 114, 0.06);
  --missing-bg: rgba(92, 103, 116, 0.10);
  --q-bear-steep: rgba(196, 71, 50, 0.10);
  --q-bear-flat: rgba(196, 71, 50, 0.055);
  --q-bull-steep: rgba(14, 122, 114, 0.10);
  --q-bull-flat: rgba(14, 122, 114, 0.055);
  --q-axis: rgba(26, 35, 48, 0.22);
  --q-label: rgba(26, 35, 48, 0.55);
  --q-label-bear: rgba(196, 71, 50, 0.85);
  --q-label-bull: rgba(14, 122, 114, 0.85);
  --q-dot-halo-fill: rgba(138, 90, 18, 0.14);
  --q-dot-halo-stroke: rgba(138, 90, 18, 0.48);
  --q-dot-stroke: #ffffff;
  --reading-bg: #eef1f4;
  --chart-grid: rgba(26, 35, 48, 0.12);
  --chart-grid-zero: rgba(138, 90, 18, 0.40);
  --chart-hover: rgba(138, 90, 18, 0.65);
  --tooltip-bg: #ffffff;
  --tooltip-shadow: 0 12px 30px rgba(26, 35, 48, 0.14);
  --source-bg: #f7f8fa;
  --session-border: rgba(138, 90, 18, 0.28);
  --session-bg: rgba(138, 90, 18, 0.06);
  --session-icon-border: rgba(138, 90, 18, 0.35);
  --session-compare-bg: #eef1f4;
  --intl-stat-bg: #f7f8fa;
  --selected-row: rgba(14, 122, 114, 0.08);
  --stale-border: rgba(138, 90, 18, 0.40);
  --error-border: rgba(196, 71, 50, 0.42);
  --live-border: rgba(138, 90, 18, 0.32);
  --brand-mark-border: rgba(14, 122, 114, 0.35);
  --brand-mark-bg: rgba(14, 122, 114, 0.08);
  --glow-aqua: rgba(14, 122, 114, 0.08);
  --glow-violet: rgba(91, 79, 209, 0.05);
  --chart-1: #0e7a72;
  --chart-2: #8a5a12;
  --chart-3: #c44732;
  --chart-4: #5b4fd1;
}

.author-mark { color: var(--ink-soft); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.watch-panel { margin: 18px 0; }
.watch-panel .panel-heading { margin-bottom: 16px; }
.watch-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.watch-card { display: flex; flex-direction: column; min-height: 105px; gap: 4px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); }
.watch-card span { color: var(--ink-soft); font-size: 12px; }
.watch-card strong { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 24px); line-height: 1.2; }
.watch-card small { color: var(--ink-faint); font-size: 11px; }
.watch-chart-wrap { overflow-x: auto; margin-top: 15px; }
.watch-chart-wrap svg { display: block; width: 100%; min-width: 650px; height: auto; }
.watch-note { margin: 10px 0 0; color: var(--ink-faint); font-size: 11px; line-height: 1.6; }
.watch-note a, .watch-links a { color: var(--aqua); text-underline-offset: 3px; }
.watch-links { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: baseline; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 11px; }
.watch-links b { color: var(--ink-soft); }
.watch-links span { color: var(--ink-faint); }
.watch-grid { stroke: var(--chart-grid); stroke-width: 1; }
.watch-axis, .watch-row-label { fill: var(--ink-faint); font: 11px var(--mono); }
.watch-row-label { fill: var(--ink-soft); font-weight: 700; }
.watch-yield-line { stroke: var(--chart-1); stroke-width: 3; }
.watch-yield-point { fill: var(--chart-1); stroke: var(--panel); stroke-width: 2; }
.watch-policy-point { fill: var(--chart-2); stroke: var(--panel); stroke-width: 1.5; }
.watch-point-label { fill: var(--ink); font: 11px var(--mono); font-weight: 700; }
@media (max-width: 650px) { .watch-cards { grid-template-columns: 1fr; } .watch-card { min-height: 82px; } }

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8edf2;
  --ink-soft: #a4b0bc;
  --ink-faint: #697785;
  --canvas: #0b1117;
  --canvas-deep: #080d12;
  --panel: #121b24;
  --panel-raised: #17232e;
  --line: rgba(168, 188, 206, 0.14);
  --line-strong: rgba(168, 188, 206, 0.25);
  --aqua: #6fe1d0;
  --aqua-dim: rgba(111, 225, 208, 0.14);
  --gold: #e7bd72;
  --gold-dim: rgba(231, 189, 114, 0.14);
  --coral: #ef8e78;
  --coral-dim: rgba(239, 142, 120, 0.13);
  --violet: #a8a4ff;
  --violet-dim: rgba(168, 164, 255, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  --card: rgba(18, 27, 36, 0.82);
  --well: rgba(5, 9, 13, 0.35);
  --notice-error-bg: rgba(80, 35, 31, 0.22);
  --notice-error-border: rgba(239, 142, 120, 0.3);
  --panel-bg: linear-gradient(145deg, rgba(23, 35, 46, 0.85), rgba(14, 22, 30, 0.88));
  --segmented-bg: rgba(5, 9, 13, 0.35);
  --segment-active-bg: rgba(111, 225, 208, 0.13);
  --segment-active-ring: rgba(111, 225, 208, 0.16);
  --select-bg: rgba(5, 9, 13, 0.44);
  --focus-ring: rgba(111, 225, 208, 0.1);
  --refresh-border: rgba(111, 225, 208, 0.32);
  --refresh-bg: rgba(111, 225, 208, 0.1);
  --refresh-hover-bg: rgba(111, 225, 208, 0.18);
  --card-latest-border: rgba(111, 225, 208, 0.28);
  --card-latest-bg: linear-gradient(145deg, rgba(111, 225, 208, 0.1), rgba(18, 27, 36, 0.8) 65%);
  --row-hover: rgba(111, 225, 208, 0.04);
  --missing-bg: rgba(164, 176, 188, .08);
  --q-bear-steep: rgba(239, 142, 120, 0.08);
  --q-bear-flat: rgba(239, 142, 120, 0.045);
  --q-bull-steep: rgba(111, 225, 208, 0.08);
  --q-bull-flat: rgba(111, 225, 208, 0.045);
  --q-axis: rgba(168, 188, 206, .26);
  --q-label: rgba(232, 237, 242, .52);
  --q-label-bear: rgba(239, 142, 120, .75);
  --q-label-bull: rgba(111, 225, 208, .75);
  --q-dot-halo-fill: rgba(231, 189, 114, .14);
  --q-dot-halo-stroke: rgba(231, 189, 114, .48);
  --q-dot-stroke: #101820;
  --reading-bg: rgba(5, 9, 13, .28);
  --chart-grid: rgba(168, 188, 206, .11);
  --chart-grid-zero: rgba(231, 189, 114, .34);
  --chart-hover: rgba(231, 189, 114, .55);
  --tooltip-bg: rgba(8, 13, 18, .95);
  --tooltip-shadow: 0 12px 30px rgba(0,0,0,.32);
  --source-bg: rgba(5, 9, 13, .22);
  --session-border: rgba(231, 189, 114, .22);
  --session-bg: rgba(231, 189, 114, .045);
  --session-icon-border: rgba(231, 189, 114, .3);
  --session-compare-bg: rgba(5, 9, 13, .22);
  --intl-stat-bg: rgba(5, 9, 13, .2);
  --selected-row: rgba(111, 225, 208, .08);
  --stale-border: rgba(231, 189, 114, .34);
  --error-border: rgba(239, 142, 120, .38);
  --live-border: rgba(231, 189, 114, 0.28);
  --brand-mark-border: rgba(111, 225, 208, 0.35);
  --brand-mark-bg: rgba(111, 225, 208, 0.07);
  --glow-aqua: rgba(111, 225, 208, 0.09);
  --glow-violet: rgba(168, 164, 255, 0.05);
  --chart-1: #6fe1d0;
  --chart-2: #e7bd72;
  --chart-3: #ef8e78;
  --chart-4: #a8a4ff;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas-deep); }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 78% -10%, var(--glow-aqua), transparent 30rem),
    radial-gradient(circle at 10% 28%, var(--glow-violet), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

button, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; }

.topbar {
  width: min(1440px, calc(100% - 56px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 11px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: end;
  gap: 3px;
  padding: 5px 6px;
  border: 1px solid var(--brand-mark-border);
  border-radius: 9px;
  background: var(--brand-mark-bg);
}

.brand-mark i { display: block; width: 4px; border-radius: 3px; background: var(--aqua); }
.brand-mark i:nth-child(1) { height: 10px; opacity: 0.55; }
.brand-mark i:nth-child(2) { height: 15px; opacity: 0.78; }
.brand-mark i:nth-child(3) { height: 19px; }

.topbar-meta { display: flex; align-items: center; gap: 16px; color: var(--ink-faint); font-size: 11px; }

.live-chip, .status-tag, .date-pill, .row-count {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.live-chip { border-color: var(--live-border); color: var(--gold); }
.live-chip i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.fetched-meta { font-family: var(--mono); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--aqua); color: var(--aqua); }
.theme-toggle:focus-visible {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.page-content { width: min(1440px, calc(100% - 56px)); margin: 0 auto; padding: 56px 0 80px; }

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 22px 8px 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 18px; font-size: clamp(34px, 5vw, 66px); font-weight: 420; letter-spacing: -0.075em; line-height: 1.08; }
h1 em { color: var(--aqua); font-style: normal; }
h2 { margin-bottom: 0; font-size: 20px; font-weight: 520; letter-spacing: -0.055em; }

.hero-subtitle { max-width: 550px; margin-bottom: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.hero-status {
  min-width: 240px;
  max-width: 290px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.status-kicker { display: block; margin-bottom: 10px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; }
.hero-status strong { display: block; margin-bottom: 4px; color: var(--gold); font-size: 15px; font-weight: 600; }
.hero-status span:last-child { display: block; color: var(--ink-soft); font-size: 11px; }

.notice-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.notice { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-soft); font-size: 12px; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice.error { border-color: var(--notice-error-border); background: var(--notice-error-bg); }
.notice.error::before { content: "!"; display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--coral-dim); color: var(--coral); font-family: var(--mono); font-weight: 700; }
.notice.info::before { content: "i"; display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--aqua-dim); color: var(--aqua); font-family: var(--mono); font-weight: 700; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-bg); box-shadow: var(--shadow); }

.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 24px; padding: 15px 18px; margin-bottom: 50px; }
.toolbar-group { display: flex; align-items: center; gap: 11px; }
.control-label { color: var(--ink-faint); font-size: 11px; font-weight: 600; white-space: nowrap; }
.segmented { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--segmented-bg); }
.segment { min-height: 30px; padding: 4px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-faint); font-size: 12px; transition: color .18s, background .18s, box-shadow .18s; }
.segment:hover { color: var(--ink); }
.segment.is-active { background: var(--segment-active-bg); box-shadow: 0 0 0 1px var(--segment-active-ring); color: var(--aqua); }
.segment span { margin-left: 5px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.segment.is-active span { color: var(--aqua); opacity: .75; }
.compact .segment { min-width: 46px; padding-inline: 11px; }
.date-group { margin-left: auto; }
.inline-select, #date-select { min-height: 32px; padding: 5px 30px 5px 10px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; background: var(--select-bg); color: var(--ink); font-size: 12px; }
.inline-select:focus, #date-select:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px var(--focus-ring); }
.refresh-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 13px; border: 1px solid var(--refresh-border); border-radius: 8px; background: var(--refresh-bg); color: var(--aqua); font-size: 12px; font-weight: 600; }
.refresh-button:hover { background: var(--refresh-hover-bg); }
.refresh-button:disabled { cursor: wait; opacity: .6; }
.refresh-icon { display: inline-block; font-size: 17px; line-height: 1; }
.refresh-button.is-loading .refresh-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.market-overview { margin-bottom: 32px; }
.section-heading, .panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading { padding: 0 8px 17px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.asof-block { text-align: right; }
.asof-block span, .asof-block small { display: block; color: var(--ink-faint); font-size: 10px; }
.asof-block strong { display: block; margin: 2px 0; color: var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.yield-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.yield-card { min-height: 148px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.yield-card.is-latest { border-color: var(--card-latest-border); background: var(--card-latest-bg); }
.yield-card-header { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); }
.yield-tenor { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.yield-name { color: var(--ink-faint); font-size: 11px; }
.yield-value { margin: 16px 0 4px; color: var(--ink); font-family: var(--mono); font-size: clamp(27px, 3vw, 38px); font-weight: 400; letter-spacing: -0.08em; line-height: 1; }
.yield-value.unavailable { color: var(--ink-faint); }
.yield-unit { margin-left: 4px; color: var(--ink-faint); font-family: var(--sans); font-size: 11px; letter-spacing: 0; }
.yield-delta { font-family: var(--mono); font-size: 11px; }
.delta-up { color: var(--coral); }
.delta-down { color: var(--aqua); }
.delta-flat { color: var(--ink-faint); }
.yield-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 16px; color: var(--ink-faint); font-size: 10px; }
.yield-meta strong { color: var(--ink-soft); font-family: var(--mono); font-weight: 500; }

.grid-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.curve-overview-section { margin-bottom: 18px; }
.curve-table-panel, .curve-visual-panel, .source-panel, .glossary-panel { min-width: 0; padding: 24px; }
.panel-heading { align-items: center; margin-bottom: 24px; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.date-pill { color: var(--ink-faint); }
.curve-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: right; }
.data-table th { padding: 9px 10px; border-bottom: 1px solid var(--line-strong); color: var(--ink-faint); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .05em; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--row-hover); }
.curve-row-label { color: var(--ink) !important; font-weight: 600; }
.spread-number { color: var(--ink) !important; }
.table-subvalue { display: block; margin-top: 3px; color: var(--ink-faint); font-family: var(--sans); font-size: 9px; font-weight: 400; }
.empty-cell { padding: 28px 10px !important; color: var(--ink-faint) !important; text-align: center !important; font-family: var(--sans) !important; }
.curve-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-family: var(--sans); font-size: 11px; }
.curve-status.bull { color: var(--aqua); background: var(--aqua-dim); }
.curve-status.bear { color: var(--coral); background: var(--coral-dim); }
.curve-status.neutral { color: var(--gold); background: var(--gold-dim); }
.curve-status.missing { color: var(--ink-faint); background: var(--missing-bg); }
.table-note { margin: 18px 0 0; color: var(--ink-faint); font-size: 10px; line-height: 1.65; }

.curve-visual-panel { overflow: hidden; }
.quadrant-wrap { position: relative; min-height: 310px; margin: -4px -5px 0; }
.quadrant-chart { display: block; width: 100%; height: auto; overflow: visible; }
.quadrant-fill { stroke: none; }
.q-bear-steep { fill: var(--q-bear-steep); }
.q-bear-flat { fill: var(--q-bear-flat); }
.q-bull-steep { fill: var(--q-bull-steep); }
.q-bull-flat { fill: var(--q-bull-flat); }
.quadrant-axis { stroke: var(--q-axis); stroke-width: 1; stroke-dasharray: 3 5; }
.quadrant-label { fill: var(--q-label); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.label-bear-steep, .label-bear-flat { fill: var(--q-label-bear); }
.label-bull-steep, .label-bull-flat { fill: var(--q-label-bull); }
.axis-label { fill: var(--ink-faint); font-size: 10px; }
.axis-y, .axis-y-down { text-anchor: start; }
.axis-x-left { text-anchor: start; }
.axis-x-right { text-anchor: end; }
.quadrant-dot-halo { fill: var(--q-dot-halo-fill); stroke: var(--q-dot-halo-stroke); stroke-width: 1; }
.quadrant-dot { fill: var(--gold); stroke: var(--q-dot-stroke); stroke-width: 3; }
.quadrant-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 11px; font-weight: 600; pointer-events: none; }
.quadrant-reading { display: flex; align-items: center; gap: 8px; margin-top: -4px; padding: 10px 12px; border-radius: 8px; background: var(--reading-bg); color: var(--ink-soft); font-size: 11px; }
.reading-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); }

.chart-panel { margin-top: 18px; padding: 24px 24px 17px; }
.chart-heading { margin-bottom: 6px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.legend-swatch { width: 17px; height: 2px; border-radius: 2px; }
.chart-canvas { position: relative; min-height: 280px; margin-top: 4px; }
.line-chart { display: block; width: 100%; height: auto; min-height: 280px; overflow: visible; }
.chart-grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart-grid-line.zero { stroke: var(--chart-grid-zero); stroke-dasharray: 4 4; }
.chart-axis-text { fill: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.line-path { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.line-point { stroke: var(--panel); stroke-width: 2; }
.chart-hover-line { stroke: var(--chart-hover); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-hit-area { fill: transparent; cursor: crosshair; }
.chart-tooltip { position: absolute; z-index: 4; min-width: 155px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--tooltip-bg); box-shadow: var(--tooltip-shadow); color: var(--ink); font-family: var(--mono); font-size: 10px; line-height: 1.7; pointer-events: none; }
.tooltip-date { display: block; margin-bottom: 4px; color: var(--gold); font-weight: 600; }
.tooltip-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tooltip-key { color: var(--ink-faint); }
.tooltip-value { color: var(--ink); }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-faint); font-size: 12px; }
.chart-empty[hidden], .chart-tooltip[hidden] { display: none; }
.chart-footer { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px 0; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }

.lower-grid { margin-top: 18px; }
.source-list { display: grid; gap: 10px; }
.source-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--source-bg); }
.source-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-name { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.source-name:hover { color: var(--aqua); }
.external-link { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.source-status { padding: 3px 7px; border-radius: 5px; font-size: 10px; }
.source-status.ok { color: var(--aqua); background: var(--aqua-dim); }
.source-status.partial, .source-status.unknown, .source-status.stale, .source-status.partial-stale, .source-status.pending { color: var(--gold); background: var(--gold-dim); }
.source-status.unavailable { color: var(--coral); background: var(--coral-dim); }
.source-meta { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 8px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.source-error { margin: 7px 0 0; color: var(--coral); font-size: 10px; }
.session-card { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 13px; border: 1px dashed var(--session-border); border-radius: 10px; background: var(--session-bg); }
.session-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--session-icon-border); border-radius: 7px; color: var(--gold); font-family: var(--mono); font-size: 9px; }
.session-copy { min-width: 0; flex: 1; }
.session-copy strong, .session-copy span { display: block; }
.session-copy strong { color: var(--ink-soft); font-size: 11px; }
.session-copy span { color: var(--gold); font-size: 10px; }
.session-value { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.session-comparison { margin-top: 8px; padding: 9px 11px; border-radius: 8px; background: var(--session-compare-bg); color: var(--ink-soft); font-size: 10px; }
.session-comparison[hidden] { display: none; }
.session-comparison strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }

.glossary-list { display: grid; gap: 13px; }
.glossary-list div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.glossary-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.glossary-list b { color: var(--ink); font-size: 11px; font-weight: 600; }
.glossary-list span { color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.noise-note { margin-top: 21px; padding: 10px 11px; border-radius: 8px; background: var(--gold-dim); color: var(--ink-soft); font-size: 10px; }
.noise-note span { margin-right: 4px; color: var(--gold); font-family: var(--mono); font-weight: 700; }

.international-panel { margin-top: 18px; padding: 24px; }
.international-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.international-stat { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--intl-stat-bg); }
.international-stat b { display: block; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; font-weight: 600; }
.international-stat strong { display: inline-block; margin-top: 5px; color: var(--ink); font-family: var(--mono); font-size: 20px; font-weight: 400; letter-spacing: -.05em; }
.international-stat small { margin-left: 7px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.international-chart-wrap { position: relative; min-height: 230px; }
.international-chart-wrap .line-chart { min-height: 230px; }
.international-note { margin: 11px 2px 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; }

.table-panel { margin-top: 18px; padding: 24px; }
.row-count { color: var(--ink-faint); }
.table-scroll { overflow-x: auto; max-height: 470px; scrollbar-color: var(--line-strong) transparent; }
.history-table { min-width: 680px; }
.history-table th:first-child, .history-table td:first-child { position: sticky; left: 0; background: var(--panel); }
.history-table th { position: sticky; top: 0; z-index: 1; background: var(--panel-raised); }
.history-table td:first-child { color: var(--ink); }
.history-table .selected-row td { background: var(--selected-row); }

.footer { width: min(1440px, calc(100% - 56px)); display: flex; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 20px 8px 30px; border-top: 1px solid var(--line); color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }

.is-stale { border-color: var(--stale-border) !important; }
.is-stale .live-chip { color: var(--gold); }
.is-error { border-color: var(--error-border) !important; }

@media (max-width: 980px) {
  .topbar, .page-content, .footer { width: min(100% - 36px, 760px); }
  .page-content { padding-top: 36px; }
  .hero-section { padding-inline: 0; }
  .yield-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-two { grid-template-columns: 1fr; }
  .curve-visual-panel { min-height: 0; }
}

@media (max-width: 660px) {
  body { font-size: 13px; }
  .topbar, .page-content, .footer { width: calc(100% - 28px); }
  .topbar { min-height: 67px; }
  .topbar-meta { gap: 8px; }
  .fetched-meta { display: none; }
  .page-content { padding: 28px 0 54px; }
  .hero-section { display: block; padding: 10px 0 30px; }
  h1 { font-size: clamp(35px, 11vw, 52px); }
  .hero-subtitle { font-size: 13px; line-height: 1.7; }
  .hero-status { max-width: none; min-width: 0; margin-top: 22px; }
  .toolbar { align-items: stretch; gap: 13px; margin-bottom: 34px; padding: 13px; }
  .toolbar-group { justify-content: space-between; width: 100%; }
  .date-group { margin-left: 0; }
  .refresh-button { justify-content: center; width: 100%; }
  .section-heading { padding-inline: 0; }
  .section-heading h2 { font-size: 18px; }
  .asof-block strong { font-size: 12px; }
  .yield-card-grid { gap: 8px; }
  .yield-card { min-height: 131px; padding: 14px 13px; }
  .yield-value { margin-top: 13px; font-size: 27px; }
  .yield-meta { margin-top: 12px; font-size: 9px; }
  .panel, .curve-table-panel, .curve-visual-panel, .source-panel, .glossary-panel, .chart-panel, .international-panel, .table-panel { border-radius: 12px; }
  .watch-panel, .curve-table-panel, .curve-visual-panel, .source-panel, .glossary-panel, .chart-panel, .international-panel, .table-panel { padding: 17px 14px; }
  .panel-heading { margin-bottom: 18px; }
  .panel-heading h2 { font-size: 18px; }
  .quadrant-wrap { min-height: 245px; margin-inline: -3px; }
  .quadrant-chart { min-height: 240px; }
  .quadrant-label { font-size: 9px; }
  .axis-label { font-size: 8px; }
  .chart-panel { margin-top: 12px; }
  .chart-heading { align-items: start; display: block; }
  .chart-legend { justify-content: start; margin-top: 13px; }
  .chart-canvas { min-height: 210px; margin-inline: -5px; }
  .line-chart { min-height: 210px; }
  .chart-footer { display: block; line-height: 1.8; }
  .chart-footer span { display: block; }
  .international-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .international-stat { padding: 10px 8px; }
  .international-stat strong { font-size: 16px; }
  .international-stat small { display: block; margin: 3px 0 0; }
  .international-chart-wrap { min-height: 190px; margin-inline: -5px; }
  .international-chart-wrap .line-chart { min-height: 190px; }
  .glossary-list div { grid-template-columns: 80px 1fr; gap: 8px; }
  .footer { display: block; line-height: 2; }
}

@media (max-width: 420px) {
  .live-chip { display: none; }
  .topbar { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
