:root{--ink:#291737;--muted:#786e80;--line:#e7e0eb;--paper:#fff;--soft:#f7f4fa;--accent:#733c98;--amber:#995b16}
.module-nav{display:flex;flex-direction:column;gap:.35rem}.module-nav a{padding:.7rem 1rem;border-radius:12px;color:inherit;text-decoration:none}.module-nav a[aria-current=page]{background:#ede3f4;font-weight:700}.module-nav [aria-disabled=true]{color:var(--amber);background:#fff5e6;cursor:help}.module-nav small{font-size:.7rem;margin-left:.3rem}.module-nav .future{opacity:.6;background:none;color:var(--muted)}
.head-actions,.toolbar,.tabs,.calendar-controls{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.head-actions{justify-content:flex-end}.quiet{background:var(--soft);color:var(--ink);border:1px solid var(--line)}.tabs{margin:1.2rem 0}.tabs button[aria-selected=true]{background:var(--ink);color:white}.tabs button:disabled{opacity:.45}.tabs button{padding:.65rem 1rem}.calendar-card{padding:1.25rem!important}.calendar-controls{justify-content:space-between;margin-bottom:1rem}.calendar-controls h2{margin:0;font-size:1.35rem}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekday{text-align:center;font-size:.8rem;color:var(--muted);padding:.3rem}.calendar-day{min-height:72px;background:var(--soft);border:1px solid transparent;border-radius:10px;padding:.45rem;color:var(--ink);font-size:.9rem;text-align:left;display:flex;flex-direction:column;gap:4px}.calendar-day.today{border-color:#b793d1}.calendar-day.selected{outline:2px solid var(--accent)}.calendar-day.empty{background:transparent}.event-marker{font-size:.68rem;line-height:1.2;border-radius:5px;padding:4px;background:#e7d8f1;overflow:hidden;overflow-wrap:anywhere}.event-marker.monthly{background:#dceee6;color:#235c44}.calendar-legend{display:flex;gap:1rem;font-size:.78rem;color:var(--muted);margin-top:.8rem}.timeline-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr);gap:1.2rem;align-items:start}.timeline-summary h2{margin-top:0}.timeline-summary p{font-size:.95rem}.calendar-controls select{width:auto;padding:.4rem}.period-popover{position:relative}.period-popover>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:.7rem 1rem;background:white}.period-menu{position:absolute;right:0;z-index:5;width:300px;max-width:85vw;background:white;box-shadow:0 12px 40px #29173722;border:1px solid var(--line);border-radius:12px;padding:1rem}.period-menu form{display:grid;gap:.65rem}.period-menu input{width:100%}.snapshot-empty{padding:2rem;text-align:center;color:var(--muted)}.product-modal{border:1px solid var(--line);border-radius:20px;width:min(760px,92vw);max-height:88vh;padding:1.5rem;color:var(--ink)}.product-modal::backdrop{background:#170c2280}.product-modal textarea{width:100%;min-height:130px}.modal-top{display:flex;justify-content:space-between;align-items:center;gap:1rem}.modal-top button{padding:.4rem .8rem}.product-modal footer{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}.product-modal .note{color:var(--muted);font-size:.85rem}.question-progress{color:var(--accent);font-weight:700}.advanced-section>summary{cursor:pointer;display:flex;justify-content:space-between;font-weight:700;padding:.75rem 0}.advanced-section>summary::after{content:'+'}.advanced-section[open]>summary::after{content:'−'}[hidden]{display:none!important}.pending-banner{background:#fff5e6;color:var(--amber);border-radius:12px;padding:1rem}.page-state{display:inline-block;border-radius:20px;background:#ede3f4;padding:.3rem .7rem;font-size:.8rem}.report-scope-note{color:var(--muted);font-size:.85rem}.creative-dialog{width:min(1000px,94vw)}.campaign-tile .toolbar{margin-top:.8rem}.danger-quiet{background:transparent;color:#9b3434;border:1px solid #e5cece}.hero-summary{font-size:1.1rem;line-height:1.65}.source-panels section h2{font-size:1.25rem}.calendar-range{margin:1rem 0;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
@media(max-width:950px){.timeline-layout{grid-template-columns:1fr}.calendar-day{min-height:65px}.product-head{align-items:flex-start}.head-actions{justify-content:flex-start}}@media(max-width:600px){.calendar-card{padding:.75rem!important}.calendar-day{min-height:58px;padding:.25rem}.event-marker{font-size:.55rem;padding:2px}.calendar-controls{gap:.35rem}.calendar-controls h2{font-size:1.05rem}.calendar-grid{gap:2px}.product-modal{padding:1rem}.tabs{gap:.3rem}.tabs button{padding:.5rem .65rem}.period-menu{right:auto;left:0}}

.module-nav a[aria-current=page]{color:var(--ink)}.tabs button{background:white;color:var(--ink);border:1px solid var(--line)}.event-marker{white-space:nowrap;text-overflow:ellipsis;overflow-wrap:normal}.channel-pending{background:#fff5e6!important;color:var(--amber)!important}.product-head{flex-wrap:wrap}.product-head>div:first-child{min-width:0;flex:1 1 260px}.product-head>.head-actions{flex:0 1 auto}.creative-item{border:1px solid var(--line);border-radius:12px;padding:.8rem;margin:.6rem 0}.creative-item.rejected{background:#fff3ef}.creative-item .toolbar button{font-size:.8rem;padding:.4rem .7rem}.separate-campaigns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.separate-campaigns article{border:1px solid var(--line);border-radius:14px;padding:1rem}.separate-campaigns article.pending{opacity:.6;background:var(--soft)}
@media(max-width:600px){.product-head{flex-direction:column}.product-head>div:first-child{flex:auto;width:100%}.product-head h1{font-size:2rem}.head-actions{width:100%;justify-content:flex-start}.event-marker{font-size:.6rem}.separate-campaigns{grid-template-columns:1fr}.calendar-legend{display:block;font-size:.7rem}}

.future-channel{display:block;padding:.7rem 1rem;color:var(--muted);font-size:.85rem}.creative-item input{width:100%}

/* Explicit light modal surfaces prevent the legacy dark dialog gradient from
   inheriting light-page ink. Questions intentionally retain the brand dark theme. */
dialog.product-modal,dialog#newCampaignDialog,dialog#campaignStatusDialog,dialog#requestDialog{background:#fff;color:#291737}
dialog.product-modal :is(h2,h3,h4,label,summary,strong),dialog#newCampaignDialog :is(h2,label),dialog#campaignStatusDialog :is(h2,h3,label){color:#291737}
dialog.product-modal :is(p,small,.note){color:#665c6e}
dialog.question-modal{background:#201329;color:#fff5d7}
dialog.question-modal :is(h2,h3,label,.question-progress){color:#ffdc83}
dialog.question-modal :is(p,small,.note){color:#ded3e5}
dialog.question-modal :is(input,textarea,select){background:#fff;color:#291737}
dialog button{position:static;font-size:1rem}dialog :is(input,textarea,select){color:#291737;background:#fff}
.campaign-ready{background:#fff9e6;border-color:#d8b653}.campaign-ready .campaign-badge{color:#76530e}
.campaign-pending,.campaign-attention{background:#fff0ed;border-color:#d9a29a}.campaign-pending .campaign-badge,.campaign-attention .campaign-badge{color:#92382f}
.creative-feedback{color:#60466e!important;background:#f3edf7;padding:.6rem;border-radius:8px;line-height:1.5}.creative-feedback:empty{display:none}
.report-prose{line-height:1.65}.report-prose h3{margin-top:1.3rem}.report-detail-link{display:inline-block;margin-top:1rem}
input[readonly]{background:#f5f2f7;color:#63596b;cursor:default}

.knowledge-group{border-top:1px solid #665371;padding:1rem 0}.knowledge-group summary{color:#ffdc83;cursor:pointer;font-weight:700}.knowledge-group h3{color:#f4eefa;margin:1rem 0 .4rem}.knowledge-group small{color:#d0c5d7}.knowledge-group a{color:#ffdc83}.knowledge-group p{overflow-wrap:anywhere}.module-nav .packages-link{margin-top:2rem;border-top:1px solid #665371}.report-backlog{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.report-backlog button{font-size:.9rem}.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.plan-grid .panel{padding:1.5rem;border:1px solid #ded6e5;border-radius:16px}.plan-grid button:disabled{opacity:.65;cursor:not-allowed}
.plan-grid .panel{background:#fff;color:#291737}.plan-grid .panel h2{color:#291737}.plan-grid .panel p{color:#62586b}.plan-grid button:disabled{background:#eee8f2;color:#62586b;opacity:1}.product-side .module-nav{min-height:68vh}.module-nav .packages-link{margin-top:auto}
.interpret-action{background:#ffdc83;color:#291737;border:1px solid #caa44a}.interpretation-modal{width:min(980px,94vw);line-height:1.65}.interpretation-modal section{border-bottom:1px solid #ded6e5;padding:.5rem 0 1rem}.interpretation-modal footer{display:block}.interpretation-modal footer button:disabled{background:#eee8f2;color:#62586b;cursor:not-allowed}.interpretation-modal summary{cursor:pointer;font-weight:700}.knowledge-assessment{padding:.5rem 0}#companyAssessment h3{color:#ffdc83}#companyAssessment li{color:#ede5f2}

.search-ad-example{background:#fff;color:#291635;padding:1.2rem;border:1px solid #ddd;border-radius:12px;margin:1rem 0}.search-ad-example h3{color:#174ea6}.search-ad-example small{color:#49504b}

/* Campaign readiness and explicit text choices. */
.campaign-essentials{border-bottom:1px solid #d6cadd;padding-bottom:1.5rem}.creative-pending{outline:2px solid #dfae35;outline-offset:4px}.creative-navigation{position:sticky;top:0;z-index:2;background:#fff6d8;color:#281634;padding:1rem;display:flex;gap:1rem;align-items:center;justify-content:space-between}.creative-navigation:empty{display:none}.creative-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:1rem 0}.creative-comparison article{background:#fff;color:#281634;border:1px solid #dacde1;border-radius:12px;padding:1rem}.creative-comparison h4{color:#281634}.creative-comparison button{width:100%}#missing:not(:empty){background:#fff5db;color:#594000;padding:1rem;border-radius:12px}[aria-invalid=true]{outline:2px solid #b83131}

/* Shared portal chrome, independent of module or legacy stylesheet. */
body .product-side{box-sizing:border-box;background:#281536;color:#fff;width:240px;padding:32px 22px;position:sticky;top:0;height:100dvh;overflow-y:auto;display:flex;flex-direction:column;gap:28px;font:15px/1.6 system-ui,sans-serif;flex-shrink:0}
body .product-side .brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:17px;font-weight:800;letter-spacing:2px;text-decoration:none;margin:0}body .product-side .brand img{width:36px;height:36px;object-fit:contain}
body .product-side .identity{display:block;border:1px solid #ffffff30;border-radius:12px;padding:0;margin:0;background:transparent}body .product-side .client-switch{display:block;width:100%;text-align:left;background:transparent;color:#fff;padding:15px;border:0;border-radius:12px;cursor:pointer;font:inherit}body .product-side .client-switch:hover{background:#ffffff12}body .product-side .client-switch small{display:block;color:#e1c99a;font-size:11px;letter-spacing:1px}body .product-side .client-switch strong{display:block;color:white;font-size:21px;line-height:1.4}
body .product-side .module-nav{display:flex;flex-direction:column;gap:8px;min-height:0}body .product-side .module-nav a{display:block;color:#eee4f3;font-size:15px;font-weight:500;text-decoration:none;padding:12px 16px;border:0;border-radius:12px;background:transparent}body .product-side .module-nav a[aria-current=page]{background:#ede2f5;color:#281536;font-weight:700}body .product-side .module-nav .future{padding:8px 0;color:#c2b4cc;font-size:13px}.product-side .side-note,.product-side>a:last-child:not(.brand){display:none}
.company-page .app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.company-page .workspace-main{margin:0;width:100%;max-width:1240px;padding:38px 46px 80px}.refresh-help[role=status]{max-width:260px;color:#4d4058}
@media(max-width:850px){body .product-side{position:relative!important;width:100%!important;height:auto;padding:18px;gap:16px}.company-page .app{display:block}.company-page .workspace-main{padding:24px 18px}body .product-side .module-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body .product-side .identity{display:block!important}}

body .product-side>a:not(.brand){display:none}.view-choices{display:flex;gap:8px;margin:0 0 20px}.view-choices button{background:#eee7f1;color:#281536;border:1px solid #ded6e5}.view-choices button[aria-pressed=true]{background:#281536;color:#fff}

.portal-view-toggle{margin-top:auto;padding-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:4px;flex-shrink:0}.portal-view-toggle button{font:600 12px/1.4 system-ui,sans-serif;padding:10px 6px;border:1px solid #ffffff38;border-radius:9px;background:transparent;color:#fff;cursor:pointer}.portal-view-toggle button[aria-pressed=true]{background:#ffdc83;color:#281536;border-color:#ffdc83}.priority-group{margin:12px 0;border:1px solid #ddd2e5;border-radius:14px;padding:16px}.priority-group>summary{cursor:pointer;font-weight:750;font-size:18px}.priority-group>p{color:#675b70;font-size:13px}.priority-group .ticket-card{border-width:1px;color:#281536}.priority-group .ticket-cancelled{background:#fff0ef;border-color:#d18681}.priority-group .ticket-review{background:#fff7d7;border-color:#d4b753}.priority-group .ticket-approved{background:#eaf8ee;border-color:#92c9a4}body .product-side>.identity{order:0}body .product-side .portal-view-toggle{order:10}

html[data-client-experience="evaluation"] .measurement-chain-detail{display:none!important}
