:root {
  --ink: #172033;
  --ink-soft: #46536a;
  --muted: #748096;
  --line: #e1e6ed;
  --line-strong: #cbd3de;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --canvas: #f3f5f8;
  --navy: #102a43;
  --navy-deep: #0b2036;
  --blue: #2f6bff;
  --blue-soft: #edf2ff;
  --teal: #23836f;
  --teal-soft: #eaf6f2;
  --amber: #9a5d00;
  --amber-soft: #fff5dc;
  --red: #a83434;
  --red-soft: #fff0f0;
  --shadow: 0 1px 2px rgba(20, 32, 51, .04), 0 8px 24px rgba(20, 32, 51, .045);
  --radius: 12px;
  --page: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font: 15.5px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(23, 104, 172, .25); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
h3 { line-height: 1.45; }
.page-width { width: min(calc(100% - 40px), var(--page)); margin-inline: auto; }
.page-main { min-height: calc(100vh - 210px); padding-block: 34px 68px; }
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-150%); background: white; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.muted, .section-note { color: var(--muted); }
.block-muted { display: block; color: var(--muted); font-size: 12px; }
.break-link { overflow-wrap: anywhere; }

.site-header { position: sticky; z-index: 30; top: 0; color: white; background: var(--navy); box-shadow: 0 2px 10px rgba(4, 23, 43, .12); }
.header-primary { min-height: 74px; display: flex; align-items: center; gap: 26px; }
.brand, .login-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand > span:last-child, .login-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.12; }
.brand strong, .login-brand strong { font-size: 17px; letter-spacing: .03em; }
.brand small, .login-brand small { margin-top: 4px; opacity: .62; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-family: Georgia, serif; font-weight: 700; }
.brand-mark.large { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }
.global-search { height: 42px; max-width: 520px; flex: 1; display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.09); }
.global-search svg { width: 18px; margin-left: 14px; fill: none; stroke: #afc1d4; stroke-width: 1.8; }
.global-search input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; padding: 0 11px; color: white; background: transparent; }
.global-search input::placeholder { color: #b9c6d4; }
.global-search button { height: 100%; padding: 0 17px; border: 0; color: white; background: rgba(255,255,255,.1); }
.user-area { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #dfeeff; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; }
.user-name { font-size: 13px; color: #dce6f0; }
.link-button { border: 0; padding: 4px; color: #aebed0; background: transparent; font-size: 13px; }
.primary-nav { border-top: 1px solid rgba(255,255,255,.08); background: var(--navy-deep); }
.nav-inner { display: flex; min-height: 44px; align-items: stretch; gap: 30px; }
.nav-inner a { position: relative; display: flex; align-items: center; color: #c6d3e1; font-size: 14px; }
.nav-inner a:hover, .nav-inner a.active { color: white; }
.nav-inner a.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.nav-inner .secondary { color: #90a4ba; font-size: 13px; }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: white; }

.site-footer { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); background: #f7f9fb; font-size: 12px; }
.site-footer > div { display: flex; justify-content: space-between; gap: 20px; }
.message-stack { margin-top: 18px; }
.message { padding: 12px 16px; border: 1px solid #b9ddcf; border-radius: 10px; color: #176044; background: #edf9f4; }
.message.error { border-color: #efc5c5; color: var(--red); background: var(--red-soft); }

.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-hero h1 { margin: 6px 0 7px; }
.page-hero p { margin-bottom: 0; color: var(--ink-soft); }
.page-hero.compact { align-items: center; }
.page-hero.compact h1 { font-size: 35px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #85d4e7; }
.hero-count { display: flex; align-items: baseline; gap: 8px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.62); }
.hero-count strong { font: 700 28px/1 Georgia, serif; color: var(--navy); }
.hero-count span { color: var(--muted); font-size: 12px; }
.system-summary { display: flex; align-items: center; gap: 12px; min-width: 285px; padding: 13px 16px; border: 1px solid #c9e8df; border-radius: 12px; background: var(--teal-soft); }
.system-summary.delayed { border-color: #f1d498; background: var(--amber-soft); }
.system-summary > div { display: flex; flex-direction: column; }
.system-summary strong { font-size: 13px; }
.system-summary small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fa083; box-shadow: 0 0 0 5px rgba(31,160,131,.12); }
.delayed .status-dot { background: #d38a16; box-shadow: 0 0 0 5px rgba(211,138,22,.13); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 3px 0 0; }
.text-link { color: var(--blue); font-weight: 650; font-size: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 13px; }
.button.primary { color: white; background: var(--blue); box-shadow: none; }
.button.primary:hover { background: #2559da; }
.button.subtle { border-color: #c9d8e7; color: #245d8e; background: #f2f7fb; }
.button.ghost { border-color: var(--line-strong); color: var(--ink-soft); background: white; }
.button.wide { width: 100%; }
.button.small { min-height: 32px; padding: 5px 10px; font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card { position: relative; min-height: 126px; padding: 20px 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(20,32,51,.035); }
.metric-card::before { display: none; }
.metric-card > span { display: block; color: var(--ink-soft); font-size: 13px; }
.metric-card > strong { display: block; margin: 9px 0 4px; color: var(--navy); font: 700 34px/1 Georgia, serif; }
.metric-card > strong.small-value { font: 700 24px/1.2 -apple-system, sans-serif; }
.metric-card small, .metric-card a { color: var(--muted); font-size: 11px; }
.metric-card a { color: var(--blue); }
.compact-metrics .metric-card { min-height: 112px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.85fr); gap: 22px; align-items: start; }
.panel-main, .attention-panel, .quick-panel { padding: 23px; }
.dashboard-side { display: grid; gap: 20px; }
.policy-list { display: grid; gap: 12px; }
.policy-list.spacious { gap: 16px; }
.policy-card { padding: 19px 20px 18px; border: 1px solid var(--line); border-radius: 11px; background: white; transition: border-color .16s, box-shadow .16s; }
.policy-card:hover { border-color: #aebde8; box-shadow: 0 5px 16px rgba(20,32,51,.055); }
.policy-card-topline { min-height: 25px; display: flex; align-items: center; gap: 7px; }
.policy-date { margin-left: auto; color: var(--muted); font-size: 11px; }
.policy-card h3 { margin: 10px 0 6px; font-size: 17px; }
.policy-card h3 a:hover { color: var(--blue); }
.policy-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.policy-meta span + span::before { content: "·"; margin-right: 14px; color: #aeb8c4; }
.policy-summary { margin: 11px 0; color: var(--ink-soft); font-size: 13px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border-radius: 999px; color: var(--ink-soft); background: var(--surface-soft); font-size: 10px; font-weight: 750; letter-spacing: .025em; }
.badge.positive { color: #0d725d; background: var(--teal-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.info, .badge.ai { color: #135f9a; background: var(--blue-soft); }
.badge.neutral { color: #647286; background: #edf1f5; }
.badge.fact { color: #40516b; background: #edf2f7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 8px; border-radius: 6px; color: #245a85; background: #eef5fa; font-size: 10px; }
.tag.soft { color: #5d6b7f; background: #f2f4f7; }
.tag.action { color: #107267; background: var(--teal-soft); }
.card-actions { display: flex; align-items: center; gap: 17px; margin-top: 14px; }
.card-actions .button { min-height: 34px; padding-block: 5px; }

.bar-list { display: grid; gap: 18px; }
.bar-item > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.bar-item > div:first-child span { max-width: 230px; }
.bar-item > div:first-child strong { color: var(--blue); }
.bar-track { height: 7px; margin: 6px 0; overflow: hidden; border-radius: 99px; background: #e7edf3; }
.bar-track > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--blue); }
.bar-item small { color: var(--muted); font-size: 10px; }
.method-note { margin: 20px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.quick-panel h2 { margin: 3px 0 13px; }
.quick-action { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.quick-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #17639c; background: var(--blue-soft); font-size: 12px; font-weight: 700; }
.quick-action > span:nth-child(2) { display: flex; flex-direction: column; }
.quick-action strong { font-size: 13px; }
.quick-action small { color: var(--muted); font-size: 10px; }
.quick-action b { color: #9babc0; }

.filter-panel { margin-bottom: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 15px rgba(25,47,74,.035); }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.field input, .field select { min-width: 145px; height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: white; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(23,104,172,.1); }
.search-field { min-width: 240px; flex: 1; }
.search-field input { width: 100%; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--blue); }
.compact-check { height: 40px; margin-right: 4px; }
.taxonomy-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.62); }
.taxonomy-strip > span { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.chip { padding: 5px 10px; border-radius: 7px; color: var(--ink-soft); background: white; font-size: 12px; }
.chip:hover, .chip.selected { color: #fff; background: var(--navy); }
.repository-layout { display: grid; grid-template-columns: 218px minmax(0,1fr); gap: 20px; align-items: start; }
.catalog-sidebar { position: sticky; top: 145px; max-height: calc(100vh - 170px); overflow: auto; padding: 18px 12px; }
.catalog-sidebar .eyebrow, .catalog-sidebar h2 { margin-left: 8px; }
.catalog-sidebar h2 { margin-top: 3px; font-size: 18px; }
.catalog-link { display: flex; justify-content: space-between; padding: 8px 9px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; }
.catalog-link:hover, .catalog-link.selected { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.lifecycle-section { margin-bottom: 25px; }
.sticky-heading { padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.9); }
.sticky-heading > div { display: flex; align-items: center; gap: 11px; }
.sticky-heading h2 { margin: 0; font-size: 19px; }
.chapter-number { color: #4c83ab; font: 700 16px Georgia, serif; }
.result-count { color: var(--muted); font-size: 11px; }
.list-heading { margin: 26px 0 14px; }
.latest-filters .field { flex: 1 1 130px; }
.view-switch { display: flex; align-items: center; gap: 5px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); }
.view-switch > span { margin: 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.view-switch a { padding: 7px 12px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; }
.view-switch a:hover, .view-switch a.active { color: white; background: var(--navy); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 25px; }
.pagination a, .pagination .disabled { min-width: 82px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 8px; text-align: center; font-size: 12px; }
.pagination a { color: var(--blue); background: white; }
.pagination .disabled { color: #a6b0bd; background: #f2f4f7; }
.page-position { color: var(--muted); font-size: 11px; }

.breadcrumbs { display: flex; gap: 8px; margin-bottom: 19px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--blue); }
.detail-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 27px 29px; border-radius: 13px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.detail-title { max-width: 850px; }
.detail-title h1 { margin: 12px 0 10px; font-size: clamp(25px,3vw,38px); }
.detail-title p { margin: 0; color: #c7d8e7; }
.detail-title p span { margin: 0 8px; }
.detail-hero .badge.fact { color: #dceaf5; background: rgba(255,255,255,.12); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-hero .button.ghost { border-color: rgba(255,255,255,.28); color: white; background: transparent; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
.detail-main { display: grid; gap: 18px; }
.detail-side { position: sticky; top: 145px; display: grid; gap: 16px; }
.detail-section, .source-card, .disclaimer-card { padding: 23px; }
.fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 0; }
.fact-grid div { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.fact-grid dt, .source-card dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.fact-grid dd, .source-card dd { margin: 4px 0 0; font-size: 13px; }
.detail-tags { margin-top: 18px; }
.summary-callout { padding: 17px 18px; border-left: 4px solid var(--blue); border-radius: 0 9px 9px 0; color: #193d5c; background: var(--blue-soft); font-size: 16px; font-weight: 650; }
.confidence-row { display: flex; justify-content: space-between; margin: 10px 0 18px; color: var(--muted); font-size: 10px; }
.rule-list { display: grid; gap: 3px; }
.rule-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.rule-number { color: #7f98ad; font: 700 14px Georgia, serif; }
.rule-item h3 { margin: 0 0 5px; font-size: 14px; }
.claim-label { display: inline-flex; color: #3a6688; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.claim-label.inference { color: var(--amber); }
blockquote { margin: 9px 0 0; padding: 10px 12px; border-left: 2px solid #adc4d7; color: var(--muted); background: #f8fafc; font-size: 11px; }
blockquote strong { display: block; margin-bottom: 2px; color: #486c8b; }
.two-column-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.two-column-list h3, .impact-list h3 { margin-bottom: 9px; font-size: 13px; }
.impact-list { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.impact-list article { margin-top: 12px; padding: 12px 14px; border-radius: 9px; background: #faf8f1; }
.impact-list p { margin: 5px 0; font-size: 13px; }
.impact-list small { color: var(--muted); }
.intensity-card { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 15px; padding: 14px; border-radius: 10px; background: #f6f8fb; }
.intensity-card span { color: var(--muted); font-size: 11px; }
.intensity-card strong { color: var(--blue); font: 700 22px Georgia,serif; }
.intensity-card p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.direction-score { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.direction-score > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.direction-score small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.score-dots { display: flex; gap: 4px; margin-top: 8px; }
.score-dots i { width: 22px; height: 5px; border-radius: 4px; background: #e3e9ef; }
.score-dots i.on { background: var(--teal); }
.action-tags { margin-top: 15px; }
.action-evidence-list { display: grid; gap: 9px; margin-top: 16px; }
.action-evidence-list article { display: grid; grid-template-columns: 115px 1fr; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.action-evidence-list small { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; }
.action-evidence-list small strong { color: #486c8b; }
.evidence-index { display: grid; gap: 8px; }
.evidence-index article { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.evidence-index code { color: var(--blue); font-size: 11px; font-weight: 700; }
.evidence-index small { color: var(--muted); font-size: 9px; }
.evidence-index p { margin: 3px 0 0; font-size: 12px; }
.comparison-card { padding: 15px; border-left: 3px solid var(--blue); border-radius: 0 9px 9px 0; background: var(--blue-soft); }
.comparison-card p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.uncertainty-list { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 12px; }
.timeline { display: grid; gap: 6px; }
.timeline a { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 11px; border-radius: 8px; background: #f7f9fb; font-size: 12px; }
.timeline a span, .timeline a small { color: var(--muted); }
.relation-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.source-card dl { margin: 14px 0 0; }
.source-card dd { margin-bottom: 15px; }
.review-notice { padding: 13px; border: 1px solid #f0d79f; border-radius: 9px; color: #795011; background: var(--amber-soft); }
.review-notice p, .disclaimer-card p { margin: 5px 0 0; font-size: 11px; }
.disclaimer-card { color: var(--ink-soft); background: #f8fafc; }

.period-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.preset-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #eef2f6; }
.preset-tabs a, .preset-tabs button { padding: 6px 11px; border: 0; border-radius: 6px; color: var(--ink-soft); background: transparent; font-size: 12px; }
.preset-tabs .active { color: var(--blue); background: white; box-shadow: 0 2px 5px rgba(20,40,60,.08); font-weight: 700; }
.custom-period { display: flex; gap: 8px; align-items: end; }
.custom-period.hidden { display: none; }
.custom-period label { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; }
.custom-period input { height: 34px; border: 1px solid var(--line); border-radius: 6px; }
.data-cutoff { margin-left: auto; color: var(--muted); font-size: 11px; }
.sample-warning { display: flex; gap: 10px; margin-bottom: 16px; padding: 10px 13px; border: 1px solid #efd49d; border-radius: 10px; color: #795011; background: var(--amber-soft); font-size: 12px; }
.observatory-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 19px; align-items: start; }
.observatory-grid > .panel, .mini-breakdown { padding: 22px; }
.observatory-grid aside { display: grid; gap: 17px; }
.narrative-panel { margin-bottom: 18px; padding: 22px; }
.narrative-paragraph { padding: 13px 0; border-top: 1px solid var(--line); }
.narrative-paragraph p { margin: 0 0 5px; color: var(--ink-soft); }
.narrative-paragraph small { color: var(--muted); font-size: 10px; }
.direction-table { display: grid; }
.direction-row { display: grid; grid-template-columns: minmax(260px,1.8fr) .45fr .45fr .65fr; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--line); font-size: 12px; }
.direction-row.header { padding-top: 0; border: 0; color: var(--muted); font-size: 10px; }
.direction-row > div strong { display: block; margin-bottom: 5px; }
.direction-row > div small { color: var(--muted); font-size: 9px; }
.mini-breakdown h2 { margin-top: 3px; }
.mini-breakdown > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.mini-breakdown > div span { display: flex; min-width: 0; flex-direction: column; }
.mini-breakdown > div small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.mini-breakdown > div strong { color: var(--blue); }
.evidence-policies { margin-top: 19px; padding: 22px; }
.compact-policy-list { display: grid; }
.compact-policy-list > a { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.compact-policy-list > a strong { font-size: 12px; }
.compact-policy-list > a small { color: var(--muted); font-size: 10px; }
.compact-policy-list > a b { color: #94a6b9; }
.page-method { padding: 14px 4px 0; }

.report-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 20px; align-items: start; }
.report-builder, .report-explainer, .report-history { padding: 23px; }
.stack-form { display: grid; gap: 16px; }
.stack-form .field input, .stack-form .field select { width: 100%; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-preview { padding: 13px 15px; border-radius: 9px; color: #235276; background: var(--blue-soft); }
.report-preview > div { display: flex; justify-content: space-between; }
.report-preview small { color: #607c92; }
.report-explainer ol { margin: 17px 0; padding-left: 30px; }
.report-explainer li { padding: 4px 0 4px 5px; border-bottom: 1px solid var(--line); font-size: 12px; }
.report-explainer p { color: var(--muted); font-size: 11px; }
.report-history { margin-top: 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 12px; }
th { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.download-actions { display: flex; gap: 5px; }
.event-panel { margin-top: 18px; padding: 22px; }
.ops-ai-panel { margin-bottom: 18px; padding: 22px; }
.ops-metric-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.ops-metric-row article { min-width: 0; padding: 16px; background: white; }
.ops-metric-row span, .ops-metric-row small { display: block; color: var(--muted); font-size: 10px; }
.ops-metric-row strong { display: block; overflow-wrap: anywhere; margin: 6px 0 3px; color: var(--navy); font-size: 18px; }
.event-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.event-row p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.event-row time { color: var(--muted); font-size: 10px; }
.event-dot { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--blue); }
.event-dot.error { background: var(--red); }
.event-dot.warning { background: #d58b13; }
.metric-grid-three { grid-template-columns: repeat(3, minmax(0,1fr)); }

.empty-state { padding: 35px 18px; text-align: center; color: var(--muted); }
.empty-state.large { padding: 80px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.empty-state.inline { padding: 25px 10px; }
.empty-state span { display: block; color: var(--ink-soft); font-size: 15px; font-weight: 700; }
.empty-state p { margin: 5px auto 12px; max-width: 500px; font-size: 12px; }
.empty-compact { padding: 25px 8px; color: var(--muted); text-align: center; font-size: 11px; }

.login-main { min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(400px,1.1fr) minmax(400px,.9fr); }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(35px,6vw,82px); color: white; background: var(--navy); }
.login-brand-panel::after { content: ""; position: absolute; right: -150px; bottom: -180px; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.login-brand { position: relative; z-index: 1; }
.login-copy { position: relative; z-index: 1; max-width: 650px; }
.login-copy h1 { margin: 14px 0 20px; font-size: clamp(34px,4.5vw,59px); line-height: 1.18; }
.login-copy p { max-width: 580px; color: #bcd0dd; font-size: 16px; }
.login-trust { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 22px; color: #a9c1d1; font-size: 11px; }
.login-trust span::before { content: "✓"; margin-right: 6px; color: #65cfbf; }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: #f2f5f8; }
.login-form-card { width: min(100%,420px); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 20px 60px rgba(18,45,74,.12); }
.login-form-card h2 { margin: 6px 0 4px; font-size: 28px; }
.login-form-card > .muted { margin-bottom: 25px; }
.form-error { padding: 11px 13px; border: 1px solid #efc6c6; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 12px; }
.login-help { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 10px; }

@media (max-width: 1020px) {
  .header-primary { gap: 14px; }
  .global-search { max-width: none; }
  .user-name { display: none; }
  .dashboard-grid, .observatory-grid { grid-template-columns: 1fr; }
  .dashboard-side { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: 1fr 1fr; }
  .report-layout { grid-template-columns: 1fr 340px; }
  .ops-metric-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .direction-row { grid-template-columns: minmax(220px,1.5fr) .4fr .4fr .6fr; }
}

@media (max-width: 760px) {
  .page-width { width: min(calc(100% - 24px), var(--page)); }
  .page-main { padding-block: 24px 45px; }
  .header-primary { min-height: 64px; flex-wrap: wrap; padding: 11px 0; }
  .brand { flex: 1; }
  .brand strong { font-size: 15px; }
  .global-search { order: 3; flex-basis: 100%; }
  .user-area { display: none; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .nav-inner { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-block: 7px; }
  .nav-inner a { padding: 10px 4px; }
  .nav-inner a.active::after { width: 3px; height: 70%; top: 15%; right: auto; }
  .nav-spacer { display: none; }
  .page-hero, .detail-hero { align-items: flex-start; flex-direction: column; }
  .page-hero.compact h1 { font-size: 30px; }
  .system-summary { width: 100%; min-width: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 108px; padding: 17px; }
  .dashboard-side, .detail-side { grid-template-columns: 1fr; }
  .panel-main, .attention-panel, .quick-panel, .detail-section, .source-card, .disclaimer-card, .report-builder, .report-explainer, .report-history { padding: 17px; }
  .filter-form > .field { flex: 1 1 45%; }
  .search-field { flex-basis: 100%!important; }
  .repository-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; display: flex; max-height: none; overflow-x: auto; align-items: center; gap: 5px; }
  .catalog-sidebar .eyebrow, .catalog-sidebar h2 { display: none; }
  .catalog-link { flex: 0 0 auto; }
  .policy-meta { flex-direction: column; gap: 2px; }
  .policy-meta span + span::before { display: none; }
  .policy-card-topline { flex-wrap: wrap; }
  .policy-date { flex-basis: 100%; margin-left: 0; }
  .fact-grid, .direction-grid, .two-column-list { grid-template-columns: 1fr; }
  .action-evidence-list article, .evidence-index article { grid-template-columns: 1fr; }
  .intensity-card { grid-template-columns: auto auto; }
  .intensity-card p { grid-column: 1 / -1; }
  .direction-table { overflow-x: auto; }
  .direction-row { min-width: 650px; }
  .compact-policy-list > a { grid-template-columns: auto 1fr auto; }
  .compact-policy-list > a small { display: none; }
  .report-layout { grid-template-columns: 1fr; }
  .ops-metric-row { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 42vh; padding: 30px 24px; }
  .login-copy h1 { font-size: 32px; }
  .login-trust { display: none; }
  .login-form-panel { padding: 24px 14px; }
  .login-form-card { padding: 26px 22px; }
  .site-footer > div { flex-direction: column; gap: 3px; }
}

@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .filter-form > .field { flex-basis: 100%; }
  .two-fields { grid-template-columns: 1fr; }
  .detail-actions { width: 100%; }
  .detail-actions .button { flex: 1; }
  .card-actions { justify-content: space-between; }
}

@media print {
  .site-header, .site-footer, .filter-panel, .period-toolbar, .detail-actions { display: none!important; }
  body { background: white; }
  .page-main { width: 100%; padding: 0; }
  .panel, .detail-hero { break-inside: avoid; box-shadow: none; }
}
