/* Shared Evorah visual contract — current Reach reference, 2026-11-03. */
:root,:root[data-theme=light]{color-scheme:light;--page:#f3efeb;--surface:#faf7f3;--ink:#28232a;--muted:#6e636a;--line:#ded3d4;--field:#fffdfa;--soft:#eee4e5;--accent:#85545f;--button:#925e6b;--button-text:#fff;--text:var(--ink);--bg:var(--page);--background:var(--page);--card:var(--surface);--input:var(--field);--selected:var(--soft);--brand:var(--surface);--nav:var(--surface);--border:var(--line);--rose:var(--accent);--primary:var(--button);--primary-text:var(--button-text)}
:root[data-theme=dark]{color-scheme:dark;--page:#171719;--surface:#222224;--ink:#f0e9e6;--muted:#c3b7b9;--line:#494047;--field:#2c292d;--soft:#373036;--accent:#efb6ab;--button:#d6a095;--button-text:#231c20;--text:var(--ink);--bg:var(--page);--background:var(--page);--card:var(--surface);--input:var(--field);--selected:var(--soft);--brand:var(--surface);--nav:var(--surface);--border:var(--line);--rose:var(--accent);--primary:var(--button);--primary-text:var(--button-text)}
html,body{background:var(--page);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none}body{margin:0}button,input,select,textarea{font-family:inherit}h1,h2,h3{color:var(--ink);letter-spacing:-.025em}a{color:var(--accent);text-underline-offset:3px}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{background:var(--field);color:var(--ink);border-color:var(--line);border-radius:11px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary,button.primary,a.button:not(.secondary):not(.danger),button[type=submit]:not(.danger):not(.btn-danger),.btn-primary{background:var(--button);border-color:var(--button);color:var(--button-text);border-radius:12px;font-weight:650}.panel,.card,.section,.metric,.stat,.authpanel{background:var(--surface);color:var(--ink);border-color:var(--line)}.muted,.subtle,.section-sub{color:var(--muted)}.top,.sidebar,aside{background:var(--surface);color:var(--ink);border-color:var(--line)}.sidebar nav button,aside nav button{color:var(--ink)}.sidebar nav button.active,aside nav button[aria-current=page],aside nav button.primary{background:var(--soft);color:var(--accent)}
/* Every main logo uses the same unmodified Reach files and natural aspect ratio. */
.evorah-brand,.suite-workspace-brand .logo-pair,.brand .logo-pair{display:block;width:205px;max-width:100%;margin:0 auto;isolation:isolate;background:transparent}.evorah-brand img,.suite-workspace-brand .logo-pair img,.brand .logo-pair img{display:block;width:100%;height:auto;object-fit:contain;max-width:100%;margin:0;mix-blend-mode:multiply}.evorah-brand .logo-dark,.suite-workspace-brand .logo-night,.brand .logo-night{display:none}:root[data-theme=dark] .evorah-brand .logo-light,:root[data-theme=dark] .suite-workspace-brand .logo-day,:root[data-theme=dark] .brand .logo-day{display:none}:root[data-theme=dark] .evorah-brand .logo-dark,:root[data-theme=dark] .suite-workspace-brand .logo-night,:root[data-theme=dark] .brand .logo-night{display:block;mix-blend-mode:lighten}.sidebar-product-label,.workspace-product{display:block;text-align:center;color:var(--accent);font-size:12px;font-weight:750;letter-spacing:.24em;margin:8px 0 4px}
/* Reach's two-column identity/sign-in layout is shared across products. */
.suite-auth{--suite-page:var(--page);--suite-surface:var(--surface);--suite-ink:var(--ink);--suite-muted:var(--muted);--suite-line:var(--line);--suite-input:var(--field);--suite-accent:var(--accent);--suite-button:var(--button);--suite-button-text:var(--button-text);display:grid;place-items:center;min-height:100dvh;width:100%;max-width:none;margin:0;padding:76px 24px 32px;background:radial-gradient(ellipse at 18% 12%,#b9847a18,transparent 55%),var(--page);color:var(--ink);font-size:16px;font-weight:400}
:root[data-theme=dark] .suite-auth{--suite-page:var(--page);--suite-surface:var(--surface);--suite-ink:var(--ink);--suite-muted:var(--muted);--suite-line:var(--line);--suite-input:var(--field);--suite-accent:var(--accent);--suite-button:var(--button);--suite-button-text:var(--button-text)}
.suite-auth *{box-sizing:border-box}.suite-auth .suite-card{width:100%;max-width:980px;margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:center;padding:42px;border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 50px #573a4011;background:var(--surface)}.suite-identity{text-align:center;min-width:0}.suite-auth .logo-pair{display:block;width:310px;max-width:100%;isolation:isolate;margin:0 auto;background:transparent}.suite-auth .logo-pair img{display:block;width:100%;height:auto;object-fit:contain;margin:0;max-width:none;mix-blend-mode:multiply}.suite-auth .logo-pair .logo-dark,.suite-auth .logo-pair .logo-night{display:none!important}:root[data-theme=dark] .suite-auth .logo-pair .logo-light,:root[data-theme=dark] .suite-auth .logo-pair .logo-day{display:none!important}:root[data-theme=dark] .suite-auth .logo-pair .logo-dark,:root[data-theme=dark] .suite-auth .logo-pair .logo-night{display:block!important;mix-blend-mode:lighten}.suite-product{font-size:22px;letter-spacing:.32em;color:var(--accent);font-weight:750;margin:4px 0 0}.suite-auth .suite-tagline{font-size:13px;line-height:1.6;color:var(--muted);max-width:300px;margin:16px auto 0}.suite-content{min-width:0}.suite-auth h1{margin:0 0 12px;font-size:32px;letter-spacing:-.035em;line-height:1.2}.suite-auth .suite-intro{color:var(--muted);line-height:1.6;margin:0 0 24px}.suite-auth form{display:grid;gap:0;margin:24px 0 0}.suite-auth label{display:block;text-align:left;font-size:13px;font-weight:650;margin:18px 0 8px;color:var(--ink)}.suite-auth input:not([type=checkbox]){width:100%;min-height:46px;padding:13px 14px;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:var(--field);font:inherit}.suite-auth form button.primary,.suite-auth form button[type=submit]{width:100%;margin-top:24px;min-height:46px;padding:13px 22px;border:0;border-radius:12px;background:var(--button);color:var(--button-text);font:inherit;font-weight:650}.suite-auth .suite-mode,.suite-auth>.theme-toggle{position:fixed;top:18px;right:24px;bottom:auto;width:auto;height:auto;border:1px solid var(--line);border-radius:12px;background:var(--field);color:var(--ink);padding:12px 16px;font-size:13px;min-height:44px;z-index:5}.suite-auth .suite-note{font-size:13px;color:var(--muted);line-height:1.6;margin-top:20px}.suite-auth .fieldrow{display:flex;gap:8px}.suite-auth .fieldrow input{min-width:0}.suite-auth .fieldrow button{width:auto;margin:0;color:var(--ink);background:transparent}.suite-auth .security,.suite-auth .install-help{font-size:13px;color:var(--muted)}
@media(max-width:700px){.suite-auth{padding:76px 18px 28px}.suite-auth .suite-card{grid-template-columns:minmax(0,1fr);gap:26px;padding:28px}.suite-auth .logo-pair{width:240px}.suite-product{font-size:19px}.suite-auth h1{font-size:28px}.suite-auth .suite-mode{right:18px}}
@media(max-width:640px){.evorah-brand,.suite-workspace-brand .logo-pair,.brand .logo-pair{width:110px}.sidebar-product-label,.workspace-product{font-size:11px}}
@media(max-width:380px){.suite-auth .suite-card{padding:24px}.suite-auth .logo-pair{width:220px}}

.topbar,.bottomnav{background:var(--surface);color:var(--ink);border-color:var(--line)}.topbar .navbtn,.bottomnav .navbtn{color:var(--muted)}.topbar .navbtn.active,.bottomnav .navbtn.active{color:var(--accent)}.signed-brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.signed-brand .staff-workspace-brand{width:110px}.signed-brand .eyebrow{color:var(--accent)}

:root[data-theme=light],:root[data-theme=dark]{background:var(--page);color:var(--ink)}
:root[data-theme] :is(.panel,.card,.section,.metric,.stat,.authpanel){background:var(--surface);color:var(--ink);border-color:var(--line)}
:root[data-theme] :is(.muted,.subtle,.section-sub){color:var(--muted)}
/* Care's earlier shell has higher-specificity legacy rules; scope these overrides
   to shell chrome rather than clinical status colours or content. */
html[data-theme=light] .sidebar,html[data-theme=light] .sidebar.evorah-app-shell,html[data-theme=dark] .sidebar,html[data-theme=dark] .sidebar.evorah-app-shell{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
.sidebar .nav-section>summary,.sidebar .nav-link{color:var(--ink)!important}
.sidebar .nav-section[open]>summary,.sidebar .nav-link.active-link,.sidebar .nav-link[aria-current=page]{background:var(--soft)!important;color:var(--accent)!important;border-left-color:var(--accent)!important;box-shadow:inset 3px 0 0 var(--accent)!important}
.sidebar .nav-link:hover,.sidebar .nav-section>summary:hover{background:var(--soft)!important}
.sidebar-brand .sidebar-product-label{color:var(--accent)!important}
.sidebar .sidebar-build-label,.sidebar .sidebar-user-meta span{color:var(--muted)!important}
