:root{--body-font:'Source Sans 3',Arial,sans-serif;--heading-font:Manrope,Arial,sans-serif;--text-scale:1.142857;--surface:#fff;--surface-soft:#f0f2e9}
body{font-family:var(--body-font);font-size:calc(14px * var(--text-scale));line-height:1.5}h1,h2,h3,.metric{font-family:var(--heading-font)}aside{left:0;top:0;bottom:0;height:100dvh}aside nav{overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin}aside .foot{flex:none}body[data-panel=right] aside{left:auto;right:0}body[data-panel=right] main{margin-left:0;margin-right:230px}
/* The palette owns both sidebar colors and theme-specific accent colors. */
body{--accent-solid:#21594c;--accent-bright:#b8d99a;--accent-soft:#e8f0e9;--sidebar-bg:#142e29;--sidebar-hover:#264a40;--sidebar-active:#345b4d;--dark-bg:#15231f;--dark-surface:#20332b;--dark-soft:#2d4036;--green:var(--accent-solid);--button-ink:#fff;--sidebar-ink:#edf5f2;--sidebar-muted:#c3d3d0;--muted:#52645e}
body[data-accent=indigo]{--accent-solid:#4f46a5;--accent-bright:#c6beff;--accent-soft:#eeecfa;--sidebar-bg:#24213f;--sidebar-hover:#39345f;--sidebar-active:#4c457b;--dark-bg:#1b192a;--dark-surface:#29263c;--dark-soft:#39334f}
body[data-accent=slate]{--accent-solid:#35556c;--accent-bright:#b7d6f0;--accent-soft:#e8eff4;--sidebar-bg:#1b2c3a;--sidebar-hover:#2e485c;--sidebar-active:#3e5c73;--dark-bg:#18222b;--dark-surface:#243440;--dark-soft:#334856}
body[data-accent=copper]{--accent-solid:#8b4327;--accent-bright:#f3c4a5;--accent-soft:#f7ede6;--sidebar-bg:#39231c;--sidebar-hover:#56382a;--sidebar-active:#704531;--dark-bg:#291e1a;--dark-surface:#3b2c25;--dark-soft:#4e3a2f}
body[data-theme=dark]{--ink:#e4ede8;--muted:#b1c2b9;--green:var(--accent-bright);--button-ink:#182129;--line:#56605e;--bg:var(--dark-bg);--surface:var(--dark-surface);--surface-soft:var(--dark-soft)}body[data-theme=dark] .card,body[data-theme=dark] input,body[data-theme=dark] textarea,body[data-theme=dark] select,body[data-theme=dark] dialog,body[data-theme=dark] .secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}body[data-theme=dark] .sub,body[data-theme=dark] p{color:var(--muted)}body[data-theme=dark] th,body[data-theme=dark] .notice,body[data-theme=dark] .tabs button,body[data-theme=dark] .scopebar{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}body[data-theme=dark] .report,body[data-theme=dark] .report p,body[data-theme=dark] .report .sub{background:#fff;color:#182d2a}body[data-density=compact] .card{padding:16px}body[data-density=compact] nav button{padding:9px 12px}body[data-density=compact] td{padding:10px}
.settings-preview{background:var(--surface-soft);padding:26px;border-radius:12px;border:1px solid var(--line)}.settings-preview h2{font-size:calc(26px * var(--text-scale));margin-bottom:8px}.settings-preview p{max-width:65ch}.profile-avatar{height:96px;width:96px;border-radius:50%;object-fit:cover;background:#e8eddf}.profile-heading{display:flex;gap:22px;align-items:center;margin-bottom:22px}.profile-heading h2{margin-bottom:4px}.profile-section{white-space:pre-wrap}.brand-logos{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 28px}.brand-logos img{max-height:70px;max-width:200px;object-fit:contain}.brand-logos.center{justify-content:center}.brand-logos.left{justify-content:flex-start}.report{--body-font:'Source Sans 3',Arial,sans-serif;--heading-font:Manrope,Arial,sans-serif;--text-scale:1.142857;--ink:#182d2a;--muted:#52645c;--line:#dfe6df;--surface:#fff;--surface-soft:#f7f8f4;font-size:16px;font-family:var(--body-font);line-height:1.6;background:#fff!important;color:#182d2a!important}.report h1,.report h2,.report h3{font-family:var(--heading-font)}.report p,.report .sub{color:#52645c!important}.report-footer{border-top:1px solid #dfe6df;margin-top:32px;padding-top:18px;white-space:pre-wrap}.logo-preview{max-width:180px;max-height:70px;margin:12px 0;object-fit:contain;display:block;background:white}.owner-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.owner-metrics .metric{margin:8px 0}.consent-check{align-items:flex-start}.consent-check input{margin-top:5px}.identity-loading{min-height:150px}.appearance-options label{margin-top:12px}.onboarding-nudge{display:flex;align-items:center;justify-content:space-between;gap:16px}.owner-privacy{border-left:3px solid var(--green)}.profile-details p{white-space:pre-wrap}.owner-table{min-width:850px}.owner-filter{max-width:350px}.profile-share input{font-family:var(--body-font)}
@media(max-width:950px){body[data-panel=right] main{margin-right:190px}.owner-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){aside,body[data-panel=right] aside{position:static;height:auto;max-height:none}aside nav{overflow-x:auto;overflow-y:visible;flex:none}body[data-panel=right] main{margin:0}.profile-heading,.onboarding-nudge{align-items:flex-start;flex-direction:column}.brand-logos img{max-width:125px;max-height:55px}.owner-metrics{grid-template-columns:1fr 1fr}}
@media print{body{color:#182d2a;background:#fff}body[data-panel=right] main{margin:0}.brand-logos{break-inside:avoid}.report h1,.report h2{break-after:avoid}.report tr{break-inside:avoid}#printRoot .report{display:block!important}.report-footer{break-inside:avoid}}

/* Account controls stay outside the scrolling project navigation. */
button{color:var(--button-ink)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--green);outline-offset:3px}
aside{background:var(--sidebar-bg);color:var(--sidebar-ink);isolation:isolate}aside .logo,aside #navLabel{flex-shrink:0}aside #navLabel{color:var(--sidebar-muted)}aside #nav{min-height:0;flex:1 1 0;overscroll-behavior:contain;scrollbar-color:var(--sidebar-active) var(--sidebar-bg)}aside nav button{background:transparent;color:var(--sidebar-ink)}aside nav button:hover{background:var(--sidebar-hover);filter:none}aside nav button.active{background:var(--sidebar-active);color:#fff;box-shadow:inset 3px 0 0 var(--accent-bright)}aside button:focus-visible,aside summary:focus-visible{outline-color:var(--accent-bright)}
aside .foot{position:relative;flex:0 0 auto;margin-top:12px;padding:12px 0 0;border-top:1px solid var(--sidebar-active);min-width:0;color:var(--sidebar-ink)}.account-details{position:relative}.account-summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:10px 7px;border-radius:9px;list-style:none;min-width:0;user-select:none}.account-summary::-webkit-details-marker{display:none}.account-summary:hover,.account-details[open] .account-summary{background:var(--sidebar-hover)}.account-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--sidebar-active);color:#fff;font-size:16px;font-weight:700;border:1px solid var(--sidebar-muted)}.account-avatar img{width:100%;height:100%;object-fit:cover}.account-label{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.4}.account-label strong{display:block;font-size:calc(12px * var(--text-scale));overflow-wrap:anywhere}.account-label #identity{display:block;font-size:calc(10px * var(--text-scale));color:var(--sidebar-muted);overflow-wrap:anywhere}.account-caption{font-size:calc(10px * var(--text-scale));color:var(--sidebar-muted);margin-top:3px}.account-chevron{color:var(--sidebar-muted);font-size:18px;flex:none;transition:transform .15s}.account-details[open] .account-chevron{transform:rotate(180deg)}.account-menu{position:absolute;bottom:calc(100% + 10px);left:0;right:0;background:var(--sidebar-bg);border:1px solid var(--sidebar-active);border-radius:10px;padding:7px;box-shadow:0 8px 30px #0005;max-height:min(460px,calc(100dvh - 150px));overflow-y:auto;z-index:10}.account-menu #accountNav{display:block;overflow:visible;flex:none}.account-menu #accountNav button{white-space:normal;padding:10px;margin:2px 0;font-size:calc(12px * var(--text-scale))}.account-menu #accountNav span{display:inline-block;width:23px}.account-menu #accountActions:has(button){border-top:1px solid var(--sidebar-active);margin-top:5px;padding-top:5px}#signOutButton{display:block;width:100%;text-align:left;background:transparent;color:var(--sidebar-ink);border:0;padding:10px;font-size:calc(12px * var(--text-scale))}#signOutButton:hover{background:var(--sidebar-hover);filter:none}
.profile-avatar{display:grid;place-items:center;flex-shrink:0;overflow:hidden;color:var(--green);background:var(--surface-soft);font-weight:700;font-size:28px}.profile-avatar img{width:100%;height:100%;object-fit:cover}
/* Palette-aware controls and reading surfaces in both themes. */
.tabs button.active,.authlink{background:var(--green);color:var(--button-ink)}.linkbutton{color:var(--green)}.toast{background:var(--sidebar-bg);color:var(--sidebar-ink)}.saving,.muted,.kicker{color:var(--muted)}.settings-preview{align-self:start}.appearance-sample{display:grid;grid-template-columns:minmax(95px,1fr) 1.5fr;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:25px;font-size:calc(12px * var(--text-scale))}.appearance-sample-panel{background:var(--sidebar-bg);color:var(--sidebar-ink);display:flex;flex-direction:column;gap:12px;padding:16px}.appearance-sample-panel strong{font-family:var(--heading-font);font-size:22px}.appearance-sample-active{background:var(--sidebar-active);border-left:3px solid var(--accent-bright);padding:8px;border-radius:4px}.appearance-sample-content{background:var(--surface);padding:20px 14px}.appearance-sample-button{display:inline-block;background:var(--green);color:var(--button-ink);padding:8px 12px;border-radius:6px}.settings-preview .eyebrow{color:var(--green)}body:not([data-theme=dark]) .hero,body:not([data-theme=dark]) .scopebar,body:not([data-theme=dark]) .notice:not(.warning):not(.info){background:var(--accent-soft);color:var(--ink)}body[data-theme=dark] pre,body[data-theme=dark] .emptybox{color:var(--ink);background:var(--surface-soft)}body[data-theme=dark] .hero,body[data-theme=dark] .hero p{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}body[data-theme=dark] .banner{background:var(--sidebar-bg)}body[data-theme=dark] .banner p{color:var(--sidebar-muted)}body[data-theme=dark] .close{background:var(--surface-soft);color:var(--ink)}body[data-theme=dark] .tabs button.active{background:var(--green);color:var(--button-ink)}
@media(max-width:950px) and (min-width:651px){.account-summary{gap:7px;padding:8px 0}.account-avatar{width:32px;height:32px;flex-basis:32px}.account-label strong{font-size:calc(11px * var(--text-scale))}}
@media(max-width:650px){aside .foot{display:block;margin-top:12px;padding-top:10px}aside #nav{display:flex;flex:none;overflow-x:auto;overflow-y:hidden}.account-summary{max-width:420px}.account-menu{left:0;right:auto;width:min(340px,calc(100vw - 36px));max-height:60dvh}.account-menu #accountNav{display:block;overflow:visible}.account-menu #accountNav button{width:100%}.account-label #identity{overflow-wrap:anywhere}.profile-heading{align-items:stretch}.appearance-sample{grid-template-columns:1fr 1.4fr}}
@media(prefers-reduced-motion:reduce){.account-chevron{transition:none}}
body:not([data-theme=dark]){--surface-soft:var(--accent-soft)}.tabs button{background:var(--surface-soft);color:var(--ink)}.tabs button.active{background:var(--green);color:var(--button-ink)}.banner{background:var(--sidebar-bg);color:var(--sidebar-ink)}.banner p{color:var(--sidebar-muted)}.progress i{background:var(--green)}.num{background:var(--surface-soft);color:var(--green)}.report{--accent-soft:#f7f8f4;--green:var(--report-color,#21594c)}

.account-summary{color:var(--sidebar-ink)}
