:root {
  --ink: #10263e;
  --ink-2: #2e4358;
  --paper: #f5f7f8;
  --white: #ffffff;
  --line: #dce3e8;
  --line-strong: #c8d2d9;
  --blue: #235cd7;
  --blue-soft: #e9effd;
  --copper: #b96f3b;
  --copper-soft: #f7ece3;
  --mint: #1b8a78;
  --red: #c94646;
  --muted: #6b7b8b;
  --shadow: 0 12px 40px rgba(30, 54, 76, .08);
  --display: Bahnschrift, "Segoe UI Variable Display", "Microsoft YaHei", sans-serif;
  --body: "Segoe UI Variable Text", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; font: 700 11px/1 var(--mono); letter-spacing: .15em; color: var(--blue); }
.brand-lockup { display: flex; align-items: center; gap: 11px; font: 650 18px/1 var(--display); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; font: 700 12px var(--mono); letter-spacing: -.06em; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: var(--blue); border: 2px solid var(--white); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.3fr) minmax(360px, .7fr); }
.login-story { padding: 44px clamp(36px, 7vw, 110px); background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.login-story::after { content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -210px; bottom: -250px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.login-story .brand-mark::after { border-color: var(--ink); }
.story-copy { position: relative; z-index: 1; max-width: 680px; }
.story-copy .eyebrow { color: #8daaf2; }
.story-copy h1 { font: 620 clamp(48px, 7vw, 94px)/.94 var(--display); letter-spacing: -.055em; margin: 0 0 32px; }
.story-copy h1 em { font-style: normal; color: #83a7ff; }
.story-copy > p:last-child { max-width: 510px; color: #bdc9d5; font-size: 16px; line-height: 1.8; }
.evidence-mini { display: grid; grid-template-columns: 112px 48px 1fr; align-items: center; gap: 10px; max-width: 370px; font-size: 12px; color: #aab8c5; z-index: 1; }
.evidence-mini span { font-family: var(--mono); font-size: 10px; }
.evidence-mini i { height: 2px; background: #6d94f1; }
.evidence-mini i.copper { background: #d5905d; }
.evidence-mini b { font-weight: 500; color: white; }
.login-panel { padding: 10vh clamp(36px, 6vw, 90px); background: white; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.login-panel h2 { margin: 0; font: 620 36px var(--display); letter-spacing: -.04em; }
.login-panel label { color: var(--ink-2); font-size: 13px; font-weight: 600; display: grid; gap: 8px; }
.login-panel input { width: 100%; border: 1px solid var(--line-strong); padding: 13px 14px; outline: none; background: #fbfcfd; }
.login-panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.login-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-error { min-height: 20px; color: var(--red); font-size: 12px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: var(--ink); color: #dbe5ee; padding: 22px 14px 14px; display: flex; flex-direction: column; z-index: 20; }
.sidebar .brand-lockup { padding: 0 9px 30px; color: white; }
.sidebar .brand-mark::after { border-color: var(--ink); }
.sidebar nav { display: grid; gap: 2px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.sidebar nav button { border: 0; background: transparent; color: #9daebe; text-align: left; padding: 8px 10px; cursor: pointer; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 4px; font-size: 12px; border-left: 2px solid transparent; }
.nav-group { margin: 14px 10px 5px; color: #62798e; font: 700 8px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nav-group:first-child { margin-top: 0; }
.sidebar nav button span { font: 15px var(--mono); color: #6f8497; }
.sidebar nav button b { background: var(--copper); color: white; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; font: 700 10px var(--mono); }
.sidebar nav button:hover, .sidebar nav button.active { color: white; background: rgba(255,255,255,.065); border-left-color: #7ca0f6; }
.sidebar nav button.active span { color: #8baaff; }
.sidebar-boundary { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 10px; display: grid; gap: 7px; }
.sidebar-boundary p { margin: 0 0 3px; color: #71869a; font: 700 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.sidebar-boundary div { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #a7b6c4; }
.sidebar-boundary i { width: 14px; height: 2px; background: #7ca0f6; }
.sidebar-boundary i.copper { background: #d5905d; }
.profile-card { background: rgba(255,255,255,.045); border: 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; color: white; padding: 13px 10px; text-align: left; cursor: pointer; }
.profile-card > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; background: #314c66; font-size: 11px; }
.profile-card > span:last-child { display: grid; gap: 2px; }
.profile-card b { font-size: 11px; font-weight: 600; }
.profile-card small { color: #7f94a7; font-size: 9px; }
main { grid-column: 2; min-width: 0; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); padding: 0 30px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 15; }
.topbar > div { display: flex; align-items: center; gap: 10px; }
.topbar p { margin: 0; font: 600 14px var(--display); }
.demo-tag { border: 1px solid #d9c3ad; color: var(--copper); padding: 3px 6px; font: 700 8px var(--mono); letter-spacing: .08em; }
.icon-button { display: none; border: 0; background: transparent; font-size: 20px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.source-switch { display: flex; border: 1px solid var(--line-strong); background: #f5f7f9; padding: 3px; }
.source-switch button { border: 0; background: transparent; padding: 7px 11px; font-size: 11px; color: var(--muted); cursor: pointer; }
.source-switch button.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(29,50,72,.09); }
.button { border: 1px solid var(--line-strong); background: white; padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover { border-color: var(--blue); }
.button.primary { background: var(--blue); border-color: var(--blue); color: white; }
.button.secondary { color: var(--blue); border-color: #afc3f2; background: var(--blue-soft); }
.button.ghost { background: transparent; }
.button.wide { width: 100%; padding: 13px 16px; justify-content: space-between; }
.button:focus-visible, nav button:focus-visible { outline: 3px solid #aec4fb; outline-offset: 2px; }
.compact-select { border: 1px solid var(--line-strong); padding: 8px; background: white; color: var(--ink); }
.tenant-create { color: var(--blue); border-color: #afc3f2; background: var(--blue-soft); }
.content { padding: 32px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font: 620 30px/1.1 var(--display); letter-spacing: -.04em; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.timestamp { font: 10px var(--mono); color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: white; margin-bottom: 18px; }
.kpi { padding: 20px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.kpi-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.kpi h2 { margin: 17px 0 8px; font: 650 34px/1 var(--display); letter-spacing: -.05em; }
.kpi h2 small { font: 500 14px var(--body); color: var(--muted); }
.kpi .formula { color: var(--muted); font: 10px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 18px; }
.comparison-chart { margin-bottom:18px; position:relative; }.chart-legend { display:flex; gap:16px; color:var(--muted); font-size:10px; }.chart-legend span { display:flex; align-items:center; gap:6px; }.chart-legend i { width:16px; height:5px; background:var(--blue); }.chart-legend i.recommend { background:var(--copper); }.chart-scale { margin:14px 72px 0 112px; display:flex; justify-content:space-between; color:#8a99a7; font:8px var(--mono); border-bottom:1px solid var(--line); padding-bottom:6px; }.chart-rows { padding:8px 18px 16px; display:grid; gap:12px; }.chart-row { display:grid; grid-template-columns:82px 1fr; gap:14px; align-items:center; }.chart-row > b { font-size:11px; }.chart-bars { display:grid; gap:5px; border-left:1px solid var(--line-strong); background-image:linear-gradient(to right,transparent calc(25% - 1px),#edf0f2 25%,transparent calc(25% + 1px)),linear-gradient(to right,transparent calc(50% - 1px),#edf0f2 50%,transparent calc(50% + 1px)),linear-gradient(to right,transparent calc(75% - 1px),#edf0f2 75%,transparent calc(75% + 1px)); }.chart-bars > div { height:12px; position:relative; }.chart-bars i { display:block; height:100%; min-width:0; background:var(--blue); }.chart-bars i.recommend { background:var(--copper); }.chart-bars span { position:absolute; left:calc(min(100%, var(--bar-width, 0%)) + 6px); top:0; transform:translateY(-1px); font:8px/12px var(--mono); color:var(--ink-2); }.chart-bars > div span { left:auto; right:5px; color:var(--ink); mix-blend-mode:multiply; }.chart-empty { position:absolute; inset:58px 0 0; display:grid; place-items:center; background:rgba(255,255,255,.86); color:var(--muted); font-size:11px; }
.panel { background: white; border: 1px solid var(--line); box-shadow: 0 5px 20px rgba(30,54,76,.025); }
.panel-head { min-height: 58px; padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { margin: 0; font: 620 14px var(--display); }
.panel-head p { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.panel-body { padding: 18px; }
.platform-list { display: grid; }
.platform-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) repeat(4, minmax(65px, .6fr)) 80px; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #edf0f2; font-size: 12px; }
.platform-row:last-child { border-bottom: 0; }
.platform-name { display: grid; gap: 3px; }
.platform-name b { font-size: 12px; }
.platform-name small { color: var(--muted); font-size: 9px; }
.metric-cell { display: grid; gap: 3px; }
.metric-cell b { font: 600 14px var(--display); }
.metric-cell small { color: var(--muted); font: 9px var(--mono); }
.bar { height: 4px; background: #edf1f4; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); }
.status-pill { justify-self: start; padding: 4px 7px; font: 700 9px var(--mono); background: #e8f4f1; color: var(--mint); }
.status-pill.warn { background: var(--copper-soft); color: var(--copper); }
.status-pill.fail { background: #f9eaea; color: var(--red); }
.alert-list { display: grid; }
.alert-item { padding: 15px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8px 1fr; gap: 12px; }
.alert-item i { width: 7px; height: 7px; margin-top: 5px; background: var(--copper); }
.alert-item.high i { background: var(--red); }
.alert-item h3 { margin: 0 0 5px; font-size: 11px; }
.alert-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.integrity { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 18px; }
.integrity > div { background: white; padding: 17px; }
.integrity small { color: var(--muted); font-size: 10px; }
.integrity b { display: block; margin-top: 6px; font: 600 20px var(--display); }
.integrity em { display:block; margin-top:4px; color:var(--muted); font:normal 9px var(--mono); }
.quality-strip { grid-template-columns:repeat(3,1fr); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line-strong); background: #fafbfc; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf0f2; vertical-align: top; }
tbody tr:hover { background: #f9fbff; }
.answer-cell { max-width: 360px; line-height: 1.55; color: var(--ink-2); }
.mono { font-family: var(--mono); }
.evidence-rail { min-width: 148px; display: grid; grid-template-columns: 52px 1fr; gap: 5px 8px; align-items: center; }
.evidence-rail span { font: 8px var(--mono); color: var(--muted); }
.evidence-rail i { height: 2px; background: var(--blue); }
.evidence-rail.web i { background: var(--copper); }
.source-chip { font: 700 8px var(--mono); padding: 4px 6px; border: 1px solid #b8c9f1; color: var(--blue); white-space: nowrap; }
.source-chip.web { border-color: #d8b99e; color: var(--copper); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { border: 1px solid var(--line-strong); background: white; padding: 8px 10px; font-size: 11px; }
.empty { padding: 70px 30px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); display: block; margin-bottom: 8px; font: 600 18px var(--display); }
.question-grid, .platform-grid, .report-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.question-card, .route-card, .report-card { background: white; border: 1px solid var(--line); padding: 18px; }
.question-card header, .route-card header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.question-card h3, .route-card h3, .report-card h3 { margin: 0; font-size: 13px; line-height: 1.5; }
.question-card p, .route-card p, .report-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.matrix-table th:not(:first-child), .matrix-table td:not(:first-child) { text-align: center; }
.rank-cell { display:inline-flex; min-width:44px; justify-content:center; padding:5px 7px; color:var(--blue); background:var(--blue-soft); font:700 10px var(--mono); }
.rank-cell.muted-rank { color:var(--muted); background:#f0f2f4; }
.analytic-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(230px,.5fr); gap:18px; }
.sentiment-stack { display:grid; gap:24px; }
.sentiment-row { display:grid; grid-template-columns:130px 1fr 60px; align-items:center; gap:16px; }
.sentiment-row > div:first-child { display:flex; justify-content:space-between; gap:8px; font-size:11px; }
.sentiment-row span { color:var(--muted); font:9px var(--mono); }
.sentiment-row strong { text-align:right; font:650 17px var(--display); }
.sentiment-bar { height:9px; background:#edf1f4; overflow:hidden; }
.sentiment-bar i { display:block; height:100%; background:var(--blue); }
.sentiment-bar i.neutral { background:#8b9aaa; }.sentiment-bar i.negative { background:var(--red); }
.signal-card { background:var(--ink); color:white; padding:27px; min-height:220px; display:flex; flex-direction:column; justify-content:center; }
.signal-card strong { font:650 62px/1 var(--display); color:#83a7ff; }.signal-card h3 { margin:15px 0 6px; }.signal-card p:last-child { color:#aebdca; font-size:11px; line-height:1.7; }
.boundary-note { margin-top:18px; border:1px solid #d9c3ad; background:var(--copper-soft); color:#745039; padding:15px 18px; display:grid; grid-template-columns:100px 1fr; gap:16px; font-size:11px; line-height:1.65; }
.voice-list { display:grid; padding:8px 18px 18px; }.voice-row { display:grid; grid-template-columns:180px 1fr 70px 55px; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); font-size:11px; }.voice-row > div:first-child { display:flex; align-items:center; gap:8px; }.voice-track { height:8px; background:#edf1f4; }.voice-track i { display:block; height:100%; background:#93a1ae; }.voice-row.target .voice-track i { background:var(--blue); }.voice-row strong { text-align:right; font:650 17px var(--display); }.voice-row small { color:var(--muted); }
.voice-row .voice-brand { display:grid; gap:4px; align-items:start; }.voice-brand em { color:var(--muted); font:normal 8px var(--mono); }
.compact-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tag.probe { display:inline-block; margin-top:6px; color:var(--copper); background:var(--copper-soft); }
.status-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.status-grid > div { background:white; padding:14px; }.status-grid small { display:block; color:var(--muted); font-size:9px; }.status-grid b { display:block; margin-top:5px; font:620 20px var(--display); }
.rule-list { display:grid; }.rule-list article { padding:15px 18px; border-bottom:1px solid var(--line); display:grid; gap:5px; }.rule-list b { font-size:11px; }.rule-list span { color:var(--muted); font:9px var(--mono); }
.trend-layout { margin-top:18px; }
.diagnostic-list { display:grid; gap:12px; }.diagnostic-card { background:white; border:1px solid var(--line); border-left:4px solid var(--copper); padding:20px; display:grid; grid-template-columns:54px 1fr; gap:18px; }.diagnostic-card.high { border-left-color:var(--red); }.diagnostic-card.good { border-left-color:var(--mint); }.diagnostic-card > span { font:650 30px var(--display); color:#c6d0d8; }.diagnostic-card h2 { margin:0 0 10px; font:620 17px var(--display); }.diagnostic-card p:not(.eyebrow) { margin:5px 0; color:var(--ink-2); font-size:11px; line-height:1.7; }
.plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.plan-card { background:white; border:1px solid var(--line); padding:18px; }.plan-card header { display:flex; justify-content:space-between; gap:12px; align-items:center; }.plan-card header > div { display:flex; align-items:center; gap:9px; }.plan-card h3 { margin:0; font-size:13px; }.status-dot { width:8px; height:8px; background:#aab5bf; }.status-dot.active { background:var(--mint); box-shadow:0 0 0 4px #e4f2ef; }.plan-card dl { margin:18px 0; display:grid; gap:12px; }.plan-card dl div { display:grid; gap:4px; }.plan-card dt { color:var(--muted); font-size:9px; }.plan-card dd { margin:0; font-size:11px; line-height:1.55; }.modal-form fieldset { border:1px solid var(--line-strong); padding:12px; display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }.modal-form legend { color:var(--muted); font-size:10px; padding:0 5px; }.check-line { display:flex !important; grid-template-columns:auto 1fr; align-items:center; gap:7px !important; }.check-line input { width:auto; }
.tag { padding: 3px 6px; background: #edf2f6; color: #50657a; font: 700 8px var(--mono); white-space: nowrap; }
.route-boundary { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; display: grid; gap: 8px; }
.route-boundary div { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 10px; }
.route-boundary span { font-family: var(--mono); color: var(--blue); }
.route-boundary .web { color: var(--copper); }
.confidence { width: 80px; }
.confidence b { font: 600 11px var(--mono); }
.review-box { max-width: 760px; display: grid; gap: 14px; }
.review-answer { background: #f7f9fa; border-left: 3px solid var(--copper); padding: 15px; white-space: pre-wrap; line-height: 1.65; font-size: 12px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-card { min-height: 175px; display: flex; flex-direction: column; }
.report-card .report-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; font: 700 11px var(--mono); }
.report-card .button { margin-top: auto; align-self: flex-start; }
dialog { border: 0; padding: 0; width: min(680px, calc(100vw - 32px)); box-shadow: 0 30px 90px rgba(15,35,55,.3); color: var(--ink); }
dialog::backdrop { background: rgba(12,29,45,.58); backdrop-filter: blur(3px); }
#modalContent { padding: 30px; }
.modal-close { position: absolute; right: 13px; top: 12px; border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; }
.modal-form { display: grid; gap: 16px; }
.modal-form h2 { margin: 0; font: 620 22px var(--display); }
.modal-form label { display: grid; gap: 7px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.modal-form input, .modal-form select, .modal-form textarea { border: 1px solid var(--line-strong); padding: 10px; outline: none; resize: vertical; }
.modal-form input:focus, .modal-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: white; padding: 13px 16px; font-size: 11px; box-shadow: var(--shadow); transform: translateY(90px); opacity: 0; transition: .25s ease; z-index: 99; }
.toast.show { transform: translateY(0); opacity: 1; }
.skeleton { background: linear-gradient(90deg,#eef1f3 25%,#f8f9fa 45%,#eef1f3 65%); background-size: 400% 100%; animation: shimmer 1.4s infinite; min-height: 120px; }
@keyframes shimmer { to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .layout-grid,.analytic-grid { grid-template-columns: 1fr; } .question-grid,.platform-grid,.report-grid,.plan-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; } .login-story { min-height: 42vh; padding: 30px; } .story-copy h1 { font-size: 47px; } .story-copy > p:last-child,.evidence-mini { display:none; } .login-panel { padding: 45px 28px; }
  .app-shell { display: block; } .sidebar { transform: translateX(-100%); transition: transform .25s ease; } .sidebar.open { transform: translateX(0); } main { grid-column: auto; } .icon-button { display: block; } .topbar { padding: 0 12px; } .topbar p,.demo-tag,.top-actions > .button:not(.tenant-create) { display:none; } .top-actions .tenant-create { display:inline-flex; width:34px; height:34px; padding:0; overflow:hidden; white-space:nowrap; font-size:0; } .top-actions .tenant-create::after { content:"+"; font-size:18px; } .content { padding: 22px 15px; } .page-head { align-items:flex-start; flex-direction:column; } .kpi-grid { grid-template-columns: 1fr; } .kpi { border-right:0; border-bottom:1px solid var(--line); } .kpi:last-child { border-bottom:0; } .question-grid,.platform-grid,.report-grid,.plan-grid { grid-template-columns:1fr; } .platform-row { grid-template-columns: 1.5fr repeat(2,1fr); } .platform-row > :nth-child(4),.platform-row > :nth-child(5),.platform-row > :nth-child(6){display:none;} .integrity { grid-template-columns:1fr; } .source-switch button { padding:7px 8px; }.sentiment-row { grid-template-columns:100px 1fr 45px; }.voice-row { grid-template-columns:110px 1fr 55px; }.voice-row small { display:none; }.boundary-note { grid-template-columns:1fr; }
}

/* Signal Atlas 2.0 — evidence-led operating surface */
:root {
  --ink: #10253b;
  --ink-2: #30465b;
  --paper: #eef3f6;
  --white: #ffffff;
  --line: #d8e2e9;
  --line-strong: #bdcbd5;
  --blue: #2f5de0;
  --blue-hover: #244dc2;
  --blue-soft: #e8eefe;
  --copper: #a95a27;
  --copper-soft: #fff0e5;
  --mint: #147767;
  --mint-soft: #e3f3ef;
  --red: #b83d48;
  --red-soft: #fbe9eb;
  --muted: #61778a;
  --navy: #0d2238;
  --navy-2: #142f49;
  --surface-soft: #f7f9fb;
  --shadow: 0 18px 55px rgba(24, 51, 76, .10);
  --shadow-soft: 0 8px 28px rgba(24, 51, 76, .07);
  --display: Bahnschrift, "Segoe UI Variable Display", "Microsoft YaHei UI", sans-serif;
  --body: "Segoe UI Variable Text", "Microsoft YaHei UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 82% -10%, rgba(47,93,224,.09), transparent 28rem),
    var(--paper);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: rgba(47,93,224,.16);
}
button, select, input, textarea { touch-action: manipulation; }
button:not(:disabled) { transition: transform .16s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
button:not(:disabled):active { transform: translateY(1px) scale(.985); }
.skip-link { position: fixed; left: 1rem; top: .75rem; z-index: 100; transform: translateY(-180%); background: var(--white); color: var(--ink); padding: .7rem 1rem; border-radius: 8px; box-shadow: var(--shadow); font-weight: 650; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: .18em; }
.app-shell { grid-template-columns: 264px minmax(0,1fr); }

.sidebar {
  width: 264px;
  padding: 26px 16px 16px;
  background: var(--navy);
  box-shadow: 18px 0 50px rgba(8,25,41,.08);
  isolation: isolate;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 6%, rgba(79,119,228,.22), transparent 15rem),
    linear-gradient(90deg, transparent 15px, rgba(255,255,255,.025) 16px, transparent 17px);
  background-size: auto, 32px 100%;
}
.sidebar .brand-lockup { padding: 0 10px 26px; font-size: 19px; letter-spacing: -.025em; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.04); }
.brand-mark::after { right: -3px; bottom: -3px; border-radius: 2px; }
.sidebar nav { gap: 4px; padding: 0 3px 8px 0; }
.sidebar nav button {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  grid-template-columns: 26px 1fr auto;
  color: #afbecb;
  font-size: 13px;
  font-weight: 520;
}
.sidebar nav button span { font-size: 14px; color: #7290aa; }
.sidebar nav button:hover { color: white; background: rgba(255,255,255,.07); }
.sidebar nav button.active { color: white; background: rgba(83,123,229,.18); box-shadow: inset 3px 0 #7595f3; }
.sidebar nav button.active span { color: #9bb2f8; }
.nav-group { margin: 20px 12px 7px; color: #71889c; font-size: 9px; }
.sidebar-boundary { margin-top: 8px; padding: 16px 12px; border-color: rgba(255,255,255,.08); }
.sidebar-boundary div { font-size: 12px; }
.profile-card { min-height: 58px; margin-top: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.profile-card:hover { background: rgba(255,255,255,.08); }
.profile-card > span:first-child { width: 34px; height: 34px; border-radius: 8px; background: #254560; }
.profile-card b { font-size: 12px; }.profile-card small { font-size: 10px; }

main { grid-column: 2; }
.topbar {
  min-height: 78px;
  height: auto;
  padding: 14px clamp(22px, 3vw, 42px);
  background: rgba(248,251,253,.88);
  border-bottom-color: rgba(189,203,213,.75);
  box-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.topbar p { font-size: 15px; letter-spacing: -.01em; }
.demo-tag { border: 0; border-radius: 5px; background: var(--copper-soft); padding: 4px 7px; }
.top-actions { gap: 8px; }
.compact-select, .button, .source-switch { min-height: 42px; border-radius: 9px; }
.compact-select { padding: 8px 34px 8px 12px; border-color: var(--line); }
.button { padding: 10px 15px; font-size: 12px; border-color: var(--line-strong); }
.button:hover { color: var(--blue); background: var(--blue-soft); border-color: #9ab0ed; box-shadow: 0 5px 16px rgba(47,93,224,.10); }
.button.primary { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 18px rgba(47,93,224,.18); }
.button.primary:hover { color: white; background: var(--blue-hover); border-color: var(--blue-hover); box-shadow: 0 10px 24px rgba(47,93,224,.24); }
.button.secondary { border-color: transparent; }
.source-switch { border: 0; background: #e5ebf0; padding: 4px; }
.source-switch button { min-height: 34px; padding: 7px 12px; border-radius: 6px; font-weight: 600; }
.source-switch button.active { color: var(--blue); box-shadow: 0 3px 10px rgba(29,50,72,.10); }

.content { max-width: 1540px; padding: clamp(28px, 3.3vw, 52px); }
.page-head { margin-bottom: 28px; align-items: flex-end; }
.page-head > div:first-child { min-width: 0; }
.page-head h1 { font-size: clamp(28px, 2.4vw, 40px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.page-head p { max-width: 72ch; margin-top: 10px; font-size: 13px; line-height: 1.7; text-wrap: pretty; }
.timestamp { padding: 7px 10px; border-radius: 6px; background: rgba(255,255,255,.66); font-size: 9px; }

.kpi-grid { gap: 12px; border: 0; background: transparent; margin-bottom: 22px; }
.kpi {
  position: relative;
  min-height: 148px;
  padding: 21px 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(205,217,225,.85);
  border-radius: 14px;
  background: rgba(255,255,255,.91);
  box-shadow: var(--shadow-soft);
}
.kpi::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:linear-gradient(90deg,var(--blue),rgba(47,93,224,.08)); transform:scaleX(.34); transform-origin:left; transition:transform .25s ease; }
.kpi:hover::after { transform: scaleX(1); }
.kpi:first-child { background: linear-gradient(145deg,#f9fbff,#edf2ff); border-color:#c8d5fb; }
.kpi:last-child { border-right: 1px solid rgba(205,217,225,.85); }
.kpi-top { font-size: 12px; font-weight: 600; }
.kpi-top i { width: 6px; height: 6px; }
.kpi h2 { margin: 20px 0 11px; font-size: clamp(34px,3vw,45px); letter-spacing: -.055em; }
.kpi .formula { font-size: 10px; overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.5; }

.panel { border: 1px solid rgba(205,217,225,.9); border-radius: 15px; box-shadow: var(--shadow-soft); overflow: clip; }
.panel-head { min-height: 70px; padding: 18px 20px; }
.panel-head h2 { font-size: 15px; letter-spacing: -.01em; }
.panel-head p { margin-top: 5px; font-size: 11px; line-height: 1.5; }
.panel-body { padding: 22px; }
.comparison-chart { margin-bottom: 22px; }
.chart-legend { gap: 18px; font-size: 11px; }.chart-legend i { width: 22px; height: 6px; border-radius: 4px; }
.chart-scale { margin: 18px 70px 0 116px; padding-bottom: 8px; font-size: 9px; }
.chart-rows { gap: 16px; padding: 14px 20px 22px; }
.chart-row { grid-template-columns: 86px 1fr; gap: 18px; }
.chart-row > b { font-size: 12px; }
.chart-bars { gap: 7px; border-left: 0; border-radius: 5px; }
.chart-bars > div { height: 14px; background: rgba(224,231,236,.48); border-radius: 5px; overflow: hidden; }
.chart-bars i { border-radius: 5px; background: linear-gradient(90deg,#284fc7,#4c76ed); }
.chart-bars i.recommend { background: linear-gradient(90deg,#9a5226,#cf7d43); }
.chart-bars > div span { right: 7px; font-size: 9px; line-height: 14px; color: var(--ink); }
.layout-grid { grid-template-columns: minmax(0,1.65fr) minmax(300px,.62fr); gap: 20px; }

.platform-row { min-height: 72px; padding: 15px 20px; gap: 14px; font-size: 13px; }
.platform-name b { font-size: 13px; }.platform-name small { margin-top:2px; font-size: 10px; }
.metric-cell b { font-size: 16px; }.metric-cell small { font-size: 9px; }
.status-pill { padding: 5px 8px; border-radius: 6px; background: var(--mint-soft); font-size: 9px; }
.status-pill.warn { background: var(--copper-soft); }.status-pill.fail { background: var(--red-soft); }
.alert-item { padding: 17px 20px; gap: 13px; }.alert-item i { border-radius:2px; }.alert-item h3 { font-size: 12px; }.alert-item p { font-size: 11px; line-height: 1.65; }

.integrity { gap: 12px; border: 0; background: transparent; margin-top: 20px; }
.integrity > div { min-height: 92px; padding: 18px 20px; border: 1px solid rgba(205,217,225,.9); border-radius: 12px; box-shadow: 0 5px 18px rgba(24,51,76,.045); }
.integrity small { font-size: 11px; }.integrity b { font-size: 24px; }.integrity em { font-size: 9px; }
.quality-strip > div { background: #f8fafc; box-shadow: none; }

.table-wrap { overscroll-behavior: contain; scrollbar-width: thin; }
table { font-size: 12px; }
thead { position: sticky; top: 0; z-index: 2; }
th { padding: 13px 16px; background: #f5f8fa; font-size: 10px; letter-spacing: .045em; text-transform: uppercase; }
td { min-height: 48px; padding: 15px 16px; line-height: 1.55; }
tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
tbody tr:hover { background: #f2f6ff; }
tbody tr[role="button"] { cursor: pointer; }
tbody tr[role="button"]:focus-visible { outline: 3px solid #9eb4f4; outline-offset: -3px; background: #eef3ff; }
.answer-cell { max-width: 410px; overflow-wrap: anywhere; }
.rank-cell { min-width: 50px; min-height: 30px; align-items:center; border-radius: 6px; font-size: 10px; }
.source-chip, .tag { border-radius: 5px; font-size: 9px; }
.evidence-rail { min-width: 156px; }
.evidence-rail span { font-size: 8px; }.evidence-rail i { border-radius: 2px; }

.question-grid, .platform-grid, .report-grid, .plan-grid { gap: 16px; }
.question-card, .route-card, .report-card, .plan-card { border: 1px solid rgba(205,217,225,.9); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-soft); }
.question-card h3, .route-card h3, .report-card h3, .plan-card h3 { font-size: 14px; }
.question-card p, .route-card p, .report-card p { font-size: 11px; }
.route-boundary { margin: 16px 0 18px; padding-top: 15px; }.route-boundary div { font-size: 11px; }
.report-card { min-height: 220px; }.report-card .report-icon { width: 42px; height: 42px; border-radius: 10px; }
.plan-card header { align-items:flex-start; }.plan-card dl { margin:20px 0; }.plan-card dd { font-size:12px; }
.status-dot { border-radius:2px; }

.analytic-grid { gap:20px; }.sentiment-row { grid-template-columns:150px 1fr 68px; }.sentiment-row > div:first-child { font-size:12px; }.sentiment-bar { height:11px; border-radius:6px; }.sentiment-bar i { border-radius:6px; }.sentiment-row strong { font-size:19px; }
.signal-card { min-height:260px; border-radius:15px; background:var(--navy); box-shadow:var(--shadow); }.signal-card strong { color:#9bb4ff; }
.voice-list { padding:10px 22px 22px; }.voice-row { min-height:72px; grid-template-columns:220px 1fr 78px 60px; font-size:12px; }.voice-brand em { font-size:9px; }.voice-track { height:10px; border-radius:6px; overflow:hidden; }.voice-track i { border-radius:6px; }.voice-row strong { font-size:19px; }
.boundary-note { margin-top:20px; padding:18px 20px; border:0; border-left:4px solid var(--copper); border-radius:10px; font-size:12px; }
.diagnostic-list { gap:14px; }.diagnostic-card { border:0; border-left:4px solid var(--copper); border-radius:12px; padding:24px; box-shadow:var(--shadow-soft); }.diagnostic-card h2 { font-size:18px; }.diagnostic-card p:not(.eyebrow) { font-size:12px; }
.rule-list article { padding:17px 20px; }.rule-list b { font-size:12px; }.rule-list span { font-size:10px; }

dialog { border-radius: 16px; width:min(720px,calc(100vw - 28px)); max-height:min(88dvh,900px); overflow:auto; overscroll-behavior:contain; box-shadow:0 34px 100px rgba(7,26,43,.32); }
dialog::backdrop { background:rgba(8,25,41,.58); }
#modalContent { padding:34px; }
.modal-close { width:44px; height:44px; right:8px; top:7px; border-radius:9px; }
.modal-close:hover { color:var(--ink); background:var(--surface-soft); }
.modal-form { gap:18px; }.modal-form h2 { font-size:24px; }.modal-form label { gap:8px; font-size:12px; }
.modal-form input, .modal-form select, .modal-form textarea { min-height:44px; border-radius:8px; background:#fbfcfd; font-size:13px; }
.modal-form input:focus-visible, .modal-form select:focus-visible, .modal-form textarea:focus-visible { outline:3px solid #b9c9f8; outline-offset:1px; border-color:var(--blue); }
.review-answer { border-radius:8px; font-size:13px; }
.toast { right:max(20px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom)); max-width:min(420px,calc(100vw - 40px)); border-radius:10px; font-size:12px; }
.empty { min-height:240px; display:grid; align-content:center; justify-items:center; padding:54px 28px; font-size:12px; }.empty::before { content:""; width:44px; height:18px; margin-bottom:18px; border-top:3px solid var(--blue); border-bottom:3px solid var(--copper); opacity:.65; }.empty b { font-size:19px; }

.question-actions, .question-form-actions { display:flex; flex-wrap:wrap; gap:10px; flex-shrink:0; }
.question-form-actions { justify-content:flex-end; padding-block:12px; position:sticky; bottom:0; z-index:1; background:var(--white); }
.question-form-actions .button { min-height:44px; }
.question-form { gap:14px; min-width:0; }
.question-form h2 { padding-right:30px; }
.question-form-note { margin:0; color:var(--ink-2); font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.question-form label { font-size:14px; }
.question-form input, .question-form select, .question-form textarea { width:100%; min-width:0; font-size:16px; color:var(--ink); caret-color:var(--blue); }
.question-form textarea { min-height:150px; line-height:1.65; }
.question-form textarea::placeholder { color:var(--muted); opacity:1; }
.question-form textarea[aria-invalid="true"] { border-color:var(--red); }
.question-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.question-input-hint { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 14px; color:var(--ink-2); font-size:14px; line-height:1.6; }
.question-options { padding-top:14px; border-top:1px solid var(--line); }
.question-options summary { cursor:pointer; width:fit-content; min-height:44px; display:list-item; align-content:center; color:var(--blue); font-size:14px; font-weight:600; }
.question-options .question-form-grid { margin:10px 0 16px; }
.question-form .check-line { font-weight:400; line-height:1.6; margin-bottom:10px; }
.question-form .check-line input { width:20px; height:20px; min-height:20px; flex-shrink:0; accent-color:var(--blue); }
.question-form .form-error { margin:0; font-size:14px; line-height:1.6; }
.question-form .form-error[hidden] { display:none; }
.batch-form { padding:22px; display:grid; gap:18px; }
.batch-form label, .batch-form legend { font-size:14px; }
.batch-form select { width:100%; min-height:44px; font-size:16px; }
.batch-form fieldset { min-width:0; border:1px solid var(--line); border-radius:8px; padding:16px; display:block; }
.batch-question-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.batch-question-list { max-height:260px; overflow:auto; display:grid; gap:12px; padding:4px; }
.batch-question-list .check-line, .batch-consent { align-items:flex-start; line-height:1.65; }
.batch-question-list span { overflow-wrap:anywhere; }
.batch-form .batch-platforms { display:flex; gap:20px; flex-wrap:wrap; }
.batch-form input[type="checkbox"], .submission-review input[type="checkbox"] { width:20px; height:20px; min-height:20px; flex-shrink:0; accent-color:var(--blue); }
.batch-options summary, .legacy-collection summary, .submission-review summary { cursor:pointer; min-height:44px; align-content:center; color:var(--blue); font-size:14px; }
.batch-options label { margin-top:12px; }
.legacy-collection { padding:0 22px 20px; }
#batchEmpty[hidden], #batchFormError[hidden], #submissionReviewError[hidden] { display:none; }
.submission-review { min-width:0; }
.submission-review textarea, .submission-review select { min-width:0; width:100%; font-size:16px; line-height:1.6; }
.submission-review label { font-size:14px; line-height:1.6; }
.submission-review .submission-links { display:grid; grid-template-columns:1fr; gap:14px; max-height:340px; overflow:auto; min-width:0; }
.submission-links .check-line { align-items:flex-start; }
.submission-links span { min-width:0; overflow-wrap:anywhere; }
.submission-links small { display:block; font-size:12px; color:var(--ink-2); }
#automaticBatchPanel { margin-block:20px; }
#automaticBatchPanel table { min-width:850px; }
#automaticBatchPanel th:nth-child(3) { min-width:190px; }
#automaticBatchPanel td:last-child { min-width:150px; }
.collector-form.batch-form select { font-size:16px; }
.batch-form .batch-question-list .check-line, .collector-form.batch-form .batch-consent { display:flex; align-items:flex-start; margin-right:0; }
.collector-form.batch-form input[type="checkbox"] { margin-top:2px; }
@media (max-width:720px) { #automaticBatchPanel > .panel-head { flex-direction:column; align-items:stretch; } #automaticBatchPanel .panel-head > div { min-width:0; } #automaticBatchPanel .question-actions { width:100%; } #automaticBatchPanel h2 { white-space:normal; } }
@media (max-width:600px) { .batch-form { padding:18px; }.batch-question-tools { align-items:flex-start; }.batch-form .question-actions .button { width:100%; }.submission-review .question-form-actions { flex-direction:column; } }
@media (max-width:600px) {
  .question-actions { width:100%; }
  .question-actions .button { flex:1; }
  .question-form-grid { grid-template-columns:1fr; }
  .question-form-actions .button { flex:1; }
}

@media (hover:hover) and (pointer:fine) {
  .kpi:hover, .question-card:hover, .route-card:hover, .report-card:hover, .plan-card:hover { transform:translateY(-2px); box-shadow:0 14px 34px rgba(24,51,76,.10); }
  .kpi, .question-card, .route-card, .report-card, .plan-card { transition:transform .2s ease,box-shadow .2s ease; }
}
@media (pointer:coarse) {
  .button, .source-switch button, .compact-select, .sidebar nav button { min-height:44px; }
}
@media (max-width:1180px) {
  .app-shell { grid-template-columns:228px minmax(0,1fr); }.sidebar { width:228px; }.content { padding:30px; }
  .topbar { padding-inline:24px; }.platform-row { grid-template-columns:minmax(120px,1.2fr) repeat(3,minmax(64px,.6fr)) 78px; }.platform-row .metric-cell:nth-of-type(5) { display:none; }
}
@media (max-width:920px) {
  .app-shell { display:block; }.sidebar { width:280px; transform:translateX(-105%); transition:transform .22s ease; }.sidebar.open { transform:translateX(0); box-shadow:20px 0 70px rgba(8,25,41,.3); }
  main { grid-column:auto; }.icon-button { display:grid; place-items:center; width:44px; height:44px; border-radius:9px; }
  .topbar { padding:12px 18px; flex-wrap:wrap; }.topbar > div:first-child { min-width:0; }.top-actions { margin-left:auto; }
  .layout-grid,.analytic-grid { grid-template-columns:1fr; }.question-grid,.platform-grid,.report-grid,.plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.kpi { border:1px solid rgba(205,217,225,.85); }.kpi:nth-child(-n+2) { border-bottom:1px solid rgba(205,217,225,.85); }
}
@media (max-width:680px) {
  body { background:var(--paper); }.topbar { align-items:flex-start; gap:10px; }.topbar > div:first-child { min-height:44px; }.topbar p { max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .top-actions { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; }.compact-select { grid-column:1/-1; width:100%; }.tenant-create { position:absolute; top:13px; right:16px; width:44px; overflow:hidden; font-size:0; }.tenant-create::after { content:"+"; font-size:20px; }
  .source-switch { width:100%; }.source-switch button { flex:1; }.top-actions > .button.primary { display:inline-flex !important; white-space:nowrap; }
  .content { padding:24px 15px 36px; }.page-head { align-items:flex-start; gap:14px; }.page-head h1 { font-size:30px; }.page-head p { font-size:12px; }
  .kpi-grid,.compact-kpis { grid-template-columns:1fr; }.kpi { min-height:130px; }.kpi h2 { font-size:38px; }
  .question-grid,.platform-grid,.report-grid,.plan-grid { grid-template-columns:1fr; }
  .comparison-chart { overflow:hidden; }.chart-scale { margin-left:82px; margin-right:28px; }.chart-rows { padding-inline:14px; }.chart-row { grid-template-columns:58px 1fr; gap:10px; }.chart-row > b { overflow:hidden; text-overflow:ellipsis; }
  .platform-row { grid-template-columns:1.25fr 1fr auto; padding:14px 16px; }.platform-row > :nth-child(4),.platform-row > :nth-child(5),.platform-row > :nth-child(6) { display:none; }
  .integrity,.quality-strip { grid-template-columns:1fr; gap:10px; }.integrity > div { min-height:82px; }
  .voice-row { grid-template-columns:130px 1fr 58px; gap:9px; }.voice-row small { display:none; }
  .sentiment-row { grid-template-columns:110px 1fr 52px; gap:10px; }
  .boundary-note { grid-template-columns:1fr; }
  #modalContent { padding:28px 20px; }.modal-form fieldset { grid-template-columns:1fr; }
  th,td { padding-inline:13px; }.table-wrap { margin-inline:-1px; }
}
@media (max-width:430px) {
  .topbar p,.demo-tag { display:none; }.top-actions { grid-template-columns:1fr; }.top-actions > .button.primary { width:100%; }.source-switch { grid-column:1; }.page-head h1 { font-size:27px; }
  .chart-legend { display:none; }.chart-scale { margin-left:74px; }.status-grid { grid-template-columns:repeat(2,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
.collector-form { display:grid; gap:16px; padding:0 22px 20px; font:13px/1.6 var(--body); }
.collector-form input:not([type="checkbox"]), .collector-form select, #deviceToken input { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line-strong); border-radius:8px; background:#fbfcfd; color:var(--ink); font:inherit; }
.collector-form :focus-visible, #deviceToken input:focus-visible { outline:3px solid #b9c9f8; outline-offset:2px; }
.collector-form label { display:grid; gap:6px; }
.collector-form fieldset { border:1px solid var(--line); padding:12px; }
.collector-form .check-line { display:inline-flex; gap:8px; align-items:center; margin-right:16px; }
.collector-guide { padding:22px; margin-bottom:20px; }
.collector-guide h2 { margin:0 0 12px; }
.collector-guide li { margin-bottom:8px; }
.collector-setup { align-items:start; margin-bottom:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.collector-setup .panel-head h2 { margin:0; font:650 16px/1.5 var(--body); }
.collector-setup + .panel table { min-width:800px; }
.collector-setup + .panel td:first-child { min-width:260px; }
.collector-setup > section { min-width:0; }
.collector-setup > section > .muted, #deviceToken { padding:0 22px 16px; }
#deviceToken input { width:100%; }
.collector-pagination { display:flex; justify-content:flex-end; align-items:center; gap:12px; padding:16px; }
.collection-screenshot { display:block; width:100%; height:auto; border:1px solid var(--line); }
dialog:has(.submission-review) { width:min(1040px,calc(100vw - 24px)); }
.submission-review { grid-template-columns:minmax(0,1fr); min-width:0; overflow-wrap:anywhere; }
.submission-review > * { min-width:0; }
.submission-review a { color:var(--blue); text-underline-offset:3px; }
.evidence-tabs { display:flex; gap:4px; padding:5px; border-radius:10px; background:var(--surface-soft); }
.evidence-tabs button { flex:1; min-width:0; min-height:44px; padding:8px 12px; border:0; border-radius:7px; background:transparent; color:var(--ink-2); cursor:pointer; font:inherit; font-weight:600; }
.evidence-tabs button:hover { background:var(--blue-soft); color:var(--blue); }
.evidence-tabs button[aria-selected="true"] { background:var(--blue); color:white; }
.evidence-tabs button:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.submission-review [role="tabpanel"] { min-width:0; }
.submission-review [role="tabpanel"][hidden] { display:none; }
.markdown-preview { padding:4px 0 16px; color:var(--ink); font-size:16px; line-height:1.85; overflow-wrap:anywhere; }
.markdown-preview p { margin:0 0 16px; }
.markdown-preview h1,.markdown-preview h2,.markdown-preview h3,.markdown-preview h4 { margin:28px 0 12px; line-height:1.4; font-family:inherit; }
.markdown-preview h1 { font-size:26px; }.markdown-preview h2 { font-size:22px; }.markdown-preview h3 { font-size:19px; }.markdown-preview h4 { font-size:17px; }
.markdown-preview ul,.markdown-preview ol { padding-inline-start:24px; }
.markdown-preview li { margin-block:7px; }
.markdown-preview table { display:block; width:100%; overflow:auto; border-collapse:collapse; font-size:14px; }
.markdown-preview th,.markdown-preview td { min-width:100px; padding:10px 12px; border:1px solid var(--line); text-align:start; line-height:1.6; }
.markdown-preview th { background:var(--surface-soft); }
.markdown-preview pre { padding:16px; background:var(--surface-soft); overflow:auto; font-size:14px; }
.markdown-preview blockquote { margin:16px 0; padding:12px 18px; background:var(--surface-soft); color:var(--ink-2); }
.evidence-tools { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:12px; }
.evidence-tools p { margin:0; }.evidence-tools .button { flex-shrink:0; }
.evidence-image-scroll { max-height:65vh; overflow:auto; background:var(--surface-soft); }
.source-coverage { font-size:14px; line-height:1.7; }
.submission-review .submission-links { max-height:480px; padding:12px 16px; }
.source-record { padding-block:12px; border-bottom:1px solid var(--line); font-weight:400; }
.source-record:last-child { border-bottom:0; }
.submission-review .source-record { font-weight:400; }
.source-record strong { font-weight:600; }.source-record strong a { text-decoration:underline; text-underline-offset:3px; }
.source-snippet { display:block; color:var(--ink-2); margin-top:7px; font-size:14px; line-height:1.65; }
.source-url { overflow-wrap:anywhere; }
.original-evidence .review-answer { max-height:240px; overflow:auto; }
@media(max-width:600px) { .evidence-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.evidence-tools { align-items:flex-start; flex-direction:column; }.markdown-preview { font-size:16px; }.submission-review .submission-links { padding:10px; }.evidence-image-scroll { max-height:55vh; } }
.collector-manual { max-width:860px; padding:36px 24px 80px; margin:0 auto; line-height:1.8; }
.collector-manual h1 { font-size:30px; margin:24px 0; }
.collector-manual h2 { margin:32px 0 12px; }
.collector-manual li { margin:10px 0; }
.collector-manual code { overflow-wrap:anywhere; }
@media(max-width:1100px) { .collector-setup { grid-template-columns:minmax(0,1fr); } }
.mobile-task-status { display:none; }
.automatic-analysis-panel { margin-block:24px; }
.automatic-analysis-body { padding:0 22px 24px; min-width:0; }
.analysis-method-note { color:var(--ink-2); font-size:14px; line-height:1.7; margin:0 0 16px; }
.automatic-target-summary { font-size:16px; line-height:1.8; margin-block:12px 20px; }
.automatic-analysis-body table { min-width:720px; }
.automatic-analysis-body td,.brand-evidence-table td { vertical-align:top; }
.automatic-analysis-body small,.brand-evidence-table small { display:block; color:var(--ink-2); margin-block:5px; }
.automatic-answer { border-top:1px solid var(--line); padding-block:18px; }
.automatic-answer > summary,.automatic-config > summary { cursor:pointer; min-height:44px; line-height:1.8; font-size:15px; }
.automatic-answer > summary span { display:block; color:var(--ink-2); font-size:13px; margin-left:20px; }
.automatic-answer pre,.brand-evidence-table pre { white-space:pre-wrap; overflow-wrap:anywhere; max-width:45ch; max-height:280px; overflow:auto; font-size:13px; line-height:1.7; }
.automatic-answer .button { margin-top:14px; }
.automatic-config { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.automatic-config form { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; max-width:680px; padding-block:16px 28px; }
.automatic-config form label { display:grid; gap:8px; font-size:14px; }
.automatic-config form input:not([type=checkbox]),.automatic-config form textarea { width:100%; padding:10px 12px; border:1px solid var(--line-strong); border-radius:8px; font:inherit; }
.automatic-config form .button { justify-self:start; }
.automatic-config p { line-height:1.8; }
.review-box:has(.brand-evidence-table) { min-width:0; max-width:100%; grid-template-columns:minmax(0,1fr); overflow-wrap:anywhere; }
.review-box:has(.brand-evidence-table) > * { min-width:0; }
.result-brand-analysis,.result-brand-analysis .table-wrap { min-width:0; max-width:100%; }
dialog:has(.result-brand-analysis) { width:min(1040px,calc(100vw - 24px)); }
.brand-evidence-table { min-width:720px; }
@media(max-width:680px) { .automatic-analysis-body { padding-inline:16px; }.automatic-config form input:not([type=checkbox]),.automatic-config form textarea { font-size:16px; } }
@media(max-width:680px) { .topbar > .top-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; }.top-actions .compact-select { grid-column:1/-1; }.top-actions .source-switch { min-width:0; }.source-switch button { white-space:nowrap; }.top-actions > .button.primary { min-width:0; } }
@media(max-width:360px) { .topbar > .top-actions { grid-template-columns:minmax(0,1fr); }.top-actions .source-switch { grid-column:1; } }
@media(max-width:680px) { .mobile-task-status { display:block; width:max-content; padding:3px 7px; margin-bottom:8px; border-radius:5px; color:#70411f; background:#fff0e5; font-weight:650; } }

/* Project lifecycle shares the existing operating UI; evidence is never hard-deleted. */
.monitoring-mode { padding:8px 10px; color:#755032; background:#f7ede2; border-radius:6px; font-size:12px; font-weight:600; white-space:nowrap; }
.monitoring-method { padding:18px 0 24px; line-height:1.7; }
.monitoring-method strong { font-weight:650; }
.monitoring-method p { margin:8px 0 0; color:var(--muted); font-size:13px; }
.api-policy,.api-history { padding:24px; margin-bottom:24px; }
.api-policy p,.api-history p,.api-config p { max-width:75ch; line-height:1.75; }
.api-policy h2,.api-history h2 { margin-top:0; }
.api-policy form { display:grid; gap:16px; justify-items:start; padding-top:12px; }
#apiPolicyMessage:empty { display:none; }
.api-config { margin:28px 0; }
.api-config > summary { cursor:pointer; padding:12px 0; font-weight:650; }
.api-card-actions { display:flex; flex-wrap:wrap; gap:10px; }
.api-card-actions .button:disabled,.api-policy .button:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
.api-history .table-wrap { overflow:auto; }
@media(max-width:680px) { .monitoring-mode { justify-self:start; min-width:0; font-size:11px; }.api-policy,.api-history { padding:18px; }.api-policy .button,.api-config .button,.api-history .button { min-height:44px; }.api-policy label { line-height:1.6; } }
.project-manager { overflow:hidden; }
.project-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:20px; }
.project-tabs,.project-row-actions,.project-confirm-actions,.project-pagination { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.project-table { width:100%; }
.project-table td:first-child { min-width:180px; max-width:320px; overflow-wrap:anywhere; white-space:normal; }
.project-table td small { display:block; color:var(--muted); margin-top:6px; }
.project-row-actions { flex-wrap:nowrap; }
.project-danger { color:#a52b35; border-color:#dfb0b4; background:#fff9f9; }
.project-danger:hover:not(:disabled) { color:#85212a; border-color:#a52b35; background:#fff0f1; }
.project-manager .button:disabled,.project-confirm .button:disabled { opacity:.5; cursor:not-allowed; }
.project-note { margin:0; padding:0 20px 18px; line-height:1.7; color:var(--muted); }
.evidence-question { margin:16px 0; padding:20px; border:1px solid var(--border); border-radius:12px; }
.evidence-question h3 { margin:0 0 12px; }
.evidence-question-text { white-space:pre-wrap; overflow-wrap:anywhere; font-weight:600; line-height:1.7; }
.evidence-question .evidence-tools { flex-wrap:wrap; gap:12px; }
.evidence-question .button { white-space:normal; }
.project-note.form-error { color:var(--red); }
.project-pagination { justify-content:flex-end; padding:18px 20px; }
.project-footnote { color:var(--muted); line-height:1.7; font-size:13px; }
.project-confirm p { margin:0; line-height:1.7; overflow-wrap:anywhere; }
.project-confirm h2 { overflow-wrap:anywhere; }
.project-confirm-actions { justify-content:flex-end; }
@media(max-width:680px) {
  .project-toolbar { padding:16px; align-items:flex-start; }
  .project-manager .table-wrap { overflow:auto; }
  .project-manager .button,.project-confirm .button { min-height:44px; }
  .project-confirm input { font-size:16px; }
  .project-table { min-width:650px; }
  .project-row-actions { gap:6px; }
}
