#account-bar{font:14px system-ui,sans-serif;color:#ddd;background:#171717;border-bottom:1px solid #333;padding:12px 24px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}#account-bar[hidden]{display:none}#account-bar nav{display:flex;gap:16px;margin-left:auto}#account-bar a{color:var(--accent,#f69b39)}#account-bar details{max-width:620px}#account-bar summary{cursor:pointer}#account-bar button{margin:4px;padding:8px 12px}#account-bar p{line-height:1.5}#tenant-management article{padding:24px;margin:16px 0;border:1px solid #555;border-radius:12px}#tenant-management label{display:block;margin:12px 0}#tenant-management input{margin-left:8px;max-width:280px}#tenant-management button{margin:8px}a[hidden]{display:none!important}

/* Optional tenant palette; legacy sites keep their existing appearance. */
html[data-custom-theme]{--yellow:var(--brand-secondary);--gold:var(--brand-secondary);color-scheme:dark}
html[data-custom-theme] body{background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 45%),#090d0e}
html[data-custom-theme] .hero{background:linear-gradient(120deg,#111819,var(--brand-surface));border-color:color-mix(in srgb,var(--brand-secondary) 35%,#172023)}
html[data-custom-theme] :is(.eyebrow,.num,.score-button,.brand span,.analysis-job-status strong){color:var(--brand-secondary)}
html[data-custom-theme] :is(.primary,.hero .primary){background:var(--accent);border-color:var(--accent);color:#101515}
html[data-custom-theme] .primary:hover{background:var(--brand-secondary);border-color:var(--brand-secondary)}
html[data-custom-theme] :is(.analysis-source,.analysis-fields,.analysis-job,.metrics,.tablewrap,#editor){background:#11191a;border-color:color-mix(in srgb,var(--brand-surface) 75%,var(--brand-secondary))}
html[data-custom-theme] :is(button,a,input,select,textarea):focus-visible{outline-color:var(--brand-secondary)}
html[data-custom-theme] .analysis-job-progress{accent-color:var(--accent)}
html[data-custom-theme] .analysis-job-progress::-webkit-progress-value{background:var(--accent)}
html[data-custom-theme] .analysis-job-progress::-moz-progress-bar{background:var(--accent)}
html[data-custom-theme] .brand-logo{border-radius:50%}
html[data-custom-theme] .hero::before{border-radius:50%}

#account-bar{align-items:flex-start;gap:10px 20px;padding:12px 24px;font-size:13px;line-height:1.5}
#account-bar .account-status{padding:3px 0;color:#c9cfcc}
#account-bar .account-usage{position:relative;max-width:360px}
#account-bar .account-usage summary{padding:3px 0;color:#c9cfcc}
#account-bar .account-usage p{margin:10px 0 6px;font-size:12px;color:#b8c2bd}
#account-bar .account-help{font-size:12px;display:block;margin-bottom:4px}
#account-bar nav{padding:3px 0;flex-wrap:wrap;gap:8px 18px}
#account-bar #analytics-preferences{flex-basis:100%;font-size:12px}
@media(max-width:600px){#account-bar{padding:12px 18px;gap:8px 16px}#account-bar nav{width:100%;margin-left:0}#account-bar .account-usage{max-width:100%}}
.analysis-access{margin:24px 0 0;padding:22px 26px;border:1px solid var(--brand-secondary,#645035);border-radius:14px;background:#151d1e}
.analysis-access h2{font-size:26px}.analysis-access p{max-width:650px;color:#c0c9c5;line-height:1.6;font-size:14px}
#workspace>.hero{padding:28px 32px}#workspace>.hero h1{font-size:clamp(36px,5vw,56px);max-width:none;margin:14px 0 18px}#workspace>.hero p{max-width:760px;line-height:1.5}
#analysisForm input:disabled{cursor:not-allowed;opacity:.65}#analysis-access:not([hidden])+#analysisForm .file-alternative{display:none}
@media(max-width:600px){#workspace>.hero{padding:24px}.analysis-access{padding:20px}}

#reviewCoverFrameForm{align-items:flex-end;gap:14px;margin-top:24px}
#reviewCoverFrameForm>label{margin:0;min-width:0}
#reviewCoverTime,#generateReviewCover{min-height:46px}
#generateReviewCover{margin:0}
@media(max-width:600px){#reviewCoverFrameForm{grid-template-columns:minmax(0,1fr)}#reviewCoverFrameForm>label,#generateReviewCover{width:100%}}
