/* Banking-specific additions; the CampaignOS styles.css is reused unchanged. */
/* Welcome and conversation share the same composer and campaign workspace. */
[hidden]{display:none!important}
.welcome-mode .workspace{grid-template-columns:minmax(0,1fr)}
.welcome-mode .workspace>.plan-area{display:none}
.chat-area,#dynamic-chat{overflow-anchor:none}
#welcome{max-width:720px;margin:0 auto 24px}
#welcome h1{font-size:clamp(26px,3vw,38px);line-height:1.2;letter-spacing:-.035em;font-weight:550;margin:0 0 16px}
#welcome p{font-size:16px;line-height:1.65;color:#55524e;max-width:64ch}
#welcome .welcome-scope{max-width:none;margin-top:18px;color:#615d58;font-size:12px;line-height:1.55}
.starter-list{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:10px 2px 0}
body:not(.welcome-mode) .starter-list{display:none}
.starter-list button{display:inline-flex;align-items:center;min-height:32px;max-width:100%;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);text-align:left;font:inherit;font-size:12px;line-height:1.35;cursor:pointer;color:var(--muted)}
.starter-list button:hover{border-color:var(--ink);color:var(--ink);background:var(--surface)}
#dynamic-chat .message{margin:16px 0}
#dynamic-chat .message-body{width:min(680px,90%)}
.message-owner{font-size:12px;font-weight:650;color:#4d4944;margin:0 2px 7px}
.message.user .message-owner{text-align:right}
#dynamic-chat .message-bubble{font-size:13px;line-height:1.45;padding:11px 14px;overflow-wrap:anywhere;color:#242321;background:#fff;border-color:#d7d4d0}
#dynamic-chat .message.user .message-bubble{background:#e6eef9;border-color:#cbd8ea;color:#172b46;border-bottom-right-radius:4px}
#dynamic-chat .message:not(.user) .message-bubble{border-bottom-left-radius:4px;white-space:normal}
#chat-suggestions,.strategy-pivots{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 16px}
.strategy-pivots{margin-top:0}
.suggestions-label{width:100%;font-size:12px;color:#615d58}
.chat-suggestion{border:1px solid #ccc7bf;border-radius:999px;background:transparent;color:#34312e;font:inherit;font-size:12px;padding:9px 13px;cursor:pointer}
.chat-suggestion:hover{background:#eeece8}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #326da8;outline-offset:3px}
.composer:focus-within{border-color:#326da8;box-shadow:0 0 0 2px #326da826}
.composer textarea:focus-visible{outline:none}
.composer-toolbar{margin-top:6px}
.allocation-editor p,.allocation-editor label,.allocation-editor input,.allocation-editor select,.allocation-editor button{font-size:12px}
.allocation-editor p{margin:8px 0}
.composer{padding:12px 14px}
.composer textarea{height:26px;min-height:26px;max-height:26px;padding:2px 3px;line-height:22px;overflow-y:auto}
.report-card summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer}
.report-card summary::-webkit-details-marker{display:none}
.report-card summary::marker{content:''}
.report-card summary::before{content:'';width:7px;height:7px;flex:0 0 7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .18s ease}
.report-card details[open]>summary::before{transform:rotate(45deg)}
.chat-processing{display:flex;align-items:center;gap:10px;min-height:32px;margin:8px 0 10px;color:var(--muted);font-size:12px}
.chat-processing[hidden]{display:none}
.processing-dots{display:flex;align-items:center;gap:4px;height:20px}
.processing-dots i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:processing-pulse 1.2s ease-in-out infinite}
.processing-dots i:nth-child(2){animation-delay:.15s}.processing-dots i:nth-child(3){animation-delay:.3s}
.send-button{position:relative}
.request-in-progress .send-button svg{visibility:hidden}
.request-in-progress .send-button::after{content:'';position:absolute;width:16px;height:16px;border:2px solid #ffffff60;border-top-color:#fff;border-radius:50%;animation:processing-spin .8s linear infinite}
@keyframes processing-pulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes processing-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.processing-dots i,.request-in-progress .send-button::after{animation:none}.report-card summary::before{transition:none}}
.composer textarea::placeholder{color:#69645f}
#keyboard-hint{font-size:11px;color:#615d58;margin:10px 2px}
#request-status{color:#494541}
#new-message{position:sticky;bottom:12px;background:#fff;z-index:2}
@media(max-width:760px){#dynamic-chat .message-body{width:95%}.welcome-mode .chat-area{padding-top:36px}.starter-list button{min-height:36px}#welcome .welcome-scope{max-width:48ch}.composer textarea{font-size:16px}}
#proposal-results .segments{grid-template-columns:repeat(var(--families,3),minmax(0,1fr))}
.segment-share{font-size:11px;color:var(--muted)}
#proposal-results .segment{min-width:0}
@media(max-width:760px){#proposal-results .segment{padding:8px}#proposal-results .segment-top{gap:4px;flex-wrap:wrap}#proposal-results .segment strong{font-size:13px}#proposal-results .segment-badge{width:24px;height:24px;flex:0 0 24px}}
#proposal-results,#proposal-actions{width:min(680px,100%)}
.report-card{width:100%;margin-left:0}.action-row{margin-left:0}
.table-scroll{overflow:auto}.report-card table{width:100%;min-width:0;border-collapse:collapse;font-size:11px}
.report-card th,.report-card td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.report-card th{color:var(--muted);font-weight:550}.report-card td small{display:block;color:var(--muted);margin-top:4px}
.table-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 0}
.table-page-status{color:var(--muted);font-size:10px;line-height:1.5;font-variant-numeric:tabular-nums}
.table-page-actions{display:flex;gap:6px}
.sidebar-campaign-name{font-size:12px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
.plan-card #approve-button{width:100%;justify-content:center;margin-top:10px}
.plan-card #approval-note{margin:0;padding-bottom:0;overflow-wrap:anywhere}
.brief-summary{width:min(680px,100%);margin-left:0;font-size:12px}
.brief-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.brief-facts dt{color:var(--muted);font-size:10px;margin-bottom:4px}.brief-facts dd{margin:0;line-height:1.5;overflow-wrap:anywhere}
.mix-explanation{margin:12px 0;font-size:12px;line-height:1.6}.mix-explanation summary,.audience-breakdowns summary,.brief-summary summary{cursor:pointer}
.evidence-filters,#cohort-edit-form{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:14px 0}
.evidence-filters label,#cohort-edit-form label{display:grid;gap:5px;font-size:11px;max-width:100%}
.evidence-filters select,#cohort-edit-form select,#cohort-edit-form input{max-width:100%;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.audience-breakdowns{margin:16px 0}.audience-filter-options{margin-bottom:18px}.audience-filter-options small{color:var(--muted);font-size:10px}
.driver-list{margin:8px 0 14px;padding-left:18px;font-size:12px;line-height:1.6}
.evidence-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:12px 0}
.evidence-actions label{display:grid;gap:4px;font-size:11px}
.evidence-actions select{padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.why-selected summary{cursor:pointer;font-size:11px}
.why-selected p{margin:6px 0 0;font-size:11px;line-height:1.45;white-space:normal}
.why-selected span{display:block;color:var(--muted);font-size:9px}
.plan-comparison{margin:0 0 14px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f6f5f2}
.plan-comparison h3{margin:0 0 8px;font-size:12px}
.plan-comparison p{margin:4px 0;font-size:12px;line-height:1.5}
.comparison-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:12px}
.comparison-row strong{font-weight:550;text-align:right}
.strategy-controls{margin:0 0 8px;padding:0 0 8px;border:0;border-bottom:1px solid var(--line)}
.strategy-controls legend{margin-bottom:12px;font-size:12px;font-weight:600}
.demo-data-line{white-space:pre-line}
.demo-data-open{margin:0 0 12px;padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.demo-profile{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.demo-profile h3{margin:0 0 4px;font-size:13px}
.demo-profile p{margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.5}
.demo-data-preview p{margin:6px 0;font-size:12px;line-height:1.5}
.demo-data-preview span{color:var(--muted)}
#brief-prospect-custom{margin-top:8px}
@media(max-width:520px){.brief-facts{grid-template-columns:1fr}}
.table-page-actions button:focus-visible{outline:2px solid #5576a7;outline-offset:2px}
.report-card td.table-empty{text-align:center;color:var(--muted);padding:20px 8px}
.report-card td:has(.week-cohorts){white-space:normal}
.week-cohorts{display:flex;flex-wrap:wrap;gap:4px;min-width:160px}
.week-cohort{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;background:#f7f6f3;color:var(--ink);font-size:10px;line-height:1.3;white-space:nowrap}
.week-cohort span{color:var(--muted)}
.report-card .notice{padding:10px 12px;background:#fff5df;border:1px solid #e8d5a6;border-radius:8px;font-size:12px;line-height:1.5;margin-top:12px}
.report-card .notice-info{background:#f6f5f2;border-color:var(--line);color:var(--ink)}
.report-card .notice-error{background:#fdecec;border-color:#e7c1c1;color:#6d2a2a}
.report-card .side-note{margin:12px 4px}.number-input{width:100%;max-width:100%}
.drawer{overflow-y:auto}.action-btn:disabled{opacity:.6;cursor:not-allowed}
.message-bubble{white-space:normal}.message-bubble p{margin:0 0 10px;font-size:14px;line-height:1.55}.message-bubble p:last-child{margin-bottom:0}.message-bubble strong{font-weight:650}.message-bubble em{font-style:italic}.chat-table-scroll{overflow-x:auto;margin:8px 0 12px}.chat-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.4}.chat-table th,.chat-table td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.chat-table th{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.chat-table td:nth-child(n+4){white-space:nowrap}.plan-card .week strong{font-size:12px;text-align:right}
#request-status{min-height:20px;scroll-margin-bottom:16px}.report-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
@media(max-width:760px){#request-status{scroll-margin-bottom:90px}}
.financial-context{display:flex;align-items:center;gap:9px;white-space:nowrap}
.brand-logo svg{width:24px;height:24px;flex:0 0 24px}
.bank-switcher{position:relative;display:flex;align-items:center}
.bank-select{height:36px;min-width:104px;padding:0 30px 0 12px;border:1px solid var(--line);border-radius:10px;appearance:none;background:var(--surface);color:var(--ink);font-size:12px;font-weight:560;cursor:pointer}
.bank-switcher svg{position:absolute;right:10px;width:13px;height:13px;color:var(--muted);pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.metrics{grid-template-columns:repeat(2,1fr)}.report-card,.action-row{margin-left:0}.financial-context.top-right{grid-column:2;grid-row:1}}

#week-edit-form, #theme-edit-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0; }
#week-edit-form label, #theme-edit-form label { display:grid; gap:6px; }
#week-edit-form input, #theme-edit-form input { width:105px; }

/* Richer campaign overview, using the existing CampaignOS palette and cards. */
.plan-area{min-width:0;font-variant-numeric:tabular-nums}
.plan-area .side-head{align-items:center;gap:6px}
.plan-area .side-head>span{white-space:nowrap;color:var(--muted);font-size:10px}
.plan-area .journey-step{width:100%;border:0;background:transparent;text-align:left;font:inherit;font-size:11px;cursor:pointer;min-height:36px}
.plan-area .journey-step.current{background:var(--surface-2)}
.plan-area .journey-step.done>i{background:#e8f1ea;border-color:#d9e7dd;color:#3d7850}
.plan-area .journey-step small{margin-left:auto;font-size:9px;font-weight:400;color:var(--muted)}
.plan-area .journey-step.locked{opacity:1;color:var(--muted-2)}
.plan-area .journey-step:disabled{cursor:default}
.plan-area .journey-step:not(:disabled):hover{background:var(--surface-2)}
.plan-area button:focus-visible{outline:2px solid #5576a7;outline-offset:3px}
.journey-next{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.journey-next p{font-size:11px;line-height:1.55;margin:0 0 6px;color:var(--muted)}
.sidebar-link{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:32px;padding:4px 0;border:0;background:transparent;color:var(--ink);font-size:11px;font-weight:550;text-align:left;cursor:pointer}
.sidebar-link:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}
.sidebar-link:disabled{color:var(--muted-2);cursor:default}
.sidebar-link>span{font-size:15px;font-weight:400}
.sidebar-detail{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.sidebar-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.plan-card .sidebar-card-head h3{margin:0;font-size:12px}
.sidebar-tag{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:9px;white-space:nowrap}
.plan-status-line{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}
.plan-status-line strong{font-weight:500}
.status-dot{width:6px;height:6px;border-radius:50%;background:var(--muted-2);flex:0 0 6px}
.plan-status-line[data-tone=approved]{color:#3d7850}
.plan-status-line[data-tone=approved] .status-dot{background:var(--green)}
.plan-status-line[data-tone=attention]{color:#8a591e}
.plan-status-line[data-tone=attention] .status-dot{background:#b77c30}
.population-hero{display:flex;align-items:baseline;gap:8px;margin:14px 0 16px;flex-wrap:wrap}
.population-hero strong{font-size:30px;line-height:1;font-weight:550;letter-spacing:-.04em}
.population-hero>span{font-size:10px;color:var(--muted)}
.allocation-track{display:flex;height:6px;gap:2px;margin-top:12px;border-radius:999px;overflow:hidden;background:var(--surface-2)}
.split-treatment{background:var(--green)}.split-holdout{background:#b8b4af}
.sidebar-caption{margin:7px 0 12px;color:var(--muted);font-size:10px;line-height:1.55}
.plan-card .plan-insight{padding:9px 10px;margin:10px 0 0;border-radius:6px;background:var(--surface-2);line-height:1.55}
.plan-card .plan-insight.has-shortfall{background:#fff5df;color:#785321}
.sidebar-row-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px}
.sidebar-row-head strong{font-size:12px;font-weight:600;white-space:nowrap}
.sidebar-row-head small{font-size:9px;font-weight:400;color:var(--muted)}
.sidebar-row-meta{display:flex;justify-content:space-between;gap:6px;margin-top:6px;font-size:9px;line-height:1.5;color:var(--muted)}
.outreach-row+.outreach-row{margin-top:13px}
.weekly-fill{background:#7397df}
.weekly-holdout{display:block;margin-top:5px;font-size:9px;color:var(--muted)}
.sidebar-segment+.sidebar-segment{margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.segment-identity{display:flex;align-items:center;gap:8px;min-width:0;font-size:10px;line-height:1.4}
.segment-identity .segment-badge{width:24px;height:24px;flex:0 0 24px;font-size:10px}
.plan-area .theme-top{align-items:flex-start;line-height:1.5}
.plan-area .theme-top>strong{white-space:nowrap;font-weight:600}
.plan-area .theme-name{align-items:flex-start;gap:7px}
.plan-area .theme-dot{flex:0 0 6px;width:6px;height:6px;margin-top:5px}
.sidebar-empty{padding:7px 0 2px;color:var(--muted);font-size:11px;line-height:1.6}
.sidebar-empty p{margin:5px 0}
.empty-bars{display:flex;align-items:flex-end;gap:5px;height:25px;margin:3px 0 10px}
.empty-bars i{width:25px;height:100%;background:var(--surface-2);border-radius:3px}
.empty-bars i:nth-child(3){height:80%}.empty-bars i:nth-child(4){height:50%}
#proposal-results{scroll-margin-top:125px}
/* Keep the desktop workspace in the viewport; each column owns its scroll. */
@media(min-width:1041px){
 html,body{height:100%;overflow:hidden}
 .app-shell{height:100vh;height:100dvh;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
 .workspace{min-height:0;overflow:hidden}
 .workspace>.chat-area,.workspace>.plan-area{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b8b4af transparent}
 #proposal-results{scroll-margin-top:20px}
 /* Campaigns, details, brand and Data & Application pages fill the space under the top bar and scroll themselves. */
 .app-shell>.page-content{grid-row:2/-1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b8b4af transparent}
}
.workspace>.chat-area:focus-visible,.workspace>.plan-area:focus-visible{outline:2px solid #5576a7;outline-offset:-2px}
@media(max-width:1040px){
 .workspace{grid-template-columns:minmax(0,1fr)}
 .workspace>.plan-area{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-left:0;border-top:1px solid var(--line);padding:24px}
 .plan-area .journey{grid-column:1/-1;margin-bottom:0}
 .plan-area .plan-card+.plan-card{margin-top:0}
 .plan-area .sidebar-outcome{grid-column:1/-1;margin:0}
}
@media(max-width:520px){.workspace>.plan-area{grid-template-columns:minmax(0,1fr);padding:20px 16px}.plan-area .sidebar-link{min-height:40px}.plan-area .journey-step{min-height:40px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.journey-bar span{transition:none}}

.segment-badge.c{background:#f4eadb;color:#86652f}.sidebar-segment .segment-badge.c{background:#f4eadb;color:#86652f}#prospect-edit-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:16px}

/* Draft review: two clearly separated, full-content tables. */
#proposal-results:has(.drafts-report),.chat-thread:has(.drafts-report){width:100%}
.report-card.drafts-report{padding:20px;background:#fdfcfb;border-color:#dcd9d4;border-radius:16px;box-shadow:0 4px 18px #201e1d05}
.drafts-report .report-tabs{padding-bottom:16px;margin-bottom:0;border-bottom:1px solid #e9e6e1;gap:5px}
.drafts-report .report-tabs .action-btn{min-height:32px;font-size:11px}
.drafts-report .report-tabs .primary-action{background:var(--dark);border-color:var(--dark);color:#fff}
.drafts-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0}
.drafts-header h2{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.045em;font-weight:600}
.draft-intro{font-size:12px;line-height:1.6;margin:8px 0 0;color:var(--muted)}
.drafts-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #d9e5db;border-radius:999px;background:#f1f6f1;color:#45684d;font-size:10px;font-weight:550;white-space:nowrap}
.drafts-status>span{width:5px;height:5px;border-radius:50%;background:#618467}
.draft-section{border:1px solid #dedbd6;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 4px #201e1d03}
.draft-section+.draft-section{margin-top:24px}
.draft-section-header{display:flex;align-items:center;gap:12px;padding:18px 16px;background:linear-gradient(110deg,#f9faf8,#fff)}
.draft-section-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #dce4de;border-radius:10px;background:#edf3ed;color:#536c59}
.draft-section-icon svg{width:17px;height:17px}
.draft-section-header h3{font-size:15px;font-weight:600;letter-spacing:-.025em;margin:0;line-height:1.4}
.draft-section-header p{font-size:11px;line-height:1.5;color:var(--muted);margin:4px 0 0}
.draft-count{margin-left:auto;padding:4px 8px;border:1px solid #e2dfda;border-radius:6px;background:#fff;font-size:10px;color:#6e6b65;white-space:nowrap;font-variant-numeric:tabular-nums}
.drafts-table>.paginated-table>.table-scroll{overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c7c5bd #f4f3f0}
.drafts-table>.paginated-table>.table-scroll>table{table-layout:fixed;min-width:760px}
.drafts-report .drafts-table th{padding:12px 14px;border-top:1px solid #e4e4de;border-bottom:1px solid #dedfd8;background:#f0f2ed;color:#60685e;font-size:9px;letter-spacing:.07em;text-transform:uppercase;font-weight:650}
.drafts-report .drafts-table td{padding:20px 14px;border-bottom:1px solid #e9e7e2;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.6;vertical-align:top;transition:background .15s ease}
.drafts-report .drafts-table tr:last-child td{border-bottom:0}
.drafts-report .drafts-table tbody tr:hover td{background:#fcfcf9}
.email-drafts th:nth-child(1){width:10%}.email-drafts th:nth-child(2){width:15%}.email-drafts th:nth-child(3){width:19%}.email-drafts th:nth-child(4){width:38%}.email-drafts th:nth-child(5){width:18%}
.document-drafts th:nth-child(1){width:17%}.document-drafts th:nth-child(2){width:20%}.document-drafts th:nth-child(3){width:45%}.document-drafts th:nth-child(4){width:18%}
.draft-identity{display:grid;gap:9px}.draft-identity>strong{font-size:12px;font-weight:600;line-height:1.5}
.draft-version{width:fit-content;padding:2px 6px;border:1px solid #e4e1da;border-radius:5px;color:#777168;background:#f9f8f5;font-size:9px;white-space:nowrap}
.draft-theme{display:inline-block;padding:5px 8px;border:1px solid #dce7de;border-radius:7px;background:#edf4ef;color:#48654e;font-size:10px;font-weight:550;line-height:1.5}
.draft-theme[data-theme="1"]{background:#edf2fa;border-color:#dce4f1;color:#516b8b}
.draft-theme[data-theme="2"]{background:#f3eff9;border-color:#e5def0;color:#76608e}
.draft-subject,.draft-document-title{font-size:12px;font-weight:550;color:#343b33;line-height:1.6}
.draft-purpose{color:#746f67;font-size:11px;line-height:1.65}
.asset-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;color:#4f504a;margin:0}
.draft-document-title{display:block;margin-bottom:10px}
.asset-controls{position:relative;margin:0}
.asset-controls::after{content:'';position:absolute;right:11px;top:15px;width:6px;height:6px;border-right:1.5px solid #63705f;border-bottom:1.5px solid #63705f;transform:rotate(45deg);pointer-events:none}
.asset-controls select{display:block;appearance:none;width:100%;min-width:0;min-height:38px;padding:9px 24px 9px 9px;border:1px solid #d9ded3;border-radius:8px;background:#f9fbf7;color:#43583f;font:inherit;font-size:10px;font-weight:550;cursor:pointer;box-shadow:0 1px 2px #201e1d04}
.asset-controls select:hover:not(:disabled){background:#f0f5eb;border-color:#a4b19b}
.asset-controls select:disabled{opacity:.55;cursor:not-allowed}
.draft-section-note{margin:0;padding:11px 16px;border-top:1px solid #e9e7e2;background:#fcfbf9;color:#7a746d;font-size:10px;line-height:1.5}
.drafts-footer{font-size:10px;line-height:1.6;color:#777168;margin:16px 2px 0}
.drafts-table .table-pagination{padding:12px 16px;border-top:1px solid #e9e7e2}
@media(min-width:1041px){.workspace:has(.drafts-report){grid-template-columns:minmax(0,1fr) 288px}.chat-area:has(.drafts-report){padding-inline:24px}}
@media(max-width:760px){.report-card.drafts-report{padding:12px;border-radius:12px}.drafts-header{padding:20px 2px;align-items:flex-start}.drafts-header h2{font-size:22px}.draft-section-header{padding:16px 12px;gap:9px;flex-wrap:wrap}.draft-section-header>div{flex:1;min-width:0}.draft-section-header h3{font-size:14px}.draft-count{margin-left:43px}.drafts-status{font-size:9px;padding:5px 7px}.drafts-report .report-tabs{gap:5px}.drafts-report .report-tabs .action-btn{padding:0 10px}.drafts-table>.paginated-table>.table-scroll>table{min-width:760px}.asset-controls select{min-height:44px}.asset-controls::after{top:17px}}
@media(prefers-reduced-motion:reduce){.drafts-report .drafts-table td{transition:none}}

/* Message strategy: label, share, meaning and rationale per intent; no eyebrow labels. */
.message-strategy{margin:18px 0 8px}
.message-strategy h3{font-size:14px;margin:0 0 10px}
.mix-bar{display:flex;height:12px;border-radius:999px;overflow:hidden;background:var(--surface-2);margin:2px 0 12px}
.mix-bar span{display:block;height:100%}.mix-bar span+span{border-left:2px solid var(--surface)}
.mix-legend{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mix-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;column-gap:8px;align-items:baseline}
.mix-legend i{width:10px;height:10px;border-radius:3px;align-self:center}.mix-legend strong{font-size:12px;font-weight:600}
.mix-legend span{font-size:12px;color:var(--muted);white-space:nowrap}
.mix-legend p{grid-column:2/4;margin:2px 0 0;font-size:11px;line-height:1.45;color:#6b665f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mix-details{margin-top:10px;font-size:11px;color:#6b665f}.mix-details summary{cursor:pointer;font-weight:600}.mix-details p{margin:6px 0;line-height:1.45}
.intent-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:0 0 8px;background:var(--surface)}
.intent-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:6px}
.intent-card p{margin:4px 0;font-size:12px;line-height:1.5;color:#4d4944}
.intent-card .intent-why{color:#6b665f}
.chat-suggestion.guided-question{border-style:dashed;text-align:left}

/* Account menu, campaigns queue and campaign details. */
.top-actions{display:flex;align-items:center;gap:10px}
.account-menu{position:fixed;z-index:85;bottom:18px;left:max(12px,calc((100vw - var(--max))/2 - 68px))}
.account-button{display:grid;width:52px;height:52px;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:rgba(27,25,24,.95);color:#fff;place-items:center;font:inherit;font-size:13px;font-weight:650;letter-spacing:.02em;cursor:pointer;box-shadow:0 18px 54px rgba(0,0,0,.2)}
.account-button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.account-list{position:absolute;left:0;bottom:calc(100% + 8px);min-width:220px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 32px rgba(0,0,0,.12)}
.account-list button{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;font:inherit;text-align:left;cursor:pointer}
.account-list button:hover,.account-list button[aria-current="true"]{background:#f1efeb}
.account-list strong{font-size:12px;font-weight:600}.account-list span{font-size:10px;color:var(--muted)}
.queue-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.queue-filters select{width:auto;min-width:160px;height:34px;padding:0 10px;font-size:12px;border-radius:10px}
.queue-table tbody tr{cursor:pointer}.queue-table tbody tr:hover td,.queue-table tbody tr:focus td{background:#faf9f7}
.status-chip{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:999px;background:#efede9;color:#4d4944;font-size:10px;font-weight:600;white-space:nowrap}
.status-chip[data-status="PLAN_APPROVED"],.status-chip[data-status="AUDIENCE_READY"]{background:#e6f2e9;color:#3f6f4b}
.status-chip[data-status="PENDING_PLAN_APPROVAL"],.status-chip[data-status="AUDIENCE_QA"]{background:#fbf0dc;color:#8a5a12}
.status-chip[data-status="CONTENT_DRAFT"]{background:#e8f1ff;color:#43679a}
.status-chip[data-status="EXPORTED"],.status-chip[data-status="COMPLETED"]{background:#e6f2e9;color:#3f6f4b}
.status-chip[data-status="ARCHIVED"]{background:#f2f1ef;color:#8a857e}
.detail-head{align-items:flex-start;margin-top:10px}.detail-head h1{margin-bottom:8px}.detail-actions{margin:0;flex-wrap:wrap;justify-content:flex-end}
.detail-section{padding:16px 18px;margin-bottom:12px}.detail-section h2{margin-bottom:10px}
.detail-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 18px;margin:0}
.detail-list dt{font-size:10px;color:var(--muted)}.detail-list dd{margin:2px 0 0;font-size:12px;color:var(--ink)}
@media(max-width:760px){.account-menu{left:12px;bottom:80px}.account-button{width:44px;height:44px}.detail-head{flex-direction:column}.detail-actions{justify-content:flex-start}}
#campaigns-screen .content-wrap{width:min(1180px,100%)}.queue-table{min-width:0}

/* Decision provenance disclosure. */
.provenance{margin:14px 0 6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0 14px}
.provenance>summary{padding:12px 0;font-size:12px;font-weight:600;cursor:pointer}
.provenance h4{margin:14px 0 8px;font-size:12px;font-weight:600}
.provenance p,.provenance li{font-size:12px;line-height:1.5;color:#4d4944}.provenance ul{margin:0;padding-left:18px}
.provenance .table-scroll{margin-bottom:6px}.provenance table{min-width:0}
.detail-section .provenance{margin:0;border:0;padding:0}

/* Brand setup. */
.brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 18px}
.brand-grid textarea{resize:vertical;min-height:64px}
.color-input{height:38px;padding:2px 4px}
.brand-image{display:block;max-width:180px;max-height:64px;margin:4px 0 8px;object-fit:contain}
.brand-upload{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.brand-upload .number-input{width:auto;min-width:180px}
.account-list hr{margin:6px 4px;border:0;border-top:1px solid var(--line)}

/* Content status, draft editor and preview. */
.content-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.content-status .detail-list{grid-template-columns:repeat(2,minmax(140px,auto))}.content-status .action-row{margin:0}
.compliance-reasons{margin:0 0 12px;padding:10px 14px 10px 30px;border:1px solid #f0d9a8;border-radius:10px;background:#fdf6e7;font-size:12px;line-height:1.5;color:#6d4c0f}
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:10px}
#asset-editor .form-group{margin-bottom:12px}#asset-editor .form-group label{font-size:11px;margin-bottom:5px}
#asset-editor .number-input,#asset-editor textarea{font-size:13px;line-height:1.5;color:var(--ink)}
#asset-editor input.number-input,#asset-editor select.number-input{min-height:34px;padding:0 10px}
#asset-editor textarea.number-input{padding:8px 10px;resize:vertical}
.rewrite-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.rewrite-row select{width:auto}.rewrite-row input{flex:1;min-width:160px}
.email-preview{display:block;width:100%;height:560px;margin:8px auto 0;border:1px solid var(--line);border-radius:10px;background:#fff}
.email-preview.mobile{max-width:390px}
@media(max-width:1040px){.editor-layout{grid-template-columns:1fr}}

/* Brand setup: editor beside a live preview. */
.brand-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.brand-preview{position:sticky;top:12px;display:grid;gap:12px}
@media(max-width:1040px){.brand-layout{grid-template-columns:1fr}.brand-preview{position:static;order:-1}}
.brand-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;display:grid;gap:14px}
.brand-identity{display:flex;align-items:center;gap:12px}.brand-identity strong{display:block;font-size:17px;letter-spacing:-.02em}.brand-identity span{font-size:11px;color:var(--muted)}
.brand-mark img,.brand-mark span{width:44px;height:44px;border-radius:10px;object-fit:contain;display:grid;place-items:center;color:#fff;font-weight:700;font-size:18px}
.palette{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.swatch{display:grid;gap:2px}.swatch i{height:34px;border-radius:8px;border:1px solid rgba(0,0,0,.08)}.swatch i.empty{background:transparent;border:1px dashed var(--line)}
.swatch span{font-size:10px;color:var(--muted)}.swatch code{font-size:10px}
.type-specimen{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:12px}.type-specimen>span{font-size:40px;line-height:1;font-weight:700}
.type-specimen strong{font-size:12px}.type-specimen p{margin:2px 0 0;font-size:11px;line-height:1.45;color:#4d4944;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.traits{display:flex;flex-wrap:wrap;gap:6px}.trait{padding:3px 9px;border:1px solid var(--line);border-radius:999px;font-size:11px;background:var(--surface-2)}
.do-dont{display:grid;grid-template-columns:1fr 1fr;gap:10px}.do-dont ul{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:11px;line-height:1.4}
.do-dont b{margin-right:5px}.do b{color:#2f7d54}.dont b{color:#aa4a42}
.mini-email{border:1px solid var(--line);border-radius:12px;overflow:hidden}.mini-email-top{height:6px}
.mini-email-body{padding:14px 16px;display:grid;gap:6px;background:#fff;margin:10px;border-radius:8px}.mini-email-body small{font-size:10px;opacity:.7}
.mini-email-body h4{margin:0;font-size:15px}.mini-email-body p{margin:0;font-size:12px;line-height:1.5}
.mini-cta{justify-self:start;padding:7px 12px;border-radius:6px;color:#fff;font-size:11px;font-weight:600}.mini-footer{font-size:10px!important;opacity:.65;margin-top:6px!important}

/* Data & Application. */
.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.type-card{border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface)}
.type-card header{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.type-card h3{margin:0;font-size:13px}
.type-card header span{font-size:11px;color:var(--muted);white-space:nowrap}.type-card p{font-size:12px;line-height:1.5;margin:8px 0 10px;color:#4d4944}
.type-card h4{margin:0 0 4px;font-size:10px;font-weight:600;color:var(--muted)}
.card-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 14px;margin-bottom:10px}
.card-list{margin:0;padding-left:15px;font-size:12px;line-height:1.5}.card-list li{margin:1px 0}
.card-facts{display:grid;gap:4px;font-size:11px;color:#4d4944;border-top:1px solid var(--line);padding-top:8px}.card-facts b{font-weight:600;margin-right:4px}
.card-example{margin-top:10px;padding:8px 10px;border-radius:8px;background:#f3eff9}.card-example p{margin:0;font-size:11px;line-height:1.5;color:#4d4944}
.wide-card{margin:12px 0}
.audience-list{display:grid;gap:10px;margin-top:8px}
.audience-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(60px,1fr) 96px;gap:12px;align-items:center;font-size:12px}
.audience-row strong{display:block;font-weight:600}.audience-row div span{display:block;font-size:11px;line-height:1.4;color:#6b665f}
.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:8px}
.theme-grid article{border:1px solid var(--line);border-radius:10px;padding:10px 12px}.theme-grid strong{font-size:12px}
.theme-grid p{margin:4px 0 6px;font-size:11px;line-height:1.45;color:#4d4944}.theme-grid .card-list{font-size:11px;color:#6b665f}
.chart-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px;margin:12px 0}
.chart-card{padding:14px 16px;margin:0}.chart-card h3{margin:0 0 4px;font-size:13px}.chart-note{margin:0 0 8px;font-size:11px;color:var(--muted)}
.bar-chart{display:grid;gap:8px;margin-top:8px}
.bar-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(48px,1fr) 96px;gap:10px;align-items:center;font-size:12px}
.bar-label{color:#4d4944;line-height:1.35}
.bar-track{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}.bar-track span{display:block;height:100%;border-radius:999px;background:#7c94b3}
.bar-value{text-align:right;font-weight:600;white-space:nowrap}.bar-value small{margin-left:6px;font-weight:400;color:var(--muted)}
.window-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:0}
.window-list div{border:1px solid var(--line);border-radius:10px;padding:10px 12px}.window-list dt{font-size:11px;color:var(--muted)}
.window-list dd{margin:4px 0 0;display:grid;gap:3px}.window-list strong{font-size:14px}.window-list span{font-size:11px;line-height:1.45;color:#6b665f}
.plain-list{margin:0;padding-left:18px;font-size:12px;line-height:1.6}.more-charts summary{cursor:pointer;font-size:12px;font-weight:600;margin:6px 0}
.understanding .page-head{align-items:center}.understanding-search{width:min(320px,100%)}
.field-search{width:min(360px,100%);margin:0 0 12px}
.understanding .detail-section ul{margin:0;padding-left:18px;font-size:12px;line-height:1.6}
.process-step{margin:0 0 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0 14px}
.process-step>summary{display:flex;align-items:center;gap:10px;padding:12px 0;font-size:13px;font-weight:600;cursor:pointer}
.step-number{display:inline-grid;width:22px;height:22px;border-radius:50%;background:#efede9;place-items:center;font-size:11px}
.step-body{padding:0 0 12px;font-size:12px;line-height:1.55}.step-body h4{margin:12px 0 4px;font-size:12px}.step-body ul{margin:0;padding-left:18px}

.guide-story{margin:0;padding-left:18px;font-size:13px;line-height:1.7}
