:root {
  --ink: #17201e;
  --muted: #6d7773;
  --line: #dce2de;
  --canvas: #f4f6f2;
  --paper: #fcfdfb;
  --accent: #1b664f;
  --accent-soft: #dff1e7;
  --orange: #c65a2d;
  --orange-soft: #f9e7dd;
  --yellow: #d3a62a;
  --shadow: 0 10px 28px rgba(25, 48, 39, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 30px 22px; background: #eef2ed; border-right: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.04em; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 9px; font-size: 15px; }
.sidebar-caption { margin: 22px 2px 36px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.nav-list { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; text-decoration: none; border-radius: 9px; color: #59635f; font-size: 14px; transition: background .18s, color .18s; }
.nav-link span { color: var(--accent); font-size: 17px; line-height: 1; }
.nav-link:hover, .nav-link.active { background: #dcebe2; color: var(--accent); font-weight: 600; }
.sidebar-bottom { margin-top: auto; }
.demo-notice { display: flex; gap: 9px; padding: 14px 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-notice strong { display: block; font-size: 12px; font-weight: 600; }
.demo-notice p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #d49e25; }
.source-button { display: flex; justify-content: space-between; width: 100%; border: 0; padding: 15px 10px 0; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
.source-button:hover { color: var(--accent); }
.mobile-header, .mobile-nav { display: none; }

img, svg { max-width: 100%; }
.app-shell, main, main > section, article, section, dialog { min-width: 0; }
.event-sources, .selection-reasons, .ai-run-foot, .dialog-eyebrow, .source-runtime-list dd, a { overflow-wrap: anywhere; }

main { min-width: 0; }
main > section { padding: 52px clamp(24px, 5vw, 72px); }
.briefing-section { background: var(--paper); }
.macro-section { border-top: 1px solid var(--line); }
.research-section { background: #eaf0ea; border-top: 1px solid var(--line); }
.eyebrow-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: 12px; }
.eyebrow, .section-kicker, .dialog-eyebrow, .output-eyebrow { font-family: "DM Mono", monospace; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.hero-row { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; padding: 24px 0 52px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 15px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -0.07em; }
h1 em { color: var(--accent); font-style: normal; }
h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -0.055em; line-height: 1.35; }
.hero-copy { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.brief-progress { flex: 0 0 230px; padding: 17px 18px; background: #eff5f0; border-radius: 12px; }
.progress-label { display: block; color: var(--muted); font-size: 12px; }
.brief-progress strong { display: block; margin: 3px 0 11px; font-family: "DM Mono", monospace; font-size: 23px; letter-spacing: -.06em; }
.progress-track { overflow: hidden; height: 6px; background: #d3ded6; border-radius: 99px; }
.progress-track span { display: block; width: 0%; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s ease; }
.progress-help { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }

.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 21px; }
.section-heading p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.compact-heading { align-items: center; }
.section-kicker { display: block; margin-bottom: 6px; }
.data-label { padding: 4px 7px; color: #7c6840; background: #f3ead0; border-radius: 5px; font-size: 10px; font-weight: 600; }
.market-actions { display: flex; gap: 8px; align-items: center; }
.refresh-button { border: 1px solid var(--line); padding: 5px 9px; border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 10px; }
.refresh-button:hover { border-color: #9fc3aa; color: var(--accent); }
.refresh-button:disabled { cursor: wait; opacity: .55; }
.market-strip { margin-bottom: 58px; }
.market-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-card { min-width: 0; padding: 16px 14px 15px 0; border-right: 1px solid var(--line); }
.market-card + .market-card { padding-left: 14px; }
.market-card:last-child { border-right: 0; }
.market-name { display: block; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.market-price { display: block; margin: 5px 0 4px; font-family: "DM Mono", monospace; font-size: 17px; font-weight: 500; letter-spacing: -.05em; }
.market-change { font-family: "DM Mono", monospace; font-size: 11px; }
.market-change.up { color: var(--accent); }
.market-change.down { color: var(--orange); }
.market-change.flat { color: var(--muted); }
.market-card.unavailable { opacity: .62; }
.market-meta { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.market-context-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.market-context-row span { min-width: 0; color: var(--ink); font-family: "DM Mono", monospace; font-size: 9px; white-space: nowrap; }
.market-context-row b { display: block; color: var(--muted); font-size: 8px; font-weight: 500; }
.market-sparkline { display: block; width: 100%; height: 30px; margin-top: 7px; overflow: visible; }
.market-sparkline polyline { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.market-context-meta { display: flex; flex-wrap: wrap; gap: 3px 7px; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.market-context-empty { display: block; margin-top: 10px; color: var(--muted); font-size: 8px; }
.derived-facts { display: flex; gap: 10px; margin-top: 12px; }
.derived-facts article { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 7px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.derived-facts article > span:first-child { color: var(--muted); font-size: 10px; }
.derived-facts strong { font-family: "DM Mono", monospace; font-size: 15px; }
.derived-facts small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.change-summary { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-top: 14px; padding: 17px 18px; border: 1px solid #cfe0d3; border-radius: 10px; background: #eff6f0; }
.change-summary strong { display: block; margin-top: 4px; font-size: 15px; }
.change-summary p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.change-summary a { flex: 0 0 auto; color: var(--accent); font-size: 10px; text-decoration: none; }
.issue-section, .path-section { margin-bottom: 58px; }
.hot-issue-panel { margin-bottom: 28px; padding: 24px; border-radius: 16px; background: #183d32; }
.hot-issue-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; color: #fff; }
.hot-issue-heading span { display: block; margin-bottom: 4px; color: #8ed0ad; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.hot-issue-heading strong { font-size: 16px; }.hot-issue-heading p { margin: 0; color: #afc8bc; font-size: 10px; }
.hot-issue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hot-card { min-height: 235px; border: 0; background: #fbfdf9; }
.hot-card .issue-category { color: var(--orange); font-weight: 700; }
.hot-card .impact-tag { color: #9b3f20; background: var(--orange-soft); }
.article-list-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 12px; }
.article-list-heading strong { font-size: 14px; }.article-list-heading span { color: var(--muted); font-size: 10px; }
.issue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.issue-card { position: relative; min-height: 245px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: left; transition: transform .18s, box-shadow .18s, border-color .18s; }
.issue-card:hover { transform: translateY(-3px); border-color: #bcd3c4; box-shadow: var(--shadow); }
.news-card { color: inherit; text-decoration: none; }
.issue-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.issue-category { font-family: "DM Mono", monospace; color: var(--accent); font-size: 10px; letter-spacing: .06em; }
.issue-time { color: var(--muted); font-size: 11px; }
.issue-card h3 { margin: 28px 0 10px; font-size: 18px; letter-spacing: -0.045em; line-height: 1.42; }
.issue-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.issue-impact { position: absolute; right: 19px; bottom: 18px; left: 19px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.impact-tag { padding: 3px 7px; background: var(--accent-soft); border-radius: 4px; color: var(--accent); font-size: 10px; font-weight: 600; }
.news-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed #c7d2ca; border-radius: 12px; background: #f6f8f5; text-align: center; }
.news-empty strong { font-size: 14px; }
.news-empty p { color: var(--muted); font-size: 12px; }
.news-empty button { border: 1px solid var(--line); padding: 7px 12px; border-radius: 6px; background: var(--paper); color: var(--accent); }
.path-section { padding: 30px; background: #f1f5f0; border-radius: 16px; }
.transmission-map { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1.2fr) 26px minmax(0, 1.25fr) 26px minmax(0, 1.2fr); align-items: center; }
.path-node { min-height: 95px; padding: 17px; border: 1px solid #d2ddd4; border-radius: 9px; background: var(--paper); }
.path-node span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.path-node strong { font-size: 13px; letter-spacing: -.035em; line-height: 1.4; }
.path-node.highlighted { border-color: #8ebfa0; background: var(--accent-soft); }
.path-arrow { color: var(--accent); text-align: center; font-size: 20px; }
.path-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.path-note strong { color: var(--ink); font-weight: 600; }
.check-section { padding-bottom: 0; }
.check-list { display: grid; border-top: 1px solid var(--line); }
.check-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.check-item input { width: 17px; height: 17px; accent-color: var(--accent); }
.check-copy strong { display: block; font-size: 13px; font-weight: 600; }
.check-copy span { color: var(--muted); font-size: 11px; }
.check-item time { color: var(--accent); font-family: "DM Mono", monospace; font-size: 11px; }
.check-item.done .check-copy { opacity: .5; text-decoration: line-through; }

.macro-heading { margin: 26px 0 34px; align-items: flex-end; }
.macro-selection { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; }
.country-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.country-button { border: 0; padding: 8px 15px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.country-button.active { background: var(--accent); color: #fff; font-weight: 600; }
.macro-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.macro-card { padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.macro-card .macro-name { display: block; color: var(--muted); font-size: 11px; }
.metric-meaning { display: block; margin-top: 3px; color: var(--ink); font-family: "DM Mono", monospace; font-size: 9px; }
.macro-card strong { display: block; margin: 7px 0 3px; font-family: "DM Mono", monospace; font-size: 25px; font-weight: 500; letter-spacing: -.07em; }
.macro-card .macro-detail { color: var(--muted); font-size: 11px; }
.macro-card .macro-change { display: block; margin-top: 11px; color: var(--accent); font-family: "DM Mono", monospace; font-size: 11px; }
.macro-card .macro-change.caution { color: var(--orange); }
.trend-panel { padding: 27px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.trend-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.chart-legend { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.chart-legend span:first-child { width: 17px; height: 3px; border-radius: 2px; background: var(--accent); }
#trendChart { display: block; width: 100%; min-height: 230px; overflow: visible; }
.chart-grid { stroke: #e2e7e3; stroke-width: 1; }
.chart-axis { fill: #71807a; font-family: "DM Mono", monospace; font-size: 11px; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: #dcefe2; }
.chart-dot { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.chart-value { fill: var(--accent); font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }
.release-panel { margin-top: 46px; }
.release-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.release-item { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(252,253,251,.55); }
.release-day { padding-right: 10px; border-right: 1px solid var(--line); color: var(--accent); font-family: "DM Mono", monospace; font-size: 17px; text-align: center; }
.release-day small { display: block; color: var(--muted); font-family: "Noto Sans KR", sans-serif; font-size: 9px; }
.release-item strong { display: block; font-size: 12px; }
.release-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

.research-heading { margin: 25px 0 35px; }
.research-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr); gap: 22px; align-items: stretch; }
.research-form, .research-output { padding: 25px; border-radius: 12px; }
.research-form { background: var(--paper); border: 1px solid #d0ddd3; }
.research-form label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 600; }
.research-form label span { margin-left: 4px; color: var(--muted); font-weight: 400; }
.research-form input, .research-form textarea { display: block; width: 100%; margin: 0 0 17px; padding: 11px 12px; border: 1px solid #cfd8d2; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; outline: none; }
.research-form input:focus, .research-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(27,102,79,.12); }
.research-form textarea { resize: vertical; line-height: 1.65; }
.form-note { margin: -6px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; padding: 12px 14px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.primary-button:hover { background: #145640; }
.form-error { margin: 10px 0 0; color: #b43d20; font-size: 11px; }
.research-output { display: flex; flex-direction: column; justify-content: center; min-height: 380px; background: #d9e9dd; border: 1px solid #c4d7c9; }
.research-output h2 { margin: 11px 0; font-size: 28px; letter-spacing: -.065em; line-height: 1.35; }
.research-output p { max-width: 320px; margin: 0; color: #53625a; font-size: 12px; line-height: 1.75; }
.output-lines { display: grid; gap: 8px; width: 82%; margin-top: 27px; }
.output-lines span { display: block; height: 7px; border-radius: 4px; background: rgba(27,102,79,.17); }
.output-lines span:nth-child(2) { width: 84%; }.output-lines span:nth-child(3) { width: 65%; }
.analysis-result { justify-content: flex-start; background: #f8fcf8; }
.analysis-result h2 { margin: 8px 0 17px; font-size: 22px; }
.analysis-block { padding: 14px 0; border-top: 1px solid #d5e3d7; }
.analysis-block strong { display: block; margin-bottom: 5px; color: var(--accent); font-size: 11px; }
.analysis-block p, .analysis-block li { color: #3f4e47; font-size: 12px; }
.analysis-block p { margin: 0; }.analysis-block ul { margin: 0; padding-left: 17px; }.analysis-block li + li { margin-top: 4px; }
.analysis-topic { display: inline-block; margin: 0 5px 5px 0; padding: 4px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 600; }

.ai-section { border-top: 1px solid #c9d9cd; border-bottom: 1px solid #c9d9cd; background: #edf5ef; }
.ai-heading { margin-top: 24px; align-items: center; }
.ai-heading > div:first-child { max-width: 720px; }
.ai-actions { display: flex; flex: 0 0 190px; flex-direction: column; gap: 8px; }
.ai-generate, .event-ai-generate { justify-content: center; }
.ai-disclaimer { display: flex; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #c8dacd; border-radius: 9px; background: rgba(255,255,255,.68); font-size: 11px; }
.ai-disclaimer strong { flex: 0 0 auto; color: var(--accent); }
.ai-disclaimer span { color: var(--muted); }
.ai-analysis-panel { min-height: 180px; border: 1px solid #c8d9cc; border-radius: 14px; background: var(--paper); }
.ai-empty { display: flex; min-height: 180px; padding: 28px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ai-empty strong { font-size: 15px; }
.ai-empty p { max-width: 560px; margin: 8px auto 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.ai-unavailable strong, .ai-failed strong { color: #8a5520; }
.ai-placeholder-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.ai-placeholder-labels span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; }
.ai-result { padding: 26px; }
.ai-freshness { display: flex; gap: 9px; align-items: center; margin-bottom: 17px; padding: 10px 12px; border-radius: 7px; background: #e8f2ea; color: var(--accent); font-size: 10px; }
.ai-freshness strong { font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .06em; }
.ai-freshness-outdated, .ai-freshness-changed { background: #fff0dc; color: #85521d; }
.ai-result > header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 20px; }
.ai-result h2 { max-width: 720px; margin-top: 7px; font-size: 25px; }
.ai-result-meta { display: flex; flex: 0 0 auto; flex-direction: column; gap: 4px; align-items: flex-end; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.ai-result-meta span:first-child { color: var(--accent); font-weight: 600; }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf7; }
.ai-card.full { grid-column: 1 / -1; }
.ai-card > span { display: block; margin-bottom: 9px; color: var(--accent); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .05em; }
.ai-card p, .ai-card li { color: #384840; font-size: 12px; line-height: 1.65; }
.ai-card p { margin: 0; }.ai-card ul { margin: 0; padding-left: 18px; }.ai-card li + li { margin-top: 10px; }
.ai-card li p { margin-bottom: 5px; }
.ai-subitem + .ai-subitem { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-subitem strong { display: block; margin-bottom: 4px; font-size: 12px; }
.ai-subitem small { display: block; margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.evidence-button { margin: 5px 5px 0 0; border: 1px solid #afcab8; padding: 4px 7px; border-radius: 5px; background: #e7f2e9; color: var(--accent); font-size: 9px; }
.evidence-button:hover { border-color: var(--accent); }
.ai-warning { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: #fff3df; color: #75512b; font-size: 10px; }
.ai-warning ul { margin: 5px 0 0; padding-left: 17px; }
.ai-run-foot { margin-top: 14px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.event-ai-block { border: 1px solid #bcd5c3; background: #eaf4ec; }
.event-ai-panel .ai-empty { min-height: 130px; padding: 18px; }
.event-ai-panel .ai-result { padding: 10px 0 0; }
.event-ai-panel .ai-result > header { display: block; }
.event-ai-panel .ai-result-meta { align-items: flex-start; margin-top: 8px; }
.event-ai-panel .ai-grid { grid-template-columns: 1fr; }
.event-ai-panel .ai-card.full { grid-column: auto; }
.event-ai-generate { width: auto; margin-top: 12px; }
.evidence-dialog { width: min(720px, calc(100% - 36px)); }
.evidence-list { display: grid; gap: 9px; max-height: 58vh; overflow: auto; }
.evidence-list article { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f4f8f4; }
.evidence-list article span { display: block; overflow-wrap: anywhere; color: var(--accent); font-family: "DM Mono", monospace; font-size: 8px; }
.evidence-list article strong { display: block; margin: 5px 0; font-size: 12px; }
.evidence-list article p, .evidence-list article small { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.detail-dialog { width: min(580px, calc(100% - 36px)); border: 0; border-radius: 14px; padding: 30px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 80px rgba(15, 35, 27, .22); }
.detail-dialog::backdrop { background: rgba(20, 32, 28, .42); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #e9eee9; color: var(--ink); font-size: 22px; line-height: 1; }
.dialog-close:hover { background: #dbe6de; }
.detail-dialog h2 { margin: 7px 28px 22px 0; font-size: 28px; }
.dialog-intro { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-block { padding: 14px; border-radius: 8px; background: #f0f5f0; }
.dialog-block.full { grid-column: 1 / -1; }
.dialog-block span { display: block; margin-bottom: 5px; color: var(--accent); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .06em; }
.dialog-block p { margin: 0; font-size: 12px; line-height: 1.65; }
.dialog-block ul { margin: 0; padding-left: 17px; font-size: 12px; }.dialog-block li + li { margin-top: 4px; }
.source-list { display: grid; gap: 8px; margin-top: 20px; }
.source-list a { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.source-list a:hover { border-color: #9fc3aa; background: #f1f7f2; }.source-list strong { font-size: 13px; }.source-list span { color: var(--muted); font-size: 11px; }.source-list b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); }.dialog-footnote { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.market-card:nth-child(3) { border-right: 0; }.market-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .issue-grid, .hot-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.issue-card { min-height: 220px; }
  .macro-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.release-list { grid-template-columns: 1fr; }.research-layout { grid-template-columns: 1fr; }.research-output { min-height: 300px; }
  .transmission-map { grid-template-columns: 1fr; gap: 8px; }.path-arrow { transform: rotate(90deg); height: 20px; }.path-node { min-height: auto; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }.sidebar { display: none; }.mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }.mobile-header .source-button { width: auto; padding: 0; }.issue-grid, .hot-issue-grid { grid-template-columns: 1fr; }.hot-issue-panel { padding: 18px; }.hot-issue-heading { display: block; }.hot-issue-heading p { margin-top: 6px; }
  main > section { padding: 36px 20px; }.hero-row, .section-heading, .macro-heading { display: block; }.hero-row { padding-bottom: 36px; }.brief-progress { margin-top: 26px; }.section-heading p { margin-top: 10px; text-align: left; }.market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.market-card:nth-child(3) { border-right: 1px solid var(--line); }.market-card:nth-child(2n) { border-right: 0; }.market-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .derived-facts { display: block; }.derived-facts article { margin-top: 10px; }
  .path-section { padding: 21px; }.country-switch { display: inline-flex; margin-top: 22px; }.trend-panel { padding: 18px 14px; }.trend-heading { align-items: flex-start; flex-direction: column; }.check-item { grid-template-columns: 26px minmax(0, 1fr); padding: 10px 0; }.check-item time { grid-column: 2; }.dialog-grid { grid-template-columns: 1fr; }.dialog-block.full { grid-column: auto; }
  .market-actions { margin-top: 12px; }.change-summary { display: block; }.change-summary a { display: inline-block; margin-top: 12px; }
  .ai-heading { display: block; }.ai-actions { margin-top: 20px; }.ai-disclaimer { display: block; }.ai-disclaimer span { display: block; margin-top: 4px; }.ai-result { padding: 18px; }.ai-result > header { display: block; }.ai-result-meta { align-items: flex-start; margin-top: 9px; }.ai-grid { grid-template-columns: 1fr; }.ai-card.full { grid-column: auto; }
}
@media (max-width: 380px) { h1 { font-size: 31px; }.market-price { font-size: 15px; }.macro-summary { grid-template-columns: 1fr; } }
