/* Approved mist / sage / gray-green / taupe / flax palette. Colors only. */
:root,[data-theme="light"]{
 --ink:#26312C;--muted:#606C66;--line:#D6D8CD;--bg:#F7F6F2;--paper:#FFFefa;
 --green:#416860;--light:#E7ECE6;--gold:#416860;--side:#5D6C67;
 --brand-hover:#8FAEAC;--brand-soft:#E7ECE6;--theme-accent:#A3BDBC;
 --theme-sage:#B0BFBA;--theme-taupe:#B1A78B;--theme-flax:#DDDDB9;
 --theme-selected:#EAEAD2;--theme-link:#365E57;--theme-input:#FFFFFF;--theme-danger:#8F4039;
 --theme-danger-bg:#F8EBE8;--theme-alert:#4C615A;--theme-on-side:#F5F4EE;
}
[data-theme="dark"]{
 --ink:#F0F2EB;--muted:#BAC7C0;--line:#4B5C52;--bg:#1E2623;--paper:#28332E;
 --green:#A3BDBC;--light:#34443B;--gold:#A3BDBC;--side:#36453E;
 --brand-hover:#B0C9C5;--brand-soft:#34443B;--theme-accent:#A3BDBC;
 --theme-selected:#4D5C44;--theme-link:#C0D9CE;--theme-input:#202B25;
 --theme-danger:#F1B0A4;--theme-danger-bg:#48322F;--theme-alert:#384F44;
}
html,body{background:var(--bg);color:var(--ink)}
body{background:var(--bg)}
::selection{background:var(--theme-flax);color:#26312C}
a{color:var(--theme-link)}
button,.button,input,select,textarea{color:var(--ink);border-color:var(--line);background:var(--theme-input)}
button:hover,.button:hover{background:var(--light);border-color:var(--theme-sage)}
button.primary,.button.primary{background:var(--theme-accent);border-color:var(--theme-accent);color:#203A35;box-shadow:none}
button.primary:hover,.button.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:#203A35}
button.dark{background:var(--side);border-color:var(--side);color:var(--theme-on-side)}
button.danger{color:var(--theme-danger)}button.danger:hover{background:var(--theme-danger-bg);border-color:var(--theme-danger)}
:where(button,a,input,select,textarea):focus-visible{outline-color:var(--green)}
input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 24%,transparent)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
label,.hint,.muted,.stat-top,.stat-caption,.project-info p,.project-meta,.project-bottom>span,.page-head p,.requirements-display,.empty-state,.empty-state h2,.steps,.demo-label,.canvas-caption,.comparison p,footer{color:var(--muted)}
.sidebar,.staff-admin-sidebar{background:var(--side);color:var(--theme-on-side);border-color:var(--line)}
.sidebar .brand{background:transparent;border-color:transparent;color:var(--theme-on-side);box-shadow:none}
.brand .brand-name small,.office-label,.private,.sidebar-bottom p,.profile small{color:var(--theme-on-side)}
.sidebar nav button,.staff-admin-sidebar nav button{color:var(--theme-on-side);background:transparent;border-color:transparent}
.sidebar nav button:hover,.staff-admin-sidebar nav button:hover{background:#ffffff14;color:var(--theme-on-side);border-color:#ffffff35}
.sidebar nav button.active,.staff-admin-sidebar nav button.active{background:var(--theme-flax);border-color:var(--theme-flax);color:#26312C;box-shadow:inset -3px 0 0 var(--theme-accent)}
.sidebar nav button>span{color:var(--theme-sage)}.sidebar nav button.active>span{color:#365E57}
nav b,.notice-count{background:var(--theme-accent);color:#203A35}
.private span{background:var(--theme-flax)}.sidebar-bottom .private,.profile{border-color:#ffffff35}
.profile>span,.avatar,.portal-brand .brand-logo{background:var(--side);border-color:var(--theme-sage);color:var(--theme-on-side)}
.topbar,.portal-header{background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:none}
.portal-brand,.portal-brand-name{color:var(--ink)}.portal-brand-name small,.crumb,.slash{color:var(--muted)}
.prototype,.portal-header>span{background:var(--bg);color:var(--muted);border-color:var(--line)}
.notice{background:var(--light);color:var(--ink);border-color:var(--line)}
.eyebrow,.quota-number,.tabs button.active{color:var(--green)}.tabs button.active{border-color:var(--green)}
.panel,.stat,.project-card,.review-card,dialog{background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:none}
.stat{background:var(--paper);border-top-color:var(--theme-sage)}.stat-value{color:var(--ink)}
.stat-top span:last-child{background:var(--light);color:var(--green)}
.project-card:hover{border-color:var(--theme-sage);box-shadow:0 8px 24px #24372C0A}
.project-visual .badge{background:var(--paper);color:var(--ink)}
.filters button{color:var(--muted)}.filters button.selected,.badge,.badge.pending,.alternatives button.active{background:var(--theme-selected);color:var(--ink);border-color:var(--theme-taupe)}
.filter-count,.badge.neutral{background:var(--light);color:var(--muted)}.filters .selected .filter-count{background:var(--theme-flax);color:#26312C}
.empty-create{background:var(--paper);color:var(--green);border-color:var(--theme-taupe)}.empty-state .empty-icon{color:var(--theme-taupe)}
.callout,.review-body,.drawing-footer,.comparison>div,.history-item,.client-room-controls,.free-room-fields,.structural-reference-controls,.staff-attachments,.notice-device,.space-group-head,.program-submit,.report-original,.report-referral{background:var(--light);color:var(--ink);border-color:var(--line)}
.space-instance{background:var(--paper);border-color:var(--line)}.space-instance-title,.instance-area,.space-floor,.count-summary,.space-group summary{color:var(--muted)}
.revision-meter i{background:var(--line)}.revision-meter i.used{background:var(--theme-accent)}
.steps b{background:var(--theme-selected);color:var(--ink)}
th{background:var(--light);color:var(--muted)}th,td,.staff-file-row,.notice-item,.report-inbox-item,footer{border-color:var(--line)}
.staff-save-note,.staff-saved,.reference-legend,.report-preview dt,.report-inbox-item small{color:var(--muted)}
.staff-error,.sync-error{background:var(--theme-danger-bg);color:var(--theme-danger)}.reference-warning{color:var(--theme-danger)}
.staff-notifications,.staff-task-dialog,.structure-dialog{border-color:var(--theme-sage)}
.staff-assignment-alert{background:var(--theme-alert);border-color:var(--theme-accent);color:var(--theme-on-side)}.staff-assignment-alert p{color:var(--theme-on-side)}
.staff-admin-sidebar strong{color:var(--theme-flax)}
.report-inbox-item.selected{border-inline-start-color:var(--green);background:var(--light)}
.report-letterhead{border-bottom-color:var(--green)}.report-preview h3{color:var(--green)}
.report-referral h3{color:var(--green)}
.editor-focus,.client-interactive-editor .editor-focus{background:var(--paper)}
.plan-viewport:focus-visible,.client-interactive-editor .plan-viewport:focus-visible{outline-color:var(--green)}
.picked,.client-interactive-editor .picked{stroke:var(--green)}.selected-room{outline-color:var(--green)}
progress,#staff-project-files progress{accent-color:var(--theme-accent)}
#toast{background:var(--side);color:var(--theme-on-side);border-color:var(--theme-accent)}
dialog::backdrop{background:#17241D99}
.theme-toggle{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:.82rem;padding:8px 12px;flex-shrink:0}
/* Drafting canvases and the report letter remain paper-colored in either mode. */
.plan-stage,.plan-viewport,.client-interactive-editor .plan-viewport{background-color:#FCFCFA;color:#26312C}
.plan-stage{background-image:radial-gradient(#DEDfd6 .65px,transparent .65px)}
.report-preview{background:#FFFFFF;color:#26312C;border-color:#D6D8CD}
.report-preview dt,.report-letterhead p{color:#606C66}.report-preview h3{color:#416860}
@media(max-width:760px){.portal-header{flex-wrap:wrap}.theme-toggle{font-size:.78rem;padding:7px 10px}.top-actions{flex-wrap:wrap}}
@media print{html,body{background:#FFFFFF;color:#26312C}.theme-toggle{display:none!important}.panel,.stat,.project-card,.review-card{background:#FFFFFF;color:#26312C;border-color:#D6D8CD;box-shadow:none}}

/* EngMent lockup: centered, transparent and shared by all entry points. */
.sidebar .brand{min-height:165px;padding:15px 10px;gap:0}.sidebar .engment-logo{width:180px;max-width:100%;aspect-ratio:640/430;object-fit:contain}.portal-brand .engment-logo{width:140px;aspect-ratio:640/430;background:var(--side);border-radius:6px;padding:10px}.portal-brand-name{font-weight:400}.brand-symbol{object-fit:contain}.project-progress{margin:16px 0;color:var(--ink)}.project-progress>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.85rem}.project-progress strong{font-weight:500}.project-progress progress{display:block;width:100%;height:6px;border:0;border-radius:9px;overflow:hidden;background:var(--line);margin:9px 0;accent-color:var(--theme-accent)}.project-progress progress::-webkit-progress-bar{background:var(--line);border-radius:9px}.project-progress progress::-webkit-progress-value{background:var(--theme-accent);border-radius:9px}.project-progress progress::-moz-progress-bar{background:var(--theme-accent);border-radius:9px}.project-progress .hint{font-size:.75rem}@media(max-width:760px){.portal-brand .engment-logo{width:110px}.sidebar .engment-logo{max-width:180px}}

/* Larger lockup and readable tagline at desktop and compact widths. */
.sidebar .brand{min-height:190px}.sidebar .engment-logo{width:210px;max-width:100%}.portal-brand .engment-logo{width:185px;padding:8px}@media(max-width:760px){.sidebar .engment-logo{max-width:210px}.portal-brand .engment-logo{width:150px}}

.engment-logo{aspect-ratio:640/460!important}
