:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #122033;
  background: #f3f7fb;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-gate[hidden], .onboarding-page[hidden], .app-shell[hidden] { display: none !important; }
.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 28px; background:
    radial-gradient(circle at top, rgba(16, 143, 210, .12), transparent 36%),
    linear-gradient(180deg, #f7fbfe, #eef5fb); }
.auth-card { width: min(420px, 100%); padding: 28px; border: 1px solid #d9e5f0; border-radius: 20px; background: #fff; box-shadow: 0 22px 60px rgba(24, 49, 77, .09); }
.auth-brand { padding-bottom: 18px; }
.auth-copy h1 { margin-bottom: 8px; font-size: 30px; }
.auth-copy p { margin-bottom: 0; color: #66798c; line-height: 1.65; }
.auth-form { display: grid; gap: 13px; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; color: #27445e; font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid #cfe0ea; border-radius: 10px; color: #163248; background: #fff; font: inherit; }
.auth-form input:focus { outline: 2px solid rgba(15, 143, 210, .14); outline-offset: 0; border-color: #7cbfe7; }
.auth-form .primary { min-height: 44px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: 24px 16px 96px; border-right: 1px solid #d9e5f0; background: #f8fbfe; }
.sidebar .sidebar-toggle { position: absolute; top: 18px; right: 12px; display: grid; place-items: center; width: 34px; min-height: 34px; padding: 0; border-radius: 50%; color: #36546c; background: #edf3f7; }
.sidebar .sidebar-toggle:hover { color: #087dbd; background: #dff3ff; }
.sidebar-toggle-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.sidebar-toggle.is-collapsed .sidebar-toggle-icon { transform: rotate(180deg); }
.sidebar-toggle-text { display: none; }
.brand-mark { display: flex; gap: 10px; align-items: center; padding: 0 5px 26px; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #087dbd; background: #dff3ff; font-size: 20px; font-weight: 800; }
.brand-mark strong, .brand-mark span { display: block; }
.brand-mark strong { font-size: 15px; }
.brand-mark span { margin-top: 3px; color: #6b7d90; font-size: 11px; }
.side-current { padding: 13px 12px; border: 1px solid #d8e6f1; border-radius: 12px; background: #fff; }
.side-current span, .side-current small { display: block; color: #718297; font-size: 11px; }
.side-current strong { display: block; margin: 4px 0; font-size: 15px; }
.nav { display: grid; gap: 4px; margin-top: 24px; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; padding-bottom: 24px; }
.sidebar-footer { position: absolute; right: 16px; bottom: 16px; left: 16px; padding-top: 18px; }
.sidebar-footer .account-menu { position: relative; display: block; width: 100%; }
.sidebar-footer .account-trigger { width: 100%; justify-content: space-between; }
.sidebar-footer .account-menu-panel { top: auto; right: auto; bottom: calc(100% + 10px); left: 0; width: 100%; max-width: 100%; }
.nav-section-label { padding: 0 10px 6px; color: #8a9bad; font-size: 11px; }
.nav-system-label { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dce6ef; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 8px; padding: 10px 11px; color: #2e4760; background: transparent; text-align: left; font-size: 13px; }
.nav button:hover { background: #edf6fc; }
.nav button.active { color: #087dbd; background: #dff3ff; font-weight: 700; }
.nav button:disabled { cursor: not-allowed; opacity: .45; }
.nav-icon, .account-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav button.active .nav-icon { stroke-width: 2; }
.app-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.app-shell.sidebar-collapsed .sidebar { padding-right: 10px; padding-left: 10px; }
.app-shell.sidebar-collapsed .sidebar-toggle { position: static; order: -1; align-self: center; margin: -8px 0 12px; }
.app-shell.sidebar-collapsed .brand-mark { justify-content: center; padding: 0 0 14px; }
.app-shell.sidebar-collapsed .brand-mark > div:not(.logo),
.app-shell.sidebar-collapsed .side-current,
.app-shell.sidebar-collapsed .nav-section-label { display: none; }
.app-shell.sidebar-collapsed .nav { align-content: start; gap: 6px; margin-top: 8px; padding-right: 0; }
.app-shell.sidebar-collapsed .nav button { display: grid; place-items: center; gap: 0; height: 44px; min-height: 44px; padding: 0; font-size: 0; line-height: 0; text-align: center; }
.app-shell.sidebar-collapsed .nav-icon { width: 20px; height: 20px; }
.app-shell.sidebar-collapsed .sidebar-footer { right: 10px; left: 10px; padding-top: 0; }
.app-shell.sidebar-collapsed .account-trigger { justify-content: center; min-height: 40px; padding: 0; font-size: 0; }
.app-shell.sidebar-collapsed .account-icon { width: 20px; height: 20px; color: #087dbd; }
.app-shell.sidebar-collapsed .account-trigger-label,
.app-shell.sidebar-collapsed .account-trigger-caret { display: none; }
.app-shell.sidebar-collapsed .sidebar-footer .account-menu-panel { right: auto; bottom: 0; left: calc(100% + 10px); width: 240px; max-width: calc(100vw - 90px); }
.side-note { display: grid; gap: 5px; margin-top: 28px; padding: 12px; border-radius: 10px; background: #edf6fc; color: #60758a; font-size: 11px; line-height: 1.55; }
.side-note strong { color: #2a4a64; font-size: 12px; }
.main { min-width: 0; padding: 30px 34px 64px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 0; }
.snapshot-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; text-align: right; }
.account-menu { position: relative; display: flex; align-items: center; }
.account-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.account-trigger-label { font-weight: 700; }
.account-trigger-caret { font-size: 11px; opacity: .7; }
.account-menu.is-open .account-trigger { border-color: #79bfe6; box-shadow: 0 0 0 2px rgba(15, 143, 210, .12); }
.account-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: grid; gap: 10px; width: 240px; padding: 14px; border: 1px solid #d8e3ed; border-radius: 14px; color: #183953; background: #fff; box-shadow: 0 18px 42px rgba(18, 37, 58, .14); text-align: left; }
.account-menu-panel[hidden] { display: none; }
.account-menu-title { margin: 0; font-size: 13px; font-weight: 700; }
.account-menu-description { margin: 0; color: #63768a; font-size: 11px; line-height: 1.5; }
.account-menu-action { min-height: 38px; border: 0; border-radius: 10px; padding: 0 12px; color: #fff; background: #d9485a; font-weight: 700; text-align: center; }
.account-menu-action:hover { background: #c93f50; }
.account-menu-action:focus-visible { outline: 2px solid rgba(217, 72, 90, .24); outline-offset: 2px; }
.eyebrow { margin: 0 0 7px; color: #1589c8; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }
h2 { margin-bottom: 0; font-size: 18px; }
h3 { margin: 0 0 10px; font-size: 14px; }
.page-lede { margin: 8px 0 0; color: #65798e; font-size: 13px; }
.muted { color: #718297; font-size: 12px; }
.state { display: flex; gap: 12px; align-items: center; margin: 18px 0; padding: 13px 15px; border: 1px solid #dbe5ef; border-radius: 10px; background: #fff; }
.state[hidden] { display: none; }
.state strong { font-size: 13px; }
.state p { margin: 4px 0 0; color: #687b8f; font-size: 12px; }
.state-ready { border-color: #bfe7d2; background: #f6fffa; }
.state-warn { border-color: #efd7a1; background: #fffbf0; }
.state-error { border-color: #f2baba; background: #fff8f8; }
.state-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3f6ed; color: #168252; font-weight: 800; }
.state-warn .state-icon { background: #fff0ca; color: #9b6900; }
.state-error .state-icon { background: #ffe1e1; color: #b64141; }
.spinner { width: 19px; height: 19px; border: 3px solid #d8eaf5; border-top-color: #118dce; border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.content { display: grid; gap: 18px; }
.panel { min-width: 0; padding: 20px; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-head p { margin: 5px 0 0; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 11px; }
.compact-metrics { margin-bottom: 15px; }
.metric { min-height: 115px; padding: 15px; border: 1px solid #e0e9f1; border-radius: 11px; background: #fbfdff; }
.metric { position: relative; overflow: hidden; }
.metric-hint { position: relative; }
.metric-hint[data-metric-hint]::before { position: absolute; z-index: 12; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(260px, 78vw); padding: 7px 9px; border-radius: 7px; color: #fff; background: rgba(19, 44, 64, .96); box-shadow: 0 7px 18px rgba(17, 45, 66, .18); content: attr(data-metric-hint); font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: 0; pointer-events: none; text-align: left; white-space: normal; opacity: 0; transform: translateY(3px); transition: opacity .15s ease, transform .15s ease; visibility: hidden; }
.metric-hint[data-metric-hint]:hover::before, .metric-hint[data-metric-hint]:focus-visible::before { opacity: 1; transform: translateY(0); visibility: visible; }
.metric.metric-hint[data-metric-hint]::before { top: 14px; right: 13px; bottom: auto; left: auto; max-width: calc(100% - 26px); }
.metric-inline { display: inline-block; }
.metric-drill { padding-bottom: 31px; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.metric-drill:hover, .metric-drill:focus-visible { border-color: #72bfe7; outline: 0; box-shadow: 0 8px 20px rgba(19, 117, 170, .12); transform: translateY(-1px); }
.metric-drill::after { position: absolute; right: 13px; bottom: 10px; color: #087dbd; content: "查看证据 ↗"; font-size: 10px; font-weight: 700; }
.metric-icon { position: absolute; top: 12px; right: 13px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #087dbd; background: #e6f5fd; font-size: 12px; font-weight: 800; }
.metric-warn { background: #fffcf3; border-color: #efdfb5; }
.metric-key { color: #6e8093; font-size: 12px; }
.metric-value { margin: 12px 0 6px; font-size: 25px; font-weight: 750; letter-spacing: -.03em; }
.metric-ratio { color: #6c7d91; font-size: 12px; line-height: 1.45; }
.metric-reason { margin-top: 8px; color: #a56d00; font-size: 11px; }
.explain { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #edf6fc; color: #526a80; font-size: 12px; line-height: 1.6; }
.explain strong { color: #274a64; }
.explain p { margin: 4px 0 0; }
.decision-summary { margin-top: 14px; padding: 15px 16px; border-left: 3px solid #1596dc; border-radius: 0 10px 10px 0; background: #f2f9fd; color: #365d78; font-size: 13px; line-height: 1.65; }
.decision-summary strong { color: #174564; }
.decision-summary p { margin: 5px 0; font-size: 15px; font-weight: 700; }
.decision-summary small { color: #58748a; font-size: 12px; }
.overview-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; padding: 25px; border-radius: 16px; color: #fff; background: linear-gradient(132deg, #0e5279, #087fba); box-shadow: 0 12px 30px rgba(10, 92, 137, .15); }
.overview-hero h2 { margin: 7px 0 12px; font-size: 28px; }
.overview-kicker, .matrix-drawer-eyebrow { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #cfefff; background: rgba(255, 255, 255, .13); font-size: 11px; font-weight: 700; }
.overview-conclusion { max-width: 720px; margin-bottom: 12px; font-size: 17px; font-weight: 650; line-height: 1.65; }
.overview-window { margin: 0; color: #c9e8f7; font-size: 12px; }
.overview-snapshot-card { display: grid; gap: 14px; align-content: start; padding: 16px; border: 1px solid rgba(255,255,255,.23); border-radius: 12px; background: rgba(4, 51, 80, .2); }
.overview-snapshot-top { display: flex; gap: 9px; align-items: center; }
.overview-snapshot-top strong, .overview-snapshot-top small { display: block; }
.overview-snapshot-top small, .overview-snapshot-card > small { color: #c8e8f8; font-size: 11px; }
.overview-snapshot-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #087dbd; background: #d9f5e8; font-weight: 800; }
.overview-snapshot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.overview-snapshot-stats div { min-width: 0; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.1); }
.overview-snapshot-stats span, .overview-snapshot-stats strong { display: block; }
.overview-snapshot-stats span { color: #d7eef9; font-size: 10px; }
.overview-snapshot-stats strong { margin-top: 5px; font-size: 14px; overflow-wrap: anywhere; }
.overview-decision { margin-top: 14px; }
.overview-matrix-action { min-height: 38px; }
.overview-dashboard { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 18px; }
.overview-dashboard .panel { height: 100%; }
.overview-filter-bar { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; }
.overview-filter-heading { display: flex; align-items: baseline; gap: 10px; }
.overview-filter-heading strong { color: #163b56; font-size: 13px; }
.overview-filter-heading p { margin: 0; color: #718397; font-size: 11px; }
.overview-filter-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; align-items: center; }
.overview-filter-controls .matrix-filter { position: relative; gap: 0; }
.overview-filter-controls .matrix-filter > span { display: none; }
.overview-filter-controls .matrix-filter select { min-height: 38px; padding: 0 34px 0 11px; font-weight: 600; appearance: none; -webkit-appearance: none; }
.overview-filter-controls .matrix-filter select::-ms-expand { display: none; }
.overview-filter-controls .matrix-filter:not(.date-range-filter)::after { position: absolute; top: 50%; right: 13px; width: 6px; height: 6px; content: ""; border-right: 1.5px solid #648198; border-bottom: 1.5px solid #648198; pointer-events: none; transform: translateY(-65%) rotate(45deg); }
.overview-filter-controls .matrix-filter select:disabled { cursor: not-allowed; color: #8090a0; background: #f1f5f8; }
.overview-filter-reset { min-height: 38px; padding: 0 13px; }
.overview-filter-reset:disabled { cursor: default; opacity: .48; }
.overview-filter-scope { margin: 0; color: #39708e; font-size: 11px; }
.overview-kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.overview-kpi-card { position: relative; min-width: 0; min-height: 126px; overflow: hidden; padding: 15px 16px 14px; border: 1px solid #dbe5ef; border-left: 4px solid #20b787; border-radius: 12px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.overview-kpi-card-2 { border-left-color: #f03e64; }
.overview-kpi-card-3 { border-left-color: #ed9500; }
.overview-kpi-card-4 { border-left-color: #16a9df; }
.overview-kpi-card-5 { border-left-color: #1399df; }
.overview-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.overview-kpi-label { min-width: 0; overflow: hidden; color: #46617b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.overview-kpi-status { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.overview-kpi-status.is-good { color: #087a53; background: #dcf8ed; }
.overview-kpi-status.is-partial { color: #087a53; background: #dcf8ed; }
.overview-kpi-status.is-warn { color: #9b6500; background: #fff1c9; }
.overview-kpi-value { display: block; margin: 13px 0 6px; color: #071a2d; font-size: 27px; line-height: 1; letter-spacing: -.025em; }
.overview-kpi-detail { display: -webkit-box; margin: 0; overflow: hidden; color: #61778c; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.overview-kpi-drill { cursor: pointer; }
.overview-kpi-drill:hover, .overview-kpi-drill:focus-visible { border-color: #78bfe5; outline: 0; box-shadow: 0 8px 22px rgba(24, 100, 143, .11); transform: translateY(-1px); }
.overview-cognition { overflow: hidden; padding: 0; }
.overview-cognition > .panel-head { align-items: flex-start; margin: 0; padding: 17px 20px 14px; }
.cognition-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cognition-badge { padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.cognition-badge.is-good { color: #087a53; background: #dcf8ed; }
.cognition-badge.is-partial { color: #087a53; background: #dcf8ed; }
.cognition-badge.is-warn { color: #9b6500; background: #fff1c9; }
.ai-cognition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e2eaf1; border-bottom: 1px solid #e2eaf1; }
.ai-cognition-item { min-width: 0; padding: 17px 18px; border-right: 1px solid #e2eaf1; }
.ai-cognition-item:last-child { border-right: 0; }
.ai-cognition-item span, .ai-cognition-item strong, .ai-cognition-item small { display: block; }
.ai-cognition-item span { color: #526b83; font-size: 11px; }
.ai-cognition-item strong { margin: 8px 0 5px; color: #087f77; font-size: 24px; line-height: 1; }
.ai-cognition-item small { color: #687f94; font-size: 11px; line-height: 1.45; }
.ai-cognition-decision { margin: 16px 20px 0; }
.ai-cognition-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 20px 18px; padding: 13px 15px; border-radius: 10px; background: #edf6fc; }
.ai-cognition-snapshot { min-width: 0; color: #526a80; }
.ai-cognition-snapshot strong { color: #234d68; font-size: 12px; }
.ai-cognition-snapshot p { margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
.overview-analytics { display: grid; grid-template-columns: minmax(0, 3fr) minmax(310px, 1fr); gap: 18px; align-items: stretch; }
.overview-analytics .panel { height: 100%; align-self: stretch; }
.metric-insights { display: grid; gap: 14px; }
.metric-insight { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid #e2ebf1; border-radius: 9px; background: #fbfdff; }
.metric-insight-head { display: flex; justify-content: space-between; gap: 12px; color: #35566f; font-size: 12px; }
.metric-insight-head span { color: #087dbd; font-weight: 750; }
.metric-insight-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e6eef4; }
.metric-insight-value { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1599dd, #22bbbd); }
.metric-insight.is-risk .metric-insight-value { background: #ef4563; }
.metric-insight.is-warn .metric-insight-value { background: #ee9700; }
.metric-insight.is-good .metric-insight-value { background: #17b77b; }
.metric-insight small { color: #6e8193; font-size: 11px; line-height: 1.45; }
.overview-diagnosis { display: flex; flex-direction: column; }
.overview-diagnosis > .panel-head { align-items: flex-start; }
.diagnosis-summary { margin-bottom: 17px; }
.diagnosis-kicker { display: inline-flex; margin-bottom: 11px; padding: 4px 8px; border-radius: 999px; color: #e23756; background: #ffe4e9; font-size: 10px; font-weight: 750; }
.diagnosis-summary h3 { margin: 0 0 8px; color: #10243a; font-size: 21px; line-height: 1.35; }
.diagnosis-summary p { margin: 0; color: #5d7388; font-size: 12px; line-height: 1.6; }
.diagnosis-note { margin: 8px 0 0; color: #6a7f92; font-size: 11px; line-height: 1.45; }
.diagnosis-recommendation { margin-top: auto; padding: 12px 13px; border-radius: 9px; color: #14704e; background: #eaf9f0; }
.diagnosis-recommendation strong { font-size: 11px; }
.diagnosis-recommendation p { margin: 5px 0 0; font-size: 12px; font-weight: 650; line-height: 1.5; }
.overview-weekly-brief { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.overview-weekly-brief > .panel-head { align-items: flex-start; margin-bottom: 0; }
.weekly-brief-summary { display: grid; gap: 8px; }
.weekly-brief-kicker { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; color: #087dbd; background: #e8f5ff; font-size: 10px; font-weight: 750; }
.weekly-brief-summary h3 { margin: 0; color: #10243a; font-size: 19px; line-height: 1.35; }
.weekly-brief-summary p { margin: 0; color: #667b90; font-size: 12px; line-height: 1.55; }
.weekly-brief-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weekly-brief-metric { min-width: 0; padding: 10px 9px; border: 1px solid #e0e9f1; border-radius: 9px; background: #f8fbfe; }
.weekly-brief-metric span, .weekly-brief-metric strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-brief-metric span { color: #718397; font-size: 11px; }
.weekly-brief-metric strong { margin-top: 7px; color: #10243a; font-size: 17px; line-height: 1; }
.weekly-brief-weakness { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid #e2ebf1; border-radius: 9px; background: #fbfdff; }
.weekly-brief-weakness div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.weekly-brief-weakness span { color: #718397; font-size: 11px; white-space: nowrap; }
.weekly-brief-weakness strong { min-width: 0; overflow: hidden; color: #10243a; font-size: 13px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.weekly-brief-weakness small { color: #667b90; font-size: 11px; line-height: 1.45; }
.weekly-brief-weakness.is-lagging { border-color: #f3d3d9; background: #fff8f9; }
.weekly-brief-next { display: grid; gap: 6px; padding: 11px 12px; border-radius: 9px; color: #14704e; background: #eaf9f0; }
.weekly-brief-next span { font-size: 11px; font-weight: 750; }
.weekly-brief-next strong { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.weekly-brief-locked { position: relative; flex: 1 1 auto; min-height: 110px; overflow: hidden; display: grid; align-content: start; gap: 8px; padding: 12px; border: 1px solid #e2ebf1; border-radius: 9px; background: linear-gradient(180deg, #f8fbfe, #fff); }
.weekly-brief-line { display: block; height: 9px; border-radius: 999px; background: linear-gradient(90deg, #dbe6ee, #c9d9e7); filter: blur(1.7px); opacity: .72; }
.weekly-brief-line.is-long { width: 100%; }
.weekly-brief-line.is-mid { width: 78%; }
.weekly-brief-line.is-short { width: 56%; }
.weekly-brief-lock-note { position: absolute; right: 10px; bottom: 10px; left: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid #dce7f0; border-radius: 9px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 20px rgba(16, 44, 68, .08); backdrop-filter: blur(8px); }
.weekly-brief-lock-note span { min-width: 0; overflow: hidden; color: #6e8193; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-brief-open { flex: 0 0 auto; min-height: 30px; padding: 0 9px; }
.action-preview { margin-bottom: 12px; padding: 13px; border: 1px solid #dce9f1; border-radius: 10px; background: #f7fbfe; color: #536d82; font-size: 12px; line-height: 1.55; }
.action-preview strong { color: #234b66; }
.action-preview p { margin: 7px 0 4px; }
.action-preview small { color: #73879a; font-size: 11px; }
.action-preview-head { display: flex; align-items: center; gap: 8px; }
.action-preview.compact { margin-bottom: 10px; }
.weekly-conclusion { margin-bottom: 15px; padding: 18px; border-radius: 11px; color: #eaf8ff; background: linear-gradient(120deg, #12618d, #168bc4); }
.weekly-tools { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.weekly-report { display: grid; gap: 16px; }
.weekly-report.is-clean { gap: 12px; }
.weekly-report.is-clean > .panel-head { display: none; }
.weekly-report.is-clean > .weekly-tools { margin-top: 0; }
.weekly-report.is-clean > .weekly-tools { margin: -2px 0 2px; }
.weekly-report.is-clean .weekly-focus-strip { display: none; }
.weekly-report.is-clean .weekly-report-lead { min-height: 0; padding: 18px 20px; gap: 8px; }
.weekly-report.is-clean .weekly-report-lead h3 { max-width: 720px; font-size: 21px; }
.weekly-report.is-clean .weekly-report-lead-detail { font-size: 13px !important; }
.weekly-report.is-clean .weekly-report-side { gap: 8px; }
.weekly-report.is-clean .weekly-report-side .metric { min-height: 92px; padding: 10px; }
.weekly-report.is-clean .weekly-report-side .metric-value { margin: 8px 0 4px; font-size: 20px; }
.weekly-report.is-clean .weekly-report-side .metric-ratio { display: none; }
.weekly-report.is-clean .weekly-next-step { padding: 10px 12px; }
.weekly-report.is-clean + .weekly-report-main-grid { gap: 12px; }
.weekly-report.is-clean + .weekly-report-main-grid .panel { padding: 16px; }
.weekly-report.is-clean + .weekly-report-main-grid .panel-head { margin-bottom: 11px; }
.weekly-report.is-clean + .weekly-report-main-grid .weekly-platform-card { grid-template-columns: minmax(110px, .75fr) minmax(190px, 1fr) minmax(0, 1.45fr); gap: 10px; padding: 10px 12px; }
.weekly-report.is-clean + .weekly-report-main-grid .weekly-platform-actions { display: none; }
.weekly-report.is-clean + .weekly-report-main-grid .weekly-platform-card > p { -webkit-line-clamp: 1; }
.weekly-report.is-clean + .weekly-report-main-grid .weekly-question-card { padding: 10px; }
.weekly-report.is-clean ~ .weekly-action-panel { margin-top: 0; padding: 14px 16px; }
.weekly-report.is-clean ~ .weekly-details { border-radius: 10px; }
.weekly-report-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(430px, .95fr); gap: 16px; align-items: stretch; }
.weekly-report-lead { display: grid; align-content: start; gap: 10px; padding: 20px; border: 1px solid #cfe2f0; border-radius: 12px; background: linear-gradient(135deg, #f2f9ff, #fff 72%); }
.weekly-report-kicker { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; color: #087dbd; background: #e8f5ff; font-size: 10px; font-weight: 750; }
.weekly-report-lead h3 { margin: 0; color: #10243a; font-size: 22px; line-height: 1.35; }
.weekly-report-lead p { margin: 0; color: #667d91; font-size: 12px; line-height: 1.6; }
.weekly-report-lead-detail { max-width: 620px; color: #244e6b !important; font-size: 14px !important; font-weight: 700; line-height: 1.65 !important; }
.weekly-report-side { display: grid; gap: 10px; align-content: start; }
.weekly-report-side .compact-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; gap: 8px; }
.weekly-report-side .metric { min-height: 104px; padding: 12px; }
.weekly-report-side .metric-key { font-size: 11px; }
.weekly-report-side .metric-value { margin: 10px 0 5px; font-size: 21px; }
.weekly-report-side .metric-ratio { font-size: 10px; line-height: 1.35; }
.weekly-report-side .weekly-next-step { margin-top: 0; }
.weekly-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.weekly-report-grid .panel { height: 100%; }
.weekly-focus-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.weekly-focus-card { min-width: 0; padding: 13px 14px; border: 1px solid #dce7ef; border-radius: 10px; background: #fbfdff; }
.weekly-focus-card > span { display: block; margin-bottom: 7px; color: #718397; font-size: 11px; font-weight: 750; }
.weekly-focus-card strong { display: block; overflow: hidden; color: #18354d; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.weekly-focus-card p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: #667d91; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.weekly-focus-card.is-priority { border-color: #cde1f4; background: #f3f9ff; }
.weekly-focus-card.is-priority strong { color: #16659d; }
.weekly-focus-card.is-good { border-color: #ccebdc; background: #f3fcf7; }
.weekly-focus-card.is-good strong { color: #16724f; }
.weekly-focus-card.is-alert { border-color: #f1d8bf; background: #fffaf4; }
.weekly-focus-card.is-alert strong { color: #a55b13; }
.weekly-report-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr); gap: 18px; align-items: start; }
.weekly-platform-list { display: grid; gap: 9px; }
.weekly-platform-card { display: grid; grid-template-columns: minmax(118px, .85fr) minmax(210px, 1.25fr) minmax(0, 1.45fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid #dce7ef; border-radius: 10px; background: #fff; }
.weekly-platform-card.is-lagging { border-left: 3px solid #ef9a35; background: #fffdf9; }
.weekly-platform-card.is-leading { border-left: 3px solid #27ad7a; }
.weekly-platform-card.is-neutral { border-left: 3px solid #9aaebe; background: #fbfdff; }
.weekly-platform-heading { min-width: 0; }
.weekly-platform-heading strong { display: block; overflow: hidden; color: #17334a; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-platform-tag { display: inline-flex; margin-top: 7px; padding: 3px 6px; border-radius: 999px; color: #157250; background: #eaf9f0; font-size: 10px; font-weight: 750; white-space: nowrap; }
.weekly-platform-tag.is-lagging { color: #a25a15; background: #fff0df; }
.weekly-platform-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weekly-platform-metrics span { min-width: 0; padding-right: 8px; border-right: 1px solid #edf1f5; }
.weekly-platform-metrics span:last-child { padding-right: 0; border-right: 0; }
.weekly-platform-metrics small, .weekly-platform-metrics strong { display: block; }
.weekly-platform-metrics small { color: #7b8da0; font-size: 10px; }
.weekly-platform-metrics strong { margin-top: 4px; color: #18354d; font-size: 13px; }
.weekly-platform-card > p { display: -webkit-box; margin: 0; overflow: hidden; color: #667d91; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.weekly-platform-actions { display: grid; gap: 6px; }
.weekly-platform-actions button { min-width: 94px; min-height: 30px; padding: 0 8px; font-size: 11px; white-space: nowrap; }
.weekly-question-list { display: grid; gap: 8px; }
.weekly-question-card { display: grid; grid-template-columns: minmax(0, 1.45fr) 68px 84px auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e0e8ef; border-radius: 9px; background: #fff; }
.weekly-question-copy { min-width: 0; }
.weekly-question-copy strong { display: block; overflow: hidden; color: #18354d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-question-copy small { display: block; margin-top: 5px; overflow: hidden; color: #7a8d9f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-question-copy .weekly-question-action { color: #1474a7; font-weight: 750; }
.weekly-question-score span, .weekly-question-score strong, .weekly-question-competitor span, .weekly-question-competitor strong { display: block; }
.weekly-question-score span, .weekly-question-competitor span { color: #7b8da0; font-size: 10px; }
.weekly-question-score strong { margin-top: 4px; color: #c0691b; font-size: 13px; }
.weekly-question-competitor strong { margin-top: 4px; overflow: hidden; color: #4c6478; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-question-card button { min-height: 30px; padding: 0 8px; font-size: 11px; white-space: nowrap; }
.weekly-action-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #cfe5f4; background: linear-gradient(100deg, #f2faff, #fff); }
.weekly-action-copy { min-width: 0; }
.weekly-action-copy h3 { margin: 8px 0 6px; color: #143a59; font-size: 16px; line-height: 1.45; }
.weekly-action-copy p { margin: 0; color: #60798e; font-size: 12px; line-height: 1.65; }
.weekly-action-copy .weekly-action-source { margin-top: 8px; color: #197354; font-weight: 700; }
.weekly-action-panel > button { flex: 0 0 auto; }
.weekly-details { overflow: hidden; border: 1px solid #dfe8ef; border-radius: 11px; background: #fff; }
.weekly-details > summary { padding: 14px 16px; color: #48647a; font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.weekly-details > summary::-webkit-details-marker { display: none; }
.weekly-details > summary::after { float: right; color: #3981bd; content: "展开"; }
.weekly-details[open] > summary { border-bottom: 1px solid #e4ebf1; }
.weekly-details[open] > summary::after { content: "收起"; }
.weekly-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 16px 16px 0; }
.weekly-details > .panel { margin: 16px; }
.weekly-conclusion .overview-kicker { color: #d5f3ff; background: rgba(255,255,255,.14); }
.weekly-conclusion h3 { margin: 10px 0 7px; color: #fff; font-size: 17px; line-height: 1.55; }
.weekly-conclusion p { margin: 0; color: #d8f1fc; font-size: 12px; }
.weekly-next-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 13px 14px; border: 1px solid #d8e9f4; border-radius: 10px; background: #f7fbfe; }
.weekly-next-step strong { color: #244b66; font-size: 13px; }
.weekly-next-step p { margin: 4px 0 0; color: #667d91; font-size: 12px; }
.overview-ranking { margin-top: 2px; }
.overview-data-tables { display: grid; gap: 18px; }
.overview-data-table-panel { min-width: 0; }
.overview-data-table-panel > .panel-head { align-items: flex-start; }
.overview-table-head-controls { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; margin-left: auto; }
.overview-metric-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #d7e2ec; border-radius: 9px; background: #f6f9fc; }
.overview-metric-toggle button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 6px; color: #687f93; background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }
.overview-metric-toggle button:hover { color: #245fc0; background: #eef5ff; }
.overview-metric-toggle button.is-active { color: #fff; background: #3478df; box-shadow: 0 2px 7px rgba(52, 120, 223, .2); }
.overview-table-date-filter { width: 250px; flex: 0 0 250px; }
.overview-table-date-filter .date-range-popover { right: 0; left: auto; }
.overview-data-table-scroll { width: 100%; overflow: hidden; border: 1px solid #e1e9f0; border-radius: 10px; background: #fff; }
.overview-cross-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; color: #26455d; font-size: 12px; }
.overview-cross-table th { min-width: 0; padding: 9px 5px; border-right: 1px solid #e9eef3; border-bottom: 1px solid #dce6ee; color: #60768b; background: #f8fafc; font-size: 11px; font-weight: 700; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.overview-cross-table td { height: 48px; min-width: 0; padding: 7px 5px; border-right: 1px solid #eef2f5; border-bottom: 1px solid #e8edf2; text-align: center; white-space: normal; }
.overview-cross-table tbody tr:last-child td { border-bottom: 0; }
.overview-cross-table th:last-child, .overview-cross-table td:last-child { border-right: 0; }
.overview-cross-table tbody tr:hover td { background: #f6fbfe; }
.overview-cross-table tbody tr.is-own td { background: #f3f8ff; }
.overview-cross-table tbody tr.is-own:hover td { background: #edf6ff; }
.overview-cross-table .overview-sticky-column { position: sticky; left: 0; z-index: 2; width: 18%; min-width: 0; text-align: left; background: #fff; box-shadow: 1px 0 0 #e3eaf0; }
.overview-cross-table thead .overview-sticky-column { z-index: 4; background: #f8fafc; }
.overview-cross-table tbody tr.is-own .overview-sticky-column { background: #f3f8ff; }
.overview-cross-table tbody tr:hover .overview-sticky-column { background: #f6fbfe; }
.overview-cross-table tbody tr.is-own:hover .overview-sticky-column { background: #edf6ff; }
.overview-platform-head { color: #405b72 !important; font-size: 12px !important; }
.overview-platform-head.is-aggregate { background: #f2f6ff; }
.overview-brand-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.overview-brand-rank { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #437ce2; font-size: 10px; font-weight: 800; }
.overview-brand-cell strong { min-width: 0; overflow: hidden; color: #183b55; text-overflow: ellipsis; white-space: nowrap; }
.overview-own-badge { padding: 2px 6px; border-radius: 999px; color: #2167bd; background: #e4efff; font-size: 9px; font-weight: 750; }
.overview-table-metric { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 24px; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 750; }
.overview-table-metric.is-mention { color: #3155d9; background: #eef1ff; }
.overview-table-metric.is-first { color: #c46500; background: #fff7e8; }
.overview-table-metric.is-top3 { color: #087d69; background: #eaf8f3; }
.overview-table-metric.is-empty { color: #a4b0bb; background: #f5f7f9; }
.overview-rank-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 26px; padding: 3px 8px; border-radius: 7px; color: #3155d9; background: #eef1ff; font-size: 11px; font-weight: 750; }
.overview-rank-pill.is-missed { color: #d94352; background: #fff0f1; }
.overview-rank-pill.is-empty { color: #8a99a6; background: #f3f6f8; }
.overview-question-platform-table .overview-sticky-column { width: 27%; }
.overview-question-cell { max-width: 380px; overflow: hidden; color: #284b65; text-overflow: ellipsis; white-space: nowrap !important; }
.overview-table-note { margin: 10px 1px 0; color: #718598; font-size: 11px; line-height: 1.5; }
.overview-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.overview-table-footer .overview-table-note { margin: 0; }
.overview-table-expand { flex: 0 0 auto; min-height: 32px; padding: 0 12px; font-size: 11px; }
.evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-card { min-width: 0; padding: 14px; border: 1px solid #e0e8f0; border-radius: 10px; background: #fbfdff; }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #6e8093; font-size: 11px; }
.evidence-badge, .badge { padding: 2px 7px; border-radius: 999px; background: #e6f6ee; color: #16764b; }
.evidence-badge-warn, .badge-partial { background: #fff2d5; color: #956100; }
.evidence-question { margin: 10px 0 6px; font-weight: 700; line-height: 1.5; }
.evidence-excerpt { margin: 0; color: #506478; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.evidence-why { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #e5ebf1; color: #6b7b90; font-size: 11px; }
.question-list, .action-list { display: grid; gap: 8px; }
.onboarding-choice-list { display: grid; gap: 8px; margin-top: 10px; }
.onboarding-choice { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 12px; border: 1px solid #e1eaf2; border-radius: 9px; background: #f8fbfd; color: #284b65; cursor: pointer; }
.onboarding-choice:hover { border-color: #91c7df; background: #f2f9fd; }
.onboarding-choice input { width: 16px; height: 16px; accent-color: #087dbd; }
.question-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 9px; background: #f6f9fc; }
.question-index { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #e4f3fc; color: #087dbd; font-size: 11px; font-weight: 700; }
.question-text { margin: 1px 0 3px; line-height: 1.5; }
.question-guidance { display: flex; align-items: baseline; gap: 9px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #dbe8f2; border-radius: 9px; color: #587086; background: #f7fbfd; font-size: 12px; line-height: 1.5; }
.question-guidance strong { color: #194d6c; }
.question-cluster-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.question-cluster-card { min-width: 0; padding: 10px 11px; border: 1px solid #dce8f0; border-radius: 9px; background: #fbfdff; color: #34566e; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.question-cluster-card:hover, .question-cluster-card.active { border-color: #38a7df; background: #f0f9fe; box-shadow: inset 3px 0 0 #1599d8; }
.question-cluster-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #173f5a; }
.question-cluster-card small { display: block; margin-top: 5px; color: #6b8193; font-size: 10px; }
.question-cluster-reason { margin: 6px 0 0; color: #71879a; font-size: 10px; line-height: 1.45; }
.question-recommendation { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 5px 0 2px; }
.question-cluster-label, .question-score, .question-priority { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.question-cluster-label { color: #166c9c; background: #e9f6fd; }
.question-score { color: #a15d00; background: #fff2d7; font-variant-numeric: tabular-nums; }
.question-score-muted { color: #738493; background: #edf2f5; }
.question-priority { color: #5f49ae; background: #f1ecff; }
.question-recommendation-reason { display: block; color: #71879a; font-size: 10px; line-height: 1.45; }
.question-performance { display: block; margin-top: 4px; color: #426780; font-size: 11px; }
.question-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mention-trend-chart { display: grid; gap: 8px; }
.mention-trend-svg { display: block; width: 100%; height: 390px; overflow: visible; }
.mention-trend-gridline { stroke: #dce7ef; stroke-width: 1; }
.mention-trend-gridline:nth-of-type(even) { stroke-dasharray: 5 6; opacity: .68; }
.mention-trend-y-label, .mention-trend-x-label { fill: #627a90; font-size: 11px; }
.mention-trend-x-label { dominant-baseline: hanging; }
.mention-trend-line { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
.mention-trend-line-soft { stroke-width: 9; opacity: .08; }
.mention-trend-series.is-own .mention-trend-line { stroke-width: 4.2; opacity: 1; }
.mention-trend-series.is-own .mention-trend-line-soft { stroke-width: 12; opacity: .13; }
.mention-trend-point { stroke: #fff; stroke-width: 1.6; pointer-events: none; }
.mention-trend-point.is-own { stroke-width: 2.1; }
.mention-trend-crosshair { stroke: #31556f; stroke-width: 1.2; stroke-dasharray: 4 5; opacity: 0; pointer-events: none; }
.mention-trend-tooltip { opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.mention-trend-tooltip rect { fill: rgba(255, 255, 255, .97); stroke: #b9d4e3; stroke-width: 1; filter: drop-shadow(0 8px 18px rgba(25, 74, 104, .14)); }
.mention-trend-tooltip-title { fill: #173b56; font-size: 12px; font-weight: 750; }
.mention-trend-tooltip-value { fill: #36556b; font-size: 11px; font-weight: 650; }
.mention-trend-hitbox { fill: transparent; cursor: crosshair; pointer-events: all; }
.mention-trend-svg.is-hovering .mention-trend-crosshair, .mention-trend-svg.is-hovering .mention-trend-tooltip { opacity: 1; }
.mention-trend-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 2px 2px 0; }
.mention-trend-legend-item { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 0; border: 0; background: transparent; color: #5b7186; font-size: 11px; cursor: pointer; transition: opacity .15s ease; }
.mention-trend-legend-item.is-own { color: #2149ab; font-weight: 700; }
.mention-trend-legend-item.is-hidden { opacity: .42; }
.mention-trend-legend-item:hover, .mention-trend-legend-item:focus-within { opacity: .9; }
.mention-trend-legend-swatch { display: none; }
.mention-trend-legend-item input { width: 12px; height: 12px; margin: 0; accent-color: var(--series-color, #3566c8); }
.mention-trend-current { flex: 0 0 auto; text-align: right; }
.mention-trend-current strong { display: block; color: #0f96d8; font-size: 26px; line-height: 1; }
.mention-trend-current span { display: block; margin-top: 5px; color: #71849a; font-size: 11px; }
.mention-trend-row { display: grid; grid-template-columns: 92px minmax(100px, 1fr) 52px 64px; gap: 9px; align-items: center; }
.mention-trend-date { color: #5d7186; font-size: 12px; }
.mention-trend-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e6eef5; }
.mention-trend-bar { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #38a7df, #087dbd); }
.mention-trend-value { color: #0d557e; font-size: 12px; text-align: right; }
.mention-trend-sample { color: #71849a; font-size: 11px; text-align: right; }
.status-good, .status-warn, .status-muted { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-size: 11px; font-weight: 700; line-height: 1.35; }
.status-good { color: #0f6f48; background: #dff7e9; border: 1px solid #bfe9d4; }
.status-warn { color: #9c6500; background: #fff0cb; border: 1px solid #f0d7a4; }
.status-muted { color: #5f7488; background: #eef4f9; border: 1px solid #dbe6ee; }
.competitor-library-table tbody tr.is-watched td { background: #f7fff9; }
.competitor-library-table tbody tr.is-candidate td { background: #fffaf0; }
.competitor-library-table tbody tr.is-watched td:first-child { box-shadow: inset 4px 0 0 #19ad6b; }
.competitor-library-table tbody tr.is-candidate td:first-child { box-shadow: inset 4px 0 0 #f0a11a; }
.competitor-library-table tbody tr.is-watched:hover td { background: #f0fff5; }
.competitor-library-table tbody tr.is-candidate:hover td { background: #fff6e6; }
.question-form { margin-bottom: 17px; }
.question-browser { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px) minmax(150px, 210px) auto; gap: 9px; margin: 0 0 12px; }
.question-browser input, .question-browser select { min-width: 0; min-height: 38px; border: 1px solid #cbd8e5; border-radius: 8px; padding: 0 10px; background: #fff; color: #25415b; font: inherit; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pagination .muted { margin-right: auto; }
.module-summary { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; margin-bottom: 17px; }
.module-summary .metric { min-height: 101px; }
.question-form label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.question-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.question-input-row textarea { min-height: 54px; resize: vertical; padding: 11px 12px; border: 1px solid #cbd8e5; border-radius: 9px; line-height: 1.5; }
.question-input-row textarea:focus { outline: 3px solid #d7effc; border-color: #1596dc; }
.competitor-input-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 9px; }
.competitor-input-row input { min-width: 0; min-height: 42px; border: 1px solid #c9d8e5; border-radius: 9px; padding: 0 11px; background: #fff; }
.competitor-discovery-note { margin: 12px 0 15px; padding: 10px 12px; border: 1px solid #dbe8f1; border-radius: 8px; color: #587086; background: #f7fbfd; font-size: 12px; line-height: 1.55; }
.competitor-group { margin-top: 17px; }
.competitor-group-title { margin: 0; color: #173b57; font-size: 15px; }
.competitor-group-description { margin: 4px 0 9px; color: #6b8195; font-size: 12px; }
.scope-form { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(140px, .8fr) minmax(180px, 1fr) auto; gap: 9px; margin-top: 10px; }
.scope-form input { min-width: 0; min-height: 42px; border: 1px solid #c9d8e5; border-radius: 9px; padding: 0 11px; background: #fff; }
.account-password-form, .account-create-form, .account-edit-form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: start; }
.account-password-form input, .account-create-form input, .account-create-form select, .account-edit-form input, .account-edit-form select { min-width: 0; min-height: 42px; border: 1px solid #c9d8e5; border-radius: 9px; padding: 0 11px; background: #fff; color: #23455f; font: inherit; }
.account-password-form .primary, .account-create-form .primary, .account-edit-form .primary, .account-edit-form .secondary { min-height: 42px; }
.account-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 5px 0 0; color: #31506b; font-size: 12px; font-weight: 700; }
.account-toggle input { width: 16px; height: 16px; margin: 0; }
.account-card-list { display: grid; gap: 13px; }
.account-card { display: grid; gap: 10px; padding: 16px; border: 1px solid #dbe5ef; border-radius: 12px; background: #fbfdff; }
.account-card-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.account-card-title { display: grid; gap: 3px; }
.account-card-title strong { font-size: 15px; }
.account-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.account-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; color: #1b5f89; background: #e8f5fd; font-size: 11px; font-weight: 700; }
.account-badge-own { color: #0d7c52; background: #def7e9; }
.account-status-active { color: #087a53; background: #def7eb; }
.account-status-invited { color: #8b5f00; background: #fff2cf; }
.account-status-disabled { color: #9b4250; background: #ffe7eb; }
.account-status-suspended { color: #9b4250; background: #ffe7eb; }
.tenant-status-row { align-items: center; padding-top: 4px; }
.account-card-meta, .account-card-note { color: #5f7488; font-size: 12px; line-height: 1.55; }
.account-card-note { color: #9a6700; }
.account-sessions summary { cursor: pointer; color: #0a76ad; font-size: 12px; font-weight: 700; }
.account-session-list { display: grid; gap: 6px; margin-top: 8px; }
.account-session-item { padding: 8px 10px; border: 1px solid #e0eaf1; border-radius: 9px; color: #54697d; background: #fff; font-size: 12px; }
.account-edit-form { display: grid; gap: 8px; }
.account-edit-form .secondary, .account-edit-form .primary { width: fit-content; }
.question-input-row button, .primary { border: 0; border-radius: 9px; padding: 0 17px; background: #0f8fd2; color: #fff; font-weight: 700; }
.question-input-row button:disabled { cursor: wait; opacity: .6; }
.secondary { border: 1px solid #9dcde6; border-radius: 7px; padding: 6px 9px; color: #087dbd; background: #fff; font-size: 12px; white-space: nowrap; }
.secondary:disabled { cursor: wait; opacity: .55; }
.form-message { min-height: 17px; margin: 6px 0 0; color: #627388; font-size: 11px; }
.form-message-error { color: #b04444; }
.panel-actions { display: flex; justify-content: flex-end; margin-top: 13px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 9px 8px; border-bottom: 1px solid #dbe5ef; color: #6c7e92; font-size: 11px; font-weight: 600; text-align: left; }
.data-table td { padding: 10px 8px; border-bottom: 1px solid #edf1f5; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.strong-cell { font-weight: 700; }
.action-card { padding: 15px; border: 1px solid #e2e9f0; border-radius: 10px; background: #fbfdff; }
.action-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.action-head strong { flex: 1 1 260px; }
.priority { padding: 3px 7px; border-radius: 999px; background: #ffe7e7; color: #a33e3e; font-size: 11px; font-weight: 700; }
.priority.p1 { background: #fff1d1; color: #9a6700; }
.action-card p { margin: 9px 0 5px; color: #53687c; font-size: 12px; line-height: 1.6; }
.action-card small { font-size: 11px; }
.action-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.action-controls select { min-width: 108px; }
.action-status-save { white-space: nowrap; }
.footnote { margin: 14px 0 0; color: #718297; font-size: 11px; }
.entity-provenance { display: grid; gap: 4px; max-width: 250px; line-height: 1.45; }
.evidence-filter-bar { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 9px; margin-bottom: 12px; }
.evidence-filter-bar select { min-width: 0; min-height: 39px; border: 1px solid #cbd8e5; border-radius: 8px; padding: 0 9px; color: #34536b; background: #fff; font: inherit; font-size: 12px; }
.evidence-filter-result { display: grid; gap: 11px; }
.evidence-filter-count { margin: 0; color: #547288; font-size: 12px; }
.evidence-scope-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; margin: 0 0 12px; border: 1px solid #c8e5f5; border-radius: 8px; background: #f1f9fd; color: #28546d; font-size: 12px; }
.evidence-source-matrix { margin-top: 12px; }
.notice { padding: 12px 14px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.notice p { margin: 5px 0 0; }
.notice-warn { background: #fff9ec; color: #7b5d1b; }
.notice-bad { background: #fff5f5; color: #a54848; }
.session-gate { display: grid; place-items: center; padding: 18px 0 4px; }
.session-card { width: min(640px, 100%); display: grid; gap: 8px; padding: 28px; border: 1px solid #d9e5f0; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbfe); box-shadow: 0 18px 42px rgba(18, 37, 58, .08); }
.session-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 10px; border-radius: 999px; color: #087dbd; background: #edf6fc; font-size: 11px; font-weight: 700; }
.session-card h2 { margin: 2px 0 4px; font-size: 24px; }
.session-card p { margin: 0; color: #64798e; line-height: 1.65; }
.session-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.session-card-actions .primary, .session-card-actions .secondary { min-height: 40px; }
.matrix-disclosure { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; margin-bottom: 14px; color: #61758b; font-size: 11px; }
.matrix-controls { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 9px; margin: 0 0 12px; }
.matrix-filter { display: grid; gap: 5px; color: #65778b; font-size: 11px; font-weight: 700; }
.matrix-filter select { min-width: 0; min-height: 38px; border: 1px solid #cbd8e5; border-radius: 8px; padding: 0 9px; color: #25415b; background: #fff; font: inherit; font-weight: 400; }
.date-range-filter { position: relative; min-width: 0; }
.date-range-trigger { position: relative; width: 100%; min-width: 0; min-height: 38px; overflow: hidden; padding: 0 32px 0 11px; border: 1px solid #cbd8e5; border-radius: 8px; color: #25415b; background: #fff; font: inherit; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.date-range-trigger::after { position: absolute; top: 50%; right: 13px; width: 6px; height: 6px; content: ""; border-right: 1.5px solid #648198; border-bottom: 1.5px solid #648198; transform: translateY(-65%) rotate(45deg); transition: transform .16s ease; }
.date-range-filter.is-open .date-range-trigger { border-color: #5b85ff; box-shadow: 0 0 0 2px rgba(46, 91, 255, .1); }
.date-range-filter.is-open .date-range-trigger::after { transform: translateY(-35%) rotate(225deg); }
.date-range-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; display: grid; grid-template-columns: 112px minmax(240px, 1fr); width: min(430px, calc(100vw - 48px)); overflow: hidden; border: 1px solid #dce4ef; border-radius: 12px; color: #223b53; background: #fff; box-shadow: 0 18px 42px rgba(15, 39, 71, .18); }
.date-range-popover[hidden] { display: none; }
.date-range-quick { grid-row: 1 / span 3; display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid #edf1f6; }
.date-range-quick-title { padding: 0 8px 7px; color: #98a4b4; font-size: 10px; }
.date-range-quick-item { min-height: 31px; padding: 0 8px; border: 0; border-radius: 7px; color: #3f5d76; background: transparent; font-size: 12px; text-align: left; }
.date-range-quick-item:hover, .date-range-quick-item.active { color: #2457d6; background: #f0f5ff; }
.date-range-form { display: grid; gap: 12px; padding: 15px 16px 10px; }
.date-range-field { display: grid; gap: 6px; color: #64788d; font-size: 10px; font-weight: 700; }
.date-range-input { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #d2dce8; border-radius: 8px; color: #203c55; background: #fff; font: inherit; font-size: 12px; font-weight: 500; }
.date-range-input:focus { border-color: #5b85ff; outline: 0; box-shadow: 0 0 0 2px rgba(46, 91, 255, .1); }
.date-range-message { min-height: 16px; margin: 0; padding: 0 16px; color: #c43d57; font-size: 10px; }
.date-range-footer { display: flex; justify-content: flex-end; gap: 8px; margin: 0 16px; padding: 11px 0 14px; border-top: 1px solid #edf1f6; }
.date-range-footer button { min-height: 30px; padding: 0 12px; }
.matrix-scope-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 9px 10px; border: 1px solid #dcebf4; border-radius: 8px; color: #61758b; background: #f7fbfe; font-size: 11px; line-height: 1.6; }
.matrix-scope-note button { flex: 0 0 auto; }
.matrix-group-scope { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #cce7f6; border-radius: 8px; color: #276582; background: #f3fbff; font-size: 11px; }
.weekly-question-table .strong-cell { min-width: 210px; }
.weekly-question-table .strong-cell small { display: block; margin-top: 4px; font-weight: 400; }
.matrix-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 12px; }
.matrix-result-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 10px; padding: 12px 13px; border: 1px solid #dcebf4; border-radius: 9px; background: #f7fbfe; }
.matrix-result-summary strong, .matrix-result-summary small { display: block; }
.matrix-result-summary strong { font-size: 13px; }
.matrix-result-summary small { margin-top: 3px; color: #62778b; font-size: 11px; }
.matrix-result-hint { color: #087dbd; font-size: 11px; font-weight: 700; white-space: nowrap; }
.matrix-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.matrix-tab, .matrix-sort { border: 0; color: #61778d; background: transparent; font: inherit; font-size: 12px; }
.matrix-tab { padding: 7px 10px; border-radius: 7px; }
.matrix-tab:hover, .matrix-tab.active { color: #087dbd; background: #e4f4fd; font-weight: 700; }
.matrix-sort { padding: 0; text-align: left; font-weight: 650; }
.matrix-sort:hover, .matrix-sort.active { color: #087dbd; }
.matrix-value { min-width: 0; padding: 0; border: 0; color: #087dbd; background: transparent; border-bottom: 1px dotted #087dbd; font: inherit; font-size: 12px; font-weight: 700; text-align: left; }
.matrix-value:disabled { cursor: default; color: #7d8c9c; border-bottom: 0; font-weight: 400; }
.matrix-citation-link { padding: 0; border: 0; border-bottom: 1px dotted #087dbd; color: #087dbd; background: transparent; font: inherit; font-weight: 700; text-align: left; }
.matrix-citation-link:disabled { color: #7d8c9c; border-bottom: 0; font-weight: 400; }
.matrix-citation-answer-count { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 999px; color: #155c84; background: #eaf7fe; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.matrix-table th { white-space: nowrap; }
.citation-overview-scope { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 2px 0 12px; padding: 11px 13px; border-bottom: 1px solid #edf2f6; color: #60768b; font-size: 12px; }
.citation-overview-current { margin: 0; white-space: nowrap; }
.citation-overview-current strong { color: #173d59; font-weight: 750; }
.citation-overview-total { color: #087dbd !important; }
.citation-source-search { display: flex; align-items: center; width: min(282px, 38%); min-height: 34px; gap: 7px; padding: 0 10px; border: 1px solid #e1e9f0; border-radius: 9px; background: #fafcff; }
.citation-source-search:focus-within { border-color: #86c9e9; box-shadow: 0 0 0 3px #e6f6fe; background: #fff; }
.citation-source-search-icon { color: #7890a4; font-size: 18px; line-height: 1; }
.citation-source-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #25415b; background: transparent; font: inherit; font-size: 12px; }
.citation-source-search input::placeholder { color: #9aabb9; }
.citation-overview-table { table-layout: fixed; }
.citation-overview-table th { padding: 10px 18px; border-bottom-color: #edf2f6; color: #8a9aab; font-size: 11px; letter-spacing: .03em; }
.citation-overview-table th:nth-child(1) { width: 39%; }
.citation-overview-table th:nth-child(2) { width: 29%; }
.citation-overview-table th:nth-child(3) { width: 32%; }
.citation-overview-table td { padding: 15px 18px; border-bottom-color: #f0f4f7; vertical-align: middle; }
.citation-overview-table tbody tr { transition: background-color .16s ease; }
.citation-overview-table tbody tr:hover { background: #fbfdff; }
.citation-source-cell { min-width: 0; }
.citation-source-toggle { display: inline-flex; align-items: center; max-width: 100%; gap: 8px; overflow: hidden; border-bottom: 0; color: #15364f; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.citation-source-toggle:hover { color: #087dbd; }
.citation-source-toggle .citation-source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citation-expand-icon { display: inline-grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; border-radius: 5px; color: #1981b6; background: #e8f6fd; font-size: 16px; font-weight: 500; line-height: 1; }
.citation-source-toggle.is-expanded .citation-expand-icon { color: #fff; background: #198fca; }
.citation-source-meta { display: block; overflow: hidden; margin-top: 4px; color: #8a9aab; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.citation-usage { display: grid; grid-template-columns: auto 66px; align-items: center; column-gap: 10px; row-gap: 4px; }
.citation-usage-value { color: #132f46; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1; }
.citation-usage-track { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: #e9edf1; }
.citation-usage-bar { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #8071ff, #5b53e9); }
.citation-usage-detail { grid-column: 1 / -1; color: #8b9aaa; font-size: 11px; white-space: nowrap; }
.citation-platform-cell { min-width: 0; }
.citation-platform-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.citation-platform-badge { display: inline-flex; align-items: center; min-height: 21px; padding: 1px 7px; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.citation-platform-deepseek { background: #6159ea; }
.citation-platform-kimi { background: #009cc5; }
.citation-platform-doubao { background: #fb9b0b; }
.citation-platform-yuanbao { background: #168fd4; }
.citation-platform-qianwen { background: #4f74d9; }
.citation-platform-wenxin { background: #3aaf8f; }
.citation-platform-default { background: #70869a; }
.citation-platform-empty { color: #9aa8b5; font-size: 11px; }
.matrix-source-item .citation-platform-badges { margin: 8px 0 2px; }
.citation-inline-detail-row:hover { background: transparent !important; }
.citation-inline-detail-row > td { padding: 0 18px 17px !important; border-bottom-color: #e8eef3 !important; background: #fbfdff; }
.citation-inline-detail-cell { color: #5c7286; }
.citation-inline-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 13px 14px 11px; border: 1px solid #dbeaf3; border-bottom: 0; border-radius: 9px 9px 0 0; color: #60778a; font-size: 11px; }
.citation-inline-intro strong { color: #214a66; font-size: 13px; }
.citation-inline-intro small { color: #8799a9; }
.citation-inline-columns, .citation-inline-item { display: grid; grid-template-columns: minmax(280px, 1.44fr) 90px minmax(180px, 1.08fr) minmax(140px, .72fr); column-gap: 16px; }
.citation-inline-columns { padding: 9px 14px; border: 1px solid #dbeaf3; color: #8295a7; background: #f3f8fb; font-size: 11px; font-weight: 700; }
.citation-inline-items { overflow: hidden; border: 1px solid #dbeaf3; border-top: 0; border-radius: 0 0 9px 9px; }
.citation-inline-item { align-items: start; padding: 11px 14px; border-bottom: 1px solid #edf2f6; color: #355167; font-size: 12px; line-height: 1.45; }
.citation-inline-item:last-child { border-bottom: 0; }
.citation-inline-title-cell { display: flex; min-width: 0; gap: 9px; }
.citation-tree-branch { position: relative; flex: 0 0 18px; height: 26px; border-bottom: 1px solid #cbd8e1; border-left: 1px solid #cbd8e1; border-radius: 0 0 0 8px; }
.citation-tree-branch::after { position: absolute; right: -1px; bottom: -1px; width: 7px; border-bottom: 1px solid #cbd8e1; content: ""; }
.citation-inline-title-copy { min-width: 0; }
.citation-inline-title-copy > a, .citation-inline-title-copy > strong { display: block; overflow: hidden; color: #185e8b; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.citation-inline-title-copy > a:hover { color: #087dbd; text-decoration: underline; }
.citation-inline-title-meta { display: block; margin-top: 3px; color: #8a9baa; font-size: 10px; }
.citation-inline-count { padding-top: 3px; border-bottom: 1px dotted #7c9bb0; color: #173b56; cursor: help; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; justify-self: start; }
.citation-inline-count:focus { outline: 2px solid #8ed5f4; outline-offset: 3px; }
.citation-inline-brands { overflow: hidden; padding-top: 3px; color: #506d83; text-overflow: ellipsis; white-space: nowrap; }
.citation-inline-brands.is-unavailable { color: #96a6b4; font-size: 11px; }
.citation-inline-item > .citation-platform-badges { padding-top: 2px; }
.citation-inline-item .matrix-source-answer-preview { grid-column: 1 / -1; margin: 7px 0 0 27px; }
.citation-inline-load-more { display: block; margin: 12px auto 1px; }
.citation-inline-empty, .citation-inline-error { margin: 0; padding: 14px; }
.citation-inline-error { color: #a25b00; }
.matrix-definitions { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f5f9fc; }
.matrix-definitions > strong { color: #294c65; font-size: 12px; }
.matrix-definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 10px; }
.matrix-definition { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: start; color: #5d7387; font-size: 11px; line-height: 1.55; }
.matrix-definition span { color: #164c70; font-weight: 700; }
.matrix-definition p { margin: 0; }
.anomaly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 11px; }
.evidence-open { margin-top: 11px; }
.evidence-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(18, 32, 51, .45); }
.evidence-dialog-box { width: min(760px, 100%); max-height: min(780px, 92vh); overflow: auto; padding: 20px; border: 1px solid #cfdce7; border-radius: 14px; background: #fff; box-shadow: 0 20px 64px rgba(18, 32, 51, .25); }
.evidence-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.evidence-dialog-head h2 { margin: 0; }
.evidence-detail h3 { margin: 18px 0 8px; }
.evidence-detail-note { margin: 0; color: #547087; font-size: 13px; line-height: 1.65; }
.evidence-detail-excerpt { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid #1d9fe5; border-radius: 0 8px 8px 0; color: #31495d; background: #f3f8fc; line-height: 1.7; }
.evidence-raw-detail { margin-top: 12px; }
.evidence-raw-summary { cursor: pointer; color: #087dbd; font-weight: 700; }
.evidence-raw { margin: 13px 0 0; padding: 14px; overflow: auto; border-radius: 9px; color: #31495d; background: #f5f8fb; white-space: pre-wrap; word-break: break-word; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.evidence-sources { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e4ebf1; }
.evidence-source { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #edf1f5; font-size: 12px; }
.evidence-source strong { min-width: 0; overflow-wrap: anywhere; }
.evidence-link, .evidence-link-row a { color: #087dbd; font-size: 12px; }
.evidence-link-row { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.evidence-image-viewer { margin-top: 14px; padding: 14px; border: 1px solid #d8e6ef; border-radius: 10px; background: #f8fbfd; }
.evidence-image-viewer h3 { margin-bottom: 10px; }
.evidence-image-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.evidence-image-controls .secondary { padding: 5px 9px; font-size: 12px; }
.evidence-image-zoom { min-width: 43px; color: #3d5970; font-size: 12px; font-variant-numeric: tabular-nums; }
.evidence-image-stage { max-height: min(62vh, 680px); overflow: auto; border: 1px solid #cfdce7; border-radius: 8px; background: #edf2f6; }
.evidence-image { display: block; width: 100%; min-width: 0; height: auto; max-width: none; transform-origin: top left; }
.evidence-image-error { margin: 0; padding: 16px; color: #a56d00; font-size: 12px; line-height: 1.6; }
.evidence-image-note { margin: 9px 0 0; line-height: 1.5; }
.evidence-recording-viewer { margin-top: 14px; padding: 14px; border: 1px solid #a9dce9; border-radius: 10px; background: #f1fbfe; }
.evidence-recording-viewer h3 { margin-bottom: 8px; }
.evidence-recording-viewer > .evidence-link { display: inline-block; margin-bottom: 10px; }
.evidence-recording-stage { display: flex; justify-content: center; overflow: hidden; border: 1px solid #b9d7e3; border-radius: 8px; background: #10212a; }
.evidence-recording { display: block; width: min(100%, 640px); max-height: min(62vh, 720px); background: #10212a; }
.evidence-recording-note { margin: 9px 0 0; line-height: 1.5; }
.matrix-evidence-list { display: grid; gap: 8px; }
.matrix-evidence-item { width: 100%; padding: 10px 12px; border: 1px solid #d7e5ee; border-radius: 8px; color: #1d5678; background: #f7fbfe; text-align: left; font: inherit; font-size: 12px; }
.matrix-evidence-item:hover { border-color: #75bddf; background: #edf8fe; }
.matrix-evidence-drawer-backdrop { position: fixed; z-index: 60; inset: 0; display: flex; justify-content: flex-end; background: rgba(12, 28, 43, .43); }
.matrix-evidence-drawer { display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: min(700px, 100vw); height: 100%; overflow: hidden; color: #183248; background: #fff; box-shadow: -18px 0 45px rgba(14, 34, 53, .2); }
.citation-source-drawer { width: min(760px, 100vw); }
.matrix-drawer-head { display: flex; justify-content: space-between; gap: 16px; padding: 21px 22px 16px; border-bottom: 1px solid #e2ebf2; }
.matrix-drawer-head h2 { margin: 6px 0 4px; font-size: 22px; }
.matrix-drawer-head p { margin: 0; color: #5f7488; font-size: 12px; }
.matrix-drawer-close { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid #cbdce8; border-radius: 8px; color: #3e6179; background: #fff; font-size: 21px; line-height: 1; }
.matrix-drawer-scope { padding: 13px 22px; border-bottom: 1px solid #e6edf3; background: #f7fbfe; color: #546d82; font-size: 12px; line-height: 1.5; }
.matrix-drawer-scope strong { color: #234a66; }
.matrix-drawer-scope p { margin: 5px 0 0; }
.matrix-drawer-scope small { color: #6e8294; font-size: 11px; }
.matrix-drawer-explanation { padding-top: 8px; border-top: 1px solid #dceaf3; color: #235a80; }
.matrix-drawer-body { overflow-y: auto; padding: 14px 22px 24px; }
.matrix-drawer-item { padding: 14px 0; border-bottom: 1px solid #e7eef4; }
.matrix-drawer-item:last-child { border-bottom: 0; }
.matrix-source-item > .evidence-link, .matrix-source-item > strong { display: block; overflow: hidden; color: #155f8c; font-weight: 700; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.matrix-drawer-item h3 { margin: 9px 0 8px; font-size: 14px; line-height: 1.5; }
.matrix-drawer-item-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #718497; font-size: 11px; }
.matrix-drawer-audit { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.matrix-drawer-audit span { padding: 3px 6px; border-radius: 5px; color: #527086; background: #f2f6f9; font-size: 10px; }
.matrix-drawer-audit span:last-child { color: #916019; background: #fff4d8; }
.matrix-source-answer-preview { margin-top: 10px; padding: 9px 10px; border: 1px solid #d8e8f1; border-radius: 8px; background: #f8fbfd; }
.matrix-source-answer-preview summary { cursor: pointer; color: #1a6d98; font-size: 12px; font-weight: 700; }
.matrix-source-answer-list { display: grid; gap: 7px; margin-top: 9px; }
.matrix-source-answer { width: 100%; padding: 8px 9px; border: 1px solid #d5e8f3; border-radius: 7px; color: #315c74; background: #fff; font: inherit; font-size: 11px; line-height: 1.45; text-align: left; }
.matrix-source-answer:hover { border-color: #74bce0; color: #0a6c9f; background: #edf9fe; }
.matrix-source-answer-more { margin: 1px 0 0; color: #718497; font-size: 11px; line-height: 1.45; }
.matrix-drawer-item blockquote { margin: 10px 0; padding: 9px 11px; border-left: 3px solid #70bde5; color: #3c617a; background: #f5fbff; font-size: 12px; line-height: 1.65; }
.matrix-drawer-inspect { margin-top: 2px; }
.capture-batch-drawer { width: min(1180px, 100vw); }
.capture-batch-body { padding-top: 8px; }
.capture-launch-notice { margin: 4px 0 14px; padding: 11px 14px; border: 1px solid #b8e4cf; border-radius: 9px; background: #f1fbf5; color: #1d6950; }
.capture-launch-notice strong { display: block; font-size: 13px; }
.capture-launch-notice p { margin: 5px 0 0; color: #3b7662; font-size: 12px; line-height: 1.5; }
.capture-coverage-notice { border-color: #efd9a3; background: #fffaf0; color: #8a5d20; }
.capture-coverage-notice p { color: #7c5d2b; }
.capture-scheduler-notice { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 14px; padding: 12px 14px; border: 1px solid #efd9a3; border-radius: 9px; background: #fffaf0; color: #7b5d1b; }
.capture-scheduler-notice strong { font-size: 13px; }
.capture-scheduler-notice p { flex: 1 1 320px; margin: 0; color: #7c5d2b; font-size: 12px; line-height: 1.5; }
.capture-scheduler-notice button { flex: 0 0 auto; }
.capture-task-table { min-width: 940px; }
.capture-task-table th { position: sticky; top: 0; z-index: 1; background: #fff; }
.capture-task-question { min-width: 190px; max-width: 260px; color: #264a63; line-height: 1.5; }
.capture-task-detail { min-width: 245px; max-width: 330px; white-space: normal; line-height: 1.55; }
.capture-task-error { display: block; color: #a95d21; }
.capture-task-action { min-width: 112px; white-space: nowrap; }
.capture-batch-inspect { white-space: nowrap; }
.capture-recovery-section { margin: 4px 0 16px; padding: 14px; border: 1px solid #dce9f2; border-radius: 10px; background: #f8fbfd; }
.capture-recovery-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 10px; }
.capture-recovery-head h3 { margin: 0; color: #183d59; font-size: 14px; }
.capture-recovery-head p { margin: 0; color: #668096; font-size: 12px; }
.capture-recovery-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.capture-recovery-card { display: flex; min-height: 176px; flex-direction: column; padding: 12px; border: 1px solid #d9e6ee; border-radius: 8px; background: #fff; }
.capture-recovery-title { display: flex; gap: 7px; align-items: center; color: #1f4663; }
.capture-recovery-state { padding: 2px 6px; border-radius: 99px; color: #8a5d20; background: #fff2d7; font-size: 11px; white-space: nowrap; }
.capture-recovery-question { margin: 9px 0 7px; color: #294d67; font-size: 13px; line-height: 1.45; }
.capture-recovery-heading { color: #163c59; font-size: 13px; }
.capture-recovery-instruction { margin: 5px 0 10px; color: #607b90; font-size: 12px; line-height: 1.55; }
.capture-recovery-footer { display: flex; align-items: center; min-height: 30px; margin-top: auto; }
.capture-recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.capture-task-action .capture-recovery-actions { min-width: 226px; }
.brand-summary { display: flex; gap: 10px; align-items: baseline; padding: 12px; background: #f6f9fc; border-radius: 9px; }
.brand-summary strong { font-size: 15px; }
.status-list { display: inline-grid; min-width: 240px; margin-right: 24px; vertical-align: top; }
.status-list h3 { margin-bottom: 8px; }
.status-row { display: flex; justify-content: space-between; gap: 25px; padding: 7px 0; border-bottom: 1px solid #edf1f5; color: #60758a; font-size: 12px; }

/* The first-entry flow intentionally keeps the old commercial_release
   presentation: a standalone guided page, not the V2 workbench shell. */
.onboarding-page { min-height: 100vh; padding: 32px 24px; color: #172d43; background:
  radial-gradient(circle at 12% 0%, rgba(18, 147, 211, .1), transparent 30%),
  linear-gradient(180deg, #f7fbfe 0%, #edf4fa 100%); }
.onboarding-shell { width: min(1040px, 100%); min-height: calc(100vh - 64px); margin: 0 auto; overflow: hidden; border: 1px solid #d4e2ed; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(33, 68, 96, .1); }
.onboarding-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 0; background: #fff; }
.onboarding-header .brand-mark { padding: 0; }
.onboarding-logout { min-height: 32px; padding: 0 4px; color: #668096; font-size: 12px; }
.onboarding-logout:hover { color: #087dbd; }
.onboarding-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 24px 28px 0; padding: 0; list-style: none; }
.onboarding-stepper li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #d4e2ed; border-radius: 8px; color: #8799aa; background: #f8fbfd; font-size: 11px; }
.onboarding-stepper li:not(:last-child)::after { display: none; }
.onboarding-stepper li > span { flex: 0 0 26px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #71869a; background: #e8f0f5; font-size: 12px; font-weight: 800; }
.onboarding-stepper li > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-stepper li.active { border-color: #9fcce6; color: #087dbd; background: #eef8fd; }
.onboarding-stepper li.done { border-color: #b7dfcf; color: #168253; background: #f1fbf6; }
.onboarding-stepper li.active > span, .onboarding-stepper li.done > span { color: #fff; background: #0f8fd2; }
.onboarding-stepper li.done > span { background: #20a36d; }
.onboarding-content { width: min(780px, calc(100% - 48px)); max-width: none; margin: 0 auto; padding: 56px 0 64px; }
.onboarding-step-label { margin-bottom: 8px; color: #138bc8; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.onboarding-content h1, .onboarding-password-panel h1 { margin: 8px 0 10px; color: #142b42; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.onboarding-content > p, .onboarding-password-panel > p { max-width: 680px; margin: 0 0 28px; color: #687f93; font-size: 13px; line-height: 1.75; }
.onboarding-form { display: grid; gap: 17px; }
.onboarding-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-form label { display: grid; gap: 7px; color: #294862; font-size: 12px; font-weight: 700; }
.onboarding-form label input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #cbdce8; border-radius: 8px; color: #193b56; background: #fff; font: inherit; font-weight: 400; }
.onboarding-form label input:focus { outline: 3px solid #e5f5fc; border-color: #5cb4dd; }
.onboarding-field-help { color: #7c91a3; font-size: 11px; font-weight: 400; line-height: 1.45; }
.onboarding-step-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.onboarding-step-actions .primary, .onboarding-step-actions .secondary { min-height: 42px; }
.onboarding-understanding { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid #1599d8; border-radius: 0 9px 9px 0; color: #4f6b82; background: #f0f8fc; font-size: 12px; }
.onboarding-understanding b { padding: 4px 8px; border-radius: 999px; color: #176a95; background: #dff2fb; font-size: 11px; }
.onboarding-selection-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: #34536b; }
.onboarding-selection-summary > strong { color: #0b80ba; font-size: 20px; }
.onboarding-question-actions { display: flex; align-items: center; gap: 10px; color: #71869a; font-size: 11px; }
.onboarding-refresh-questions { padding: 0; color: #0a83bf; font-size: 12px; }
.onboarding-refresh-questions:disabled { cursor: not-allowed; color: #a6b4bf; }
.onboarding-generation-basis { margin: 8px 0 4px; color: #71879a; font-size: 11px; }
.onboarding-question-guidance { margin-top: 10px; }
.onboarding-question-guidance + .question-cluster-strip { margin-top: 10px; }
.onboarding-choice-recommendation { display: flex; align-items: center; gap: 6px; color: #166c9c; font-size: 10px; }
.onboarding-choice-recommendation em { color: #a15d00; font-style: normal; }
.onboarding-choice-reason { display: block; color: #71879a; font-size: 10px; line-height: 1.45; }
.onboarding-notice { display: grid; gap: 3px; margin: 10px 0; padding: 11px 13px; border: 1px solid #d7e9f2; border-radius: 8px; color: #527087; background: #f6fbfe; font-size: 12px; line-height: 1.5; }
.onboarding-notice strong { color: #274d68; }
.onboarding-notice-warn { border-color: #f0dfb8; color: #805f25; background: #fffaf0; }
.onboarding-notice-warn strong { color: #75500f; }
.onboarding-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.onboarding-form .onboarding-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; min-height: 62px; padding: 14px; border-color: #d7e5ee; background: #fbfdff; color: #193b56; }
.onboarding-form .onboarding-choice input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin-top: 2px; padding: 0; accent-color: #0f8fd2; }
.onboarding-choice-copy { display: grid; gap: 3px; min-width: 0; }
.onboarding-choice-origin { color: #71879a; font-size: 10px; font-weight: 400; }
.onboarding-choice:has(input:checked) { border-color: #54add4; background: #eff9fd; box-shadow: inset 3px 0 0 #1599d8; }
.onboarding-choice-manual { grid-column: 1 / -1; }
.onboarding-choice-manual small { margin-left: auto; color: #8b6b30; font-size: 10px; }
.onboarding-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed #c8dce8; border-radius: 8px; color: #71879a; background: #fbfdff; font-size: 12px; text-align: center; }
.onboarding-manual-question { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin: 12px 0 18px; }
.onboarding-manual-question input { min-height: 42px; padding: 0 12px; border: 1px solid #cbdce8; border-radius: 8px; font: inherit; }
.onboarding-password-panel { width: min(510px, 100%); margin: 9vh auto 0; padding: 30px 34px 34px; border: 1px solid #d4e2ed; border-radius: 17px; background: #fff; box-shadow: 0 20px 60px rgba(33, 68, 96, .1); }
.onboarding-password-brand { padding: 0 0 22px; }
.onboarding-compact-form { gap: 13px; }
.onboarding-compact-form label input { min-height: 44px; }
.onboarding-compact-form .primary { min-height: 44px; margin-top: 4px; }
.onboarding-indeterminate { display: flex; align-items: flex-start; gap: 13px; margin-top: 22px; padding: 18px; border: 1px solid #d9eaf2; border-radius: 11px; color: #496b80; background: #f7fbfd; }
.onboarding-indeterminate strong { display: block; color: #1e4c67; font-size: 13px; }
.onboarding-indeterminate p { margin: 5px 0 0; color: #71889a; font-size: 12px; line-height: 1.55; }
.onboarding-spinner { width: 19px; height: 19px; flex: 0 0 auto; border: 3px solid #d9ecf5; border-top-color: #128fcf; border-radius: 50%; animation: spin .8s linear infinite; }
.onboarding-live-progress { display: grid; gap: 12px; margin-top: 22px; padding: 22px; border: 1px solid #d8e7ef; border-radius: 12px; background: #fbfdff; }
.onboarding-progress-head, .onboarding-progress-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: #60788d; font-size: 12px; }
.onboarding-progress-head strong { color: #0e85bd; font-size: 22px; }
.onboarding-progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e5eef4; }
.onboarding-progress-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #1197d6, #25b9a4); transition: width .25s ease; }
.onboarding-progress-detail, .onboarding-progress-warning { margin: 0; color: #71879a; font-size: 12px; line-height: 1.55; }
.onboarding-progress-warning { color: #9a6a1e; }
@media (max-width: 760px) {
  .onboarding-page { padding: 0; }
  .onboarding-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .onboarding-header { padding: 18px 20px; }
  .onboarding-stepper { padding: 16px 18px 14px; }
  .onboarding-content { padding: 26px 20px 36px; }
  .onboarding-form-grid, .onboarding-choice-list { grid-template-columns: 1fr; }
  .onboarding-choice-manual { grid-column: auto; }
  .onboarding-password-panel { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .sidebar .sidebar-toggle { display: none; }
  .app-shell.sidebar-collapsed .brand-mark { justify-content: flex-start; padding: 0 5px 26px; }
  .app-shell.sidebar-collapsed .brand-mark > div:not(.logo),
  .app-shell.sidebar-collapsed .side-current,
  .app-shell.sidebar-collapsed .nav-section-label { display: block; }
  .app-shell.sidebar-collapsed .nav { gap: 5px; margin-top: 24px; padding-right: 0; }
  .app-shell.sidebar-collapsed .nav button { display: flex; min-height: 0; padding: 10px 11px; font-size: 13px; text-align: left; }
  .app-shell.sidebar-collapsed .nav button::before { display: none; }
  .app-shell.sidebar-collapsed .sidebar-footer { right: auto; left: auto; padding-top: 0; }
  .app-shell.sidebar-collapsed .account-trigger { justify-content: space-between; min-height: 34px; padding: 0 12px; font-size: inherit; }
  .app-shell.sidebar-collapsed .account-trigger::before { display: none; }
  .app-shell.sidebar-collapsed .account-trigger-label,
  .app-shell.sidebar-collapsed .account-trigger-caret { display: inline; }
  .nav { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; padding-right: 0; }
  .nav-section-label { width: 100%; margin-top: 8px; }
  .nav-system-label { border-top: 0; padding-top: 0; }
  .nav button { width: auto; }
  .sidebar-footer { position: static; margin-top: 16px; padding-top: 0; left: auto; right: auto; bottom: auto; }
  .sidebar-footer .account-menu-panel { bottom: calc(100% + 8px); }
  .side-note { display: none; }
  .main { padding: 22px 16px 44px; }
  .overview-hero { grid-template-columns: 1fr; }
  .overview-dashboard { grid-template-columns: 1fr; }
  .overview-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-cognition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-cognition-item:nth-child(2) { border-right: 0; }
  .ai-cognition-item:nth-child(-n+2) { border-bottom: 1px solid #e2eaf1; }
  .overview-analytics { grid-template-columns: 1fr; }
  .weekly-next-step { align-items: flex-start; flex-direction: column; }
  .weekly-report-hero,
  .weekly-report-grid,
  .weekly-report-main-grid,
  .weekly-details-grid { grid-template-columns: 1fr; }
  .weekly-report-side .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-platform-card { grid-template-columns: minmax(120px, .8fr) minmax(210px, 1.2fr) minmax(0, 1.25fr) auto; }
}
@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .snapshot-actions { justify-content: flex-start; text-align: left; }
  .account-menu-panel { right: auto; left: 0; }
  .session-card { padding: 22px; }
  .evidence-list { grid-template-columns: 1fr; }
  .question-input-row { grid-template-columns: 1fr; }
  .question-input-row button { min-height: 42px; }
  .question-browser { grid-template-columns: 1fr; }
  .question-cluster-strip { grid-template-columns: 1fr 1fr; }
  .competitor-input-row { grid-template-columns: 1fr; }
  .module-summary, .evidence-filter-bar { grid-template-columns: 1fr; }
  .overview-filter-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .overview-filter-controls { grid-template-columns: 1fr; }
  .overview-data-table-panel > .panel-head { flex-direction: column; }
  .overview-table-head-controls { width: 100%; align-items: stretch; flex-direction: column; margin-left: 0; }
  .overview-metric-toggle { display: grid; grid-template-columns: 1fr 1fr; }
  .overview-table-date-filter { width: 100%; flex-basis: auto; }
  .overview-table-date-filter .date-range-popover { right: auto; left: 0; }
  .overview-kpi-strip, .ai-cognition-grid { grid-template-columns: 1fr; }
  .overview-table-footer { align-items: flex-start; flex-direction: column; }
  .ai-cognition-item, .ai-cognition-item:nth-child(2) { border-right: 0; border-bottom: 1px solid #e2eaf1; }
  .ai-cognition-item:last-child { border-bottom: 0; }
  .overview-cognition > .panel-head, .ai-cognition-footer { align-items: flex-start; flex-direction: column; }
  .cognition-badges { justify-content: flex-start; }
  .mention-trend-row { grid-template-columns: 76px minmax(70px, 1fr) 48px; }
  .mention-trend-sample { display: none; }
  .mention-trend-current { text-align: left; }
  .weekly-report-lead h3 { font-size: 19px; }
  .weekly-focus-strip { grid-template-columns: 1fr; }
  .weekly-platform-card { grid-template-columns: 1fr; gap: 10px; }
  .weekly-platform-actions { grid-template-columns: 1fr 1fr; }
  .weekly-platform-actions button { width: 100%; }
  .weekly-question-card { grid-template-columns: minmax(0, 1fr) 62px 78px; }
  .weekly-question-card button { grid-column: 1 / -1; width: 100%; }
  .weekly-action-panel { align-items: stretch; flex-direction: column; gap: 14px; }
  .weekly-action-panel > button { width: 100%; }
  .weekly-details-grid { padding: 12px 12px 0; }
  .weekly-details > .panel { margin: 12px; }
  .scope-form { grid-template-columns: 1fr; }
  .matrix-controls { grid-template-columns: 1fr 1fr; }
  .citation-overview-scope { align-items: flex-start; flex-direction: column; }
  .citation-source-search { width: 100%; }
  .citation-overview-table th, .citation-overview-table td { padding-right: 10px; padding-left: 10px; }
  .matrix-scope-note { align-items: flex-start; flex-direction: column; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 480px) {
  .matrix-controls { grid-template-columns: 1fr; }
  .matrix-toolbar { align-items: flex-start; flex-direction: column; }
  .matrix-result-summary { align-items: flex-start; flex-direction: column; }
  .matrix-definition-list { grid-template-columns: 1fr; }
  .matrix-evidence-drawer { width: 100vw; }
  .evidence-dialog { padding: 10px; }
  .evidence-dialog-box { padding: 15px; }
}
@media print {
  .sidebar, .topbar, #state, .weekly-tools, .panel-actions, .matrix-controls, .matrix-toolbar, button { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .content { max-width: none; }
  .section, .panel, .weekly-conclusion { break-inside: avoid; box-shadow: none; }
}
