  :root {
    --brand: #6C3DFF;
    --brand-light: #8B5CFF;
    --brand-dark: #4A1FCC;
    --surface: #0F0F13;
    --surface2: #18181F;
    --surface3: #22222C;
    --border: #2E2E3A;
    --text: #F0EFF8;
    --muted: #8887A0;
    --accent: #FF6B35;
    --content-width: 960px;
  }
  :root[data-theme="light"] {
    --brand: #6847E8;
    --brand-light: #7C5CF0;
    --brand-dark: #4F32C5;
    --surface: #F6F7FB;
    --surface2: #FFFFFF;
    --surface3: #EEF1F7;
    --border: #DDE2EE;
    --text: #172033;
    --muted: #687287;
    --accent: #E9602B;
  }
  * { box-sizing: border-box; }
  body { background: var(--surface); color: var(--text); font-family: 'Inter', system-ui, sans-serif; margin: 0; overflow-x: hidden; }
  ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--surface2); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .sidebar { background: var(--surface2); border-right: 1px solid var(--border); width: 260px; height: 100vh; position: fixed; top: 0; left: 0; display: flex; flex-direction: column; z-index: 100; overflow-y: auto; }
  .main { margin-left: 260px; min-height: 100vh; }
  .tab-btn { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; cursor: pointer; transition: all 0.15s; font-size: 14px; color: var(--muted); border: none; background: none; width: 100%; text-align: left; }
  .tab-btn:hover { background: var(--surface3); color: var(--text); }
  .tab-btn.active { background: var(--brand); color: white; }
  .tab-btn .step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
  .tab-btn.active .step-num { background: rgba(255,255,255,0.25); }
  .tab-btn.done .step-num { background: #22c55e; color: white; }
  .panel { display: none; padding: 32px; max-width: 960px; }
  .panel.active { display: block; }
  .card { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
  .btn-primary { background: var(--brand); color: white; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; gap: 8px; }
  .btn-primary:hover { background: var(--brand-light); }
  .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-secondary { background: var(--surface3); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 8px; }
  .btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
  .input-field { background: var(--surface3); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; padding: 10px 14px; width: 100%; outline: none; transition: border 0.15s; }
  .input-field:focus { border-color: var(--brand); }
  .input-field::placeholder { color: var(--muted); }
  .label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; display: block; }
  .badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
  .badge-purple { background: rgba(108,61,255,0.2); color: var(--brand-light); }
  .badge-green { background: rgba(34,197,94,0.15); color: #4ade80; }
  .badge-orange { background: rgba(255,107,53,0.15); color: #ff8c60; }
  .badge-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
  .output-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
  .score-bar { height: 6px; border-radius: 3px; background: var(--surface3); overflow: hidden; }
  .score-fill { height: 100%; border-radius: 3px; background: var(--brand); transition: width 0.5s; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { background: var(--surface3); color: var(--muted); font-weight: 600; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
  td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
  tr:last-child td { border-bottom: none; }
  tr:hover td { background: rgba(255,255,255,0.02); }
  .tag { display: inline-block; background: rgba(108,61,255,0.15); color: var(--brand-light); border-radius: 4px; padding: 2px 8px; font-size: 12px; margin: 2px; }
  .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .pulse { animation: pulse 1.5s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
  .section-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
  .section-sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
  .divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
  .platform-btn { border: 1px solid var(--border); background: var(--surface3); color: var(--muted); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; transition: all 0.15s; }
  .platform-btn.selected { border-color: var(--brand); background: rgba(108,61,255,0.15); color: var(--brand-light); }
  .awareness-btn { border: 1px solid var(--border); background: var(--surface3); color: var(--muted); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; transition: all 0.15s; text-align: left; }
  .awareness-btn.selected { border-color: var(--accent); background: rgba(255,107,53,0.1); color: #ff8c60; }
  .drop-zone { border: 2px dashed var(--border); border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; }
  .drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background: rgba(108,61,255,0.05); }
  .creative-thumb { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
  .creative-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
  .creative-thumb .remove-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.7); border: none; color: white; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
  .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
  .modal.open { display: flex; }
  .modal-box { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 480px; max-width: 90vw; }
  .client-chip { display: flex; align-items: center; gap: 8px; background: var(--surface3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: all 0.15s; }
  .client-chip:hover { border-color: var(--brand); }
  .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .status-dot.active { background: #22c55e; }
  .status-dot.empty { background: var(--border); }
  textarea.input-field { resize: vertical; min-height: 100px; }
  .copy-btn { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); padding: 4px 10px; font-size: 12px; cursor: pointer; transition: all 0.15s; }
  .copy-btn:hover { border-color: var(--brand); color: var(--brand-light); }
  select.input-field { cursor: pointer; }
  .db-indicator { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #4ade80; }
  .db-indicator .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
  .framework-select { background: var(--surface3); border: 1px solid var(--brand); border-radius: 8px; color: var(--brand-light); font-size: 13px; font-weight: 600; padding: 8px 12px; width: 100%; outline: none; cursor: pointer; }
  .voc-tip { background: rgba(108,61,255,0.08); border: 1px solid rgba(108,61,255,0.2); border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
  .voc-clean-toolbar { display: grid; grid-template-columns: minmax(220px, 280px) auto 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
  .voc-clean-status { display: none; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
  .voc-clean-preview { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 14px 0; }
  .voc-clean-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .voc-clean-preview-title { font-size: 14px; font-weight: 700; color: var(--text); }
  .voc-clean-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .voc-clean-result { min-height: 220px; font-size: 13px; line-height: 1.6; }
  .voc-clean-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 8px; }
  .stage-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(108,61,255,0.15); color: var(--brand-light); border: 1px solid rgba(108,61,255,0.25); }
  .sidebar-provider-btn { border: 1px solid var(--border); background: var(--surface3); color: var(--muted); border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
  .sidebar-provider-btn:hover { border-color: var(--brand); color: var(--text); }
  .sidebar-provider-btn.active { border-color: var(--brand); background: rgba(108,61,255,0.2); color: var(--brand-light); }
  .top-bar { background: var(--surface2); border: 1px solid var(--border); border-top: none; border-left: none; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 50; max-width: var(--content-width); border-bottom-right-radius: 12px; }
  .top-bar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .ai-compact { position: relative; }
  .section-ai-control-slot { display: inline-flex; align-items: center; flex-shrink: 0; }
  .ai-chip { background: var(--surface3); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.15s; }
  .ai-chip:hover { border-color: var(--brand); color: var(--brand-light); }
  .ai-chip-kicker { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
  .ai-chip-change { color: var(--brand-light); font-size: 12px; }
  .theme-toggle { background: var(--surface3); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 700; transition: all 0.15s; }
  .theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
  .theme-toggle-icon { font-size: 13px; line-height: 1; }
  .ai-popover { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 360px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); z-index: 120; }
  .ai-popover.open { display: block; }
  .ai-popover-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
  .ai-popover-sub { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
  .nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; padding: 0 4px; margin: 16px 0 8px; }
  .source-toggle { display: inline-flex; align-items: center; gap: 7px; background: var(--surface3); border: 1px solid var(--border); border-radius: 999px; padding: 8px 11px; font-size: 12px; color: var(--text); cursor: pointer; }
  .source-toggle input { accent-color: var(--brand); }
  .research-mine-toolbar { display: grid; grid-template-columns: minmax(170px, 220px) minmax(130px, 160px) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
  .research-history { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
  .research-history-title { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .research-history-list { display: flex; gap: 8px; flex-wrap: wrap; }
  .research-history-chip { background: var(--surface3); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
  .research-history-chip:hover { border-color: var(--brand); color: var(--brand-light); }
  .research-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
  .research-table th { background: var(--surface); }
  .research-table td { background: var(--surface2); }
  .research-table tr:hover td { background: rgba(108,61,255,0.06); }
  .mining-reader { display: grid; gap: 18px; }
  .mining-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .mining-stat { background: rgba(108,61,255,0.08); border: 1px solid rgba(108,61,255,0.22); border-radius: 8px; padding: 12px; }
  .mining-stat-label { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
  .mining-stat-value { color: var(--text); font-size: 20px; font-weight: 850; line-height: 1.15; }
  .mining-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .mining-section.language { border-color: rgba(108,61,255,0.26); }
  .mining-section.pain { border-color: rgba(251,113,133,0.22); }
  .mining-section.desire { border-color: rgba(34,197,94,0.20); }
  .mining-section.proof { border-color: rgba(96,165,250,0.22); }
  .mining-section.audit { border-color: rgba(139,92,246,0.24); }
  .mining-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
  .mining-section-title { font-size: 15px; font-weight: 850; color: var(--text); line-height: 1.3; }
  .mining-section-sub { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
  .mining-count { background: rgba(108,61,255,0.2); border: 1px solid rgba(108,61,255,0.26); color: var(--brand-light); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; }
  .mining-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mining-card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mining-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 13px; min-width: 0; }
  .mining-kicker { color: var(--brand-light); font-size: 10px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
  .mining-card-title { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
  .mining-card-text { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; overflow-wrap: anywhere; }
  .mining-quote { color: var(--text); font-size: 13px; line-height: 1.55; margin-top: 9px; padding: 10px 11px; border-left: 3px solid var(--brand-light); background: rgba(108,61,255,0.07); border-radius: 7px; overflow-wrap: anywhere; }
  .mining-copy-use { color: #bbf7d0; font-size: 12px; line-height: 1.45; margin-top: 9px; padding: 8px 10px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.18); border-radius: 7px; overflow-wrap: anywhere; }
  .mining-meta { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 8px; overflow-wrap: anywhere; }
  .mining-evidence-list { display: grid; gap: 8px; }
  .mining-evidence-row { display: grid; grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.6fr) minmax(120px, 0.45fr); gap: 12px; align-items: start; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
  .mining-empty { background: var(--surface2); border: 1px dashed var(--border); border-radius: 8px; padding: 13px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .mining-source-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mining-source-group { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
  .mining-source-group-title { color: var(--brand-light); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .mining-source-item { color: var(--text); font-size: 12px; line-height: 1.45; padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.06); overflow-wrap: anywhere; }
  .mining-source-item:first-of-type { border-top: none; padding-top: 0; }
  .mining-raw { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; white-space: pre-wrap; max-height: 360px; overflow: auto; }
  .mining-text-report { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; color: var(--text); font-size: 14px; line-height: 1.75; white-space: normal; }
  .mining-text-report h4 { color: var(--text); font-size: 16px; font-weight: 850; margin: 20px 0 8px; }
  .mining-text-report h4:first-child { margin-top: 0; }
  .mining-text-report p { margin: 0 0 10px; color: var(--text); }
  .mining-text-report ul { margin: 0 0 16px; padding-left: 20px; }
  .mining-text-report li { margin: 0 0 7px; color: var(--text); }
  .mining-text-report .muted { color: var(--muted); }
  .plain-research-report { display: block; }
  .plain-research-report .mining-text-report { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
  .plain-research-report .mining-section,
  .plain-research-report .mining-card,
  .plain-research-report .mining-source-group,
  .plain-research-report .mining-evidence-row,
  .plain-research-report .mining-overview-grid,
  .plain-research-report .mining-card-grid,
    .plain-research-report .mining-source-map {
    display: none !important;
  }
  .research-reader { display: grid; gap: 16px; }
  .research-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .research-stat-card { background: rgba(108,61,255,0.08); border: 1px solid rgba(108,61,255,0.22); border-radius: 8px; padding: 12px; }
  .research-stat-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
  .research-stat-value { color: var(--text); font-size: 18px; font-weight: 850; line-height: 1.2; }
  .research-section { display: grid; gap: 10px; }
  .research-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .research-section-title { color: var(--text); font-size: 14px; font-weight: 850; line-height: 1.35; }
  .research-section-sub { color: var(--muted); font-size: 12px; line-height: 1.45; }
  .research-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .research-card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .research-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; min-width: 0; }
  .research-card.claim { border-color: rgba(251,113,133,0.26); }
  .research-card.usp { border-color: rgba(34,197,94,0.24); }
  .research-card.source { border-color: rgba(108,61,255,0.20); }
  .research-kicker { color: var(--brand-light); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
  .research-card-title { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
  .research-card-text { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; overflow-wrap: anywhere; }
  .research-evidence { color: var(--text); font-size: 13px; line-height: 1.5; margin-top: 10px; padding: 9px 10px; border-left: 3px solid var(--brand-light); background: rgba(108,61,255,0.07); border-radius: 6px; overflow-wrap: anywhere; }
  .research-copyuse { color: #bbf7d0; font-size: 12px; line-height: 1.45; margin-top: 10px; padding: 8px 10px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.18); border-radius: 6px; overflow-wrap: anywhere; }
  .research-meta { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 8px; overflow-wrap: anywhere; }
  .research-chip-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
  .research-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; background: rgba(108,61,255,0.13); color: var(--brand-light); border: 1px solid rgba(108,61,255,0.20); font-size: 11px; font-weight: 700; }
  .research-empty { background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; padding: 13px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .research-raw-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 8px; }
  .research-brief-hero { background: linear-gradient(135deg, rgba(108,61,255,0.14), rgba(34,197,94,0.06)); border: 1px solid rgba(108,61,255,0.28); border-left: 4px solid var(--brand-light); border-radius: 10px; padding: 16px; }
  .research-brief-kicker { color: var(--brand-light); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
  .research-brief-title { color: var(--text); font-size: 18px; font-weight: 850; line-height: 1.3; }
  .research-brief-text { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; }
  .research-evidence-list { display: grid; gap: 9px; }
  .research-evidence-row { display: grid; grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.7fr) minmax(120px, 0.45fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
  .research-evidence-source { color: var(--text); font-size: 13px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
  .research-evidence-text { color: var(--text); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  .research-evidence-meta { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
  .research-source-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .research-source-group { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
  .research-source-group-title { color: var(--brand-light); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .research-source-item { color: var(--text); font-size: 12px; line-height: 1.45; padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.06); overflow-wrap: anywhere; }
  .research-source-item:first-of-type { border-top: none; padding-top: 0; }
  .research-source-url { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 3px; overflow-wrap: anywhere; }
  @media (max-width: 860px) {
    .voc-clean-toolbar { grid-template-columns: 1fr; align-items: stretch; }
    .voc-clean-actions { width: 100%; }
    .voc-clean-actions button { flex: 1 1 auto; justify-content: center; }
    .research-mine-toolbar { grid-template-columns: 1fr; align-items: stretch; }
    .mining-overview-grid,
    .mining-card-grid,
    .mining-card-grid.three,
    .mining-source-map { grid-template-columns: 1fr; }
    .mining-evidence-row { grid-template-columns: 1fr; }
  }
  .clean-output h4 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: var(--text); }
  .clean-output h4:first-child { margin-top: 0; }
  .clean-output p { margin: 0 0 10px; }
  .output-box.clean-output { white-space: normal; }
  .clean-output .output-line { margin: 0 0 8px; }
  .clean-output .output-label-line { margin: 0 0 9px; color: var(--muted); line-height: 1.55; }
  .clean-output .output-label-line strong { color: var(--text); }
  .clean-output .output-bullet { margin: 0 0 7px; padding-left: 18px; position: relative; }
  .clean-output .output-bullet::before { content: "•"; position: absolute; left: 2px; color: var(--brand-light); }
  .clean-output .output-table-wrap { overflow-x: auto; margin: 8px 0 14px; border: 1px solid var(--border); border-radius: 8px; }
  .clean-output table.output-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
  .clean-output table.output-table th { background: var(--surface3); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 1.4; }
  .clean-output table.output-table td { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); line-height: 1.45; }
  .clean-output table.output-table tr:last-child td { border-bottom: none; }
  .channel-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .channel-summary-card { background: rgba(108,61,255,0.08); border: 1px solid rgba(108,61,255,0.24); border-radius: 8px; padding: 14px; }
  .channel-summary-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 6px; }
  .channel-summary-value { color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.35; }
  .channel-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .channel-feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .channel-feature-card h4 { margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
  .channel-feature-row { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
  .channel-feature-label { color: var(--brand-light); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
  .channel-feature-value { color: var(--text); font-size: 13px; line-height: 1.55; }
  .channel-copy-angle { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.18); color: #bbf7d0; font-size: 13px; line-height: 1.5; }
  .channel-winner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .channel-winner-card { background: rgba(108,61,255,0.08); border: 1px solid rgba(108,61,255,0.25); border-radius: 10px; padding: 15px; }
  .channel-winner-card.primary { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(108,61,255,0.16), rgba(34,197,94,0.07)); }
  .channel-winner-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 6px; }
  .channel-winner-value { color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.4; }
  .channel-score-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin: 14px 0; }
  .channel-score-table { min-width: 780px; width: 100%; border-collapse: collapse; font-size: 13px; }
  .channel-score-table th { background: var(--surface3); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 11px 12px; }
  .channel-score-table td { border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.45; padding: 12px; vertical-align: top; }
  .channel-score-table tr:last-child td { border-bottom: none; }
  .channel-score-table .score-cell { color: var(--brand-light); font-weight: 800; text-align: center; white-space: nowrap; }
  .channel-decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .channel-decision-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
  .channel-decision-card.lead { border-color: rgba(34,197,94,0.24); }
  .channel-decision-card.avoid { border-color: rgba(251,113,133,0.26); }
  .channel-decision-label { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 8px; }
  .channel-decision-list { display: grid; gap: 8px; }
  .channel-decision-item { color: var(--text); font-size: 13px; line-height: 1.5; padding-left: 16px; position: relative; }
  .channel-decision-item::before { content: "•"; color: var(--brand-light); position: absolute; left: 0; }
  .channel-decision-card.avoid .channel-decision-item::before { color: #fb7185; }
  .strategy-list { display: grid; gap: 10px; }
  .strategy-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
  .strategy-item-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .strategy-item-body { color: var(--muted); font-size: 13px; line-height: 1.55; }
  .strategy-subhead { color: var(--brand-light); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin: 12px 0 6px; }
  .strategy-subhead:first-child { margin-top: 0; }
  .strategy-avoid { border-left: 3px solid #fb7185; padding: 8px 10px; margin: 7px 0; background: rgba(251,113,133,0.07); border-radius: 6px; color: var(--text); font-size: 13px; line-height: 1.5; }
  .full-ai-response { margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.02); overflow: hidden; }
  .full-ai-response summary { cursor: pointer; padding: 11px 13px; color: var(--brand-light); font-size: 13px; font-weight: 700; }
  .full-ai-response-body { border-top: 1px solid var(--border); padding: 14px; }
  .awareness-funnel { display: grid; gap: 14px; }
  .awareness-level-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .awareness-level-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .awareness-level-title { font-size: 15px; font-weight: 800; color: var(--text); }
  .awareness-level-pill { background: rgba(108,61,255,0.15); color: var(--brand-light); border: 1px solid rgba(108,61,255,0.28); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
  .awareness-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .awareness-question { background: var(--surface2); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 11px; font-size: 13px; line-height: 1.45; color: var(--text); }
  .awareness-note { margin-top: 12px; background: rgba(255,255,255,0.04); border-left: 3px solid var(--brand-light); border-radius: 6px; padding: 10px 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
  .awareness-strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .awareness-strategy-card { background: rgba(108,61,255,0.08); border: 1px solid rgba(108,61,255,0.24); border-radius: 10px; padding: 14px; }
  .awareness-strategy-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 6px; }
  .awareness-strategy-value { color: var(--text); font-size: 14px; line-height: 1.45; font-weight: 700; }
  .soph-reader { display: grid; gap: 16px; }
  .soph-section-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 10px; }
  .soph-decision-hero { background: linear-gradient(135deg, rgba(108,61,255,0.15), rgba(34,197,94,0.07)); border: 1px solid rgba(108,61,255,0.32); border-left: 4px solid var(--brand-light); border-radius: 10px; padding: 18px; }
  .soph-decision-label { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .soph-decision-title { color: var(--text); font-size: 21px; font-weight: 850; line-height: 1.25; margin-bottom: 14px; }
  .soph-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .soph-decision-stat { background: rgba(15,15,19,0.55); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px; }
  .soph-decision-stat.primary { grid-column: 1 / -1; }
  .soph-decision-stat-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
  .soph-decision-stat-value { color: var(--text); font-size: 14px; font-weight: 750; line-height: 1.45; }
  .soph-stage-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .soph-stage-step { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-height: 98px; position: relative; }
  .soph-stage-step.active { border-color: rgba(108,61,255,0.78); background: rgba(108,61,255,0.14); box-shadow: 0 0 0 1px rgba(108,61,255,0.10) inset; }
  .soph-stage-step.secondary { border-color: rgba(34,197,94,0.42); background: rgba(34,197,94,0.07); }
  .soph-stage-step.active::after { content: "Current"; position: absolute; right: 9px; top: 8px; color: #d8b4fe; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
  .soph-stage-step.secondary::after { content: "Next"; position: absolute; right: 9px; top: 8px; color: #86efac; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
  .soph-stage-number { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .soph-stage-name { color: var(--text); font-size: 13px; font-weight: 850; line-height: 1.25; }
  .soph-stage-note { color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 6px; }
  .soph-current-position { color: var(--text); font-size: 13px; line-height: 1.45; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 10px 12px; }
  .soph-market-grid, .soph-action-grid, .soph-headline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .soph-action-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .soph-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 15px; }
  .soph-card.good { border-color: rgba(34,197,94,0.28); }
  .soph-card.avoid { border-color: rgba(251,113,133,0.30); }
  .soph-card.highlight { border-color: rgba(108,61,255,0.32); background: rgba(108,61,255,0.07); }
  .soph-card-label { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 8px; }
  .soph-card-value { color: var(--text); font-size: 14px; line-height: 1.5; font-weight: 700; }
  .soph-card-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; }
  .soph-list { display: grid; gap: 8px; }
  .soph-list-item { color: var(--text); font-size: 13px; line-height: 1.5; padding-left: 16px; position: relative; }
  .soph-list-item::before { content: "•"; color: var(--brand-light); position: absolute; left: 0; }
  .soph-card.avoid .soph-list-item::before { color: #fb7185; }
  .soph-card.good .soph-list-item::before { color: #86efac; }
  .soph-headline-list { counter-reset: soph-headline; display: grid; gap: 8px; }
  .soph-headline-item { counter-increment: soph-headline; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--text); font-size: 13px; line-height: 1.45; }
  .soph-headline-item::before { content: counter(soph-headline); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(108,61,255,0.16); color: var(--brand-light); font-size: 11px; font-weight: 800; }
  .soph-dashboard { display: grid; gap: 18px; }
  .soph-section-title { color: var(--text); font-size: 15px; font-weight: 850; line-height: 1.3; margin: 0 0 10px; }
  .soph-brief-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
  .soph-brief-stack { display: grid; gap: 12px; }
  .soph-claim-groups { display: grid; gap: 12px; }
  .soph-claim-group { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 12px; }
  .soph-claim-title { color: var(--text); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
  .soph-muted-copy { color: var(--muted); font-size: 13px; line-height: 1.55; }
  .soph-headline-card-list { display: grid; gap: 10px; }
  .soph-example-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
  .soph-example-card.good { border-color: rgba(34,197,94,0.26); }
  .soph-example-card.avoid { border-color: rgba(251,113,133,0.30); }
  .soph-example-kicker { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 7px; }
  .soph-example-headline { color: var(--text); font-size: 14px; font-weight: 850; line-height: 1.42; }
  .soph-example-why { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 9px; }
  .soph-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .voc-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .voc-theme-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .voc-theme-title { color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
  .voc-theme-insight { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
  .voc-theme-label { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin: 12px 0 8px; }
  .voc-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .voc-chip { background: rgba(108,61,255,0.1); border: 1px solid rgba(108,61,255,0.24); border-radius: 999px; color: var(--text); font-size: 12px; line-height: 1.35; padding: 6px 9px; }
  .voc-application { border-top: 1px solid rgba(255,255,255,0.06); color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 14px; padding-top: 12px; }
  .voc-application strong { color: var(--text); }
  .voc-state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .voc-state-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .voc-state-card.before { border-color: rgba(251,113,133,0.28); }
  .voc-state-card.after { border-color: rgba(34,197,94,0.24); }
  .voc-state-card.gap { border-color: rgba(139,92,255,0.28); }
  .voc-state-title { color: var(--text); font-size: 15px; font-weight: 800; margin-bottom: 10px; }
  .voc-state-subtitle { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin: 12px 0 7px; }
  .voc-state-subtitle:first-child { margin-top: 0; }
  .voc-state-list { display: grid; gap: 7px; }
  .voc-state-item { color: var(--text); font-size: 13px; line-height: 1.5; padding-left: 16px; position: relative; }
  .voc-state-item::before { content: "•"; color: var(--brand-light); position: absolute; left: 0; }
  .voc-state-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; }
  .voc-trigger-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  table.voc-trigger-table { min-width: 760px; width: 100%; border-collapse: collapse; font-size: 13px; }
  .voc-trigger-table th { background: var(--surface3); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 11px 12px; }
  .voc-trigger-table td { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); padding: 12px; line-height: 1.5; vertical-align: top; }
  .voc-trigger-table tr:last-child td { border-bottom: none; }
  .voc-trigger-table .phrase-cell { font-weight: 800; color: var(--text); min-width: 220px; }
  .voc-trigger-table .emotion-cell { color: var(--brand-light); font-weight: 700; min-width: 130px; }
  .voc-trigger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .voc-trigger-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
  .voc-trigger-quote { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.45; margin-bottom: 10px; }
  .voc-trigger-row { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 7px; }
  .voc-trigger-row strong { color: var(--brand-light); }
  .voc-full-notes { margin-top: 14px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.02); overflow: hidden; }
  .voc-full-notes summary { cursor: pointer; color: var(--brand-light); font-size: 12px; font-weight: 800; padding: 10px 12px; }
  .voc-full-notes-body { border-top: 1px solid var(--border); padding: 14px; }
  .mass-desire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; }
  .mass-desire-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid rgba(108,61,255,0.62); border-radius: 10px; padding: 16px; }
  .mass-desire-head { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
  .mass-desire-num { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(108,61,255,0.16); color: var(--brand-light); font-size: 12px; font-weight: 850; }
  .mass-desire-title { color: var(--text); font-size: 16px; font-weight: 850; line-height: 1.42; }
  .mass-desire-summary { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 9px; }
  .mass-evidence-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
  .mass-evidence-chip { background: rgba(108,61,255,0.10); border: 1px solid rgba(108,61,255,0.24); border-radius: 999px; color: var(--text); font-size: 12px; line-height: 1.35; padding: 6px 9px; }
  .mass-detail-toggle { margin-top: 13px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.02); overflow: hidden; }
  .mass-detail-toggle summary { cursor: pointer; color: var(--brand-light); font-size: 12px; font-weight: 800; padding: 10px 12px; }
  .mass-detail-body { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.58; padding: 12px; }
  .mass-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
  .mass-top-card, .mass-ladder-step, .mass-wwc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
  .mass-top-card.primary { border-color: rgba(108,61,255,0.36); box-shadow: 0 0 0 1px rgba(108,61,255,0.08) inset; }
  .mass-card-kicker { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .mass-desire-quote { color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
  .mass-role-pill { display: inline-flex; align-items: center; color: #c4b5fd; background: rgba(108,61,255,0.14); border: 1px solid rgba(108,61,255,0.26); border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; margin-bottom: 12px; }
  .mass-card-section { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 12px; padding-top: 12px; }
  .mass-card-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 7px; }
  .mass-card-list { display: grid; gap: 7px; }
  .mass-card-bullet { color: var(--text); font-size: 13px; line-height: 1.5; padding-left: 15px; position: relative; }
  .mass-card-bullet::before { content: "•"; color: var(--brand-light); position: absolute; left: 0; }
  .mass-card-text { color: var(--muted); font-size: 13px; line-height: 1.55; }
  .mass-ladder-flow { display: grid; gap: 10px; }
  .mass-ladder-step { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; position: relative; }
  .mass-ladder-step:not(:last-child)::after { content: ""; position: absolute; left: 58px; bottom: -11px; width: 2px; height: 11px; background: rgba(108,61,255,0.45); }
  .mass-ladder-label { color: var(--brand-light); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  .mass-ladder-title { color: var(--text); font-size: 13px; font-weight: 800; margin-top: 3px; }
  .mass-ladder-text { color: var(--text); font-size: 15px; line-height: 1.55; }
  .mass-core-truth { margin-top: 14px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; padding: 15px; }
  .mass-core-truth .mass-card-label { color: #86efac; }
  .mass-wwc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .mass-wwc-card.will { border-color: rgba(34,197,94,0.22); }
  .mass-wwc-card.wont { border-color: rgba(251,191,36,0.24); }
  .mass-wwc-card.cant { border-color: rgba(251,113,133,0.24); }
  .mass-wwc-title { color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
  .mass-wwc-subtitle { color: var(--muted); font-size: 12px; line-height: 1.45; margin-bottom: 12px; }
  .mass-quote-list { display: grid; gap: 9px; }
  .mass-quote-item { color: var(--text); font-size: 13px; line-height: 1.5; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 11px; }
  .copyv2-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 16px; }
  .copyv2-route-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; transition: all 0.15s; min-width: 0; width: 100%; text-align: left; font: inherit; }
  .copyv2-route-card:hover { border-color: var(--brand); transform: translateY(-1px); }
  .copyv2-route-card.selected { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(108,61,255,0.18) inset; background: rgba(108,61,255,0.06); }
  .copyv2-route-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
  .copyv2-route-title { color: var(--text); font-size: 15px; font-weight: 850; line-height: 1.35; }
  .copyv2-route-awareness { color: var(--brand-light); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
  .copyv2-route-label { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.07em; margin: 11px 0 4px; }
  .copyv2-route-text { color: var(--text); font-size: 13px; line-height: 1.48; overflow-wrap: anywhere; }
  .copyv2-brief { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.18); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
  .copyv2-output-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
  .ai-payload-card { background: rgba(108,61,255,0.06); border: 1px solid rgba(108,61,255,0.22); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
  .ai-payload-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
  .ai-payload-title { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.35; }
  .ai-payload-sub { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 3px; }
  .ai-payload-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  .ai-payload-stat { background: rgba(15,15,19,0.45); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 9px; min-width: 0; }
  .ai-payload-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px; }
  .ai-payload-value { color: var(--text); font-size: 13px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
  .ai-payload-details { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; }
  .ai-payload-details summary { cursor: pointer; color: var(--brand-light); font-size: 12px; font-weight: 800; }
  .ai-payload-pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 11px; line-height: 1.5; margin: 10px 0 0; max-height: 340px; overflow: auto; padding: 12px; white-space: pre-wrap; }
  .framework-context-card { background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.18); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
  .framework-context-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
  .framework-context-title { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.35; }
  .framework-context-sub { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 3px; }
  .framework-context-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .framework-context-textarea { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
  .framework-context-meta { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
  :root[data-theme="light"] body { background: var(--surface); }
  :root[data-theme="light"] .sidebar,
  :root[data-theme="light"] .top-bar,
  :root[data-theme="light"] .card,
  :root[data-theme="light"] .modal-box {
    box-shadow: 0 12px 36px rgba(26, 37, 68, 0.06);
  }
  :root[data-theme="light"] .sidebar { background: #FFFFFF; }
  :root[data-theme="light"] .top-bar { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); }
  :root[data-theme="light"] .tab-btn.active { box-shadow: 0 8px 18px rgba(104,71,232,0.18); }
  :root[data-theme="light"] .tab-btn .step-num { background: rgba(104,71,232,0.09); color: var(--brand); }
  :root[data-theme="light"] .tab-btn.active .step-num { background: rgba(255,255,255,0.28); color: #FFFFFF; }
  :root[data-theme="light"] .output-box,
  :root[data-theme="light"] .channel-feature-card,
  :root[data-theme="light"] .channel-score-wrap,
  :root[data-theme="light"] .channel-decision-card,
  :root[data-theme="light"] .strategy-item,
  :root[data-theme="light"] .awareness-level-card,
  :root[data-theme="light"] .soph-stage-step,
  :root[data-theme="light"] .soph-card,
  :root[data-theme="light"] .soph-example-card,
  :root[data-theme="light"] .voc-theme-card,
  :root[data-theme="light"] .voc-state-card,
  :root[data-theme="light"] .voc-trigger-card,
  :root[data-theme="light"] .mass-desire-card,
  :root[data-theme="light"] .mass-top-card,
  :root[data-theme="light"] .mass-ladder-step,
  :root[data-theme="light"] .mass-wwc-card,
  :root[data-theme="light"] .research-card,
  :root[data-theme="light"] .research-empty,
  :root[data-theme="light"] .research-evidence-row,
  :root[data-theme="light"] .research-source-group {
    background: #FFFFFF;
  }
  :root[data-theme="light"] .channel-summary-card,
  :root[data-theme="light"] .channel-winner-card,
  :root[data-theme="light"] .awareness-strategy-card,
  :root[data-theme="light"] .soph-card.highlight,
  :root[data-theme="light"] .soph-stage-step.active,
  :root[data-theme="light"] .voc-tip,
  :root[data-theme="light"] .ai-payload-card,
  :root[data-theme="light"] .research-stat-card,
  :root[data-theme="light"] .research-brief-hero {
    background: rgba(104,71,232,0.07);
  }
  :root[data-theme="light"] .soph-decision-hero,
  :root[data-theme="light"] .channel-winner-card.primary {
    background: linear-gradient(135deg, rgba(104,71,232,0.11), rgba(42,176,124,0.08));
  }
  :root[data-theme="light"] .soph-decision-stat,
  :root[data-theme="light"] .soph-claim-group,
  :root[data-theme="light"] .soph-current-position,
  :root[data-theme="light"] .awareness-question,
  :root[data-theme="light"] .awareness-note,
  :root[data-theme="light"] .mass-detail-toggle,
  :root[data-theme="light"] .mass-quote-item,
  :root[data-theme="light"] .ai-payload-stat,
  :root[data-theme="light"] .full-ai-response,
  :root[data-theme="light"] .voc-full-notes {
    background: rgba(255,255,255,0.72);
    border-color: rgba(104,71,232,0.14);
  }
  :root[data-theme="light"] .channel-copy-angle,
  :root[data-theme="light"] .mass-core-truth,
  :root[data-theme="light"] .framework-context-card {
    background: rgba(34,197,94,0.08);
    color: #166534;
  }
  :root[data-theme="light"] .badge-green,
  :root[data-theme="light"] .db-indicator { color: #15803d; }
  :root[data-theme="light"] .badge-orange,
  :root[data-theme="light"] .awareness-btn.selected { color: #c2410c; }
  :root[data-theme="light"] .badge-blue { color: #2563eb; }
  :root[data-theme="light"] .mass-evidence-chip { color: #172033; background: rgba(104,71,232,0.08); }
  :root[data-theme="light"] .mass-role-pill { color: var(--brand); background: rgba(104,71,232,0.09); }
  :root[data-theme="light"] .clean-output table.output-table td,
  :root[data-theme="light"] .voc-trigger-table td,
  :root[data-theme="light"] .research-table td { background: #FFFFFF; }
  :root[data-theme="light"] tr:hover td,
  :root[data-theme="light"] .research-table tr:hover td { background: rgba(104,71,232,0.045); }
  :root[data-theme="light"] .ai-popover { box-shadow: 0 18px 50px rgba(26,37,68,0.16); }
  :root[data-theme="light"] #toast { background: #FFFFFF !important; box-shadow: 0 16px 42px rgba(26,37,68,0.16) !important; }
  @media (max-width: 980px) {
    .top-bar { padding: 12px 16px; align-items: flex-start; flex-direction: column; max-width: none; border-right: none; border-bottom-right-radius: 0; }
    .top-bar-actions { justify-content: flex-start; width: 100%; }
    .ai-popover { left: 0; right: auto; width: min(360px, calc(100vw - 40px)); }
    .channel-summary, .channel-feature-grid, .channel-winner-grid, .channel-decision-grid, .research-summary-grid, .research-card-grid, .research-card-grid.three, .research-evidence-row, .research-source-map, .copyv2-route-grid, .copyv2-output-controls { grid-template-columns: 1fr; }
    .channel-winner-card.primary { grid-column: auto; }
    .awareness-question-grid, .awareness-strategy-grid { grid-template-columns: 1fr; }
    .soph-market-grid, .soph-action-grid, .soph-action-grid.three, .soph-headline-grid, .soph-decision-grid, .soph-stage-map, .soph-brief-grid, .soph-format-grid { grid-template-columns: 1fr; }
    .voc-theme-grid, .voc-trigger-grid, .voc-state-grid { grid-template-columns: 1fr; }
    .mass-desire-grid, .mass-card-grid, .mass-ladder-step, .mass-wwc-grid, .ai-payload-grid { grid-template-columns: 1fr; }
    .framework-context-head { flex-direction: column; }
    .mass-ladder-step:not(:last-child)::after { display: none; }
  }
.billing-existing-actions.is-visible { display:flex !important; }
#billingPlanChoices.has-active-plan { display:none !important; }
@media (max-width: 700px) {
  #billingPlanChoices { grid-template-columns: 1fr !important; }
  #adminBillingOverview > div[style*="grid-template-columns"] { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
