/* Visual refinement only: retain all grids, ordering, dimensions and content. */
:root{--ui-shadow:0 4px 18px #24392C08;--ui-shadow-hover:0 8px 24px #24392C10;--ui-focus:#416860;--ui-ease:cubic-bezier(.2,.7,.2,1);--ui-hairline:#87988C40}
[data-theme="dark"]{--ui-shadow:0 4px 20px #00000018;--ui-shadow-hover:0 8px 24px #00000028;--ui-focus:#C1D7CA;--ui-hairline:#B0BFBA42}
body{font-weight:400;font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1{font-weight:500;letter-spacing:0}h2,h3{font-weight:600;letter-spacing:0}
button,.button,input,select,textarea{font-family:inherit;letter-spacing:0}
button,.button{font-weight:500;transition:background-color 150ms var(--ui-ease),border-color 150ms var(--ui-ease),box-shadow 150ms var(--ui-ease),color 150ms var(--ui-ease)}
button:disabled,.button[aria-disabled="true"]{opacity:.65;box-shadow:none}
button.primary,.button.primary{box-shadow:0 2px 8px #304B3C10}
button.primary:hover,.button.primary:hover{box-shadow:0 4px 12px #304B3C18}
button:active:not(:disabled),.button:active{box-shadow:inset 0 1px 3px #1A30251A}
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
.sidebar :where(button,a):focus-visible,.staff-admin-sidebar :where(button,a):focus-visible{outline-color:var(--theme-flax)}
.sidebar nav button,.staff-admin-sidebar button{font-weight:500}
.sidebar nav button>span{opacity:1}
.sidebar nav button.active,.staff-admin-sidebar button.active{box-shadow:inset -3px 0 0 var(--theme-accent),inset 0 0 0 1px #FFFFFF24}
.panel,.project-card,.review-card,.stat{box-shadow:var(--ui-shadow)}
.project-card{transition:box-shadow 180ms var(--ui-ease),border-color 180ms var(--ui-ease)}
.project-card:hover{box-shadow:var(--ui-shadow-hover)}
.stat-value,.quota-number,.dimension,.project-progress strong,.notice-count{font-variant-numeric:tabular-nums}
.stat-top,.project-meta,.project-bottom>span,.hint{font-weight:400}
.eyebrow{font-weight:500}
.project-visual img{image-rendering:auto}
.engment-logo,.brand-symbol{opacity:1;filter:none;image-rendering:auto}
.sidebar .brand{box-shadow:none}
.topbar,.portal-header{box-shadow:0 1px 0 var(--ui-hairline)}
@supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))){
 .topbar{background:color-mix(in srgb,var(--paper) 94%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
}
.badge,.filter-count,.notice-count{box-shadow:inset 0 0 0 1px var(--ui-hairline)}
.notice-count{font-weight:600;font-variant-numeric:tabular-nums}
.notice-item{transition:background-color 150ms var(--ui-ease),box-shadow 150ms var(--ui-ease)}
.notice-item.notice-unread{background:var(--light);box-shadow:inset -3px 0 0 var(--green)}
.notice-item strong{font-weight:600}.notice-item small{color:var(--muted)}
.notice-item:hover{background:var(--light)}
.staff-assignment-alert{box-shadow:0 4px 18px #15271E14;border-color:var(--theme-accent);background:var(--theme-alert)}
.staff-assignment-alert strong{font-weight:600}
.error,.staff-error,.sync-error{color:var(--theme-danger)}
.staff-error,.sync-error{box-shadow:inset -3px 0 0 var(--theme-danger)}
#toast{background:var(--side);color:var(--theme-on-side);border-color:var(--theme-sage);box-shadow:0 10px 32px #12201926;opacity:0;transition:opacity 160ms var(--ui-ease),transform 160ms var(--ui-ease);line-height:1.8}
#toast.show{opacity:1}
dialog{box-shadow:0 24px 80px #1320192B}
dialog::backdrop{background:#14261D80;backdrop-filter:blur(4px)}
dialog[open]{animation:engment-surface-enter 160ms var(--ui-ease)}
@keyframes engment-surface-enter{from{opacity:.86}to{opacity:1}}
.project-progress progress::-webkit-progress-value{transition:width 220ms var(--ui-ease)}
.project-progress progress::-moz-progress-bar{transition:width 220ms var(--ui-ease)}
@media(prefers-reduced-motion:reduce){
 button,.button,.project-card,.notice-item,#toast,.project-progress progress::-webkit-progress-value,.project-progress progress::-moz-progress-bar{transition:none!important}
 dialog[open]{animation:none!important}
}
@media(prefers-reduced-transparency:reduce){.topbar{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none}dialog::backdrop{backdrop-filter:none}}
@media(forced-colors:active){.engment-logo,.brand-symbol{background:#5D6C67;forced-color-adjust:none}:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid Highlight}.notice-item.notice-unread{outline:1px solid Highlight}}
@media print{.panel,.project-card,.review-card,.stat,dialog{box-shadow:none}.topbar{backdrop-filter:none}.theme-toggle{display:none!important}}

/* Optical balance and accessible surface finishing; layout remains unchanged. */
.sidebar .brand .engment-logo{max-width:100%;object-position:center}
.portal-brand .engment-logo{max-width:100%;object-position:center}
label,.stat-caption,.office-label,.theme-toggle{font-size:.875rem}
.notice-item strong,.notice-item p,.notice-item small{opacity:1}
.notice-item.notice-unread{border-inline-start-color:var(--green)}
.notice-unread strong::before{background:var(--green)}
.notice-item.notice-unread small{color:var(--ink);font-weight:500}
.notice-list{scrollbar-width:thin;scrollbar-color:var(--theme-sage) transparent;overscroll-behavior:contain}
.notice-item [data-open-notice]{border-color:var(--theme-sage);white-space:nowrap;flex-shrink:0}
.notice-item.notice-unread [data-open-notice]{background:var(--theme-accent);color:#203A35}
.staff-notifications{box-shadow:var(--ui-shadow);border-color:var(--theme-sage)}
.staff-assignment-alert :is(button,.button){background:var(--theme-on-side);color:#26312C;border-color:var(--theme-on-side)}
#toast{max-width:min(520px,calc(100vw - 32px));overflow-wrap:anywhere;border:1px solid var(--theme-sage)}
.tabs button{transition:color 150ms var(--ui-ease),border-color 150ms var(--ui-ease),background-color 150ms var(--ui-ease)}
.tabs button:hover:not(.active){background:var(--light)}
input,select,textarea{transition:border-color 150ms var(--ui-ease),box-shadow 150ms var(--ui-ease)}
[aria-busy="true"]{cursor:progress}
@media(prefers-reduced-motion:reduce){.tabs button,input,select,textarea{transition:none!important}}
@media(prefers-reduced-transparency:reduce){.topbar,.portal-header{background:var(--paper)!important;backdrop-filter:none!important}dialog::backdrop{background:#14261DE6;backdrop-filter:none!important}}
