/* Research workspace — an open canvas with clear purple actions. */
:root {
  --canvas: #fbfafc;
  --surface: #fff;
  --sidebar: #f3eff8;
  --ink: #2b2632;
  --body: #5d5565;
  --muted: #706579;
  --line: #e7e0e8;
  --line-strong: #d4c7dc;
  --accent: #7053a6;
  --accent-hover: #5c418d;
  --accent-soft: #eee8f6;
  --highlight: #85619b;
  --apricot: #f3bd7c;
  --plum: #352b48;
  --coral: var(--accent);
  --coral-dark: var(--accent-hover);
  --coral-soft: var(--accent-soft);
  --radius: 12px;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 600; }
input, select, textarea { min-width: 0; }
textarea { resize: vertical; }
::selection { background: #efcfaa; color: #352b48; }
:focus-visible { outline: 3px solid #b69cc8; outline-offset: 3px; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }

/* A light, quiet rail keeps attention on the research. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: 228px; padding: 24px 16px 20px; overflow-y: auto; background: var(--sidebar); color: var(--body); border-right: 1px solid var(--line); }
.workspace-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid #e0d6e8; border-radius: 10px; background: #fffdfb; text-align: left; }
.workspace-switch:hover { background: #fff; }
.workspace-switch > span:nth-child(2) { min-width: 0; }
.workspace-switch strong { display: block; color: var(--ink); font-size: 13px; }
.workspace-switch small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.workspace-switch > svg { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.user-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); font-size: 13px; font-weight: 600; }
.workspace-switch .user-avatar { color: #805329; background: #f8e3c9; }
.workspace-switch .user-avatar svg { width: 17px; height: 17px; }
.nav-label { margin: 28px 14px 10px; color: var(--muted); font-size: 11px; letter-spacing: .8px; }
.secondary-label { margin-top: 27px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 45px; margin: 5px 0; padding: 10px 14px; border-radius: 8px; color: var(--body); font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { color: var(--accent); background: #eae2f0; }
.nav-item.active { color: #5e3e79; background: #e5d8ef; font-weight: 600; box-shadow: none; }
.nav-item svg, .nav-icon { width: 18px; height: 18px; }
.nav-icon { display: inline-flex; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; margin-left: auto; padding: 0 5px; color: var(--body); background: #eaeaef; border-radius: 5px; font-size: 11px; }
.nav-item.active .nav-count { color: #5e3e79; background: #d7c5e6; }
.sidebar-bottom { padding-top: 28px; margin-top: auto; }
.profile-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 13px; border-radius: 8px; color: var(--body); text-align: left; font-size: 12px; }
.profile-row:hover { color: var(--accent); background: #eeeeF2; }
.profile-row svg { width: 16px; height: 16px; }
.storage-label { display: flex; align-items: center; gap: 7px; margin: 10px 13px 0; color: var(--muted); font-size: 10px; }
.status-dot { width: 6px; height: 6px; display: inline-block; flex-shrink: 0; background: #299879; border-radius: 50%; }
.sidebar .status-dot { background: var(--highlight); }

.main-shell { margin-left: 228px; }
.topbar { position: sticky; top: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 18px; height: 68px; padding: 0 38px; background: #fdfbf8ed; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); }
.breadcrumb svg { width: 13px; height: 13px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.workspace-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--body); font-size: 12px; }
.workspace-badge.demo { padding: 5px 10px; background: #f6f6f8; border: 1px solid var(--line); border-radius: 7px; }
.workspace-badge.demo .status-dot { background: #8b839d; }
.page-content { max-width: 1440px; margin: 0 auto; padding: 34px 38px 42px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 25px; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { margin-bottom: 8px; color: #78538b; font-size: 10px; font-weight: 650; letter-spacing: 1.4px; }
.page-heading h1 { color: var(--ink); font-size: 29px; line-height: 1.4; font-weight: 650; letter-spacing: -.5px; overflow-wrap: anywhere; }
.subtitle { margin-top: 9px; color: var(--body); font-size: 13px; line-height: 1.8; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 9px #61417a20; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 4px 12px #61417a30; }
.button.secondary { color: var(--body); background: #ffffffb8; border-color: var(--line-strong); }
.button.secondary:hover:not(:disabled) { color: var(--accent); border-color: var(--line-strong); background: #f6f6f8; }
.button.ghost { color: var(--body); background: transparent; }
.button.ghost:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.button.small { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.button.danger { color: #b43e4b; border-color: #e9c5cb; background: #fff5f6; }
.button.danger:hover { background: #ffeaed; }
.button:active:not(:disabled) { transform: translateY(1px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--body); border-radius: 8px; }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.icon-button svg { width: 18px; height: 18px; }
.full-width { width: 100%; }

/* One title, one composer: an open research entry, without a banner. */
.research-start { padding: 20px 0 32px; border-bottom: 1px solid var(--line); }
.research-intro h1 { color: #2e263b; font-size: 33px; line-height: 1.4; font-weight: 650; letter-spacing: -.8px; }
.research-intro p { margin-top: 10px; color: var(--body); font-size: 14px; line-height: 1.8; }
.task-composer { margin-top: 26px; padding: 21px 24px 16px; background: #fff; border: 1px solid #d8cee6; border-radius: 14px; box-shadow: 0 4px 8px #48345f03, 0 12px 30px #48345f06; transition: border-color .15s, box-shadow .15s; }
.task-composer:focus-within { border-color: #a184c7; box-shadow: 0 0 0 3px #9d79ca14, 0 8px 24px #48345f06; }
.task-composer textarea { display: block; width: 100%; min-height: 84px; padding: 0; border: 0; outline: none; color: var(--ink); background: none; resize: vertical; font-size: 15px; line-height: 1.85; }
.task-composer textarea::placeholder { color: #787080; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; }
.composer-source { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #665773; font-size: 12px; line-height: 1.65; }
.composer-source > svg:first-child { width: 16px; height: 16px; color: #8b71a8; }
.composer-source > svg:last-child { width: 12px; height: 12px; color: #93889f; }
.composer-source > span { display: flex; flex-wrap: wrap; gap: 0 10px; }
.composer-source small { color: var(--muted); font-size: 12px; }
.composer-source:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.composer-footer .button.primary { flex-shrink: 0; min-height: 42px; padding: 10px 19px; border-radius: 9px; background: #7552ae; border-color: #7552ae; color: #fff; box-shadow: 0 3px 7px #7552ae1a; }
.composer-footer .button.primary:hover:not(:disabled) { background: #614195; border-color: #614195; box-shadow: 0 4px 10px #7552ae26; }
.question-suggestions { display: flex; align-items: baseline; gap: 12px 18px; margin-top: 18px; }
.question-suggestions > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.suggestion-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.suggestion-list button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 3px 0; color: #786584; font-size: 12px; line-height: 1.6; text-align: left; }
.suggestion-list button svg { width: 13px; height: 13px; color: #9b85ad; transform: rotate(-35deg); }
.suggestion-list button:hover { color: #654293; text-decoration: underline; text-underline-offset: 4px; }
.suggestion-list button:hover svg { color: #654293; }
.research-start + .section-head { margin-top: 28px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 27px 0 16px; }
.section-head h2 { font-size: 17px; color: var(--ink); }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.section-head > a, .panel-header > a { display: inline-flex; align-items: center; gap: 5px; color: var(--body); font-size: 12px; white-space: nowrap; }
.section-head > a:hover, .panel-header > a:hover { color: var(--accent); }
.section-head > a svg, .panel-header > a svg { width: 14px; height: 14px; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.workflow-card { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 176px; padding: 20px; border: 1px solid #e6dde7; border-radius: 12px; background: #fffdfb; text-align: left; transition: border-color .18s, box-shadow .18s, transform .18s; box-shadow: 0 3px 9px #352b4804; }
.workflow-card:hover { border-color: #ac8bc4; box-shadow: 0 7px 18px #61417a10; transform: translateY(-2px); }
.workflow-icon { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; margin-bottom: 15px; border-radius: 9px; color: #75528f; background: #ecdff7; }
.workflow-icon.competitor { color: #9c6538; background: #fae5cb; }
.workflow-icon.opportunity { color: #75528f; background: #ecdff7; }
.workflow-icon.sentiment { color: #9c6538; background: #fae5cb; }
.workflow-icon.content { color: #75528f; background: #ecdff7; }
.workflow-icon svg { width: 19px; height: 19px; }
.workflow-index { margin-left: auto; align-self: flex-start; color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, monospace; }
.workflow-title { color: var(--ink); font-size: 15px; }
.workflow-desc { margin-top: 5px; color: var(--body); font-size: 12px; line-height: 1.8; }
.workflow-arrow { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 12px; color: #79598e; border-top: 1px solid var(--accent-soft); font-size: 11px; }
.workflow-arrow svg { width: 15px; height: 15px; }
.workflow-card:hover .workflow-arrow { color: var(--accent); }
.workflow-grid.expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.stat-card { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: 0; }
.stat-label { display: flex; align-items: center; gap: 7px; color: var(--body); font-size: 12px; }
.stat-label svg { width: 15px; height: 15px; color: var(--highlight); }
.stat-value { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; color: #624479; font-size: 31px; line-height: 1.4; font-weight: 650; letter-spacing: -1px; }
.stat-value small { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.stat-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.panel + .panel { margin-top: 20px; }
.two-column > .panel + .panel { margin-top: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 23px 16px; }
.panel-header h2, .panel-header h3 { color: var(--ink); font-size: 15px; }
.panel-header > svg { color: var(--highlight); width: 18px; height: 18px; }
.panel-header .flex-row { flex-wrap: wrap; justify-content: flex-end; }
.panel-body { padding: 0 23px 23px; }
.panel-body p { color: var(--body); font-size: 14px; line-height: 1.9; }
.panel-body > .flex-row { margin-top: 18px; flex-wrap: wrap; }
.task-list { padding: 0 22px 8px; }
.task-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover .task-info strong { color: var(--accent); }
.task-type-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 38px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
.task-type-icon svg { width: 17px; height: 17px; }
.task-info { flex: 1; min-width: 0; }
.task-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13px; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.task-meta i { font-style: normal; }
.task-arrow { color: var(--muted); }
.task-arrow svg { width: 15px; height: 15px; }
.tag, .platform-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 11px; line-height: 1.6; white-space: nowrap; color: var(--body); background: var(--accent-soft); }
.tag.green { color: #23734d; background: #eaf5ef; }
.tag.amber { color: #8c621b; background: #fcf3df; }
.tag.purple { color: #77558c; background: #eee3f6; }
.tag.coral { color: #77558c; background: #eee3f6; }
.tag.gray { color: var(--body); background: #f0f0f3; }
.steps { display: flex; flex-direction: column; gap: 19px; }
.step { position: relative; min-height: 30px; padding-left: 37px; }
.step > span { position: absolute; top: 2px; left: 0; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 7px; color: var(--body); background: #f6f6f8; font-size: 10px; font-weight: 600; }
.step strong { display: block; color: var(--ink); font-size: 13px; }
.step p { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.starter-panel .full-width { margin-top: 21px; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 285px; padding: 40px 24px; text-align: center; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; margin-bottom: 17px; color: var(--accent); background: var(--accent-soft); border-radius: 16px; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { font-size: 16px; color: var(--ink); }
.empty-state p { max-width: 420px; margin: 9px 0 20px; color: var(--muted); font-size: 13px; }
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--body); background: #f6f6f8; font-size: 12px; line-height: 1.85; }
.notice > svg { width: 17px; height: 17px; margin-top: 3px; }
.notice.warning { color: #886321; background: #fffaee; border-color: #ead9b1; }
.notice.success { color: #276b48; background: #eff9f2; border-color: #cee7d6; }
.notice.field { flex-direction: row; margin: 0; }
.notice.field > span:first-child { flex: 0 0 auto; }
.helper, .text-muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-coral { color: var(--accent); }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 9px; background: var(--accent-soft); }
.filter-tabs button { padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; color: var(--body); font-size: 12px; }
.filter-tabs button:hover { color: var(--accent); }
.filter-tabs button.active { color: var(--accent); background: #fff; border-color: var(--line); box-shadow: 0 1px 4px #292a3608; font-weight: 600; }
.search-input { display: flex; align-items: center; gap: 9px; min-width: 255px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--muted); }
.search-input input { width: 100%; color: var(--ink); font-size: 12px; outline: 0; border: 0; background: none; }
.search-input svg { width: 16px; height: 16px; }
.search-input:focus-within { border-color: var(--accent); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.evidence-card { display: flex; flex-direction: column; min-width: 0; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.evidence-card:hover { border-color: var(--line-strong); }
.evidence-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.platform-pill.xiaohongshu { color: #b6384d; background: #fff0f3; }
.platform-pill.douyin { color: var(--body); background: var(--accent-soft); }
.platform-pill.bilibili { color: #236987; background: #eaf6fc; }
.evidence-title { padding: 0; text-align: left; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.7; }
.evidence-title:hover { color: var(--accent); }
.evidence-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 12px 0 20px; color: var(--body); font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.evidence-author { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.evidence-author svg { width: 14px; height: 14px; }
.evidence-metrics { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 12px; }
.source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.source-link svg { width: 13px; height: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { margin-bottom: 8px; color: var(--body); font-size: 13px; font-weight: 550; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.7; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #292a3612; }
.field .helper { margin-top: 7px; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: flex; align-items: center; justify-content: center; padding: 25px; background: #25262c50; backdrop-filter: blur(4px); }
.modal { display: flex; flex-direction: column; width: min(100%, 560px); max-height: calc(100dvh - 50px); background: #fff; border-radius: 16px; box-shadow: 0 24px 90px #25262c26; overflow: hidden; }
.modal.wide { width: min(100%, 760px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 16px; padding: 22px 27px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 20px; line-height: 1.5; }
.modal-header .icon-button { flex-shrink: 0; }
.modal-body { overflow-y: auto; padding: 24px 27px; }
.modal-body > p, .import-intro p { color: var(--body); font-size: 14px; line-height: 1.9; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-shrink: 0; padding: 17px 27px; border-top: 1px solid var(--line); background: #f6f6f8; }
.workspace-options, .draft-format-options { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.workspace-option, .format-option { display: flex; align-items: center; gap: 13px; width: 100%; padding: 17px; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.workspace-option:hover, .format-option:hover { border-color: var(--line-strong); background: #f6f6f8; }
.workspace-option > span:not(.user-avatar), .format-option > span { min-width: 0; flex: 1; }
.workspace-option strong, .format-option strong { display: block; color: var(--ink); font-size: 14px; }
.workspace-option small, .format-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.workspace-option > svg:last-child, .format-option > svg:last-child { width: 15px; height: 15px; color: var(--highlight); }
.format-option > svg:first-child { box-sizing: content-box; padding: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
.import-tools { flex-wrap: wrap; margin: 19px 0; }
#import-text { font-family: ui-monospace, SFMono-Regular, Menlo, 'PingFang SC', monospace; font-size: 12px; }
.import-errors { padding: 14px 17px 14px 32px; color: #895c27; background: #fff8ed; border: 1px solid #eedabc; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.copy-fallback { width: 100%; padding: 13px; color: var(--body); background: #f6f6f8; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; }
.report-picker .task-info small { color: var(--muted); font-size: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 23px; align-items: start; }
.report-main { min-width: 0; }
.report-aside { display: flex; flex-direction: column; gap: 17px; position: sticky; top: 89px; }
.report-aside .panel + .panel { margin-top: 0; }
.report-aside .panel-header { padding: 18px 20px 12px; }
.report-aside .panel-body { padding: 0 20px 20px; }
.report-aside .panel-body p { color: var(--body); font-size: 13px; }
.report-aside .step { margin-bottom: 16px; }
.report-banner { padding: 25px 28px; margin-bottom: 23px; border: 1px solid #ded0e8; border-radius: 14px; background: #eee5f6; }
.report-banner > h2 { margin-top: 17px; color: var(--ink); font-size: 19px; line-height: 1.8; font-weight: 550; }
.report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.report-stat { padding: 12px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.report-stat strong { display: block; color: var(--accent); font-size: 27px; line-height: 1.5; }
.report-stat span { color: var(--muted); font-size: 12px; }
.finding-card { padding: 24px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.finding-number { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 29px; height: 29px; color: var(--accent); background: var(--accent-soft); border-radius: 7px; font-size: 11px; font-weight: 600; }
.finding-title { color: var(--ink); font-size: 16px; line-height: 1.7; }
.finding-text { margin-top: 15px; color: var(--body); font-size: 14px; line-height: 1.9; }
.quote { padding: 14px 16px; margin: 17px 0; border-left: 3px solid #b090c8; border-radius: 0 8px 8px 0; background: #f8f4fc; color: var(--body); font-size: 14px; line-height: 1.9; }
.citation { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 3px 7px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; font-size: 11px; }
.citation:hover { background: var(--accent-soft); }
.citation svg { width: 12px; height: 12px; }
.recommendation { margin-top: 17px; padding: 15px 17px; border: 1px solid #eedcc1; border-radius: 9px; background: #fbf1e4; }
.recommendation > span { color: #766343; font-size: 12px; font-weight: 600; }
.recommendation > span svg { width: 15px; height: 15px; margin-right: 5px; }
.recommendation p { margin-top: 7px; color: #625a49; font-size: 14px; line-height: 1.9; }
.finding-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 17px; }
.limitations p + p { margin-top: 10px; }
.scope-detail p { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 9px; font-size: 12px !important; }
.scope-detail strong { max-width: 67%; color: var(--ink); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.draft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.draft-card { display: flex; flex-direction: column; padding: 21px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.draft-card h3 { margin: 16px 0 12px; color: var(--ink); font-size: 17px; line-height: 1.7; }
.draft-preview { height: 180px; padding: 15px; margin-bottom: 16px; overflow: hidden; color: var(--body); background: #f6f6f8; border-radius: 9px; white-space: pre-wrap; font-size: 13px; line-height: 1.9; }
.draft-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.draft-actions .helper { font-size: 11px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 24px; align-items: start; }
.editor-panel .panel-header { border-bottom: 1px solid var(--line); }
.editor-panel .panel-body { padding-top: 23px; }
.editor-panel .field + .field { margin-top: 20px; }
.editor-panel textarea { line-height: 1.95; }
.editor-preview { min-width: 0; padding: 23px; background: #f0e8f6; border: 1px solid var(--line); border-radius: 14px; }
.phone-preview { width: 100%; padding: 19px 22px 26px; border: 4px solid #fbfbfc; border-radius: 25px; background: #fff; box-shadow: 0 10px 30px #292a3608; }
.phone-bar { width: 46px; height: 5px; margin: 0 auto 22px; border-radius: 5px; background: var(--line); }
.preview-account { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.preview-account strong { font-size: 13px; }
.preview-account .helper { margin-left: auto; font-size: 10px; }
.preview-title { margin: 19px 0 13px; color: var(--ink); font-size: 18px; line-height: 1.6; }
.preview-body { color: var(--body); font-size: 13px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-preview > .panel { margin-top: 22px; }
.editor-preview .panel-header { padding: 18px 18px 10px; }
.editor-preview .panel-body { padding: 0 18px 18px; }
.editor-preview .panel-body p { font-size: 12px; }
.editor-preview .full-width { margin-top: 17px; }
.result-table { overflow-x: auto; }
.result-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.result-table th { padding: 16px 19px; color: var(--body); background: #f6f6f8; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12px; font-weight: 550; }
.result-table td { padding: 18px 19px; color: var(--body); border-bottom: 1px solid var(--line); white-space: nowrap; }
.result-table td:first-child { min-width: 230px; white-space: normal; }
.result-table td strong { display: block; color: var(--ink); }
.result-table td small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.result-table td .source-link { margin-top: 8px; }
.result-table tr:last-child td { border-bottom: 0; }
.result-table tbody tr:hover { background: #f6f6f8; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.connection-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 8px 13px; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.connection-icon { display: flex; align-items: center; justify-content: center; grid-row: span 2; width: 42px; height: 42px; color: var(--accent); background: var(--accent-soft); border-radius: 11px; }
.connection-card > h3 { font-size: 16px; color: var(--ink); }
.connection-card > .tag { grid-column: 2; justify-self: start; }
.connection-card > p { grid-column: 1 / -1; margin-top: 10px; color: var(--body); font-size: 14px; line-height: 1.9; }
.connection-card > .button { grid-column: 1 / -1; justify-self: start; margin-top: 9px; }
.process-panel { margin-top: 25px; }
.progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 14px 23px 28px; }
.progress-step { display: flex; flex-direction: column; gap: 6px; }
.progress-step > span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 5px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: #f6f6f8; font-size: 12px; }
.progress-step strong { color: var(--ink); font-size: 13px; }
.progress-step small { color: var(--muted); font-size: 11px; }
.drawer-backdrop { position: fixed; z-index: 75; inset: 0; background: #25262c50; backdrop-filter: blur(3px); }
.drawer { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(100%, 560px); background: #fff; box-shadow: -15px 0 45px #25262c26; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 27px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 600; }
.drawer-body { overflow-y: auto; padding: 24px 27px; }
.drawer-body h2 { margin: 18px 0 12px; color: var(--ink); font-size: 23px; line-height: 1.6; }
.drawer-body .source-body { margin: 23px 0 20px; color: var(--body); font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-body .evidence-metrics { padding-top: 17px; margin-top: 19px; border-top: 1px solid var(--line); }
.drawer-body .section-head { padding-top: 20px; border-top: 1px solid var(--line); }
.drawer-body .section-head h3 { font-size: 15px; }
.drawer-body .section-head > span { color: var(--muted); font-size: 12px; }
.comment { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comment-author { color: var(--ink); font-size: 12px; }
.comment p { margin-top: 8px; color: var(--body); font-size: 14px; line-height: 1.9; }
.drawer-actions { margin-top: 24px; }
.toast { position: fixed; z-index: 110; bottom: 26px; left: calc(50% + 114px); transform: translateX(-50%); max-width: min(90vw, 600px); padding: 14px 20px; border: 1px solid #474953; border-radius: 10px; color: #fff; background: #303139; box-shadow: 0 8px 26px #25262c26; font-size: 13px; }
.toast.error { background: #953d4a; border-color: #b6616e; }
.spinner { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.loading-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flex-row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-menu, .sidebar-backdrop { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1150px) {
  .sidebar { width: 210px; padding-left: 13px; padding-right: 13px; }
  .main-shell { margin-left: 210px; }
  .page-content { padding-left: 26px; padding-right: 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .workflow-card { padding: 17px; }
  .workflow-desc { font-size: 12px; }
  .two-column { grid-template-columns: minmax(0, 1fr); }
  .two-column > .panel + .panel { margin-top: 0; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
  .report-aside .panel-header, .report-aside .panel-body { padding-left: 17px; padding-right: 17px; }
  .draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .editor-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .editor-preview > .panel { margin-top: 0; }
  .page-heading { flex-wrap: wrap; }
  .toast { left: calc(50% + 105px); }
}
@media (max-width: 940px) {
  .workflow-grid, .workflow-grid.expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .report-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .report-aside .panel:last-child { grid-column: 1 / -1; }
  .progress-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .research-start { padding-top: 12px; }
  .research-intro h1 { font-size: 29px; }
  .question-suggestions { display: block; }
  .suggestion-list { margin-top: 5px; }

  .sidebar { width: 228px; transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop { position: fixed; display: block; inset: 0; z-index: 35; background: #25262c50; backdrop-filter: blur(2px); }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; margin-left: -6px; }
  .topbar { height: 64px; padding: 0 22px; gap: 12px; }
  .topbar-actions { gap: 10px; }
  .topbar-actions .workspace-badge { font-size: 10px; padding: 4px 7px; }
  .page-content { padding: 26px 22px 36px; }
  .page-heading h1 { font-size: 25px; }
  .workflow-card { min-height: 185px; padding: 20px; }
  .stat-card { padding: 18px; }
  .stat-meta { font-size: 11px; }
  .toast { left: 50%; }
}
@media (max-width: 520px) {
  .research-start { padding: 9px 0 25px; }
  .research-intro h1 { font-size: 27px; letter-spacing: -.5px; }
  .research-intro p { max-width: 330px; font-size: 13px; line-height: 1.85; }
  .task-composer { margin-top: 21px; padding: 17px 16px 14px; border-radius: 12px; }
  .task-composer textarea { min-height: 102px; font-size: 14px; }
  .composer-footer { gap: 12px; margin-top: 14px; }
  .composer-source { gap: 7px; font-size: 11px; }
  .composer-source > span { display: block; }
  .composer-source small { display: block; font-size: 10px; }
  .composer-source > svg:last-child { display: none; }
  .composer-footer .button.primary { min-height: 40px; padding: 9px 13px; font-size: 12px; }
  .question-suggestions { margin-top: 18px; }
  .suggestion-list { gap: 0 16px; }
  .suggestion-list button { min-height: 34px; font-size: 12px; }

  .topbar { padding: 0 17px; }
  .topbar-actions .workspace-badge { display: none; }
  .topbar-actions .button { min-height: 34px; padding: 7px 11px; font-size: 12px; }
  .breadcrumb { gap: 6px; font-size: 11px; }
  .page-content { padding: 25px 16px 32px; }
  .page-heading { gap: 14px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 24px; line-height: 1.45; }
  .subtitle { font-size: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  .heading-actions .button { min-height: 35px; padding: 8px 11px; font-size: 12px; }
  .section-head { align-items: flex-start; gap: 9px; margin-top: 25px; }
  .section-head h2 { font-size: 16px; }
  .section-head p { font-size: 11px; max-width: 240px; }
  .section-head > a { font-size: 11px; padding-top: 3px; }
  .workflow-grid, .workflow-grid.expanded { gap: 11px; }
  .workflow-card { padding: 16px; min-height: 185px; }
  .workflow-title { font-size: 14px; }
  .workflow-desc { font-size: 12px; }
  .workflow-icon { margin-bottom: 13px; }
  .workflow-index { font-size: 10px; }
  .workflow-arrow { font-size: 11px; }
  .overview-grid { margin-top: 20px; }
  .stat-card { padding: 15px 11px; }
  .stat-label { font-size: 11px; }
  .stat-label svg { display: none; }
  .stat-value { gap: 4px; font-size: 27px; flex-wrap: wrap; }
  .stat-value small { font-size: 10px; }
  .stat-meta { font-size: 10px; line-height: 1.8; }
  .panel-header { padding: 18px 18px 14px; }
  .panel-header h2, .panel-header h3 { font-size: 14px; }
  .panel-body { padding-left: 18px; padding-right: 18px; }
  .task-list { padding-left: 17px; padding-right: 17px; }
  .task-row { flex-wrap: wrap; gap: 8px; }
  .task-info { flex-basis: calc(100% - 46px); }
  .task-info strong { white-space: normal; font-size: 13px; }
  .task-row > .tag { margin-left: 45px; }
  .task-arrow { display: none; }
  .toolbar { gap: 13px; }
  .search-input { min-width: 0; width: 100%; order: -1; }
  .filter-tabs button { padding: 7px 10px; }
  .evidence-grid, .draft-grid, .settings-grid { grid-template-columns: 1fr; }
  .evidence-card { padding: 20px; }
  .notice { flex-wrap: wrap; }
  .notice > span { flex: 1; }
  .notice > .button { margin-left: auto; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field.full { grid-column: auto; }
  .field label { font-size: 12px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 13px; }
  .modal-header { padding: 20px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; flex-wrap: wrap; }
  .workspace-option, .format-option { padding: 13px; }
  .workspace-option strong, .format-option strong { font-size: 13px; }
  .workspace-option small, .format-option small { font-size: 11px; }
  .report-banner { padding: 20px; }
  .report-banner > .flex-row { flex-wrap: wrap; }
  .report-banner > h2 { font-size: 17px; }
  .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .report-stat { padding: 10px 14px; }
  .report-aside { grid-template-columns: 1fr; }
  .finding-card { padding: 20px; }
  .finding-card > .flex-row { align-items: flex-start; }
  .finding-title { font-size: 15px; }
  .quote { padding: 12px 13px; }
  .finding-actions .button { margin-left: auto; }
  .editor-preview { display: block; padding: 18px; }
  .editor-preview > .panel { margin-top: 20px; }
  .editor-panel .panel-header { flex-wrap: wrap; }
  .editor-panel .panel-header .flex-row { justify-content: flex-start; }
  .editor-panel .panel-body > .flex-row { flex-wrap: wrap; }
  .progress-steps { grid-template-columns: 1fr; gap: 18px; }
  .progress-step { display: grid; grid-template-columns: 30px 1fr; gap: 0 12px; }
  .progress-step > span { grid-row: span 2; margin: 0; }
  .drawer-header { padding: 20px; }
  .drawer-body { padding: 22px 20px; }
  .drawer-body h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Product context and the five research-to-creation paths. */
.product-context { display:flex; align-items:center; gap:16px; padding:16px 18px; margin-bottom:22px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.product-context-icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0; color:var(--accent); background:var(--accent-soft); border-radius:10px; }
.product-context-select { min-width:150px; max-width:270px; }
.product-context-select label { display:block; color:var(--muted); font-size:10px; margin-bottom:3px; }
.product-context-select select { width:100%; max-width:100%; padding:0 20px 0 0; border:0; background:transparent; font-size:14px; font-weight:600; text-overflow:ellipsis; }
.product-context-audience { flex:1; min-width:0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.product-context > .flex-row { flex-shrink:0; gap:5px; }
.workflow-grid.research-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.workflow-grid.creation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.workflow-card { background:#fff; }
.workflow-card .workflow-arrow { margin-top:auto; }
.workflow-output { margin:13px 0 18px; color:var(--muted); font-size:11px; line-height:1.8; }
.workflow-icon.promotion { color:#976237; background:#fae8d3; }
.workflow-icon.audience { color:#627a69; background:#e8f0e9; }
.workflow-icon.innovation { color:#75528f; background:#ecdff7; }
.workflow-icon.audience-content { color:#75528f; background:#ecdff7; }
.workflow-icon.viral-content { color:#976237; background:#fae8d3; }
.creation-card { background:linear-gradient(135deg,#f9f6fc 0%,#fff 70%); }
.creation-card:last-child { background:linear-gradient(135deg,#fcf8f1 0%,#fff 70%); }
.workflow-bridge { display:flex; justify-content:center; align-items:center; gap:8px; margin:14px 0; font-size:11px; color:var(--muted); }
.workflow-bridge svg { width:14px; height:14px; }
.creation-explainer { display:grid; grid-template-columns:1fr 1fr; gap:28px; padding:0 23px 20px; }
.creation-explainer strong { font-size:13px; color:var(--accent); }
.creation-explainer p { margin-top:8px; color:var(--body); font-size:13px; line-height:1.9; }
.product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.product-tile { display:flex; align-items:center; gap:12px; min-width:0; padding:18px; border:1px solid var(--line); border-radius:11px; background:#fff; text-align:left; }
.product-tile > span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.product-tile strong, .product-tile small { display:block; }
.product-tile strong { font-size:14px; }
.product-tile small { margin-top:4px; color:var(--muted); font-size:11px; }
.product-tile.selected { border-color:#b99bd1; background:#f9f5fc; }
.product-form-footer { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.task-product-summary { padding:15px 18px; border:1px solid var(--line); border-radius:9px; background:#f9f6fc; }
.task-product-summary p, .task-product-summary small { display:block; margin-top:6px; color:var(--body); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-product-summary small { max-height:76px; overflow:auto; }
.evidence-selection { min-width:0; margin:0; padding:14px 16px; border:1px solid var(--line); border-radius:10px; }
.evidence-selection legend { padding:0 5px; font-size:12px; font-weight:600; }
.selection-tools { display:flex; gap:8px; margin:5px 0; }
.source-check-list { max-height:210px; overflow:auto; }
.source-check { display:flex !important; align-items:flex-start; gap:10px; margin:0 !important; padding:10px 0; border-top:1px solid #f0ebf2; cursor:pointer; }
.source-check input { width:16px !important; height:16px; min-height:0; padding:0; margin:3px 0 0; flex-shrink:0; accent-color:var(--accent); }
.source-check strong { display:block; font-weight:500; font-size:12px; line-height:1.6; }
.source-check small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.finding-details { margin:17px 0 0; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.finding-details > div { display:grid; grid-template-columns:100px minmax(0,1fr); border-bottom:1px solid var(--line); }
.finding-details > div:last-child { border:0; }
.finding-details dt { padding:11px 13px; background:#f9f7fb; color:var(--muted); font-size:11px; }
.finding-details dd { margin:0; padding:11px 13px; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.content-plan { margin-top:19px; padding:18px; border:1px solid #ded0eb; border-radius:10px; background:#faf7fd; }
.content-plan-label { color:var(--accent); font-size:11px; font-weight:600; margin-bottom:13px; }
.content-pair { display:grid; grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); gap:10px; align-items:center; margin-bottom:18px; }
.content-pair > div { align-self:stretch; padding:12px; border-radius:7px; background:#fff; border:1px solid var(--line); }
.content-pair > span { color:var(--accent); text-align:center; }
.content-pair small { color:var(--muted); font-size:10px; }
.content-plan p, .content-plan li { margin-top:7px; color:var(--body); font-size:13px; line-height:1.85; overflow-wrap:anywhere; }
.content-plan h4 { font-size:14px; }
.content-plan ol { padding-left:20px; }
@media(max-width:1100px) {
 .product-context { flex-wrap:wrap; gap:12px; }
 .product-context-audience { flex-basis:calc(100% - 320px); }
 .product-context > .flex-row { margin-left:auto; }
 .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .product-context { padding:13px; gap:10px; }
 .product-context-icon { width:33px; height:33px; }
 .product-context-select { flex:1; max-width:calc(100% - 45px); min-width:0; }
 .product-context-audience { flex-basis:100%; order:3; font-size:11px; }
 .product-context > .flex-row { order:4; margin:0; width:100%; justify-content:flex-end; }
 .workflow-grid.research-grid,.workflow-grid.creation-grid { grid-template-columns:1fr; gap:12px; }
 .workflow-card { min-height:0; padding:18px; }
 .workflow-card .workflow-icon { margin-bottom:10px; }
 .workflow-card .workflow-title { font-size:16px; }
 .workflow-output { margin:8px 0 13px; }
 .workflow-bridge { margin:12px 0; }
 .creation-explainer,.product-grid { grid-template-columns:1fr; }
 .product-form-footer { flex-direction:column; align-items:flex-start; }
 .content-pair { grid-template-columns:1fr; }
 .content-pair > span { text-align:left; margin-left:12px; }
 .finding-details > div { grid-template-columns:78px minmax(0,1fr); }
 .finding-details dt,.finding-details dd { padding:10px; }
}

.snapshot-update { display:flex !important; align-items:center; gap:8px; margin-top:12px !important; font-size:12px; }
.snapshot-update input { width:16px !important; height:16px; min-height:0; padding:0; accent-color:var(--accent); }
