:root {
  color-scheme: light;
  --night: #071A2B;
  --night-2: #10344A;
  --night-line: #244658;
  --curve: #147D73;
  --curve-bright: #20B7A5;
  --curve-soft: #E6F4F1;
  --curve-hover: #0F665F;
  --page: #F2F5F7;
  --surface: #FFFFFF;
  --surface-muted: #F7F9FA;
  --border: #DCE4E8;
  --border-strong: #C7D2D9;
  --text: #14212B;
  --text-2: #5C6B75;
  --text-3: #83919A;
  --success: #2B8A66;
  --success-bg: #EAF6F1;
  --warning: #9A6718;
  --warning-bg: #FFF6DF;
  --danger: #C2413B;
  --danger-bg: #FDEDEC;
  --sidebar-width: 204px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page); font-size: 14px; line-height: 1.65; }
a { color: var(--curve); text-decoration: none; }
a:hover { color: var(--curve-hover); }
button, input, select { font: inherit; }
code, .mono { font-family: "SF Mono", "JetBrains Mono", monospace; }
code { padding: 1px 5px; border-radius: 4px; background: #EDF1F3; color: #29404F; font-size: 12px; overflow-wrap: anywhere; word-break: break-word; }
pre { margin: 14px 0; padding: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #F5F7F8; color: #29404F; font: 12px/1.65 "SF Mono", "JetBrains Mono", monospace; }
pre code { padding: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }

.app-shell { min-height: 100vh; padding-left: var(--sidebar-width); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width);
  display: flex; flex-direction: column; color: #D6E2E8; background: var(--night);
  border-right: 1px solid #0E2C40;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px; border-bottom: 1px solid var(--night-line); color: #FFFFFF; }
.sidebar-brand:hover { color: #FFFFFF; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-copy { min-width: 0; }
.brand-name { display: block; font-size: 18px; font-weight: 700; line-height: 22px; letter-spacing: -.02em; }
.brand-tagline { display: block; margin-top: 2px; color: #89A5B4; font-size: 11px; line-height: 16px; }
.sidebar-nav { padding: 16px 12px; }
.nav-label { padding: 8px 12px; color: #6F8D9D; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 10px; margin: 2px 0; padding: 0 12px; border-radius: 6px; color: #B7C9D2; }
.nav-link svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nav-link:hover { color: #FFFFFF; background: #0D2B3F; }
.nav-link.active { color: #FFFFFF; background: #12473F; }
.nav-link.active::before { content: ""; width: 3px; height: 18px; margin-left: -12px; border-radius: 0 2px 2px 0; background: var(--curve-bright); }
.sidebar-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--night-line); color: #7E9BAA; font-size: 11px; }
.sidebar-foot strong { display: block; margin-bottom: 4px; color: #C7D7DE; font-size: 12px; }

.topbar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb-sep { color: #B3C0C7; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.stage-chip { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border: 1px solid #B7DDD5; border-radius: 999px; color: #12685F; background: var(--curve-soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.stage-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--curve); }
.top-date { color: var(--text-3); font-size: 12px; }

.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 48px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--curve); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.35; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
.page-lede { max-width: 780px; margin: 8px 0 0; color: var(--text-2); }

.watch-banner { display: grid; grid-template-columns: 108px minmax(0,1fr) auto; align-items: center; gap: 24px; min-height: 168px; padding: 24px 32px; color: #E9F3F5; background: var(--night); border: 1px solid #11354B; border-radius: 8px; overflow: hidden; }
.watch-mark { width: 96px; height: 96px; }
.watch-banner h2 { color: #FFFFFF; font-size: 28px; letter-spacing: -.035em; }
.watch-banner p { max-width: 640px; margin: 8px 0 0; color: #AFC4CE; font-size: 15px; }
.watch-meaning { min-width: 208px; padding-left: 24px; border-left: 1px solid var(--night-line); }
.watch-meaning div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; color: #90AAB7; font-size: 12px; }
.watch-meaning b { color: #D9E7EC; font-weight: 500; }

.summary-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.summary-cell { min-height: 92px; padding: 16px 20px; border-right: 1px solid var(--border); }
.summary-cell:last-child { border-right: 0; }
.summary-label { color: var(--text-3); font-size: 12px; }
.summary-value { margin-top: 5px; font-size: 24px; font-weight: 650; line-height: 30px; }
.summary-note { margin-top: 3px; color: var(--text-2); font-size: 12px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 16px; margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.panel-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-head p { margin: 2px 0 0; color: var(--text-3); font-size: 12px; }
.panel-body { padding: 16px; }
.panel-link { font-size: 12px; font-weight: 600; }

.research-table { width: 100%; border-collapse: collapse; }
.research-table th { padding: 10px 16px; color: var(--text-3); background: var(--surface-muted); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .05em; }
.research-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.research-table tbody tr:last-child td { border-bottom: 0; }
.research-table tbody tr:hover { background: #F9FBFB; }
.research-title { display: block; color: var(--text); font-weight: 650; }
.research-desc { margin-top: 3px; color: var(--text-2); font-size: 12px; }
.tag { display: inline-flex; min-height: 22px; align-items: center; padding: 1px 7px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-2); background: #FFFFFF; font-size: 11px; white-space: nowrap; }
.tag.good { color: #176B50; border-color: #BFE0D2; background: var(--success-bg); }
.tag.warn { color: #815716; border-color: #EAD29D; background: var(--warning-bg); }
.tag.danger { color: #9F302C; border-color: #E9B7B3; background: var(--danger-bg); }

.watch-list { margin: 0; padding: 0; list-style: none; }
.watch-item { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.watch-item:last-child { border-bottom: 0; }
.watch-bullet { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--curve); }
.watch-item strong { display: block; font-size: 13px; }
.watch-item p { margin: 2px 0 0; color: var(--text-2); font-size: 12px; }
.status-text { color: var(--text-3); font-size: 11px; white-space: nowrap; }

.decision-box { padding: 16px; border-left: 3px solid var(--warning); background: var(--warning-bg); }
.decision-box p { margin: 5px 0 0; color: #725521; font-size: 13px; }
.decision-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 650; }

.report-layout { display: grid; grid-template-columns: minmax(0,1fr) 176px; gap: 24px; align-items: start; }
.report-main { min-width: 0; }
.report-toc { position: sticky; top: 80px; padding-left: 16px; border-left: 1px solid var(--border); }
.report-toc strong { display: block; margin-bottom: 8px; color: var(--text-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.report-toc a { min-height: 32px; display: flex; align-items: center; padding: 2px 8px; border-radius: 4px; color: var(--text-2); font-size: 12px; }
.report-toc a:hover { color: var(--curve); background: var(--curve-soft); }
.report-header { padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.report-header h1 { max-width: 850px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.report-section, .section { margin-top: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); scroll-margin-top: 74px; }
.report-section > h2, .section > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.report-section > h2::before, .section > h2::before { content: ""; width: 3px; height: 18px; border-radius: 2px; background: var(--curve); }
.report-section h3, .section h3 { margin: 20px 0 8px; }
.report-section p, .section p { color: var(--text-2); }
.report-section ul, .report-section ol, .section ul, .section ol { margin: 12px 0; padding-left: 22px; }
.report-section li + li, .section li + li { margin-top: 6px; }
.report-section li, .section li { overflow-wrap: anywhere; }

.callout { margin: 12px 0; padding: 14px 16px; border-left: 3px solid var(--curve); background: var(--curve-soft); }
.callout strong { display: block; margin-bottom: 4px; }
.callout p, .callout div { margin: 0; color: #325C58; }
.callout.good { border-color: var(--success); background: var(--success-bg); }
.callout.warn { border-color: var(--warning); background: var(--warning-bg); }
.callout.danger { border-color: var(--danger); background: var(--danger-bg); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 12px; color: var(--text-3); background: var(--surface-muted); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td p { margin: 0; }
.section table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.section table th { padding: 10px 12px; color: var(--text-3); background: var(--surface-muted); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.section table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.section table tr:last-child td { border-bottom: 0; }
.verdict-good { color: var(--success); font-weight: 650; }
.verdict-warn { color: var(--warning); font-weight: 650; }
.verdict-bad { color: var(--danger); font-weight: 650; }
.yes { color: var(--success); font-weight: 650; }
.partial { color: var(--warning); font-weight: 650; }
.no { color: var(--danger); font-weight: 650; }
.priority { display: inline-flex; min-width: 32px; justify-content: center; padding: 1px 6px; border-radius: 4px; font-family: "SF Mono", monospace; font-size: 11px; font-weight: 700; }
.p0 { color: #9F302C; background: var(--danger-bg); }
.p1 { color: #815716; background: var(--warning-bg); }
.p2 { color: #12685F; background: var(--curve-soft); }

.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.plain-group { padding: 16px; border: 1px solid var(--border); }
.plain-group p { margin: 6px 0 0; }
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; border: 1px solid var(--border); }
.flow-step { min-width: 150px; flex: 1 0 150px; padding: 14px; border-right: 1px solid var(--border); background: var(--surface-muted); }
.flow-step:last-child { border-right: 0; }
.flow-step b { display: block; margin-bottom: 4px; }
.flow-step span { color: var(--text-2); font-size: 12px; }
.flow-arrow { align-self: center; padding: 0 6px; color: var(--text-3); }
.grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 12px; }
.card { grid-column: span 4; padding: 16px; border: 1px solid var(--border); background: var(--surface-muted); }
.card.wide { grid-column: span 6; }
.card p { margin: 5px 0 0; }
.kpi { font: 650 24px/32px "SF Mono", monospace; }
.kpi-label { color: var(--text-2); font-size: 12px; }
.status-line { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.status-line:last-of-type { border-bottom: 0; }
.status-index { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--curve); background: var(--curve-soft); font: 700 11px/1 "SF Mono", monospace; }
.list-clean, .source-list { margin: 0; padding-left: 22px; }

.rule-list { counter-reset: rule; margin: 0; padding: 0; list-style: none; }
.rule-item { counter-increment: rule; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.rule-item:last-child { border-bottom: 0; }
.rule-item::before { content: counter(rule, decimal-leading-zero); width: 32px; height: 32px; display: grid; place-items: center; color: var(--curve); background: var(--curve-soft); border-radius: 6px; font-family: "SF Mono", monospace; font-size: 12px; font-weight: 700; }
.rule-item p { margin: 3px 0 0; }

.brand-showcase { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; align-items: center; }
.brand-tile { min-height: 220px; display: grid; place-items: center; background: var(--night); }
.brand-tile img { width: 148px; height: 148px; }
.meaning-list { margin: 0; padding: 0; list-style: none; }
.meaning-list li { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.meaning-list li:last-child { border-bottom: 0; }
.meaning-list b { color: var(--text); }
.meaning-list span { color: var(--text-2); }
.swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.swatch { min-height: 92px; padding: 12px; border: 1px solid var(--border); background: var(--surface); }
.swatch-color { width: 28px; height: 28px; margin-bottom: 12px; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; }
.swatch b, .swatch span { display: block; }
.swatch span { margin-top: 3px; color: var(--text-3); font: 11px/16px "SF Mono", monospace; }

.footer { padding: 24px 0 8px; color: var(--text-3); font-size: 11px; text-align: center; }
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .content-grid, .report-layout { grid-template-columns: 1fr; }
  .report-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0 0; border: 0; }
  .report-toc strong { width: 100%; }
  .report-toc a { min-height: 36px; }
  .watch-banner { grid-template-columns: 84px minmax(0,1fr); }
  .watch-mark { width: 76px; height: 76px; }
  .watch-meaning { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); min-width: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--night-line); }
  .watch-meaning div { display: block; }
  .watch-meaning b { display: block; margin-top: 2px; }
}

@media (max-width: 760px) {
  .app-shell { padding-left: 0; padding-top: 72px; }
  .sidebar { inset: 0 0 auto 0; width: 100%; height: 72px; flex-direction: row; align-items: center; }
  .sidebar-brand { min-height: 72px; width: auto; border: 0; }
  .brand-tagline, .sidebar-foot, .nav-label { display: none; }
  .sidebar-nav { margin-left: auto; display: flex; padding: 8px 12px; overflow-x: auto; }
  .nav-link { width: 44px; min-width: 44px; justify-content: center; padding: 0; }
  .nav-link span { display: none; }
  .nav-link.active::before { display: none; }
  .topbar { top: 72px; padding: 0 12px; }
  .breadcrumb { min-width: 0; }
  .breadcrumb > :not(strong) { display: none; }
  .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-date { display: none; }
  .page { width: min(100% - 24px, 1180px); padding-top: 16px; }
  .watch-banner { grid-template-columns: 64px minmax(0,1fr); padding: 20px; gap: 16px; }
  .watch-mark { width: 58px; height: 58px; }
  .watch-banner h2 { font-size: 22px; }
  .watch-banner p { font-size: 13px; }
  .watch-meaning { grid-template-columns: 1fr; }
  .watch-meaning div { display: flex; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-cell { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--border); }
  .summary-cell:last-child { border-bottom: 0; }
  .research-table th:nth-child(2), .research-table td:nth-child(2), .research-table th:nth-child(4), .research-table td:nth-child(4) { display: none; }
  .report-header, .report-section { padding: 16px; }
  .two-col, .brand-showcase, .swatches { grid-template-columns: 1fr; }
  .brand-tile { min-height: 180px; }
  .page-header { flex-direction: column; }
}

@media print {
  .app-shell { padding-left: 0; }
  .sidebar, .topbar, .report-toc { display: none; }
  .page { width: 100%; padding: 0; }
  .report-section, .report-header, .panel { break-inside: avoid; }
}
