/* EchoChecks: bright, crisp surfaces and deliberate color accents. */
:root{--clay-bg:#f5f7fb;--clay-surface:#fff;--clay-field:#f5f8fc;--clay-ink:#172d46;--clay-muted:#52657b;--clay-edge:#dfe7ef;--clay-shadow:0 5px 22px #15304b08;--clay-small:0 2px 6px #15304b08;--clay-inset:none;--bg:#f5f7fb;--surface:#fff;--surface-2:#f5f8fc;--ink:#172d46;--muted:#52657b;--line:#dfe7ef;--radius:16px;--radius-sm:10px}
html{background:var(--clay-bg)}body{background:linear-gradient(180deg,#e8f7f5 0, #f5f7fb 340px);color:var(--clay-ink)}
header,.top{background:#fff;border-bottom:1px solid #e1e9ef;box-shadow:0 3px 16px #16335105}header{padding:10px 4vw;min-height:86px}header img{width:220px;display:block}header nav a{border-radius:8px;color:#3f536a}header nav a:hover{background:#e5f5f1;box-shadow:none;color:#006d60}
main{max-width:1280px;padding:34px 32px}h1{color:#142d46;letter-spacing:-.045em}h2{color:#193750;font-weight:700;letter-spacing:-.025em}h3{color:#1b3650}.eyebrow{color:#007c6b;letter-spacing:.17em;font-size:.72rem;font-weight:800}p,.muted,footer{color:var(--clay-muted)}
.card,.metric,.rail,.spatial-panel,.cart-visual,.finding,.inspection-check,.guard,.stat,.choice button{background:var(--clay-surface);border:1px solid var(--clay-edge);border-radius:16px;box-shadow:var(--clay-shadow)}
.btn,button:where(:not(.dept-name):not(.item-name):not(.step):not(.iconbtn):not(.unit-toggle button)){border:1px solid #cbd9e4;border-radius:9px;background:#fff;color:#254660;box-shadow:none;transition:background .15s,border-color .15s}
.btn:hover,button:not(:disabled):not(.dept-name):not(.item-name):hover{transform:none;background:#edf7f5;border-color:#75b8ad}.btn:active,button:active{transform:none;box-shadow:none}
.btn.primary,button.primary,.choice button.on,.unit-toggle button.on{background:#007e6d;color:#fff;border:1px solid #007e6d;box-shadow:0 3px 8px #007e6d20}.btn.primary:hover,button.primary:hover{background:#006756;color:white;border-color:#006756}
button:disabled{opacity:.55;cursor:not-allowed}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea,.workflow textarea,.check-grid textarea{background:var(--clay-surface);border:1px solid #c9d6e2;border-radius:8px;box-shadow:none;min-height:44px;padding:11px 13px;color:var(--clay-ink)}
input:focus,select:focus,textarea:focus{outline:3px solid #058776;outline-offset:2px;box-shadow:none}input[type=checkbox],input[type=radio]{accent-color:#007e6d;width:17px;height:17px;vertical-align:middle;margin-right:7px;flex-shrink:0}
.pill,.chip,.areas span,.step .num{box-shadow:none}.pill{background:#e2f6ee;color:#11614a;font-size:.72rem;padding:4px 10px;letter-spacing:.025em}.warning{background:#fff1d4;color:#795013}.danger,.btn.danger{background:#ffebe7;color:#a43827}.planned{background:#edf1f7;color:#4e6077}
.notice,.note{background:#fff8e9;border:1px solid #f1dfb9;border-left:4px solid #e6ad45;border-radius:10px;box-shadow:none;color:#71531d;font-size:.9rem}
.metric{position:relative;padding:24px;border-top:4px solid #00a58b}.metric:nth-child(2){border-top-color:#ed9b68}.metric:nth-child(3){border-top-color:#7d79d8}.metric:nth-child(4){border-top-color:#529de0}.metric strong{color:#193750;font-size:2.3rem}.metric span{font-size:.83rem}
.portal-tabs,.ops-tabs,.ip-tabs{padding:6px;background:#fff;border:1px solid #dfe7ef;border-radius:12px;width:fit-content;gap:5px;box-shadow:0 4px 15px #16335106}.portal-tabs button,.ops-tabs button,.ip-tabs button{border-color:transparent;box-shadow:none}.portal-tabs .primary,.ops-tabs .primary,.ip-tabs .primary{background:#007e6d}
.org-banner{background:#123c4e;border-radius:18px;padding:30px;color:#fff;margin:24px 0;position:relative;overflow:hidden}.org-banner h2,.org-banner p{color:#fff}.org-banner .eyebrow{color:#72e1c6}.org-banner p{max-width:750px;color:#d3e7ef}.org-banner button{flex-shrink:0;background:#fff;color:#124d56}.org-directory .card{border-top:4px solid #20a68e}.org-directory .card:nth-child(3n+2){border-top-color:#788bd6}.org-directory .card:nth-child(3n){border-top-color:#e5a05e}
.department-card{background:#f7faff;border:1px solid #dce6ef;border-radius:12px;box-shadow:none}.workspace-picker{border-left:4px solid #18a58f}.workspace-path{font-size:.8rem}.scroll,.tbl-wrap{border-radius:10px}th{background:#f1f6fa;color:#475f76}th,td{border-bottom-color:#e3eaf1}.drawer{box-shadow:-8px 0 32px #152d4920}
body:has(#user-list) main>h1{font-size:clamp(2.1rem,4vw,3rem);margin-bottom:8px}body:has(#user-list) #identity{margin-top:0}#admin>.card:nth-child(2){border:0;background:#123c4e;position:relative;padding:26px 30px}#admin>.card:nth-child(2) h2{color:white;margin-top:0}#admin>.card:nth-child(2) p{color:#d6e8ee;max-width:960px}#admin>.card:nth-child(2) h2:before{content:'GETTING STARTED';display:block;font-size:.67rem;letter-spacing:.17em;color:#6fe1c3;margin-bottom:12px}
#users-summary{display:flex;gap:12px;margin:22px 0;flex-wrap:wrap}.user-summary{flex:1;min-width:140px;padding:18px 22px;border-radius:12px;background:white;border:1px solid #dfe7ef;border-left:4px solid #17a489}.user-summary:nth-child(2){border-left-color:#e8a64a}.user-summary:nth-child(3){border-left-color:#7c80d1}.user-summary strong{font-size:1.65rem;color:#193750;margin-right:10px}.user-summary span{font-size:.87rem;color:#52657b}
#user-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}#user-list .card{position:relative;padding:24px}#user-list .card>.pill{float:right}.user-avatar{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e2f5f0;color:#007866;font-size:1.1rem;font-weight:800}#user-list .card:nth-child(3n+2) .user-avatar{background:#edf0fd;color:#555db0}#user-list .card:nth-child(3n) .user-avatar{background:#fff0e5;color:#9c542a}#user-list h3{margin:14px 0 8px}#user-list .small{font-size:.78rem}#user-list button{width:100%;margin-top:12px}
#user-form{border-top:4px solid #00a087;padding:30px}#user-form>h2{font-size:1.5rem;margin-top:0}#user-form fieldset{padding:22px;border:1px solid #dfe7ef;border-radius:12px;margin:24px 0;background:#fbfdff}#user-form legend{font-weight:750;color:#23445c;padding:0 9px;font-size:1rem}#user-form fieldset:has([name=jobProfiles]),#user-form fieldset:has([name=roles]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-choice,#user-form fieldset:has([name=roles])>label{padding:14px 16px;background:white;border:1px solid #dce6ed;border-radius:10px;margin:0}.profile-choice:has(:checked),#user-form fieldset:has([name=roles])>label:has(:checked){background:#eaf8f3;border-color:#6dbfa9}.profile-choice label{margin:0;font-size:.9rem}.profile-choice p{margin:6px 0 0 25px;font-size:.78rem;line-height:1.5}#profile-roles,#profile-status{grid-column:1/-1}#profile-roles{justify-self:start}#user-form [data-department-panel]{box-shadow:none;background:#fff}
@media(max-width:650px){header{padding:12px 20px}main{padding:26px 18px}.org-banner{padding:24px}.org-banner button{margin-top:12px}.portal-tabs,.ops-tabs,.ip-tabs{width:100%;flex-wrap:wrap}.portal-tabs>*{flex:1;text-align:center}.metric{padding:17px}.metric strong{font-size:1.9rem}#user-form{padding:18px}#user-form fieldset{padding:12px}#user-form fieldset:has([name=jobProfiles]),#user-form fieldset:has([name=roles]){grid-template-columns:1fr}#users-summary{gap:8px}.user-summary{padding:14px;min-width:100px}#admin>.card:nth-child(2){padding:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{html,body{background:white!important}.org-banner,#admin>.card:nth-child(2){background:white!important;color:black!important}.org-banner *,#admin>.card:nth-child(2) *{color:black!important}.card,.metric,.user-summary{box-shadow:none!important}}
/* Honor Monitoring's existing dark appearance preference. */
:root[data-theme=dark]{--clay-bg:#142332;--clay-surface:#203246;--clay-field:#192a3b;--clay-ink:#edf5fb;--clay-muted:#b9cadb;--clay-edge:#3a5065;--bg:#142332;--surface:#203246;--surface-2:#192a3b;--ink:#edf5fb;--muted:#b9cadb;--line:#3a5065}
:root[data-theme=dark] body{background:#142332}:root[data-theme=dark] :is(h1,h2,h3,.metric strong){color:#edf5fb}:root[data-theme=dark] :is(header,.top,th,.department-card){background:#203246}:root[data-theme=dark] :is(.btn,button):not(.primary){background:#203246;color:#bde9df;border-color:#4b687e}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):has(.top){--clay-bg:#142332;--clay-surface:#203246;--clay-field:#192a3b;--clay-ink:#edf5fb;--clay-muted:#b9cadb;--clay-edge:#3a5065;--bg:#142332;--surface:#203246;--surface-2:#192a3b;--ink:#edf5fb;--muted:#b9cadb;--line:#3a5065}:root:not([data-theme=light]):has(.top) body{background:#142332}:root:not([data-theme=light]):has(.top) :is(h1,h2,h3,.metric strong){color:#edf5fb}:root:not([data-theme=light]):has(.top) :is(header,.top,th,.department-card){background:#203246}}
