:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #17181b;
  --muted: #6f737b;
  --line: #e5e7eb;
  --line-strong: #d5d8de;
  --red: #e3262e;
  --red-dark: #c8141d;
  --red-soft: #fff0f1;
  --green: #209b61;
  --orange: #e98712;
  --radius: 11px;
  --sidebar: 224px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
[data-theme="dark"] {
  --bg: #11151a;
  --surface: #181d24;
  --ink: #edf2f7;
  --muted: #a0a8b5;
  --line: #2a3240;
  --line-strong: #3a4352;
  --red-soft: #31181b;
}
* { box-sizing: border-box; }
html { font-size: 16px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); line-height: 1.5; }
[data-font-scale="90"] { font-size: 14px; }
[data-font-scale="100"] { font-size: 16px; }
[data-font-scale="110"] { font-size: 17px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); padding: 25px 14px 18px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 9px; font-size: 18px; font-weight: 720; letter-spacing: .01em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.brand-rule { display: block; width: 4px; height: 34px; background: var(--red); }
.nav-list { display: grid; gap: 5px; margin-top: 28px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 13px; color: #646871; border-radius: 8px; font-size: 14px; }
.nav-item:hover { color: var(--ink); background: #f7f7f8; }
.nav-item.active { color: var(--red); background: var(--red-soft); font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 26px; background: var(--red); border-radius: 0 3px 3px 0; }
.sidebar-footer { margin-top: auto; padding: 16px 4px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-tools { display:flex; align-items:center; gap:1px; }.sidebar-tools form { margin:0; }
.user-block { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-block strong, .user-block small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-block strong { font-size: 13px; }.user-block small { color: var(--muted); font-size: 11px; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 700; }
.icon-button { border: 0; background: transparent; color: #656a72; padding: 7px; display: grid; place-items: center; border-radius: 7px; }
.icon-button:hover { background: #f2f3f5; color: var(--ink); }
.main-wrap { margin-left: var(--sidebar); }
.main-content { width: min(1440px, 100%); margin: 0 auto; padding: 34px 38px 64px; }
.mobile-header { display: none; }
.page-heading { min-height: 104px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.page-heading h1 { position: relative; margin: 5px 0 8px; font-size: clamp(27px, 2.4vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.page-heading h1::after { content: ""; display: block; width: 68px; height: 2px; background: var(--red); margin-top: 13px; }
.page-heading p { margin: 0; color: var(--muted); }
.page-heading .section-note { color: var(--red); font-weight: 650; font-size: 13px; letter-spacing: .08em; }
.dashboard-heading { align-items: center; }
.dashboard-heading h1 { border-left: 5px solid var(--red); padding-left: 20px; }
.dashboard-heading h1::after { margin-left: 20px; }
.date-line { font-size: 13px; margin-left: 25px !important; }
.heading-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.heading-actions form { margin: 0; }
.schedule-note { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: #5f636c; font-size: 13px; }
.schedule-note strong { color: var(--red); }
.button { min-height: 42px; padding: 0 17px; border-radius: 8px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; }
.button.primary { background: var(--red); color: white; }.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: var(--surface); border-color: var(--line-strong); color: #353840; }.button.secondary:hover { border-color: #9ca0a8; }
.button.wide { width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow:0 1px 2px rgba(20,24,32,.025); }
.metrics-strip { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; padding: 22px 8px; }
.metric-cell { min-width: 0; padding: 0 20px; border-right: 1px solid var(--line); }.metric-cell:last-child { border-right: 0; }
.metric-cell span, .metric-cell strong, .metric-cell small { display: block; }
.metric-cell span { color: #555a63; font-size: 13px; }.metric-cell strong { margin: 5px 0 4px; font-size: clamp(18px, 2vw, 25px); font-variant-numeric: tabular-nums; }.metric-cell small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.positive { color: var(--green) !important; }.negative { color: var(--red) !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(370px, .85fr); gap: 18px; margin-bottom: 18px; }
.trend-panel, .platform-panel { min-height: 340px; }
.panel-head { min-height: 68px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-head h2, .panel > h2 { margin: 0; font-size: 17px; }.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }.panel-head a { color: var(--red); font-size: 13px; font-weight: 650; }
.bar-chart { height: 245px; padding: 28px 22px 18px; display: flex; align-items: stretch; gap: 13px; border-bottom: 0; }
.bar-item { flex: 1; min-width: 0; display: grid; grid-template-rows: 20px 1fr 22px; text-align: center; }
.bar-track { height: 100%; min-height: 0; display: flex; align-items: end; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #f0f1f3 50px); }
.bar { width: 56%; margin: 0 auto; min-height: 3px; background: var(--red); border-radius: 5px 5px 0 0; transition: height .4s ease; }
.bar-value { overflow: hidden; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }.bar-item small { padding-top: 7px; color: var(--muted); font-size: 11px; }
.platform-list { padding: 0 20px; }
.platform-row { min-height: 53px; display: grid; grid-template-columns: 34px 1.2fr 1fr 1fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }.platform-row:last-child { border: 0; }
.platform-row strong, .platform-row small { display: block; }.platform-row strong { font-size: 13px; }.platform-row small { color: var(--muted); font-size: 10px; }
.platform-mark { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; color: white; background: #34363b; font-size: 12px; font-weight: 800; }.p-抖音 { background:#16181c }.p-小红书 { background:#e3262e }.p-视频号 { background:#e99b16 }.p-公众号 { background:#31a66b }.p-B站 { background:#e56692 }
.content-panel { min-height: 260px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 17px; background: #fafafa; border-bottom: 1px solid var(--line); color: #656a72; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 13px 17px; border-bottom: 1px solid var(--line); color: #363940; vertical-align: middle; } tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #fcfcfd; }
.title-cell { min-width: 260px; color: var(--ink); }.title-cell small { display: block; color: var(--muted); margin-top: 3px; }.error-detail { color: var(--red) !important; }
.performance { font-weight: 650; }.performance.good { color: var(--red); }.performance.normal { color: var(--orange); }.performance.low { color: var(--muted); }
.empty-table { min-height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: var(--muted); }.empty-table strong { color: var(--ink); font-size: 16px; }.empty-table a, .empty-inline a { color: var(--red); font-weight: 650; }
.empty-inline { padding: 30px 8px; text-align: center; color: var(--muted); }
.two-column { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); gap: 18px; }
.form-panel { padding: 24px; align-self: start; }.form-panel > h2, .panel > h2 { margin-bottom: 19px; }
.stack-form { display: grid; gap: 16px; }.stack-form label, .upload-card > label { display: grid; gap: 7px; color: #4b4f57; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); background: white; border-radius: 8px; padding: 0 12px; color: var(--ink); outline: none; }
textarea { padding: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.simple-list { padding: 0 20px; }.simple-row { min-height: 67px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }.simple-row:last-child { border-bottom: 0; }.simple-row > div { flex: 1; }.simple-row strong, .simple-row small { display: block; }.simple-row strong { font-size: 14px; }.simple-row small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.vertical-row { display: grid; align-items: stretch; padding: 14px 0; }
.row-main { display: flex; align-items: center; gap: 12px; }
.row-main > div { flex: 1; min-width: 0; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compact-form { padding: 8px 0; }
.compact-form input, .compact-form select { min-width: 110px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--muted); }.status-dot::before { content:""; width: 7px; height: 7px; border-radius:50%; background:#9ca0a8; }.status-dot.on::before { background:var(--green); }.status-dot.off::before { background:var(--red); }.status-dot.wait::before { background:var(--orange); }
.text-button, .table-link { border:0; background:transparent; color:var(--red); font-size:12px; font-weight:650; }.table-link { margin-left:10px; }
.upload-layout { display: grid; grid-template-columns: minmax(400px, 1.2fr) minmax(280px, .8fr); gap: 18px; }
.upload-card { padding: 28px; display: grid; gap: 22px; }.drop-zone { min-height: 300px; border: 1.5px dashed #c9ccd2 !important; border-radius: 12px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px !important; background: #fafbfc; text-align: center; cursor: pointer; }.drop-zone:hover { border-color: var(--red) !important; background: var(--red-soft); }.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }.drop-zone svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 8px; }.drop-zone strong { color: var(--ink); font-size: 17px; }.drop-zone span { color: var(--muted); font-weight: 400; }.drop-zone em { margin-top: 10px; color: var(--red); font-size: 12px; font-style: normal; }
.upload-progress { width: 100%; height: 10px; background: #eceff3; border-radius: 999px; overflow: hidden; }
.upload-progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--red), #ff7d57); transition: width .2s ease; }
.upload-result { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.guide-panel { padding:30px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius); }.guide-panel h2 { margin:0 0 26px; font-size:20px; }.guide-panel ol { list-style:none; counter-reset:steps; padding:0; display:grid; gap:25px; }.guide-panel li { position:relative; counter-increment:steps; padding-left:45px; }.guide-panel li::before { content:counter(steps); position:absolute; left:0; top:0; width:28px; height:28px; display:grid; place-items:center; border:1px solid #f0b8bb; border-radius:7px; color:var(--red); background:var(--red-soft); font-weight:700; }.guide-panel strong,.guide-panel span { display:block; }.guide-panel span { color:var(--muted); font-size:13px; margin-top:3px; }.guide-panel p { margin:30px 0 0; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.mapping-panel, .preview-panel { margin-bottom:18px; }.mapping-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; padding:22px; }.mapping-grid label { display:grid; gap:7px; font-size:12px; color:var(--muted); }.mapping-grid b { color:var(--red); }.sticky-actions { position:sticky; bottom:16px; display:flex; justify-content:flex-end; gap:10px; padding:12px; margin-top:18px; background:rgba(255,255,255,.94); border:1px solid var(--line); border-radius:10px; backdrop-filter:blur(8px); }
.inline-form { display:flex; align-items:center; gap:9px; }.inline-form input { min-width:170px; }
.metrics-heading { min-height: auto; }
.metrics-filter { margin-bottom: 16px; padding: 22px; display: grid; grid-template-columns: minmax(300px,.8fr) 1fr 1fr auto; gap: 22px; align-items: end; }
.metrics-filter fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.metrics-filter legend, .filter-dates label, .comparison-heading label { color: #4b4f57; font-size: 12px; font-weight: 650; }
.metrics-filter legend small { color: var(--muted); font-weight: 400; }
.filter-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-dates label, .comparison-heading label { display: grid; gap: 6px; }
.filter-chips { min-height: 42px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip span { min-height: 36px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: 8px; color: #50545c; background: white; font-size: 12px; }
.filter-chip span small { color: var(--muted); font-size: 10px; }
.filter-chip input:checked + span { color: var(--red); border-color: #f0a1a5; background: var(--red-soft); font-weight: 650; }
.filter-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--red-soft); }
.filter-empty { color: var(--muted); font-size: 12px; }
.filter-actions { display: flex; gap: 8px; }
.range-summary { margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.range-summary > div { min-width: 150px; padding: 10px 14px; display: flex; align-items: baseline; gap: 7px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.range-summary strong { font-size: 15px; }.range-summary span { color: var(--muted); font-size: 11px; }
.range-totals { margin-bottom: 18px; }
.range-table-panel { margin-bottom: 28px; }.date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-heading { margin: 0 0 15px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.comparison-heading .section-note { margin: 0; color: var(--red); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.comparison-heading h2 { margin: 3px 0; font-size: 24px; }.comparison-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.comparison-heading .inline-form { align-items: end; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comparison-group { padding: 17px 20px; border-bottom: 1px solid var(--line); }.comparison-group:last-child { border-bottom: 0; }
.comparison-group h3 { margin: 0 0 12px; font-size: 14px; }
.comparison-row { min-height: 50px; display: grid; grid-template-columns: minmax(150px,.75fr) minmax(120px,1.25fr); align-items: center; gap: 16px; }
.comparison-row strong, .comparison-row small { display: block; }.comparison-row strong { font-size: 13px; }.comparison-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.comparison-bar { height: 8px; overflow: hidden; background: #f0f1f3; border-radius: 10px; }.comparison-bar i { display: block; height: 100%; min-width: 2px; background: var(--red); border-radius: inherit; }
.hotspot-heading { align-items:center; }.hotspot-status { margin-bottom:18px; padding:18px 20px; display:flex; justify-content:space-between; align-items:center; gap:20px; }.hotspot-status > div { display:grid; grid-template-columns:auto auto; align-items:center; gap:4px 12px; }.hotspot-status small { grid-column:2; color:var(--muted); }.hotspot-status p { max-width:720px; margin:0; color:#4f535b; font-size:13px; }.hotspot-status .hotspot-warning { color:var(--red); }.hotspot-empty { margin-bottom:18px; }
.hotspot-overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:30px; }.hotspot-list-panel { min-width:0; }.live-label { padding:4px 7px; color:white; background:var(--red); border-radius:5px; font-size:10px; font-weight:800; letter-spacing:.08em; }.hotspot-list { padding:0 20px; }.hotspot-item { padding:18px 0; display:grid; grid-template-columns:34px 1fr; gap:12px; border-bottom:1px solid var(--line); }.hotspot-item:last-child { border-bottom:0; }.hotspot-rank { width:28px; height:28px; display:grid; place-items:center; color:white; background:var(--red); border-radius:7px; font-size:11px; font-weight:800; }.hotspot-rank.week { color:#5c6068; background:#f0f1f3; }.hotspot-item h3 { margin:1px 0 6px; font-size:15px; }.hotspot-item p { margin:8px 0 5px; color:var(--muted); font-size:12px; }.hotspot-item strong { display:block; font-size:12px; }.hotspot-item a { display:inline-block; margin-top:7px; color:var(--red); font-size:11px; font-weight:650; }.platform-tags { display:flex; gap:5px; flex-wrap:wrap; }.platform-tags span { padding:2px 6px; color:#676b73; background:#f3f4f6; border-radius:4px; font-size:9px; }
.topic-section { margin-bottom:26px; }.topic-section-head { margin-bottom:14px; }.topic-section-head .section-note { margin:0; color:var(--red); font-size:12px; font-weight:650; letter-spacing:.08em; }.topic-section-head h2 { margin:3px 0; font-size:24px; }.topic-section-head p { margin:0; color:var(--muted); font-size:13px; }.topic-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }.topic-card { position:relative; overflow:hidden; padding:22px; }.topic-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#a5a8ae; }.topic-card.priority-s::before { background:var(--red); }.topic-card.priority-a::before { background:var(--orange); }.topic-card-head { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:11px; }.priority-badge { padding:4px 8px; color:#5b5f67; background:#f0f1f3; border-radius:5px; font-weight:800; }.priority-s .priority-badge { color:var(--red); background:var(--red-soft); }.priority-a .priority-badge { color:#a55b00; background:#fff5e7; }.topic-card h3 { margin:15px 0 4px; font-size:20px; }.topic-hotspot { margin:0 0 17px; color:var(--muted); font-size:12px; }.topic-details { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; padding:14px 0; border-block:1px solid var(--line); }.topic-details span { color:var(--muted); font-size:10px; }.topic-details p { margin:4px 0 0; font-size:12px; }.ready-titles { margin-top:16px; }.ready-titles > strong { display:block; margin-bottom:8px; font-size:12px; }.ready-titles > div { min-height:39px; display:flex; align-items:center; gap:12px; border-top:1px dashed var(--line); }.ready-titles span { flex:1; font-size:12px; }.copy-title { padding:3px 6px; border:0; color:var(--red); background:transparent; font-size:10px; font-weight:650; }.source-panel > div:last-child { padding:14px 20px; display:grid; gap:7px; }.source-panel a { overflow:hidden; color:#666a72; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.text-chip { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; padding:4px 8px; border-radius:999px; background:#f3f4f6; color:#555a63; font-size:11px; }
.text-chip span { padding:0 4px; }
.v2-summary-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:14px 0 6px; }
.v2-summary-card { padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fafafa; }
.v2-summary-card span, .v2-summary-card small { display:block; }
.v2-summary-card span { color:var(--muted); font-size:11px; }
.v2-summary-card strong { display:block; margin:5px 0 3px; font-size:18px; line-height:1.3; }
.report-copy, .report-pre { padding:14px 16px; background:#fafafa; border:1px solid var(--line); border-radius:12px; white-space:pre-wrap; word-break:break-word; }
.report-pre { margin:0; font-family:var(--font); }
.report-list { display:grid; gap:10px; }.report-row { min-height:94px; padding:15px 20px; display:grid; grid-template-columns:62px 1fr auto minmax(180px, .8fr) auto; align-items:center; gap:18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }.report-row:hover { border-color:#b9bdc4; }.report-row time { border-right:1px solid var(--line); }.report-row time strong,.report-row time span { display:block; }.report-row time strong { font-size:25px; }.report-row time span { color:var(--muted); font-size:11px; }.report-row h2 { margin:0 0 3px; font-size:16px; }.report-row p { margin:0; color:var(--muted); font-size:12px; }
.empty-state { min-height:330px; display:grid; place-items:center; align-content:center; text-align:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }.empty-state h2 { margin:15px 0 3px; }.empty-state p { color:var(--muted); }.red-rule { width:4px; height:42px; background:var(--red); }
.report-paper { max-width:900px; margin:0 auto; padding:50px 64px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); line-height:1.75; }.report-paper h1 { padding-left:16px; border-left:5px solid var(--red); font-size:30px; }.report-paper h2 { margin-top:34px; padding-bottom:8px; border-bottom:1px solid var(--line); font-size:20px; }.report-paper table { margin:18px 0; }.report-paper blockquote { margin:18px 0; padding:12px 15px; background:var(--red-soft); border-left:3px solid var(--red); color:#6d3639; }
.settings-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }.settings-grid > .panel { padding:24px; align-self:start; }.settings-grid .recipient-panel { grid-column:1/-1; }.config-list { display:grid; }.config-list > div { min-height:53px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); font-size:13px; }.config-list > div:last-child { border-bottom:0; }.config-list span { color:var(--muted); }.recipient-form { margin:8px 0 16px; }.recipient-form input { flex:1; }
.toast { position:fixed; z-index:50; top:18px; right:22px; max-width:440px; padding:12px 18px; color:white; background:#26282d; border-left:4px solid var(--red); border-radius:7px; box-shadow:0 12px 30px rgba(0,0,0,.12); animation:toast-in .25s ease; }.toast.leaving { opacity:0; transform:translateY(-8px); transition:.3s; }
@keyframes toast-in { from { opacity:0; transform:translateY(-8px); } }
.assistant-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--red), #ff6b5f); color: white; font-weight: 700; box-shadow: 0 12px 30px rgba(227, 38, 46, .28); }
.assistant-panel { position: fixed; right: 22px; bottom: 78px; z-index: 60; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.18); overflow: hidden; }
.assistant-head { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.assistant-body { max-height: 340px; overflow: auto; padding: 14px 16px; display: grid; gap: 10px; background: linear-gradient(180deg, rgba(227,38,46,.04), transparent 38%); }
.assistant-msg { padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; }
.assistant-msg.user { margin-left: 28px; background: var(--red-soft); }
.assistant-msg.assistant { margin-right: 28px; background: #f3f4f6; }
.assistant-form { padding: 14px 16px 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

.login-page { min-height:100vh; display:grid; grid-template-columns:minmax(520px, .9fr) minmax(480px, 1.1fr); background:white; }
.login-panel { width:min(460px, calc(100% - 60px)); margin:auto; }.login-brand { display:flex; align-items:center; gap:14px; margin-bottom:80px; }.login-brand strong,.login-brand small { display:block; }.login-brand strong { font-size:20px; }.login-brand small { color:var(--muted); font-size:11px; letter-spacing:.12em; }.login-copy h1 { margin:0; font-size:42px; line-height:1.25; letter-spacing:-.04em; }.login-copy p { color:var(--muted); margin:14px 0 35px; }.login-form { display:grid; gap:16px; }.login-form label { display:grid; gap:7px; color:#4d5159; font-size:13px; font-weight:600; }.form-error { color:var(--red); margin:0; font-size:13px; }.login-help { color:var(--muted); font-size:11px; margin-top:18px; }.login-aside { position:relative; overflow:hidden; margin:18px; padding:70px; background:#f4f4f5; color:var(--ink); display:flex; flex-direction:column; justify-content:flex-end; border:1px solid var(--line); border-radius:14px; }.login-aside::before { content:""; position:absolute; right:-70px; bottom:-70px; width:220px; height:220px; border:1px solid #efc4c6; border-radius:50%; }.login-aside p { position:relative; margin:0 0 18px; font-size:30px; line-height:1.45; }.login-aside span { position:relative; color:var(--muted); font-size:13px; }.quote-mark { position:absolute; top:60px; left:60px; color:var(--red); font-family:Georgia,serif; font-size:180px; line-height:1; opacity:.8; }

@media (max-width: 1100px) {
  :root { --sidebar: 220px; }.main-content { padding:25px 24px 50px; }.metrics-strip { grid-template-columns:repeat(4,1fr); padding:0 8px; }.metric-cell { padding:18px; border-bottom:1px solid var(--line); }.metric-cell:nth-child(4) { border-right:0; }.metric-cell:nth-child(n+5) { border-bottom:0; }.dashboard-grid { grid-template-columns:1fr; }.platform-panel { min-height:auto; }.mapping-grid { grid-template-columns:repeat(2,1fr); }.login-aside { padding:45px; }.metrics-filter { grid-template-columns:1fr 1fr; }.filter-actions { justify-content:flex-end; }.comparison-grid,.hotspot-overview-grid { grid-template-columns:1fr; }.topic-details { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .sidebar { transform:translateX(-102%); transition:transform .25s ease; box-shadow:10px 0 35px rgba(0,0,0,.08); }.sidebar.open { transform:translateX(0); }.main-wrap { margin-left:0; }.mobile-header { height:58px; padding:0 15px; display:flex; align-items:center; gap:10px; background:white; border-bottom:1px solid var(--line); font-size:14px; font-weight:650; }.main-content { padding:22px 15px 40px; }.page-heading,.dashboard-heading { min-height:0; align-items:flex-start; flex-direction:column; margin-bottom:22px; }.page-heading h1 { font-size:27px; }.dashboard-heading h1 { padding-left:14px; }.date-line { margin-left:19px!important; }.heading-actions { width:100%; }.schedule-note { width:100%; }.button.primary { min-height:44px; }.heading-actions > .button { flex:1; }.metrics-strip { grid-template-columns:repeat(2,1fr); }.metric-cell { border-bottom:1px solid var(--line)!important; }.metric-cell:nth-child(even) { border-right:0; }.metric-cell:last-child { border-bottom:0!important; }.dashboard-grid,.two-column,.upload-layout,.settings-grid,.metrics-filter,.topic-grid { grid-template-columns:1fr; }.settings-grid .recipient-panel { grid-column:auto; }.bar-chart { gap:5px; padding-inline:12px; }.bar-value { display:none; }.platform-row { grid-template-columns:32px 1fr 1fr; }.platform-row > div:last-child { display:none; }.mapping-grid { grid-template-columns:1fr; }.report-paper { padding:27px 19px; }.report-row { grid-template-columns:50px 1fr 18px; }.report-row .status-dot { display:none; }.inline-form { width:100%; flex-wrap:wrap; }.inline-form input { flex:1; min-width:140px; }.recipient-form input { flex-basis:100%; }.login-page { grid-template-columns:1fr; }.login-panel { padding:45px 0; }.login-brand { margin-bottom:55px; }.login-copy h1 { font-size:34px; }.login-aside { display:none; }.filter-dates { grid-template-columns:1fr; }.filter-actions .button { flex:1; }.comparison-heading { align-items:flex-start; flex-direction:column; }.comparison-row { grid-template-columns:1fr; gap:7px; padding:7px 0; }.hotspot-status { align-items:flex-start; flex-direction:column; }.hotspot-overview-grid { grid-template-columns:1fr; }.topic-details { grid-template-columns:1fr; }.topic-card { padding:18px; }.v2-summary-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }

/* Dashboard and shell refinements */
.sidebar,.main-wrap { transition:margin .22s ease,transform .22s ease; }
.sidebar-collapsed .sidebar { transform:translateX(calc(-1 * var(--sidebar))); }
.sidebar-collapsed .main-wrap { margin-left:0; }
.dashboard-topbar { min-height:42px; margin-bottom:12px; display:flex; align-items:center; justify-content:flex-end; gap:28px; }
.dashboard-date { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.dashboard-date svg { width:17px; height:17px; }
.dashboard-heading { min-height:84px; margin-bottom:18px; }
.dashboard-heading h1 { margin-top:0; }
.chart-select { padding:5px 9px; border:1px solid var(--line); border-radius:7px; color:var(--muted); background:#fafafa; font-size:12px; }
.line-chart { position:relative; height:270px; padding:18px 20px 26px 53px; }
.chart-grid { position:absolute; inset:22px 20px 34px 14px; display:flex; flex-direction:column; justify-content:space-between; color:#8a8e96; font-size:10px; }
.chart-grid span { height:1px; border-bottom:1px dashed #eceef1; }
.trend-svg { position:absolute; z-index:1; left:53px; right:20px; top:22px; width:calc(100% - 73px); height:210px; overflow:visible; }
.trend-values,.trend-dates { position:absolute; z-index:2; left:53px; right:20px; text-align:center; font-size:10px; }
.trend-values { top:22px; height:210px; color:#656a72; }.trend-values span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
.trend-dates { bottom:9px; display:grid; grid-template-columns:repeat(7,1fr); color:#777b83; font-size:11px; }
.platform-row { grid-template-columns:34px 1.05fr 1fr 1.3fr 1.3fr 16px; }.platform-row > svg { width:15px; height:15px; color:#8a8e96; }.platform-row em { margin-left:4px; font-style:normal; font-size:10px; font-weight:500; }
.error-detail { max-width:720px; overflow-wrap:anywhere; line-height:1.45; }

@media (max-width:1100px) {
  .dashboard-topbar { justify-content:space-between; }
}
@media (max-width:760px) {
  .dashboard-topbar { align-items:stretch; flex-direction:column; gap:8px; }
  .dashboard-heading { min-height:0; }
  .platform-row { grid-template-columns:32px 1fr 1fr 16px; }
  .platform-row > div:nth-of-type(3),.platform-row > div:nth-of-type(4) { display:none; }
  .collapse-button { display:none; }
  .assistant-panel { right: 12px; left: 12px; width: auto; bottom: 72px; }
  .assistant-fab { right: 12px; bottom: 12px; }
}
