/* Happyformance • anthracite, medium grey, burgundy. Content and layout retained. */
:root{--brand:#782b40;--ink:#34373c;--muted:#656970;--bg:#f7f6f3;--border:#e3e2df;--hf-ink:#34373c;--hf-muted:#656970;--hf-wine:#782b40;--hf-line:#e3e2df;--hf-canvas:#f7f6f3;--hf-soft:#f1f0ed}
body[data-happy-theme]{background:var(--hf-canvas);color:var(--hf-ink);-webkit-font-smoothing:antialiased}
body[data-happy-theme] :is(h1,h2,h3,h4,h5,h6){color:var(--hf-ink)!important;font-weight:600;letter-spacing:-.018em}
body[data-happy-theme] :is(p,.muted,.small,.help,.help-text,.hint,.note,.subtitle,.description,.dashboard-intro,.kpi-note,.ai-sub,.ai-tiny,.module-index,.workspace-footer,.nv footer){color:var(--hf-muted)}
body[data-happy-theme] :is(input,textarea,select,label,legend,summary,td,.kpi-value,.workspace-title b){color:var(--hf-ink)}
body[data-happy-theme] :is(input,textarea,select){background:#fff;border-color:#c8cbd0;border-radius:8px;box-shadow:none}
body[data-happy-theme] :is(input,textarea)::placeholder{color:#6c7076;opacity:1}
body[data-happy-theme] :is(input,textarea,select):focus-visible{outline:2px solid #9a5365;outline-offset:2px;border-color:var(--hf-wine)}
body[data-happy-theme] :is(button,.btn,.nv-button){background:var(--hf-wine);color:#fff;box-shadow:none;border-radius:8px;font-weight:600;transition:background-color .15s,box-shadow .15s}
body[data-happy-theme] :is(button,.btn,.nv-button):hover{background:#632337;box-shadow:0 2px 8px #34373c12}
body[data-happy-theme] :is(button,.btn,a,input,textarea,select,summary):focus-visible{outline:3px solid #9a5365;outline-offset:3px}
body[data-happy-theme] :is(button.secondary,.btn.secondary,button.light,.btn.light){background:#eeefed;color:var(--hf-ink);border:1px solid #d6d8d6}
body[data-happy-theme] :is(button.secondary,.btn.secondary,button.light,.btn.light):hover{background:#e2e4e1}
body[data-happy-theme] :is(.card,.ai-sidebar,.ai-main,.module-card,.kpi-card,.nv section,.nv header,.nv-question){background:#fff;border-color:var(--hf-line);box-shadow:0 3px 14px #34373c04}
body[data-happy-theme] .sidebar{background:#30343a!important;color:#f4f4f2}
body[data-happy-theme] .sidebar-caption{color:#cbd0d5;letter-spacing:.09em}
body[data-happy-theme] .side-nav a{color:#e6e9ec;border-radius:8px}
body[data-happy-theme] .side-nav a span{color:#cbd0d5}
body[data-happy-theme] .side-nav a:hover{background:#41464e;color:#fff}
body[data-happy-theme] .side-nav a[aria-current=page]{background:#782b40;color:#fff}
body[data-happy-theme] .side-nav a[aria-current=page] span{color:#fff}
body[data-happy-theme] .sidebar-bottom{border-color:#555c65;color:#dce0e3}
body[data-happy-theme] .sidebar-bottom :is(small,span){color:#cbd0d5}
body[data-happy-theme] .cockpit-menu-toggle{background:#41464e;color:#f4f4f2;border-color:#646b74}
body[data-happy-theme] :is(.workspace-title b,.kpi-label){color:var(--hf-ink)}
body[data-happy-theme] :is(.topbar,.workspace-footer){border-color:var(--hf-line)}
body[data-happy-theme] .website-link{background:#fff;color:var(--hf-ink);border-color:var(--hf-line)}
body[data-happy-theme] .logout-link{color:var(--hf-muted)}
body[data-happy-theme] :is(th,thead th){background:#f0f1ef!important;color:#555b63!important;border-color:var(--hf-line);font-weight:600}
body[data-happy-theme] td{border-color:#e7e8e5}
body[data-happy-theme] tbody tr:hover{background:#fafaf8}
body[data-happy-theme] :is(.flash,.nv-alert){background:#f6eff1;border-color:#e6d4d9;border-left-color:var(--hf-wine);color:#623242}
body[data-happy-theme] .ai-message{color:var(--hf-ink);line-height:1.7}
body[data-happy-theme] .ai-message p{color:var(--hf-ink)}
body[data-happy-theme] .ai-user{background:#f1e7ea}
body[data-happy-theme] .ai-answer{background:#f5f5f2}
body[data-happy-theme] .ai-author{color:#714052}
body[data-happy-theme] .ai-scope{background:#f5f5f2}
body[data-happy-theme] :is(.ai-compose,.ai-sidebar hr){border-color:var(--hf-line)}
body[data-happy-theme] .ai-sidebar a.btn{color:white!important;background:var(--hf-wine)}
body[data-happy-theme] :is(.ai-sidebar a.selected,.ai-badge){background:#f2e7eb;color:#713348}
body[data-happy-theme] .ai-examples button{background:#f5f3f2;color:var(--hf-wine);border-color:#e1d4d8}
body[data-happy-theme] .nv{--wine:#782b40;--ink:#34373c}
body[data-happy-theme] .nv :is(p,footer,label>span){color:var(--hf-muted)}
body[data-happy-theme] .nv :is(h1,h2,h3,legend,label,.nv-report-row strong){color:var(--hf-ink)}
body[data-happy-theme] .nv :is(td,p strong){color:var(--hf-ink)}
body[data-happy-theme] .nv-choices label{background:#f3f4f1;font-weight:400}
body[data-happy-theme] .nv-choices label:has(input:checked){background:#efe0e5;outline-color:var(--hf-wine)}
body[data-happy-theme] .nv-sticky{background:#faf9f6;color:var(--hf-muted);border-bottom:1px solid var(--hf-line);box-shadow:0 2px 8px #34373c07}
body[data-happy-theme] .nv-sticky strong{color:var(--hf-ink)}
body[data-happy-theme] :is(.primary-module,.kpi-card.featured){background:#782b40!important;border-color:#782b40!important;color:#fff!important}
body[data-happy-theme] :is(.primary-module,.kpi-card.featured) :is(h1,h2,h3,h4,strong,.kpi-value,.kpi-label){color:#fff!important}
body[data-happy-theme] :is(.primary-module,.kpi-card.featured) :is(p,small,.kpi-note,.module-index,.kpi-breakdown,.kpi-breakdown span){color:#f0dfe5!important}
body[data-happy-theme] .report :is(p,li){color:#555b63}
body[data-happy-theme] :is(.error,.ai-error,[role=alert]){color:#9c263f}
@media(prefers-reduced-motion:reduce){body[data-happy-theme] :is(button,.btn,.nv-button){transition:none}}
@media print{body[data-happy-theme]{background:#fff}body[data-happy-theme] :is(p,.muted,.small,.ai-tiny,.nv p,.nv footer){color:#555b63}body[data-happy-theme] :is(.card,.report,.nv section,.nv header,.nv-question){box-shadow:none}body[data-happy-theme] :is(.nv-bar,.nv-track){print-color-adjust:exact;-webkit-print-color-adjust:exact}}
body[data-happy-theme] :is(.section-heading>span,.kpi-breakdown>span,.kpi-status,.dashboard-breadcrumb,.campaign-context,.filter-tabs a,.detail-heading small){color:var(--hf-muted)}
body[data-happy-theme] .filter-tabs a.selected{color:#fff}
body[data-happy-theme] .kpi-card.featured .kpi-breakdown>span{color:#f0dfe5!important}
