:root {
  --ink: #17231f;
  --muted: #68736e;
  --line: #dce3de;
  --surface: #ffffff;
  --canvas: #f4f6f3;
  --forest: #174b3c;
  --forest-dark: #10251e;
  --green: #237b5a;
  --green-soft: #dceee5;
  --orange: #c66a26;
  --orange-soft: #f8e4d5;
  --blue: #346a95;
  --blue-soft: #deebf6;
  --red: #b64a40;
  --shadow: 0 12px 30px rgba(29, 47, 39, 0.06);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 242px; flex: 0 0 242px; min-height: 100vh; padding: 28px 18px 20px; color: #eaf0ec; background: var(--forest-dark); display: flex; flex-direction: column; }
.brand-mark, .mobile-brand { display: flex; gap: 11px; align-items: center; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: #f2af64; display: inline-block; box-shadow: 0 0 0 5px rgba(242, 175, 100, 0.12); }
.brand-mark strong, .mobile-brand strong { display: block; font-size: 16px; letter-spacing: 0; }
.brand-mark span:not(.brand-dot) { display: block; margin-top: 4px; color: #aabbb1; font-size: 12px; }
.workspace-label { margin: 50px 12px 13px; color: #78958a; font-size: 11px; letter-spacing: 0; }
.side-nav { display: grid; gap: 6px; }
.nav-item { border: 0; border-radius: 6px; padding: 12px 12px; color: #c6d5cd; background: transparent; text-align: left; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.nav-item:hover, .nav-item.active { color: #fff; background: #1c5947; }
.nav-icon { width: 18px; color: #95b8a9; font-size: 16px; text-align: center; }
.nav-item.active .nav-icon { color: #f1b16c; }
.sidebar-foot { margin-top: auto; }
.creator-card { display: flex; gap: 9px; align-items: center; padding: 13px 9px; border-top: 1px solid #254238; border-bottom: 1px solid #254238; }
.avatar { width: 30px; height: 30px; border-radius: 50%; color: var(--forest-dark); background: #f0b36f; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.creator-card strong, .creator-card span:not(.avatar):not(.online-dot) { display: block; }
.creator-card strong { font-size: 12px; }
.creator-card span:not(.avatar):not(.online-dot) { margin-top: 4px; color: #94afa3; font-size: 11px; }
.online-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #59c78d; }
.settings-button { width: 100%; margin-top: 15px; padding: 10px 9px; color: #aec0b6; border: 1px solid #315347; border-radius: 6px; background: transparent; text-align: left; font-size: 12px; }
.settings-button:hover { color: white; border-color: #678d7d; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 76px; padding: 0 44px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.mobile-brand { display: none; margin-right: auto; }
.topbar-meta { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; }
.status-dot, .live-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.demo-badge { padding: 4px 8px; border: 1px solid #edc6a8; border-radius: 999px; color: var(--orange); background: #fff8f2; }
.demo-badge.live-badge { border-color: #b7dbc9; color: var(--green); background: var(--green-soft); }
.refresh-button, .secondary-button, .primary-button, .outline-button, .text-button, .link-button, .panel-footer { border-radius: 6px; }
.refresh-button { padding: 9px 12px; border: 1px solid var(--line); color: var(--forest); background: white; font-size: 13px; }
.refresh-button:hover, .secondary-button:hover, .outline-button:hover { border-color: var(--forest); color: var(--forest); }
.view-container { max-width: 1390px; margin: 0 auto; padding: 35px 44px 60px; }
.view { display: none; }
.view.active { display: block; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(25px, 3vw, 38px); line-height: 1.2; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.3; letter-spacing: 0; }
h3 { margin-bottom: 0; font-size: 15px; letter-spacing: 0; }
.page-subtitle { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.phase-chip { min-width: 145px; padding: 11px 14px; border-left: 3px solid var(--orange); background: white; box-shadow: var(--shadow); }
.phase-chip span, .phase-chip strong { display: block; }
.phase-chip span { color: var(--muted); font-size: 11px; }
.phase-chip strong { margin-top: 5px; color: var(--orange); font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.metric-card { min-height: 130px; padding: 20px 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.metric-card.accent-card { color: white; border-color: var(--forest); background: var(--forest); }
.metric-label, .metric-note { display: block; }
.metric-label { color: var(--muted); font-size: 12px; }
.accent-card .metric-label, .accent-card .metric-note { color: #c6d9d0; }
.metric-card strong { display: block; margin: 12px 0 8px; font-size: 30px; line-height: 1; }
.metric-note { color: #82908a; font-size: 11px; }
.metric-note.positive { color: var(--green); }
.accent-card .metric-note.positive { color: #e8bc87; }
.positioning-panel { margin-bottom: 22px; padding: 19px 21px; border: 1px solid var(--line); border-left: 3px solid var(--orange); background: white; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.positioning-panel h2 { margin-bottom: 7px; font-size: 17px; }
.positioning-panel p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.positioning-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 10px; }
.prerequisite-note { margin: -3px 0 15px; padding: 10px 13px; border-left: 3px solid var(--orange); color: #8e5a31; background: var(--orange-soft); font-size: 11px; line-height: 1.5; }
.prerequisite-note.ready { border-left-color: var(--green); color: var(--green); background: var(--green-soft); }
.insight-band { margin-bottom: 35px; padding: 25px 28px; color: #eaf0ec; background: var(--forest); display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.insight-copy { max-width: 740px; }
.insight-copy .section-kicker { color: #f0b26d; }
.insight-copy h2 { margin-bottom: 10px; color: white; font-size: 23px; }
.insight-copy p { margin-bottom: 16px; color: #bfd1c8; line-height: 1.75; font-size: 13px; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; }
.tag { padding: 4px 8px; border-radius: 999px; font-size: 11px; }
.tag.green { color: #1d6b4b; background: var(--green-soft); }
.tag.orange { color: #a95620; background: var(--orange-soft); }
.tag.blue { color: #2f6088; background: var(--blue-soft); }
.insight-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; flex: 0 0 auto; }
.primary-button { padding: 10px 15px; color: white; border: 1px solid var(--orange); background: var(--orange); font-size: 12px; font-weight: 700; }
.primary-button:hover { background: #a95420; }
.text-button, .link-button { padding: 4px 0; color: #f4bc82; border: 0; background: transparent; font-size: 12px; }
.section-heading { margin: 0 0 15px; display: flex; justify-content: space-between; align-items: flex-end; }
.compact-heading { margin-top: 34px; }
.link-button { color: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: 15px; }
.panel { border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.panel-heading { min-height: 58px; padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-caption { color: var(--muted); font-size: 11px; }
.live-label { color: var(--green); display: flex; align-items: center; gap: 6px; font-size: 11px; }
.signal-list { padding: 3px 18px 9px; }
.signal-row { padding: 14px 0; border-bottom: 1px solid #edf1ee; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.signal-row:last-child { border-bottom: 0; }
.signal-time { color: #899690; font-size: 11px; }
.signal-body strong, .signal-body span { display: block; }
.signal-body strong { font-size: 13px; font-weight: 700; line-height: 1.45; }
.signal-body span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.signal-source-link { color: var(--green); text-decoration: none; white-space: nowrap; }
.signal-source-link:hover { text-decoration: underline; }
.signal-type { height: fit-content; padding: 4px 6px; border-radius: 3px; color: var(--green); background: var(--green-soft); font-size: 10px; white-space: nowrap; }
.signal-type.policy { color: #9e571d; background: var(--orange-soft); }
.signal-type.people { color: #426789; background: var(--blue-soft); }
.question-list { padding: 3px 18px 0; }
.question-row { min-height: 66px; padding: 13px 0; border-bottom: 1px solid #edf1ee; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.question-row:last-child { border-bottom: 0; }
.rank { color: var(--orange); font-size: 12px; font-weight: 700; }
.question-row strong, .question-row span { display: block; }
.question-row strong { font-size: 12px; }
.question-row span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.question-row em { color: var(--red); font-size: 11px; font-style: normal; }
.panel-footer { width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line); color: var(--green); background: #fbfcfb; text-align: left; font-size: 12px; }
.observation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.observation-card { padding: 19px; border: 1px solid var(--line); background: white; display: flex; gap: 14px; align-items: flex-start; }
.obs-number { color: var(--orange); font-size: 12px; font-weight: 700; }
.observation-card strong { font-size: 13px; }
.observation-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.obs-arrow { margin-left: auto; color: var(--green); }

.filter-tabs { margin: -5px 0 20px; display: flex; gap: 7px; flex-wrap: wrap; }
.filter-tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 12px; }
.filter-tab.active { color: white; border-color: var(--forest); background: var(--forest); }
.douyin-hot-panel { margin-bottom: 15px; }
.douyin-hot-list { padding: 4px 18px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.douyin-hot-row { min-width: 0; padding: 12px 0; border-bottom: 1px solid #edf1ee; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; }
.douyin-hot-row:hover strong { color: var(--green); }
.hot-rank { color: var(--orange); font-size: 12px; font-weight: 700; }
.douyin-hot-row strong { overflow: hidden; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.hot-open { color: var(--muted); font-size: 10px; white-space: nowrap; }
.hot-panel-footer { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); background: #fbfcfb; font-size: 11px; line-height: 1.55; }
.signals-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr); gap: 15px; }
.full-list { min-height: 360px; }
.source-panel { height: fit-content; }
.source-item { padding: 14px 17px; border-bottom: 1px solid #edf1ee; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
.source-item strong { font-size: 12px; }
.source-item span { color: var(--muted); font-size: 11px; }
.source-item b { grid-column: 2; grid-row: 1 / span 2; color: var(--green); font-size: 14px; align-self: center; }
.source-note { padding: 16px; color: var(--muted); background: #f8faf8; font-size: 11px; line-height: 1.65; }
.source-toolbar { margin-bottom: 19px; padding: 13px 16px; border: 1px solid var(--line); background: white; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.source-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.source-group { border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.source-group-heading { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.source-group-heading strong, .source-group-heading span { display: block; }
.source-group-heading strong { font-size: 14px; }
.source-group-heading span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.source-toggle { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #b7dbc9; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 10px; }
.source-toggle.off { border-color: var(--line); color: var(--muted); background: #f4f6f3; }
.source-entry { padding: 13px 18px; border-bottom: 1px solid #edf1ee; display: flex; align-items: center; gap: 11px; }
.source-entry:last-child { border-bottom: 0; }
.source-check { width: 18px; height: 18px; border: 1px solid #9db9aa; border-radius: 4px; color: white; background: var(--green); display: grid; place-items: center; font-size: 12px; cursor: pointer; }
.source-group.off .source-check { color: transparent; border-color: var(--line); background: white; }
.source-entry-body { min-width: 0; flex: 1; }
.source-entry-body strong, .source-entry-body span { display: block; }
.source-entry-body strong { font-size: 12px; }
.source-entry-body span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.source-access { padding: 4px 6px; color: var(--muted); background: #f0f3f0; font-size: 9px; white-space: nowrap; }
.source-access.public { color: var(--green); background: var(--green-soft); }

.confirm-state { padding: 9px 12px; border: 1px solid #edc6a8; color: var(--orange); background: #fff8f2; font-size: 12px; }
.confirm-state.confirmed { color: var(--green); border-color: #b7dbc9; background: var(--green-soft); }
.topic-toolbar { margin-bottom: 17px; padding: 13px 16px; border: 1px solid var(--line); background: white; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.live-topic-note { margin: -4px 0 15px; padding: 10px 13px; border-left: 3px solid var(--green); color: var(--green); background: #eaf4ef; font-size: 11px; line-height: 1.5; }
.topic-summary { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.topic-summary strong { color: var(--green); font-size: 21px; }
.divider { width: 1px; height: 16px; margin: 0 5px; background: var(--line); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.topic-card { min-height: 151px; padding: 16px; border: 1px solid var(--line); background: white; position: relative; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.topic-card:hover { border-color: #8fb6a5; transform: translateY(-1px); }
.topic-card.selected { border: 2px solid var(--orange); padding: 15px; }
.topic-card.recommended::before { content: "重点推荐"; position: absolute; top: 0; right: 0; padding: 4px 7px; color: white; background: var(--orange); font-size: 10px; }
.topic-index { color: #87938d; font-size: 11px; }
.topic-card h3 { max-width: 88%; margin: 12px 0 8px; font-size: 14px; line-height: 1.45; }
.topic-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.topic-foot { margin-top: 14px; color: var(--green); font-size: 11px; }
.methodology-panel { margin-top: 22px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.methodology-grid { padding: 5px 18px 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.method-card { min-height: 92px; padding: 15px 0; border-bottom: 1px solid #edf1ee; display: flex; gap: 12px; align-items: flex-start; }
.method-card:nth-last-child(-n + 2) { border-bottom: 0; }
.method-index { color: var(--orange); font-size: 11px; font-weight: 700; }
.method-card strong, .method-card p { display: block; }
.method-card strong { font-size: 12px; }
.method-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.methodology-footer { padding: 13px 18px; border-top: 1px solid var(--line); background: #f8faf8; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.methodology-footer span { padding: 4px 6px; color: #9e571d; background: var(--orange-soft); white-space: nowrap; }
.methodology-footer strong { font-size: 11px; font-weight: 600; }
.methodology-footer a { margin-left: auto; color: var(--green); white-space: nowrap; }
.next-step-banner { margin-top: 22px; padding: 19px 20px; border-left: 3px solid var(--green); background: #eaf4ef; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.next-step-banner strong, .next-step-banner p { display: block; }
.next-step-banner strong { font-size: 14px; }
.next-step-banner p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.lock-mark { color: var(--green); font-size: 25px; }
.content-gate { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #edc6a8; color: var(--orange); background: #fff8f2; font-size: 12px; }
.content-gate.ready { border-color: #b7dbc9; color: var(--green); background: var(--green-soft); }
.content-layout { display: grid; grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1.55fr); gap: 15px; }
.content-topic-panel, .draft-panel { min-width: 0; }
.content-topic-list { padding: 4px 18px; }
.content-topic-item { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #edf1ee; color: var(--ink); background: transparent; text-align: left; cursor: pointer; font-size: 12px; line-height: 1.5; }
.content-topic-item:last-child { border-bottom: 0; }
.content-topic-item.active { color: var(--green); font-weight: 700; }
.content-topic-item span { display: block; margin-bottom: 4px; color: var(--orange); font-size: 10px; }
.draft-preview { padding: 21px 24px 26px; }
.draft-preview h4 { margin: 0 0 12px; font-size: 16px; }
.draft-preview h5 { margin: 22px 0 8px; color: var(--green); font-size: 12px; }
.draft-preview p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-line; }
.draft-preview ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.draft-note { margin-top: 18px; padding: 11px 13px; border-left: 3px solid var(--orange); color: #8e5a31; background: var(--orange-soft); font-size: 11px; line-height: 1.6; }
.empty-state { padding: 30px 5px; color: var(--muted); font-size: 12px; text-align: center; }
.compact-button { margin-top: 0; }
.content-checklist { margin-top: 15px; }
.checklist-grid { padding: 5px 18px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.checklist-grid > div { padding: 14px 0; border-bottom: 1px solid #edf1ee; }
.checklist-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.checklist-grid strong, .checklist-grid span { display: block; }
.checklist-grid strong { font-size: 12px; }
.checklist-grid span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.check-item { min-height: 82px; padding: 14px 0; border-bottom: 1px solid #edf1ee; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-item:nth-last-child(-n + 2) { border-bottom: 0; }
.check-item input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.check-item span { margin: 0; }
.check-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; font-weight: 400; }

.secondary-button { padding: 10px 13px; border: 1px solid var(--line); color: var(--ink); background: white; font-size: 12px; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.account-card { padding: 19px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.account-top { display: flex; justify-content: space-between; align-items: center; }
.platform-pill { padding: 5px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.platform-pill.douyin { color: #384b54; background: #e8eef0; }
.platform-pill.xhs { color: #b54238; background: #f8e0dd; }
.platform-pill.wechat { color: #2d7e56; background: #dff0e5; }
.account-state { color: var(--muted); font-size: 10px; }
.account-card h3 { margin-top: 20px; font-size: 16px; }
.account-card p { min-height: 39px; margin: 8px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-stats { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.account-stats span, .account-stats b { display: block; }
.account-stats span { color: var(--muted); font-size: 10px; }
.account-stats b { margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.outline-button { margin-top: 15px; padding: 9px 12px; border: 1px solid var(--line); color: var(--forest); background: white; font-size: 11px; }
.account-link { display: inline-block; text-decoration: none; }
.access-guide { margin-bottom: 20px; padding: 14px 17px; border-left: 3px solid var(--orange); color: #8e5a31; background: var(--orange-soft); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; font-size: 11px; line-height: 1.5; }
.access-guide strong { color: var(--ink); white-space: nowrap; }
.access-guide span { flex: 1 1 220px; min-width: 180px; }
.access-guide a { color: var(--green); white-space: nowrap; }
.account-access-panel { margin-bottom: 20px; }
.platform-access-list { padding: 4px 18px 8px; }
.platform-access-row { padding: 12px 0; border-bottom: 1px solid #edf1ee; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.platform-access-row:last-child { border-bottom: 0; }
.platform-access-row strong, .platform-access-row span { display: block; }
.platform-access-row strong { font-size: 12px; }
.platform-access-row span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.platform-access-state { color: var(--muted); font-size: 10px; white-space: nowrap; }
.platform-access-state.saved { color: var(--green); }
.platform-access-state.pending { color: var(--orange); }
.platform-access-state a { color: inherit; text-decoration: none; }
.platform-access-state a:hover { text-decoration: underline; }
.metrics-import-panel { margin-bottom: 20px; }
.uploaded-data-snapshot { margin-bottom: 20px; }
.uploaded-data-kpis { margin: 0; padding: 15px 18px 0; }
.uploaded-trend-strip { padding: 0 18px 15px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 11px; }
.platform-dashboard-grid { padding: 0 18px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.platform-dashboard-card { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #fbfcfb; }
.platform-dashboard-top, .platform-dashboard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.platform-dashboard-status, .platform-dashboard-foot { color: var(--muted); font-size: 10px; }
.platform-dashboard-card > strong { display: block; margin-top: 15px; font-size: 13px; }
.platform-dashboard-card > strong a { color: var(--forest); text-decoration: none; }
.platform-dashboard-card > p { min-height: 32px; margin: 7px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.platform-dashboard-foot { padding-top: 10px; border-top: 1px solid var(--line); }
.platform-dashboard-foot b { color: var(--ink); font-size: 10px; font-weight: 600; }
.dashboard-layout { padding: 0 18px 18px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.dashboard-subpanel { min-width: 0; padding: 15px; border: 1px solid var(--line); background: white; }
.dashboard-subheading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.dashboard-subheading h4 { font-size: 13px; }
.dashboard-subheading span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dashboard-trend-card { min-width: 0; padding: 10px; background: #f8faf8; }
.dashboard-trend-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dashboard-trend-heading span, .dashboard-trend-heading em, .dashboard-trend-foot { color: var(--muted); font-size: 10px; font-style: normal; }
.dashboard-trend-heading strong { display: block; margin-top: 7px; font-size: 18px; }
.dashboard-sparkline { height: 47px; margin: 12px 0 8px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.dashboard-sparkline span { flex: 1; min-width: 3px; height: var(--bar-height); background: var(--green); opacity: 0.8; }
.dashboard-sparkline.exposure span { background: var(--orange); }
.dashboard-sparkline.playback span { background: #537e9d; }
.dashboard-trend-foot { display: flex; justify-content: space-between; gap: 8px; }
.dashboard-audience-grid { display: grid; gap: 14px; }
.dashboard-audience-title { display: block; margin-bottom: 9px; color: var(--ink); font-size: 11px; font-weight: 700; }
.dashboard-bar-row { margin-bottom: 8px; }
.dashboard-bar-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.dashboard-bar-label strong { color: var(--ink); font-size: 10px; font-weight: 600; }
.dashboard-bar-track { height: 5px; margin-top: 4px; overflow: hidden; background: #edf1ee; }
.dashboard-bar-track i { display: block; width: var(--bar-width); height: 100%; background: var(--green); }
.metrics-table-wrap { overflow-x: auto; }
.metrics-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.metrics-table th, .metrics-table td { padding: 11px 14px; border-bottom: 1px solid #edf1ee; text-align: left; white-space: nowrap; }
.metrics-table th { color: var(--muted); background: #f8faf8; font-weight: 600; }
.metrics-table td { color: var(--ink); }
.review-score { padding: 5px 8px; color: var(--muted); background: #f0f3f0; font-size: 10px; }
.review-rows { padding: 4px 18px; }
.review-rows > div { padding: 15px 0; border-bottom: 1px solid #edf1ee; display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px; align-items: center; }
.review-rows > div:last-child { border-bottom: 0; }
.review-rows strong { font-size: 12px; }
.review-rows span { color: var(--muted); font-size: 11px; }
.review-rows em { color: var(--muted); font-style: normal; font-size: 12px; }
.cadence-panel { margin-top: 20px; }
.cadence-actions { display: flex; align-items: center; gap: 10px; }
.cadence-list { padding: 4px 18px 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cadence-day { min-height: 78px; padding: 12px 8px; border: 1px solid var(--line); background: #fbfcfb; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; cursor: pointer; }
.cadence-day input { position: absolute; opacity: 0; pointer-events: none; }
.cadence-day span { color: var(--muted); font-size: 11px; }
.cadence-day strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.cadence-day.published { border-color: var(--green); background: var(--green-soft); }
.cadence-day.published strong { color: var(--green); }
.review-score.confirmed { color: var(--green); background: var(--green-soft); }
.method-execution-panel { margin-top: 20px; }
.method-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.method-execution-list { padding: 4px 18px 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.method-execution-list > div { padding: 13px 0; border-top: 2px solid var(--line); }
.method-execution-list > div:first-child { border-top-color: var(--green); }
.method-execution-list > div:nth-child(2) { border-top-color: #7e9d87; }
.method-execution-list > div:nth-child(3) { border-top-color: #c29b67; }
.method-execution-list > div:nth-child(4) { border-top-color: #a56d58; }
.method-execution-list span { color: var(--muted); font-size: 10px; }
.method-execution-list strong { display: block; margin-top: 9px; font-size: 12px; }
.method-execution-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.business-panel { min-height: 250px; }
.judgment { margin: 19px; display: flex; gap: 12px; }
.judgment-mark { width: 25px; height: 25px; border-radius: 50%; color: white; background: var(--orange); display: grid; place-items: center; font-weight: 700; }
.judgment strong { font-size: 14px; }
.judgment p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.business-checks { margin: 0 19px 19px; border-top: 1px solid var(--line); }
.business-checks > div { padding: 11px 0; border-bottom: 1px solid #edf1ee; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.business-checks span { color: var(--muted); }
.business-checks b { font-weight: 600; }
.radar-list { padding: 4px 19px; }
.radar-list > div { padding: 15px 0; border-bottom: 1px solid #edf1ee; display: flex; align-items: center; gap: 11px; }
.radar-list > div:last-child { border-bottom: 0; }
.radar-icon { width: 25px; height: 25px; border-radius: 50%; color: var(--green); background: var(--green-soft); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.radar-list strong, .radar-list p { display: block; }
.radar-list strong { font-size: 12px; }
.radar-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.radar-list b { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
.roadmap { padding: 20px 24px 24px; }
.roadmap-step { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.roadmap-step > span { width: 31px; height: 31px; border-radius: 50%; color: var(--muted); background: #edf1ee; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.roadmap-step.current > span { color: white; background: var(--green); }
.roadmap-step.done > span { color: var(--green); background: var(--green-soft); }
.roadmap-step strong { font-size: 13px; }
.roadmap-step p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.roadmap-step em { color: var(--muted); font-style: normal; font-size: 10px; }
.roadmap-step.current em { color: var(--green); }
.roadmap-line { width: 1px; height: 25px; margin: 0 0 0 15px; background: var(--line); }
.pain-product-grid { margin-bottom: 20px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 15px; }
.pain-panel, .benchmark-panel { min-width: 0; }
.pain-rows, .benchmark-rows { padding: 4px 18px; }
.pain-rows > div, .benchmark-rows > div { padding: 14px 0; border-bottom: 1px solid #edf1ee; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pain-rows > div:last-child, .benchmark-rows > div:last-child { border-bottom: 0; }
.pain-rows strong, .benchmark-rows strong { font-size: 12px; }
.pain-rows span, .benchmark-rows span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.pain-rows em { color: var(--red); font-style: normal; font-size: 10px; }
.benchmark-rows b { color: var(--muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
.watchlist-panel { margin-bottom: 20px; }
.watchlist-actions { display: flex; align-items: center; gap: 10px; }
.watchlist-actions .primary-button { padding: 8px 10px; font-size: 11px; }
.watchlist-content { padding: 5px 18px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.watch-item { min-width: 0; padding: 15px 0; border-bottom: 1px solid #edf1ee; position: relative; }
.watch-item:nth-last-child(-n + 2) { border-bottom: 0; }
.watch-item-top, .watch-item-main { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.watch-group, .watch-location, .watch-type, .watch-status { font-size: 10px; }
.watch-group { color: var(--orange); }
.watch-location { color: var(--muted); }
.watch-item h4 { margin: 8px 0 4px; font-size: 13px; }
.watch-type { color: var(--green); }
.watch-item p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.watch-item .outline-button { flex: 0 0 auto; margin-top: 8px; padding: 7px 8px; font-size: 10px; white-space: nowrap; }
.watch-status { display: inline-block; margin-top: 10px; padding: 3px 6px; color: var(--muted); background: #f0f3f0; }

.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 10; padding: 20px; background: rgba(16, 37, 30, 0.55); place-items: center; }
.modal-backdrop.open { display: grid; }
.modal { width: min(470px, 100%); max-height: 90vh; overflow: auto; padding: 24px; background: white; box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18); }
.modal-heading { display: flex; justify-content: space-between; gap: 15px; }
.modal-heading h2 { margin-top: 0; font-size: 22px; }
.close-button { width: 30px; height: 30px; border: 1px solid var(--line); color: var(--muted); background: white; font-size: 22px; line-height: 1; }
.modal-intro { margin: 13px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.field-label { display: block; margin: 14px 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.field-label input { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fbfcfb; outline: none; font-size: 12px; }
.field-label input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35, 123, 90, 0.1); }
.notification-row { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.notification-row strong, .notification-row span { display: block; }
.notification-row strong { font-size: 12px; }
.notification-row span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.toggle { width: 39px; height: 22px; padding: 3px; border: 0; border-radius: 999px; background: #c8d0cb; text-align: left; }
.toggle span { width: 16px; height: 16px; border-radius: 50%; background: white; display: block; transition: transform 0.15s; }
.toggle.on { background: var(--green); }
.toggle.on span { transform: translateX(17px); }
.full-width { width: 100%; }
.reset-button { margin-top: 10px; color: #8a3a2f; border-color: #e2b9b0; }
.reset-button:hover { color: #7a2e25; border-color: #b96556; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 300px; padding: 12px 15px; color: white; background: var(--forest-dark); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .sidebar { width: 205px; flex-basis: 205px; }
  .topbar, .view-container { padding-left: 28px; padding-right: 28px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: auto; padding: 14px 15px 12px; display: block; }
  .brand-mark, .workspace-label, .sidebar-foot { display: none; }
  .side-nav { display: flex; gap: 3px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .nav-item { min-width: max-content; padding: 9px 10px; gap: 7px; font-size: 11px; }
  .nav-icon { width: auto; font-size: 13px; }
  .topbar { height: 60px; padding: 0 15px; gap: 10px; }
  .mobile-brand { display: flex; }
  .mobile-brand strong { font-size: 13px; }
  .topbar-meta { font-size: 10px; }
  .topbar-meta .demo-badge { display: none; }
  .refresh-button { padding: 8px 9px; font-size: 12px; }
  .refresh-button span { display: none; }
  .view-container { padding: 24px 15px 40px; }
  .page-heading { display: block; margin-bottom: 20px; }
  h1 { font-size: 27px; }
  .phase-chip, .confirm-state, .page-heading > .secondary-button { display: inline-block; margin-top: 15px; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 110px; padding: 15px 13px; }
  .metric-card strong { margin: 10px 0 7px; font-size: 25px; }
  .metric-label { font-size: 10px; }
  .metric-note { font-size: 10px; line-height: 1.4; }
  .insight-band { display: block; margin-bottom: 27px; padding: 20px 17px; }
  .insight-copy h2 { font-size: 19px; }
  .insight-actions { display: flex; align-items: flex-start; margin-top: 18px; }
  .positioning-panel { display: block; padding: 17px; }
  .positioning-actions { align-items: stretch; margin-top: 15px; }
  .positioning-actions .primary-button { width: 100%; }
  .dashboard-grid, .signals-layout, .business-grid, .account-grid { grid-template-columns: 1fr; }
  .content-layout, .pain-product-grid { grid-template-columns: 1fr; }
  .source-groups { grid-template-columns: 1fr; }
  .douyin-hot-list { grid-template-columns: 1fr; }
  .observation-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 18px; }
  .signal-row { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
  .signal-type { grid-column: 2; width: fit-content; }
  .topic-toolbar { display: block; }
  .topic-toolbar .primary-button { width: 100%; margin-top: 13px; }
  .source-toolbar { display: block; }
  .source-toolbar .primary-button { width: 100%; margin-top: 13px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 126px; }
  .cadence-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 15px; padding-right: 15px; }
  .cadence-actions { align-items: flex-start; margin-top: 15px; }
  .cadence-actions .secondary-button { flex: 1; }
  .method-execution-list { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .checklist-grid > div:nth-last-child(-n + 2) { border-bottom: 1px solid #edf1ee; }
  .checklist-grid > div:last-child { border-bottom: 0; }
  .pain-rows > div, .benchmark-rows > div { grid-template-columns: 1fr auto; }
  .pain-rows span, .benchmark-rows span { grid-column: 1; }
  .pain-rows em, .benchmark-rows b { grid-column: 2; grid-row: 1 / span 2; }
  .draft-preview { padding: 18px 17px 22px; }
  .methodology-grid { grid-template-columns: 1fr; }
  .method-card:nth-last-child(-n + 2) { border-bottom: 1px solid #edf1ee; }
  .method-card:last-child { border-bottom: 0; }
  .methodology-footer { display: block; }
  .methodology-footer strong, .methodology-footer a { display: block; margin: 8px 0 0; }
  .review-rows > div { grid-template-columns: 1fr auto; }
  .review-rows span { grid-column: 1; }
  .review-rows em { grid-column: 2; grid-row: 1 / span 2; }
  .roadmap { padding: 18px 15px 22px; }
  .watchlist-actions { display: block; }
  .watchlist-actions .confirm-state, .watchlist-actions .primary-button { display: block; margin-top: 7px; }
  .watchlist-actions .primary-button { width: 100%; }
  .watchlist-content { grid-template-columns: 1fr; }
  .watch-item:nth-last-child(-n + 2) { border-bottom: 1px solid #edf1ee; }
  .watch-item:last-child { border-bottom: 0; }
  .watch-item-main { display: block; }
  .watch-item .outline-button { display: inline-block; }
  .platform-access-row { display: block; }
  .platform-access-state { margin-top: 7px; white-space: normal; }
  .roadmap-step { grid-template-columns: 34px minmax(0, 1fr); }
  .roadmap-step em { grid-column: 2; }
  .toast { right: 15px; bottom: 15px; left: 15px; max-width: none; }
}
/* Workbench additions */
.metric-link { position: relative; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric-link::after { content: "↗"; position: absolute; top: 16px; right: 18px; color: var(--green); font-size: 16px; }
.metric-link:hover, .metric-link:focus-visible { border-color: var(--green); box-shadow: 0 12px 28px rgba(35, 123, 90, .12); transform: translateY(-2px); outline: none; }
.task-progress-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 18px; margin-bottom: 22px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.progress-main { min-width: 0; }
.progress-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.progress-heading h2 { margin: 0; font-size: 18px; }
.progress-percent { color: var(--green); font-size: 22px; font-weight: 800; }
.progress-track { height: 10px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: #e7eee9; }
.progress-track.small { height: 7px; margin: 10px 0 7px; }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.progress-fill.orange { background: var(--orange); }
.progress-main p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.progress-side { padding-left: 20px; border-left: 1px solid var(--line); }
.progress-side > span, .progress-side > strong { display: block; }
.progress-side > span { color: var(--muted); font-size: 12px; }
.progress-side > strong { margin-top: 5px; color: var(--ink); font-size: 22px; }
.progress-side .link-button { font-size: 11px; }
.official-sources-panel { margin-top: 20px; }
.official-source-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.official-source-card { min-height: 132px; padding: 14px; border: 1px solid var(--line); color: inherit; background: #fbfcfb; text-decoration: none; display: flex; flex-direction: column; gap: 7px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.official-source-card:hover { border-color: var(--green); background: #f2f8f4; transform: translateY(-2px); }
.official-source-card strong { font-size: 13px; }
.official-source-card > span:not(.source-category) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.official-source-card em { margin-top: auto; color: var(--green); font-size: 11px; font-style: normal; }
.official-source-card.monitor-card { border-style: dashed; }
.source-candidate-links { display: grid; gap: 4px; }
.source-candidate-links a { color: var(--blue); font-size: 10px; text-decoration: none; }
.source-candidate-links a:hover { text-decoration: underline; }
.source-category { color: var(--orange); font-size: 10px; font-weight: 700; }
.source-link { display: inline-block; margin-top: 8px; color: var(--green); font-size: 11px; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.asset-workbench { margin-top: 18px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.asset-step { min-height: 175px; padding: 18px; background: var(--surface); }
.asset-step > span { display: inline-grid; width: 27px; height: 27px; margin-bottom: 12px; place-items: center; color: white; background: var(--forest); font-size: 11px; font-weight: 700; }
.asset-step strong { display: block; font-size: 14px; }
.asset-step p { margin: 8px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.asset-step a { margin-right: 12px; color: var(--green); font-size: 11px; text-decoration: none; }
.asset-step a:hover { text-decoration: underline; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-tags i { padding: 4px 7px; border-radius: 999px; color: #6d563f; background: var(--orange-soft); font-size: 10px; font-style: normal; }
@media (max-width: 900px) {
  .task-progress-panel, .asset-grid { grid-template-columns: 1fr; }
  .progress-side { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .official-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .official-source-list { grid-template-columns: 1fr; }
}
/* Travel-light visual system inspired by open dashboard kits, adapted locally. */
:root {
  --ink: #24332f;
  --muted: #70817a;
  --line: #d9e6df;
  --surface: #ffffff;
  --canvas: #f2f7f4;
  --forest: #356957;
  --forest-dark: #203f36;
  --green: #3b8768;
  --green-soft: #e3f1e9;
  --orange: #c86f43;
  --orange-soft: #f8e8df;
  --blue: #4d8da2;
  --blue-soft: #e2f0f4;
  --shadow: 0 10px 26px rgba(37, 74, 61, .07);
}
body { background: var(--canvas); }
.sidebar { background: var(--forest-dark); }
.nav-item:hover, .nav-item.active { color: var(--forest-dark); background: #dcefe5; }
.nav-item.active .nav-icon { color: var(--orange); }
.topbar { background: rgba(255,255,255,.94); }
.panel, .metric-card, .positioning-panel, .task-progress-panel, .official-sources-panel, .external-sources-panel { border-radius: 10px; }
.metric-card, .panel { box-shadow: var(--shadow); }
.metric-card.accent-card { background: var(--forest); }
.section-kicker { color: var(--orange); }
.page-subtitle { color: #718078; }
.official-source-list, .external-source-list { padding: 18px; }
.external-sources-panel { margin-top: 18px; }
.external-source-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.external-source-card { min-height: 126px; padding: 14px; border: 1px solid var(--line); color: inherit; background: #fbfdfc; text-decoration: none; display: flex; flex-direction: column; gap: 7px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.external-source-card:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.external-source-card strong { font-size: 13px; }
.external-source-card > span:not(.source-category) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.external-source-card em { margin-top: auto; color: var(--green); font-size: 11px; font-style: normal; }
.market-live-panel { margin: 20px 0; }
.market-radar-list { padding: 8px 18px 16px; }
.market-radar-row { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2ef; color: inherit; text-decoration: none; }
.market-radar-row:last-child { border-bottom: 0; }
.market-radar-row:hover strong { color: var(--green); }
.market-radar-type { color: var(--orange); font-size: 11px; font-weight: 700; }
.market-radar-row strong, .market-radar-row span { display: block; }
.market-radar-row strong { font-size: 13px; }
.market-radar-row span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.market-radar-row em { color: var(--blue); font-size: 11px; font-style: normal; }
.metric-chart-grid, .insight-card-grid, .audience-chart-grid, .competitor-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.metric-chart-card, .insight-card, .audience-chart-card, .competitor-card { padding: 15px; border: 1px solid var(--line); background: #fbfdfc; }
.metric-chart-heading { display: flex; justify-content: space-between; gap: 12px; }
.metric-chart-heading span, .metric-chart-card small { color: var(--muted); font-size: 10px; }
.metric-chart-kpis { display: flex; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 11px; }
.metric-chart-kpis b { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; }
.metric-mini-bars { height: 64px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line); }
.metric-mini-bars i { flex: 1; min-height: 6px; height: var(--bar-height); background: #9fcdb7; border-radius: 3px 3px 0 0; }
.metric-chart-card small { display: block; margin-top: 10px; }
.insight-card > span, .audience-chart-card > strong { color: var(--orange); font-size: 11px; }
.insight-card > strong { display: block; margin: 9px 0; font-size: 20px; }
.insight-card em { margin-right: 10px; color: var(--green); font-size: 11px; font-style: normal; }
.insight-card p, .competitor-card p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.competitor-card { position: relative; }
.competitor-card span, .competitor-card strong { display: block; }
.competitor-card span { color: var(--orange); font-size: 10px; }
.competitor-card strong { margin-top: 5px; font-size: 14px; }
.competitor-card > b { display: block; margin-top: 12px; color: var(--green); font-size: 16px; }
.competitor-card a { color: var(--blue); font-size: 11px; text-decoration: none; }
.competitor-card a:hover { text-decoration: underline; }
.draft-mode-picker { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 16px; padding: 15px 17px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; background: #fffdf9; box-shadow: var(--shadow); }
.draft-mode-picker strong, .draft-mode-picker small { display: block; }
.draft-mode-picker strong { margin-top: 4px; font-size: 14px; }
.draft-mode-picker small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.draft-mode-options { display: flex; gap: 7px; }
.draft-mode-options button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); background: #fff; font-size: 11px; }
.draft-mode-options button.active, .draft-mode-options button:hover { border-color: var(--green); color: white; background: var(--green); }
@media (max-width: 560px) { .draft-mode-picker { display: block; } .draft-mode-options { margin-top: 12px; } }
@media (max-width: 900px) {
  .external-source-list, .metric-chart-grid, .insight-card-grid, .audience-chart-grid, .competitor-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .external-source-list, .metric-chart-grid, .insight-card-grid, .audience-chart-grid, .competitor-card-grid { grid-template-columns: 1fr; }
  .market-radar-row { grid-template-columns: 1fr; gap: 5px; }
}

/* Second-pass travel UI polish. */
.sidebar {
  color: var(--ink);
  background: #fffdf8;
  border-right: 1px solid #e6ece6;
  box-shadow: 8px 0 22px rgba(44, 74, 59, .04);
}
.brand-mark strong, .mobile-brand strong { color: var(--forest-dark); }
.brand-mark span:not(.brand-dot) { color: var(--muted); }
.workspace-label { color: var(--orange); }
.nav-item { color: #5f7169; }
.nav-item:hover, .nav-item.active { color: var(--forest-dark); background: #e4f1e8; }
.nav-icon { color: #87a394; }
.creator-card { border-color: #e1e9e2; }
.creator-card span:not(.avatar):not(.online-dot) { color: var(--muted); }
.settings-button { color: var(--muted); border-color: #dbe6df; }
.settings-button:hover { color: var(--forest); border-color: var(--green); }
.topbar { background: rgba(255, 253, 248, .92); }
.view-container { padding-top: 42px; }
.page-heading { padding-bottom: 5px; }
.page-heading h1 { max-width: 760px; color: #203a30; }
.metric-card, .panel, .positioning-panel, .task-progress-panel, .official-sources-panel, .external-sources-panel {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(37, 74, 61, .055);
}
.metric-card { min-height: 118px; }
.metric-card.accent-card { background: #2f6d58; }
.panel-heading { background: rgba(250, 252, 249, .72); }
.filter-tabs { overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { border-radius: 6px; }
.filter-tab.active { background: var(--forest); }
.signal-coverage-panel { margin: 18px 0; }
.signal-coverage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.signal-coverage-card { min-height: 146px; padding: 14px; border: 1px solid var(--line); background: #fbfdfb; display: flex; flex-direction: column; gap: 11px; }
.signal-coverage-card.no-data { background: #f7f9f6; border-style: dashed; }
.signal-coverage-card.has-data { border-color: #a9d0b9; background: #f4fbf6; }
.signal-coverage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.signal-coverage-top span { color: var(--orange); font-size: 12px; font-weight: 800; }
.signal-coverage-top b { color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.signal-coverage-card.has-data .signal-coverage-top b { color: var(--green); }
.signal-coverage-card > strong { color: var(--ink); font-size: 12px; line-height: 1.55; }
.signal-coverage-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: auto; }
.signal-coverage-actions button { padding: 0; border: 0; color: var(--green); background: transparent; font-size: 11px; }
.signal-coverage-actions button:hover { color: var(--orange); }
.signal-coverage-actions a { color: var(--blue); font-size: 11px; text-decoration: none; }
.signal-coverage-actions a:hover { text-decoration: underline; }
.source-panel .source-item b { min-width: 22px; text-align: right; }
.source-panel .source-note { line-height: 1.7; }
.external-source-card, .official-source-card, .metric-chart-card, .insight-card, .audience-chart-card, .competitor-card { border-radius: 6px; }
.metric-chart-card:hover, .audience-chart-card:hover, .competitor-card:hover { border-color: #a7cbb6; transform: translateY(-1px); }
.draft-mode-picker { border-radius: 8px; background: #fffaf2; }
@media (max-width: 1120px) {
  .signal-coverage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .signal-coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sidebar { border-right: 0; border-bottom: 1px solid #e6ece6; box-shadow: 0 4px 14px rgba(44, 74, 59, .04); }
  .signal-coverage-grid { grid-template-columns: 1fr; }
  .signal-coverage-card { min-height: 124px; }
}

/* Cyberpunk workbench layer: the data model stays intact while the interface gets a clearer, sharper operating surface. */
:root {
  --ink: #e8eef7;
  --muted: #8b9ab0;
  --line: #253248;
  --surface: #101827;
  --canvas: #080c15;
  --forest: #111b2d;
  --forest-dark: #070a12;
  --green: #9bd5b1;
  --green-soft: rgba(155, 213, 177, 0.10);
  --orange: #d9aa76;
  --orange-soft: rgba(217, 170, 118, 0.10);
  --blue: #9bc6d8;
  --blue-soft: rgba(155, 198, 216, 0.10);
  --red: #df91a5;
  --shadow: 0 0 0 1px rgba(155, 198, 216, 0.03), 0 18px 48px rgba(0, 0, 0, 0.24);
}

html { background: var(--canvas); }
body {
  color: var(--ink);
  background-color: var(--canvas);
  background-image: linear-gradient(rgba(155, 198, 216, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 198, 216, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 82% 7%, rgba(213, 143, 190, 0.07), transparent 26%), radial-gradient(circle at 16% 82%, rgba(155, 198, 216, 0.05), transparent 28%);
}
.app-shell { position: relative; }
.sidebar { width: 238px; flex-basis: 238px; padding: 25px 15px 18px; border-right: 1px solid #1b2940; color: var(--ink); background: rgba(7, 10, 18, 0.94); box-shadow: 18px 0 55px rgba(0, 0, 0, 0.25); }
.brand-mark { padding: 7px 8px 18px; border-bottom: 1px solid #1b2940; }
.brand-mark strong, .mobile-brand strong { color: #f2f7ff; font-size: 16px; letter-spacing: 0.04em; }
.brand-mark span:not(.brand-dot) { color: #6f8098; }
.brand-dot { width: 10px; height: 10px; border-radius: 1px; background: var(--green); box-shadow: 0 0 0 4px rgba(155, 213, 177, 0.10), 0 0 12px rgba(155, 213, 177, 0.42); transform: rotate(45deg); }
.workspace-label { margin: 30px 12px 11px; color: #60718a; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.side-nav { gap: 4px; }
.nav-item { position: relative; min-height: 42px; padding: 10px 12px; border: 1px solid transparent; border-radius: 3px; color: #8b9ab0; background: transparent; font-size: 13px; transition: 160ms ease; }
.nav-item:hover { color: #e8eef7; border-color: #263956; background: rgba(112, 199, 255, 0.06); }
.nav-item.active { color: #0b1611; border-color: #8fc3a3; background: #8fc3a3; box-shadow: 0 0 18px rgba(155, 213, 177, 0.14); }
.nav-icon { width: 18px; color: #6f8098; font-size: 0; }
.nav-icon::after { color: currentColor; font-size: 15px; content: "▦"; }
.nav-item:nth-child(2) .nav-icon::after { content: "◉"; }
.nav-item:nth-child(3) .nav-icon::after { content: "◎"; }
.nav-item:nth-child(4) .nav-icon::after { content: "✦"; }
.nav-item:nth-child(5) .nav-icon::after { content: "▶"; }
.nav-item:nth-child(6) .nav-icon::after { content: "◌"; }
.nav-item:nth-child(7) .nav-icon::after { content: "◇"; }
.nav-item.active .nav-icon { color: #07100f; }
.creator-card { border-color: #1b2940; }
.avatar { border-radius: 3px; color: #07100f; background: var(--orange); }
.online-dot { background: var(--green); box-shadow: 0 0 9px var(--green); }
.settings-button { border-color: #263956; color: #8b9ab0; border-radius: 3px; }
.settings-button:hover { color: var(--green); border-color: var(--green); }
.main-content { background: rgba(8, 12, 21, 0.42); }
.topbar { position: sticky; top: 0; z-index: 4; height: 68px; padding: 0 42px; border-bottom-color: #1b2940; background: rgba(8, 12, 21, 0.86); backdrop-filter: blur(18px); }
.topbar-meta { color: #8090a7; }
.status-dot, .live-label span { background: var(--green); box-shadow: 0 0 8px var(--green); }
.demo-badge { border-color: rgba(255, 177, 92, 0.5); border-radius: 3px; color: var(--orange); background: var(--orange-soft); }
.demo-badge.live-badge { border-color: rgba(125, 255, 178, 0.55); color: var(--green); background: var(--green-soft); }
.refresh-button, .secondary-button, .outline-button { border-color: #2b3d58; border-radius: 3px; color: #a8bad1; background: #101827; }
.refresh-button:hover, .secondary-button:hover, .outline-button:hover { color: var(--blue); border-color: var(--blue); }
.view-container { max-width: 1500px; padding: 38px 42px 70px; }
.eyebrow, .section-kicker { color: var(--blue); letter-spacing: 0.12em; }
h1 { color: #f4f8ff; font-size: clamp(25px, 3vw, 38px); text-shadow: 0 0 24px rgba(112, 199, 255, 0.16); }
.page-heading h1 { color: #f4f8ff; }
h2, h3 { color: #eff5ff; }
.page-subtitle, .panel-caption, .metric-note { color: var(--muted); }
.phase-chip { border: 1px solid #2b3d58; border-left: 3px solid var(--orange); background: #101827; box-shadow: var(--shadow); }
.phase-chip strong { color: var(--orange); }
.metric-grid { gap: 12px; }
.metric-card, .panel, .observation-card, .source-toolbar, .topic-toolbar, .access-guide, .next-step-banner { border-color: #253248; border-radius: 4px; background: rgba(16, 24, 39, 0.9); box-shadow: var(--shadow); }
.metric-card { min-height: 122px; }
.metric-card:hover { border-color: #416186; transform: translateY(-1px); }
.metric-card strong { color: #f5f8ff; }
.metric-card.accent-card { color: #dceee2; border-color: #537c64; background: #253b30; box-shadow: 0 0 24px rgba(155, 213, 177, 0.08); }
.accent-card .metric-label, .accent-card .metric-note { color: #b9d7c4; }
.metric-note.positive, .link-button, .signal-source-link { color: var(--green); }
.positioning-panel { border-color: #253248; border-left-color: var(--orange); background: rgba(16, 24, 39, 0.92); }
.positioning-panel p, .insight-copy p, .observation-card p { color: var(--muted); }
.insight-band { border: 1px solid #283a57; border-radius: 4px; background: #111b2d; box-shadow: var(--shadow); }
.insight-copy .section-kicker { color: var(--orange); }
.insight-copy h2 { color: #fff; }
.tag { border: 1px solid currentColor; border-radius: 3px; background: transparent; }
.tag.green { color: var(--green); }
.tag.orange { color: var(--orange); }
.tag.blue { color: var(--blue); }
.primary-button { border-color: #8fc3a3; border-radius: 3px; color: #0b1611; background: #8fc3a3; box-shadow: 0 0 16px rgba(155, 213, 177, 0.10); }
.primary-button:hover { color: #fff; border-color: var(--blue); background: #182e48; }
.text-button { color: var(--blue); }
.panel-heading { border-bottom-color: #253248; background: rgba(16, 24, 39, 0.84); }
.panel-footer, .hot-panel-footer { border-top-color: #253248; color: var(--green); background: rgba(12, 18, 30, 0.8); }
.signal-row, .question-row, .source-item, .source-entry, .watch-item, .pain-rows > div, .benchmark-rows > div { border-bottom-color: #202d42; }
.signal-time { color: #64758e; }
.signal-type { border: 1px solid rgba(125, 255, 178, 0.35); border-radius: 2px; color: var(--green); background: var(--green-soft); }
.signal-type.policy { color: var(--orange); background: var(--orange-soft); }
.signal-type.people { color: var(--blue); background: var(--blue-soft); }
.filter-tabs { gap: 6px; }
.filter-tab { border-color: #2b3d58; border-radius: 3px; color: #8b9ab0; background: #101827; }
.filter-tab:hover { color: var(--blue); border-color: var(--blue); }
.filter-tab.active { color: #08100d; border-color: var(--green); background: var(--green); }
.douyin-hot-row:hover strong { color: var(--blue); }
.hot-rank { color: var(--orange); }
.source-note, .prerequisite-note { border-color: #3a2d21; color: #d9a76c; background: rgba(255, 177, 92, 0.08); }
.prerequisite-note.ready { border-color: #244632; color: var(--green); background: var(--green-soft); }
.source-group { border-color: #253248; border-radius: 4px; background: rgba(16, 24, 39, 0.9); box-shadow: var(--shadow); }
.source-group-heading { border-bottom-color: #253248; }
.source-toggle { border-color: rgba(125, 255, 178, 0.45); border-radius: 3px; color: var(--green); background: var(--green-soft); }
.source-toggle.off { border-color: #2b3d58; color: var(--muted); background: #101827; }
.source-check { border-color: var(--green); border-radius: 2px; color: #07100f; background: var(--green); }
.source-group.off .source-check { border-color: #2b3d58; background: #101827; }
.source-access { color: var(--muted); background: #192437; }
.source-access.public { color: var(--green); background: var(--green-soft); }
.confirm-state { border-color: rgba(255, 177, 92, 0.45); color: var(--orange); background: var(--orange-soft); }
.confirm-state.confirmed { border-color: rgba(125, 255, 178, 0.45); color: var(--green); background: var(--green-soft); }
.task-progress-panel { border-color: #253248; background: rgba(16, 24, 39, 0.9); box-shadow: var(--shadow); }
.progress-track { background: #1d2a3e; }
.progress-fill { background: var(--green); box-shadow: 0 0 12px rgba(125, 255, 178, 0.7); }
.progress-fill.orange { background: var(--orange); box-shadow: 0 0 12px rgba(255, 177, 92, 0.6); }
.modal-backdrop { background: rgba(3, 6, 12, 0.78); }
.modal { border: 1px solid #334b6c; border-radius: 4px; background: #101827; box-shadow: 0 0 60px rgba(0, 229, 255, 0.12); }
.field-label input { border-color: #2b3d58; border-radius: 3px; color: var(--ink); background: #0b111d; }
.field-label input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(112, 199, 255, 0.12); }
.empty-state { color: #72839b; border-color: #253248; background: rgba(12, 18, 30, 0.7); }
#view-accounts .account-live-panel { margin-bottom: 16px; }
.account-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 4px 18px 10px; }
.account-live-row { min-width: 0; padding: 14px 0; border-bottom: 1px solid #202d42; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.account-live-row strong, .account-live-row span { display: block; }
.account-live-row strong { color: #edf4ff; font-size: 12px; }
.account-live-row span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-live-row a { grid-column: 1 / -1; color: var(--blue); font-size: 11px; text-decoration: none; }
.account-live-row a:hover { text-decoration: underline; }
.account-live-status { padding: 4px 7px; border: 1px solid #334861; border-radius: 3px; color: #9aa8ba; background: #162235; font-size: 10px; font-style: normal; white-space: nowrap; }
.account-live-status.ready { border-color: rgba(155, 213, 177, 0.4); color: var(--green); background: var(--green-soft); }
.account-live-status.pending { border-color: rgba(217, 170, 118, 0.36); color: var(--orange); background: var(--orange-soft); }
.topic-empty-state { grid-column: 1 / -1; min-height: 110px; display: grid; place-items: center; padding: 24px; text-align: center; }
#view-business .business-grid, #view-business .pain-product-grid { display: none; }
#marketLivePanel { margin-bottom: 18px; }
#view-overview .compact-heading, #view-overview .observation-grid { display: none; }
#view-overview .dashboard-grid { margin-bottom: 0; }
#view-overview .insight-band { margin-bottom: 25px; }

@media (max-width: 980px) {
  .sidebar { width: 204px; flex-basis: 204px; }
  .topbar, .view-container { padding-left: 24px; padding-right: 24px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { background-size: 30px 30px; }
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid #1b2940; box-shadow: none; }
  .brand-mark { padding: 4px 6px 12px; border-bottom: 0; }
  .workspace-label, .sidebar-foot { display: none; }
  .side-nav { display: flex; overflow-x: auto; padding: 5px 0 2px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .nav-item { min-width: max-content; min-height: 36px; padding: 8px 10px; }
  .topbar { height: 58px; padding: 0 16px; }
  .topbar-meta { margin-left: auto; font-size: 10px; }
  .refresh-button span { display: none; }
  .view-container { padding: 25px 16px 48px; }
  .page-heading, .positioning-panel, .insight-band { display: block; }
  .phase-chip, .positioning-actions, .insight-actions { margin-top: 18px; align-items: flex-start; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 108px; padding: 15px 13px; }
  .metric-card strong { font-size: 25px; }
  .dashboard-grid, .signals-layout, .source-groups, .business-grid, .pain-product-grid { grid-template-columns: 1fr; }
  .douyin-hot-list { grid-template-columns: 1fr; }
  .source-toolbar, .topic-toolbar { align-items: flex-start; flex-direction: column; }
  .source-toolbar .primary-button, .topic-toolbar .primary-button { width: 100%; }
  .signal-row { grid-template-columns: 1fr auto; }
  .signal-time { grid-column: 1 / -1; }
  .account-live-grid { grid-template-columns: 1fr; }
}

/* Human-friendly cyber palette: retain depth and focus without fluorescent contrast. */
:root {
  --ink: #e4e9ef;
  --muted: #9aa6b4;
  --line: #2a3544;
  --surface: #171e29;
  --canvas: #0f141d;
  --forest: #17231f;
  --forest-dark: #0b1118;
  --green: #a7cdb7;
  --green-soft: rgba(167, 205, 183, 0.09);
  --orange: #d3ac80;
  --orange-soft: rgba(211, 172, 128, 0.09);
  --blue: #a8c7d4;
  --blue-soft: rgba(168, 199, 212, 0.09);
  --red: #d79aaa;
  --shadow: 0 0 0 1px rgba(168, 199, 212, 0.025), 0 14px 34px rgba(0, 0, 0, 0.2);
}
body {
  background-image: linear-gradient(rgba(168, 199, 212, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 199, 212, 0.018) 1px, transparent 1px);
}
body::before {
  background: radial-gradient(circle at 82% 7%, rgba(210, 160, 190, 0.035), transparent 24%), radial-gradient(circle at 16% 82%, rgba(168, 199, 212, 0.025), transparent 26%);
}
.sidebar { background: rgba(11, 16, 24, 0.96); box-shadow: 12px 0 34px rgba(0, 0, 0, 0.18); }
.nav-item.active { color: #dcece1; border-color: #5f836d; background: rgba(86, 123, 101, 0.38); box-shadow: inset 3px 0 0 #9abda7; }
.nav-item.active .nav-icon { color: #b7d2bf; }
.topbar { background: rgba(15, 20, 29, 0.9); }
h1 { text-shadow: 0 0 16px rgba(168, 199, 212, 0.08); }
.primary-button { color: #dcece1; border-color: #668b75; background: #3a5545; box-shadow: none; }
.primary-button:hover { color: #eff7f1; border-color: #9bbbab; background: #486754; }
.filter-tab.active { color: #dcece1; border-color: #668b75; background: #3a5545; }
.progress-fill { box-shadow: none; }
.progress-fill.orange { box-shadow: none; }
.hot-panels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.hot-panels-grid .panel { margin-bottom: 0; min-width: 0; }
.news-label { color: var(--blue); }
.news-label span { background: var(--blue); box-shadow: none; }
.news-hot-list { display: grid; grid-template-columns: 1fr; }
.news-hot-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 16px; border-bottom: 1px solid #263241; color: var(--ink); text-decoration: none; }
.news-hot-row:hover { background: rgba(168, 199, 212, 0.05); }
.news-hot-row strong, .news-hot-row span { display: block; }
.news-hot-row strong { overflow: hidden; color: #e5ebf1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.news-hot-row div span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.news-hot-row .hot-open { color: var(--blue); font-size: 10px; white-space: nowrap; }
.official-source-card.needs-check { border-style: dashed; }
.official-source-card.needs-check em { color: var(--orange); }
.signal-coverage-card,
.signal-coverage-card.no-data,
.signal-coverage-card.has-data { border-color: #2a3544; background: #171e29; }
.signal-coverage-card.no-data { border-style: dashed; }
.signal-coverage-card.has-data { border-color: #4b6957; background: #1a2922; }
.signal-coverage-top span { color: var(--orange); }
.signal-coverage-top b { color: var(--muted); }
.signal-coverage-card.has-data .signal-coverage-top b { color: var(--green); }
.signal-coverage-card > strong { color: #dce3eb; }
.signal-coverage-actions a, .signal-coverage-actions button { color: var(--blue); }
@media (max-width: 980px) {
  .hot-panels-grid { grid-template-columns: 1fr; }
}

/* Shared interaction layer: calm topics, readable timeline, and an explicit day/night choice. */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid #2a3544; border-radius: 3px; color: var(--muted); background: var(--surface); font-size: 11px; cursor: pointer; }
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.theme-icon { color: var(--orange); font-size: 15px; line-height: 1; }
.signal-feed-panel .full-list { padding: 8px 18px 14px; }
.full-list .signal-row { position: relative; grid-template-columns: 76px minmax(0, 1fr) auto; margin-left: 8px; padding-left: 17px; border-left: 1px solid #405063; }
.full-list .signal-row::before { position: absolute; top: 17px; left: -5px; width: 8px; height: 8px; border: 2px solid #0f141d; border-radius: 50%; background: var(--blue); content: ""; }
.full-list .signal-row:first-child::before { background: var(--green); box-shadow: 0 0 0 3px rgba(167, 205, 183, 0.1); }
.full-list .signal-time { color: var(--orange); font-variant-numeric: tabular-nums; }
.signal-coverage-panel { scroll-margin-top: 84px; }
.signal-coverage-card { transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.signal-coverage-card:hover { border-color: #668b75; transform: translateY(-1px); }
.topic-card { background: #171e29; }
.topic-card.selected { border-color: #9abda7; background: #1c2b23; }
.topic-card.recommended::before { color: #dcece1; background: #3a5545; }
.live-topic-note { color: var(--blue); background: var(--blue-soft); }
.workflow-panel { margin: 0 0 18px; border: 1px solid #2a3544; border-radius: 4px; background: #151d28; box-shadow: var(--shadow); }
.workflow-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 14px; border-bottom: 1px solid #2a3544; }
.workflow-heading h2 { margin: 6px 0 0; font-size: 18px; }
.workflow-progress { padding: 5px 8px; border: 1px solid #4b6957; color: var(--green); background: var(--green-soft); font-size: 11px; white-space: nowrap; }
.workflow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 10px 16px 15px; }
.workflow-steps article { position: relative; min-width: 0; min-height: 128px; padding: 13px 12px 10px; border-right: 1px solid #2a3544; }
.workflow-steps article:last-child { border-right: 0; }
.workflow-steps article > span { color: var(--orange); font-size: 11px; font-variant-numeric: tabular-nums; }
.workflow-steps article strong, .workflow-steps article small { display: block; }
.workflow-steps article strong { margin-top: 10px; color: #e1e7ee; font-size: 12px; }
.workflow-steps article small { min-height: 34px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.workflow-steps article button { margin-top: 12px; padding: 5px 7px; border: 1px solid #33475d; border-radius: 3px; color: var(--blue); background: transparent; font-size: 10px; cursor: pointer; }
.workflow-steps article button:hover { border-color: var(--blue); }
.workflow-steps article.done { background: rgba(76, 111, 88, 0.12); }
.workflow-steps article.done > span, .workflow-steps article.done strong { color: var(--green); }
.workflow-steps article.done button { border-color: #4b6957; color: var(--green); background: var(--green-soft); }
.integration-materials-panel { margin-top: 18px; }
.integration-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 4px 18px 10px; }
.integration-material-grid article { min-height: 122px; padding: 15px 0; border-bottom: 1px solid #2a3544; }
.integration-material-grid article strong, .integration-material-grid article p, .integration-material-grid article em { display: block; }
.integration-material-grid article strong { color: #e1e7ee; font-size: 12px; }
.integration-material-grid article p { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.integration-material-grid article em { color: var(--orange); font-size: 10px; font-style: normal; }
.integration-links { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 13px 18px; border-top: 1px solid #2a3544; background: rgba(12, 18, 30, 0.55); }
.integration-links a { color: var(--blue); font-size: 11px; text-decoration: none; }
.integration-links a:hover { text-decoration: underline; }

html[data-theme="light"] { background: #eef2f1; }
html[data-theme="light"] body { color: #26343c; background-color: #eef2f1; background-image: linear-gradient(rgba(46, 79, 67, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 79, 67, 0.025) 1px, transparent 1px); }
html[data-theme="light"] body::before { background: radial-gradient(circle at 82% 7%, rgba(185, 143, 119, 0.035), transparent 25%), radial-gradient(circle at 16% 82%, rgba(109, 157, 171, 0.03), transparent 27%); }
html[data-theme="light"] .sidebar { color: #26343c; background: rgba(247, 249, 248, 0.97); border-right-color: #d5dfdc; box-shadow: 12px 0 30px rgba(33, 57, 49, 0.06); }
html[data-theme="light"] .brand-mark { border-bottom-color: #d5dfdc; }
html[data-theme="light"] .brand-mark strong, html[data-theme="light"] .mobile-brand strong { color: #263b35; }
html[data-theme="light"] .brand-mark span:not(.brand-dot), html[data-theme="light"] .workspace-label { color: #789089; }
html[data-theme="light"] .nav-item { color: #6f817b; }
html[data-theme="light"] .nav-item:hover { color: #315347; border-color: #b9cec5; background: #edf4f0; }
html[data-theme="light"] .nav-item.active { color: #315347; border-color: #86a996; background: #dcebe3; box-shadow: inset 3px 0 0 #5f896f; }
html[data-theme="light"] .nav-item.active .nav-icon { color: #5f896f; }
html[data-theme="light"] .topbar { border-bottom-color: #d5dfdc; background: rgba(247, 249, 248, 0.9); }
html[data-theme="light"] .main-content { background: rgba(238, 242, 241, 0.54); }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] .metric-card strong { color: #26343c; text-shadow: none; }
html[data-theme="light"] .panel, html[data-theme="light"] .metric-card, html[data-theme="light"] .task-progress-panel, html[data-theme="light"] .positioning-panel, html[data-theme="light"] .insight-band, html[data-theme="light"] .topic-toolbar, html[data-theme="light"] .source-toolbar, html[data-theme="light"] .source-group, html[data-theme="light"] .methodology-panel, html[data-theme="light"] .next-step-banner { color: #26343c; border-color: #d5dfdc; background: #f9fbfa; box-shadow: 0 8px 25px rgba(33, 57, 49, 0.06); }
html[data-theme="light"] .metric-card.accent-card { color: #315347; border-color: #9dbfaf; background: #e1eee7; }
html[data-theme="light"] .accent-card .metric-label, html[data-theme="light"] .accent-card .metric-note { color: #547564; }
html[data-theme="light"] .topic-card { color: #26343c; border-color: #d5dfdc; background: #f9fbfa; }
html[data-theme="light"] .topic-card.selected { border-color: #86a996; background: #e5f0ea; }
html[data-theme="light"] .topic-card.recommended::before { color: #315347; background: #dcebe3; }
html[data-theme="light"] .workflow-panel, html[data-theme="light"] .integration-materials-panel { color: #26343c; border-color: #d5dfdc; background: #f9fbfa; box-shadow: 0 8px 25px rgba(33, 57, 49, 0.06); }
html[data-theme="light"] .workflow-heading, html[data-theme="light"] .integration-links { border-color: #d5dfdc; background: #f2f6f4; }
html[data-theme="light"] .workflow-steps article { border-color: #d5dfdc; }
html[data-theme="light"] .workflow-steps article strong, html[data-theme="light"] .integration-material-grid article strong { color: #26343c; }
html[data-theme="light"] .workflow-steps article.done { background: #edf5f0; }
html[data-theme="light"] .signal-coverage-card, html[data-theme="light"] .signal-coverage-card.no-data { border-color: #d5dfdc; background: #f9fbfa; }
html[data-theme="light"] .signal-coverage-card.has-data { border-color: #9dbfaf; background: #e8f2ec; }
html[data-theme="light"] .full-list .signal-row { border-left-color: #c7d5d0; }
html[data-theme="light"] .full-list .signal-row::before { border-color: #f9fbfa; }
html[data-theme="light"] .theme-toggle { border-color: #c5d4cf; color: #55726a; background: #f9fbfa; }
html[data-theme="light"] .integration-links { background: #f2f6f4; }
@media (max-width: 980px) { .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workflow-steps article:nth-child(2n) { border-right: 0; } }
@media (max-width: 760px) { .theme-label { display: none; } .workflow-steps, .integration-material-grid { grid-template-columns: 1fr; } .workflow-steps article { border-right: 0; border-bottom: 1px solid #2a3544; } .workflow-steps article:last-child { border-bottom: 0; } .full-list .signal-row { grid-template-columns: 60px minmax(0, 1fr); } .full-list .signal-row .signal-type { grid-column: 2; justify-self: start; } }

/* Softer daytime surface: keep contrast readable without a white flash. */
html[data-theme="light"] body { color: #2d3a38; background-color: #dfe7e3; background-image: linear-gradient(rgba(55, 83, 72, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(55, 83, 72, 0.018) 1px, transparent 1px); }
html[data-theme="light"] body::before { background: radial-gradient(circle at 82% 7%, rgba(184, 140, 106, 0.025), transparent 25%), radial-gradient(circle at 16% 82%, rgba(92, 133, 139, 0.025), transparent 27%); }
html[data-theme="light"] .sidebar { background: rgba(229, 236, 232, 0.97); border-right-color: #c1d0c8; box-shadow: 12px 0 26px rgba(33, 57, 49, 0.045); }
html[data-theme="light"] .brand-mark, html[data-theme="light"] .topbar { border-color: #c1d0c8; }
html[data-theme="light"] .topbar { background: rgba(231, 238, 234, 0.94); }
html[data-theme="light"] .main-content { background: rgba(223, 231, 227, 0.7); }
html[data-theme="light"] .panel, html[data-theme="light"] .metric-card, html[data-theme="light"] .task-progress-panel, html[data-theme="light"] .positioning-panel, html[data-theme="light"] .insight-band, html[data-theme="light"] .topic-toolbar, html[data-theme="light"] .source-toolbar, html[data-theme="light"] .source-group, html[data-theme="light"] .methodology-panel, html[data-theme="light"] .next-step-banner, html[data-theme="light"] .workflow-panel, html[data-theme="light"] .integration-materials-panel { border-color: #c1d0c8; background: #edf2ef; box-shadow: 0 6px 18px rgba(33, 57, 49, 0.045); }
html[data-theme="light"] .metric-card.accent-card { border-color: #a5bcae; background: #d5e1da; }
html[data-theme="light"] .topic-card { border-color: #c1d0c8; background: #e9efec; }
html[data-theme="light"] .topic-card.selected { border-color: #749684; background: #dce8e1; }
html[data-theme="light"] .topic-card.recommended::before { color: #355c49; background: #d2e1d8; }
html[data-theme="light"] .workflow-heading, html[data-theme="light"] .integration-links { border-color: #c1d0c8; background: #e3ebe6; }
html[data-theme="light"] .workflow-steps article { border-color: #c1d0c8; }
html[data-theme="light"] .workflow-steps article.done { background: #e0ebe4; }
html[data-theme="light"] .mainline-checklist-panel { margin: 18px 0 24px; }
html[data-theme="light"] .mainline-check { border-color: #c1d0c8; background: #e7eeea; }
html[data-theme="light"] .mainline-check:hover { border-color: #749684; background: #dfeae3; }
html[data-theme="light"] .mainline-check.done { border-color: #91ae9e; background: #dce8e1; }
html[data-theme="light"] .signal-coverage-card, html[data-theme="light"] .signal-coverage-card.no-data { border-color: #c1d0c8; background: #edf2ef; }
html[data-theme="light"] .signal-coverage-card.has-data { border-color: #9bb6a5; background: #e0ebe4; }
html[data-theme="light"] .full-list .signal-row::before { border-color: #edf2ef; }
html[data-theme="light"] .theme-toggle { border-color: #b8c9c0; color: #4f6a5f; background: #e7eeea; }

.mainline-checklist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mainline-check { display: flex; min-width: 0; min-height: 112px; padding: 15px 16px; border: 0; border-right: 1px solid #2a3544; color: inherit; background: transparent; text-align: left; cursor: pointer; gap: 11px; align-items: flex-start; }
.mainline-check:last-child { border-right: 0; }
.mainline-check:hover { background: rgba(97, 145, 116, 0.09); }
.mainline-number { color: var(--orange); font-size: 11px; font-variant-numeric: tabular-nums; }
.mainline-copy { min-width: 0; flex: 1; }
.mainline-copy strong, .mainline-copy small { display: block; }
.mainline-copy strong { color: var(--ink); font-size: 12px; line-height: 1.35; }
.mainline-copy small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mainline-status { align-self: flex-end; color: var(--orange); font-size: 10px; white-space: nowrap; }
.mainline-check.done { background: rgba(76, 111, 88, 0.12); }
.mainline-check.done .mainline-number, .mainline-check.done .mainline-copy strong, .mainline-check.done .mainline-status { color: var(--green); }
@media (max-width: 1120px) { .mainline-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mainline-check:nth-child(3) { border-right: 0; } }
@media (max-width: 760px) { .mainline-checklist { grid-template-columns: 1fr; } .mainline-check { min-height: 86px; border-right: 0; border-bottom: 1px solid #2a3544; } .mainline-check:last-child { border-bottom: 0; } }
html[data-theme="light"] .mainline-check { border-right-color: #c1d0c8; background: transparent; }
html[data-theme="light"] .mainline-check:hover { background: #dfeae3; }
html[data-theme="light"] .mainline-check.done { background: #dce8e1; }
@media (max-width: 760px) { html[data-theme="light"] .mainline-check { border-bottom-color: #c1d0c8; } }

/* Three-line monitoring dashboard and contrast-balanced day/night themes. */
.focus-mix-grid { padding: 12px 16px 8px; display: grid; gap: 10px; }
.focus-mix-card { padding: 12px; border: 1px solid #314154; background: #141d27; }
.focus-mix-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.focus-mix-top span { color: #d9e2ea; font-size: 12px; font-weight: 700; }
.focus-mix-top b { color: var(--blue); font-size: 13px; font-variant-numeric: tabular-nums; }
.focus-mix-bar { height: 5px; margin: 9px 0 10px; overflow: hidden; background: #263444; }
.focus-mix-bar i { display: block; height: 100%; background: var(--blue); }
.focus-mix-card.mix-0 .focus-mix-top b { color: var(--green); }
.focus-mix-card.mix-0 .focus-mix-bar i { background: var(--green); }
.focus-mix-card.mix-1 .focus-mix-top b { color: var(--blue); }
.focus-mix-card.mix-2 .focus-mix-top b { color: var(--orange); }
.focus-mix-card.mix-2 .focus-mix-bar i { background: var(--orange); }
.focus-mix-card.mix-3 .focus-mix-top b { color: #c5a8df; }
.focus-mix-card.mix-3 .focus-mix-bar i { background: #8e7fa8; }
.focus-mix-card strong, .focus-mix-card small { display: block; }
.focus-mix-card strong { color: var(--ink); font-size: 11px; }
.focus-mix-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.focus-mix-preview { display: grid; gap: 5px; margin: 10px 0; }
.focus-mix-preview a, .focus-mix-preview span { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.focus-mix-preview a:hover { color: var(--blue); text-decoration: underline; }
.focus-mix-card button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 10px; }
.focus-mix-card button:hover { text-decoration: underline; }
.signal-type.travel { color: #8bd4ba; background: rgba(83, 170, 136, 0.15); }
.signal-type.tech { color: #9ac9e8; background: rgba(86, 151, 201, 0.16); }
.signal-type.finance { color: #e0b47c; background: rgba(205, 146, 70, 0.16); }

html[data-theme="dark"] { --ink: #edf2f5; --muted: #a7b4c0; --line: #324150; --surface: #19232d; --canvas: #111820; --green: #8ccbb1; --green-soft: rgba(103, 187, 150, 0.13); --orange: #e0b37b; --orange-soft: rgba(218, 165, 100, 0.13); --blue: #91c4e3; --blue-soft: rgba(113, 174, 216, 0.14); }
html[data-theme="dark"] body { color: #edf2f5; background-color: #111820; background-image: linear-gradient(rgba(148, 185, 210, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 185, 210, 0.018) 1px, transparent 1px); }
html[data-theme="dark"] .panel, html[data-theme="dark"] .metric-card, html[data-theme="dark"] .task-progress-panel, html[data-theme="dark"] .positioning-panel, html[data-theme="dark"] .insight-band, html[data-theme="dark"] .topic-toolbar, html[data-theme="dark"] .source-toolbar, html[data-theme="dark"] .source-group, html[data-theme="dark"] .methodology-panel, html[data-theme="dark"] .next-step-banner { border-color: #324150; }
html[data-theme="dark"] .signal-row, html[data-theme="dark"] .question-row, html[data-theme="dark"] .source-item { border-bottom-color: #2d3a49; }
html[data-theme="dark"] .signal-body strong, html[data-theme="dark"] .news-hot-row strong { color: #edf2f5; }
html[data-theme="dark"] .focus-mix-card { border-color: #324150; background: #151f29; }

html[data-theme="light"] { --ink: #1d2a30; --muted: #50616a; --line: #bdcac7; --surface: #f8faf9; --canvas: #e3eae8; --green: #236f5a; --green-soft: #d8ebe3; --orange: #9a5b27; --orange-soft: #f3e2d2; --blue: #2c688d; --blue-soft: #d9eaf4; }
html[data-theme="light"] body { color: #1d2a30; background-color: #e3eae8; background-image: linear-gradient(rgba(39, 75, 85, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 75, 85, 0.018) 1px, transparent 1px); }
html[data-theme="light"] .sidebar { color: #1d2a30; background: #edf2f0; border-right-color: #bdcac7; }
html[data-theme="light"] .topbar { background: rgba(239, 244, 242, 0.96); border-bottom-color: #bdcac7; }
html[data-theme="light"] .panel, html[data-theme="light"] .metric-card, html[data-theme="light"] .task-progress-panel, html[data-theme="light"] .positioning-panel, html[data-theme="light"] .topic-toolbar, html[data-theme="light"] .source-toolbar, html[data-theme="light"] .source-group, html[data-theme="light"] .methodology-panel, html[data-theme="light"] .next-step-banner, html[data-theme="light"] .workflow-panel, html[data-theme="light"] .integration-materials-panel { color: #1d2a30; border-color: #bdcac7; background: #f8faf9; box-shadow: 0 5px 16px rgba(33, 54, 61, 0.06); }
html[data-theme="light"] .metric-card.accent-card { color: #173f35; border-color: #8eb3a2; background: #dbeae4; }
html[data-theme="light"] .insight-band { color: #edf5f3; border-color: #244a43; background: #234d45; }
html[data-theme="light"] .insight-copy h2 { color: #ffffff; }
html[data-theme="light"] .insight-copy p { color: #d4e2de; }
html[data-theme="light"] .signal-row, html[data-theme="light"] .question-row, html[data-theme="light"] .source-item { border-bottom-color: #d5dfdc; }
html[data-theme="light"] .signal-body strong, html[data-theme="light"] .news-hot-row strong, html[data-theme="light"] .focus-mix-card strong { color: #1d2a30; }
html[data-theme="light"] .signal-body span, html[data-theme="light"] .question-row span, html[data-theme="light"] .focus-mix-card small, html[data-theme="light"] .focus-mix-preview a, html[data-theme="light"] .focus-mix-preview span { color: #50616a; }
html[data-theme="light"] .focus-mix-card { border-color: #bdcac7; background: #f1f5f3; }
html[data-theme="light"] .focus-mix-top span { color: #1d2a30; }
html[data-theme="light"] .focus-mix-bar { background: #d6e0dc; }
html[data-theme="light"] .signal-type.travel { color: #1e6652; background: #d9ebe3; }
html[data-theme="light"] .signal-type.tech { color: #215d81; background: #dcebf4; }
html[data-theme="light"] .signal-type.finance { color: #87501f; background: #f2e2d0; }
@media (max-width: 760px) { .focus-mix-grid { grid-template-columns: 1fr; } }
