:root {
  --ink: #18302f;
  --deep: #123d3b;
  --deep-2: #0e302f;
  --muted: #73817f;
  --line: #d9e0dc;
  --paper: #fbfcfa;
  --canvas: #edf1ef;
  --white: #ffffff;
  --coral: #e57c61;
  --coral-soft: #f8e8e2;
  --amber: #b48a32;
  --amber-soft: #f7eed4;
  --blue: #497b91;
  --blue-soft: #e5eff3;
  --green: #3e8d76;
  --green-soft: #e2f0eb;
  --shadow: 0 16px 34px rgba(24, 48, 47, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.country-item.overview-nav { width: 100%; margin-top: 18px; flex: none; }
.snapshot-value, .trend-status { max-width: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  min-height: 74px;
  padding: 0 34px;
  background: rgba(251, 252, 250, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 214px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--deep); color: #f7f4e8; font: 700 10px/1 "Arial Narrow", sans-serif; letter-spacing: .08em; }
.brand strong { display: block; font-size: 15px; letter-spacing: .14em; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; letter-spacing: .04em; }
.topbar-context { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; flex: 1; }
.context-dot, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); }
.context-divider { height: 14px; width: 1px; background: var(--line); margin: 0 3px; }
.muted { color: var(--muted); }
.topbar-actions { display: flex; gap: 9px; }

.button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--deep); color: var(--white); border-color: var(--deep); }
.button-dark:hover { background: var(--deep-2); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-quiet:hover, .button-outline:hover { background: var(--white); border-color: #b9c7c2; }
.button-outline { background: transparent; color: var(--deep); border-color: #b9c7c2; }
.button-icon { font-size: 15px; line-height: 0; font-weight: 500; }

.app-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.sidebar { background: #f7f9f7; border-right: 1px solid var(--line); padding: 29px 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.sidebar-heading, .panel-heading, .mini-progress-head, .side-section-label, .last-updated, .selected-header, .selected-actions, .dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .18em; line-height: 1.3; }
.sidebar h2, .panel h2, .selected-header h2, .next-actions h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: 0; line-height: 1.15; }
.count-badge { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--deep); color: white; font-size: 14px; font-weight: 700; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 11px; height: 36px; background: white; border: 1px solid var(--line); margin-top: 24px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-field input::placeholder { color: #9aa5a2; }
.side-section-label { margin: 22px 4px 8px; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; font-weight: 800; }
.country-list { display: grid; gap: 3px; overflow: auto; max-height: calc(100vh - 360px); }
.country-item { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid transparent; background: transparent; text-align: left; color: var(--ink); min-width: 0; transition: .18s ease; }
.country-item:hover { background: #eef4f1; }
.country-item.active { background: var(--white); border-color: #cbd8d2; box-shadow: 0 4px 12px rgba(20, 50, 45, .04); }
.country-item.active::before { content: ""; position: absolute; left: -1px; top: 7px; bottom: 7px; width: 3px; background: var(--coral); }
.country-flag { font-size: 20px; line-height: 1; }
.country-item strong { display: block; font-size: 15px; line-height: 1.2; }
.country-item small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.country-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.country-status .status-dot { width: 5px; height: 5px; background: #b6c0bc; }
.country-status.has-source .status-dot { background: var(--green); }
.empty-search { padding: 18px 9px; color: var(--muted); font-size: 15px; }
.sidebar-footer { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.mini-progress-head { font-size: 13px; font-weight: 700; }
.mini-progress-head strong { color: var(--coral); font-size: 14px; }
.progress-track { height: 4px; background: #dfe7e2; margin: 10px 0 9px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .25s ease; }
.sidebar-footer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.main-content { min-width: 0; max-width: 1510px; width: 100%; padding: 38px 44px 28px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 7px 0 7px; font-size: 31px; letter-spacing: 0; line-height: 1; }
.page-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.last-updated { gap: 8px; color: var(--muted); font-size: 14px; padding-bottom: 4px; white-space: nowrap; }
.status-dot-amber { background: var(--amber); }
.last-updated strong { color: var(--ink); font-weight: 700; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 19px; }
.metric-card { min-height: 146px; background: var(--white); border: 1px solid var(--line); padding: 18px 19px 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.metric-card-dark { background: var(--deep); border-color: var(--deep); color: var(--white); }
.metric-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.metric-card-dark .metric-label { color: #b8ccca; }
.metric-symbol { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--deep); background: var(--green-soft); font-size: 16px; }
.metric-symbol.coral { color: var(--coral); background: var(--coral-soft); }
.metric-symbol.blue { color: var(--blue); background: var(--blue-soft); }
.metric-symbol.green { color: var(--green); background: var(--green-soft); }
.metric-card-dark .metric-symbol { background: #2a605c; color: #d2e7db; }
.metric-value { font-size: 32px; font-weight: 750; letter-spacing: 0; line-height: 1; margin: 13px 0 8px; }
.metric-value small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.metric-card-dark .metric-value small { color: #a8c2bf; }
.metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.metric-card-dark .metric-foot { color: #a8c2bf; }
.trend-up { color: #9ee2bd; font-weight: 700; }
.status-tag { display: inline-flex; align-items: center; padding: 3px 6px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.tag-amber { color: #84661e; background: var(--amber-soft); }
.tag-blue { color: #39687b; background: var(--blue-soft); }
.tag-green { color: #28745f; background: var(--green-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; margin-bottom: 19px; }
.panel { background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.panel-heading { padding: 19px 20px 15px; border-bottom: 1px solid var(--line); }
.panel-counter { color: var(--muted); font-size: 13px; }
.icon-button { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: 16px; line-height: 1; }
.icon-button:hover { color: var(--ink); background: var(--white); border-color: #b9c7c2; }
.snapshot-table-wrap { overflow-x: auto; }
.snapshot-table { width: 100%; min-width: 570px; border-collapse: collapse; text-align: left; }
.snapshot-table th { padding: 11px 20px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.snapshot-table td { padding: 12px 20px; border-top: 1px solid #e4e9e5; font-size: 14px; vertical-align: middle; }
.snapshot-table tbody tr { cursor: pointer; transition: background .15s ease; }
.snapshot-table tbody tr:hover { background: #f2f7f3; }
.snapshot-market { display: flex; align-items: center; gap: 9px; min-width: 145px; }
.snapshot-market .country-flag { font-size: 18px; }
.snapshot-market strong { display: block; font-size: 14px; }
.snapshot-market small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.signal-cell { color: var(--muted); }
.snapshot-value, .trend-status { display: inline-flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.snapshot-value small, .trend-status small { color: var(--muted); font-size: 12px; font-weight: 400; }
.snapshot-value.is-empty, .trend-status.is-empty { color: var(--amber); font-weight: 600; }
.snapshot-value.is-empty small, .trend-status.is-empty small { color: var(--muted); font-weight: 400; }
.data-lane { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.data-lane::before { content: ""; width: 5px; height: 5px; background: var(--amber); border-radius: 50%; }
.evidence-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.evidence-status .status-dot { width: 5px; height: 5px; background: #b8c2be; }
.row-arrow { color: #a5b1ad; font-size: 15px; }

.pipeline-panel { display: flex; flex-direction: column; }
.pipeline-list { padding: 4px 20px 7px; }
.pipeline-item { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; min-height: 53px; border-bottom: 1px solid #e4e9e5; }
.pipeline-item:last-child { border-bottom: 0; }
.pipeline-number { color: var(--coral); font: 700 10px/1 "Arial Narrow", sans-serif; }
.pipeline-item strong { display: block; font-size: 14px; }
.pipeline-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pipeline-state { font-size: 12px; white-space: nowrap; }
.state-wait { color: var(--amber); }
.pipeline-note { display: flex; gap: 9px; margin: auto 20px 19px; padding: 10px 11px; background: #f4f7f2; color: var(--muted); }
.pipeline-note > span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #c3d2c9; color: var(--green); font: 700 10px/1 serif; flex: 0 0 auto; }
.pipeline-note p { margin: 0; font-size: 13px; line-height: 1.55; }

.selected-market { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 19px; }
.selected-header { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.selected-title { display: flex; align-items: center; gap: 14px; }
.large-flag { width: 47px; height: 47px; display: grid; place-items: center; background: #f1f5f1; font-size: 27px; }
.selected-header h2 { font-size: 25px; }
.selected-header p { color: var(--muted); margin: 5px 0 0; font-size: 14px; }
.selected-actions { gap: 10px; }
.confidence-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; color: var(--muted); background: #f5f7f4; font-size: 13px; white-space: nowrap; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 0; }
.detail-left { padding: 21px 24px 24px; border-right: 1px solid var(--line); }
.detail-right { padding: 21px 24px 24px; }
.section-kicker { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.section-kicker .muted { font-weight: 500; letter-spacing: 0; }
.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.signal-card { padding: 13px 12px; background: #f7f9f7; border: 1px solid #e3e9e4; min-height: 91px; }
.signal-card .signal-label { color: var(--muted); display: block; font-size: 13px; margin-bottom: 12px; }
.signal-card strong { display: block; font-size: 16px; letter-spacing: 0; }
.signal-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.chart-kicker { margin-top: 24px; }
.empty-chart { display: grid; grid-template-columns: 22px 1fr; gap: 10px; min-height: 185px; border: 1px solid #e1e7e2; background: #fbfcfa; padding: 12px 14px 10px 7px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 19px; color: #a3aeaa; font-size: 12px; text-align: right; }
.chart-area { position: relative; min-width: 0; }
.chart-grid-line { position: absolute; left: 0; right: 0; height: 1px; border-top: 1px dashed #dce4de; }
.chart-grid-line:nth-child(1) { top: 0; }.chart-grid-line:nth-child(2) { top: 50%; }.chart-grid-line:nth-child(3) { top: 100%; }
.chart-placeholder { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); display: flex; align-items: center; flex-direction: column; text-align: center; width: min(270px, 90%); color: var(--muted); }
.chart-placeholder-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #cbd9d0; color: var(--green); font-size: 20px; margin-bottom: 6px; }
.chart-placeholder strong { color: var(--ink); font-size: 14px; }
.chart-placeholder small { font-size: 12px; line-height: 1.5; margin-top: 3px; }
.chart-bars { position: relative; height: 180px; margin: 0 5% 30px; display: flex; align-items: end; justify-content: center; gap: 42px; border-bottom: 1px solid #cad8cf; }
.chart-bar-wrap { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 4px; min-width: 35px; }
.chart-bar { width: clamp(22px, 8vw, 44px); min-height: 12px; background: var(--green); border-top: 3px solid var(--coral); }
.chart-bar-value, .chart-bar-wrap small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chart-bar-wrap small { position: absolute; bottom: -19px; }
.market-chart { padding: 18px 0 0; }
.chart-caption { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.market-observation { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-observation strong { font-size: 15px; }
.market-observation p { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 10px 0; }
.observation-foot { color: var(--amber); font-size: 14px; }
.quarterly-tracker { min-width: 0; }
.quarterly-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.quarterly-summary span { display: block; color: var(--muted); font-size: 14px; }
.quarterly-summary strong { display: block; font-size: 20px; margin-top: 7px; }
.quarterly-tracker h3 { font-size: 15px; margin: 22px 0 12px; }
.quarterly-evidence { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; line-height: 1.7; }
.quarterly-evidence summary { cursor: pointer; }
.quarterly-evidence figure { margin: 16px 0; }
.quarterly-evidence img { display: block; width: 100%; height: auto; }
.quarterly-evidence figcaption, .quarterly-evidence p { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .quarterly-summary { grid-template-columns: 1fr; gap: 12px; } }
.source-record { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.source-record-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--amber); font-size: 13px; margin-bottom: 7px; }
.source-record strong, .source-record small { display: block; }
.source-record strong { font-size: 15px; }
.source-record a { color: var(--deep); text-underline-offset: 3px; }
.source-record a:hover { color: var(--blue); }
.source-record small, .source-record p, .source-empty { font-size: 14px; color: var(--muted); line-height: 1.7; }
.source-record p { margin: 6px 0 0; }
.signal-card strong { font-size: 15px; overflow-wrap: anywhere; letter-spacing: 0; }
.signal-card small { font-size: 13px; line-height: 1.6; }
.snapshot-value small, .trend-status small { white-space: normal; min-width: 90px; max-width: 180px; line-height: 1.6; }
.chart-x-axis { position: absolute; left: 0; right: 0; bottom: -20px; display: flex; justify-content: space-between; color: #a3aeaa; font-size: 12px; }
.evidence-list { border-top: 1px solid #e4e9e5; }
.evidence-item { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #e4e9e5; }
.evidence-icon { width: 24px; height: 24px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); font-size: 15px; }
.evidence-item strong { display: block; font-size: 14px; }
.evidence-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.evidence-state { font-size: 12px; color: var(--amber); }
.add-evidence-button { width: 100%; margin-top: 12px; padding: 10px; color: var(--deep); background: transparent; border: 1px dashed #bac9bf; font-size: 13px; font-weight: 700; }
.add-evidence-button:hover { background: #f4f8f4; border-color: var(--green); }
.add-evidence-button span { font-size: 16px; vertical-align: -1px; margin-right: 5px; }
.detail-tip { display: flex; gap: 10px; margin-top: 20px; padding: 12px; background: #fff8eb; }
.tip-mark { color: var(--amber); font-size: 16px; line-height: 1; }
.detail-tip strong { font-size: 13px; }
.detail-tip p { margin: 4px 0 0; color: #887343; font-size: 12px; line-height: 1.55; }

.next-actions { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 26px; align-items: center; padding: 21px 23px; border: 1px solid var(--line); background: #f7f9f6; margin-bottom: 26px; }
.next-actions h2 { font-size: 16px; }
.next-actions p { color: var(--muted); font-size: 13px; margin: 7px 0 0; }
.action-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action-item { min-height: 70px; border-left: 2px solid var(--coral); padding: 5px 12px; }
.action-item > span { display: block; color: var(--coral); font: 700 10px/1 "Arial Narrow", sans-serif; margin-bottom: 8px; }
.action-item strong { display: block; font-size: 14px; }
.action-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.methodology-panel { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 26px; align-items: center; padding: 21px 23px; border: 1px solid var(--line); background: var(--deep); color: var(--white); margin-bottom: 19px; }
.methodology-panel h2 { margin: 5px 0 0; font-size: 18px; }
.methodology-panel p { margin: 8px 0 0; color: #b8ccca; font-size: 13px; line-height: 1.65; }
.methodology-panel .eyebrow { color: #9ab5b0; }
.methodology-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.methodology-grid > div { min-height: 95px; border-left: 2px solid var(--coral); padding: 4px 10px 3px; background: rgba(255,255,255,.04); }
.methodology-number { display: block; color: #f2ad94; font: 700 10px/1 "Arial Narrow", sans-serif; margin-bottom: 14px; }
.methodology-grid strong { display: block; font-size: 14px; }
.methodology-grid small { display: block; color: #b8ccca; font-size: 12px; line-height: 1.5; margin-top: 5px; }
.page-footer { display: flex; justify-content: space-between; color: #95a09c; font: 9px/1.2 "Arial Narrow", sans-serif; letter-spacing: .1em; padding: 0 2px; }

.source-dialog { width: min(580px, calc(100vw - 30px)); padding: 0; border: 1px solid #cbd6d0; background: var(--paper); color: var(--ink); box-shadow: 0 25px 70px rgba(18, 51, 46, .2); }
.source-dialog::backdrop { background: rgba(15, 44, 39, .44); backdrop-filter: blur(3px); }
.source-dialog form { padding: 22px 24px 21px; }
.dialog-heading { align-items: flex-start; }
.dialog-heading h2 { font-size: 21px; margin: 6px 0 0; }
.dialog-intro { color: var(--muted); font-size: 14px; margin: 17px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-field-wide { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0; outline: none; padding: 9px 10px; font-size: 14px; font-weight: 400; }
.form-field textarea { resize: vertical; min-height: 67px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.dialog-actions { justify-content: flex-end; gap: 8px; margin-top: 19px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 40; transform: translate(-50%, 20px); background: var(--deep); color: var(--white); padding: 10px 15px; font-size: 14px; opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .topbar { padding: 0 22px; }
  .main-content { padding: 31px 25px 25px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .pipeline-panel { min-height: auto; }
}

@media (max-width: 840px) {
  .topbar { gap: 16px; }
  .topbar-context { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px 16px; }
  .country-list { display: flex; overflow-x: auto; max-height: none; padding-bottom: 4px; }
  .country-item { flex: 0 0 180px; grid-template-columns: 28px minmax(0, 1fr); }
  .country-status { grid-column: 2; }
  .sidebar-footer { display: none; }
  .side-section-label { margin-top: 18px; }
  .search-field { margin-top: 16px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .methodology-panel { grid-template-columns: 1fr; gap: 17px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 64px; padding: 0 15px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .topbar-actions .button-quiet { display: none; }
  .main-content { padding: 25px 15px 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; gap: 13px; }
  .page-heading h1 { font-size: 27px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .metric-card { min-height: 136px; padding: 14px 13px; }
  .metric-value { font-size: 26px; }
  .metric-foot { align-items: flex-start; flex-direction: column; gap: 5px; }
  .selected-header { align-items: flex-start; flex-direction: column; gap: 17px; padding: 18px; }
  .selected-actions { width: 100%; justify-content: space-between; }
  .detail-left, .detail-right { padding: 18px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .next-actions { grid-template-columns: 1fr; gap: 17px; padding: 18px; }
  .action-rail { grid-template-columns: 1fr; gap: 12px; }
  .action-item { min-height: 0; }
  .methodology-panel { padding: 18px; }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .page-footer { gap: 12px; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
}
:root { --registration-positive: #16704b; --registration-negative: #b83e46; }
.policy-market .detail-body { grid-template-columns: minmax(0, 1fr); }
.policy-market .detail-left { border-right: 0; }
.policy-market .detail-right { border-top: 1px solid var(--line); }
.policy-market .evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.policy-note { font-size: 15px; line-height: 1.8; margin: 0 0 8px; }
.policy-dates { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.state-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 14px; }
.state-toolbar label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.state-toolbar input, .state-toolbar select { height: 36px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.state-toolbar input { width: 240px; }
.state-toolbar > span { margin-left: auto; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.state-table-wrap { overflow-x: auto; max-width: 100%; border-top: 1px solid var(--line); }
.state-table { width: 100%; min-width: 780px; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.7; }
.state-table th, .state-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.state-table thead { background: #f1f4f3; color: var(--muted); }
.state-table th:nth-child(1) { width: 17%; }
.state-table th:nth-child(2) { width: 19%; }
.state-table th:nth-child(3) { width: 20%; }
.state-table th:nth-child(4) { width: 22%; }
.state-table th:nth-child(5) { width: 22%; }
.state-table small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 5px; }
.state-table p { margin: 0 0 6px; font-size: 14px; }
.state-table a { color: var(--green); font-size: 14px; }
.state-badge { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 14px; background: #eef0f1; color: #596362; }
.state-enacted { background: #e4f3e9; color: #19673e; }
.state-signature { background: #fff0d1; color: #815400; }
.state-pending { background: #e6effa; color: #305a88; }
.state-deferred { background: #f8e9e7; color: #8c4841; }
.state-empty { text-align: center !important; padding: 32px !important; }
@media (max-width: 620px) {
  .policy-market .evidence-list { grid-template-columns: 1fr; }
  .state-toolbar > span { margin-left: 0; }
}
.registration-comparisons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.registration-comparison { padding: 16px; border: 1px solid #dce3e1; border-radius: 6px; background: #fff; min-width: 0; }
.registration-comparison > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; }
.registration-comparison > b { display: block; margin-top: 12px; font-size: 25px; line-height: 1.4; }
.registration-comparison b small { font-size: 14px; font-weight: 400; }
.registration-comparison p { font-size: 14px; }
.registration-yoy { font-size: 16px; font-weight: 700; }
.registration-yoy.is-positive { color: var(--registration-positive); }
.registration-yoy.is-negative { color: var(--registration-negative); }
.metric-scope-tag { display: block; width: fit-content; margin-bottom: 6px; padding: 3px 6px; border-radius: 3px; background: #edf2f1; color: #375851; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: normal; }
.germany-project { margin-top: 28px; border-top: 1px solid #dce3e1; padding-top: 24px; }
.germany-project[hidden] { display: none; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.project-heading h2 { margin: 8px 0; font-size: 22px; }
.project-heading p { color: #64706e; font-size: 15px; line-height: 1.7; }
.project-heading a { flex-shrink: 0; text-decoration: none; }
.germany-project iframe { display: block; width: 100%; height: 950px; border: 1px solid #dce3e1; background: #fff; }
@media (max-width: 600px) {
  .registration-comparisons { grid-template-columns: 1fr; }
  .project-heading { align-items: flex-start; flex-direction: column; }
  .germany-project iframe { height: 780px; }
}
