:root{color-scheme:light dark;--bg:#f6f5f2;--panel:#fff;--text:#292721;--muted:#68645b;--line:#dad6cd;--accent:#875b16;--error:#a52636}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,sans-serif}.card{max-width:480px;margin:7vh auto;padding:36px;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 70px #18283b12}.wide{max-width:920px}.eyebrow{color:var(--accent);font-size:12px;font-weight:700;letter-spacing:1.5px}h1{font-size:30px;margin:12px 0}h2{font-size:21px}p,.note{color:var(--muted)}.note{font-size:13px}label{display:block;margin:18px 0;font-size:14px;font-weight:600}input,select{width:100%;padding:12px;margin-top:7px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font:inherit}button{padding:12px 18px;border:0;border-radius:8px;background:var(--accent);color:white;font:600 15px system-ui;cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--accent)}#message,.error{color:var(--error)}section{border-top:1px solid var(--line);margin-top:28px;padding-top:16px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}input:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}html[data-theme=dark]{color-scheme:dark;--bg:#151619;--panel:#202226;--text:#f0f0f2;--muted:#aeb0b8;--line:#393c43;--accent:#e5b567;--error:#ff9aab}html[data-theme=dark] button{color:#281d0a}@media(prefers-color-scheme:dark){html:not([data-theme=light]){color-scheme:dark;--bg:#151619;--panel:#202226;--text:#f0f0f2;--muted:#aeb0b8;--line:#393c43;--accent:#e5b567;--error:#ff9aab}html:not([data-theme=light]) button{color:#281d0a}}@media(max-width:520px){.card{margin:18px;padding:24px}}

.settings-sidebar{position:fixed;inset:0 auto 0 0;width:222px;padding:34px 22px;background:var(--panel);border-right:1px solid var(--line)}.settings-brand{font-size:24px;font-weight:700;text-decoration:none}.settings-brand small{font-size:10px;letter-spacing:2px}.settings-sidebar nav{margin-top:36px}.settings-sidebar nav a{display:block;padding:12px;text-decoration:none;color:var(--muted);border-radius:8px;margin:5px 0}.settings-sidebar nav a[aria-current=page]{background:var(--bg);color:var(--accent);font-weight:700}.settings-layout .card{margin-left:254px;margin-right:32px;max-width:920px}input[type=checkbox]{width:auto;display:inline;margin-right:8px}@media(max-width:700px){.settings-sidebar{position:static;width:auto;padding:20px}.settings-sidebar nav{display:flex;flex-wrap:wrap;margin-top:12px}.settings-sidebar nav a{font-size:13px;padding:8px}.settings-layout .card{margin:20px}}
.password-control{position:relative;margin-top:-12px;margin-bottom:18px}.password-control input{padding-right:52px}.password-control button{position:absolute;right:4px;top:11px;padding:8px;background:transparent;color:var(--muted);line-height:0}.password-control button:hover{color:var(--accent)}

.settings-logout{position:absolute;bottom:28px;left:22px;width:178px}@media(max-width:700px){.settings-logout{position:static;width:auto;margin-top:16px}}

.enrollment-indicator{margin-left:auto;text-align:right;font-size:.85rem}dialog{max-width:42rem;width:90%;border-radius:1rem;padding:1.5rem}dialog input{width:100%;box-sizing:border-box}dialog button{margin:.5rem .5rem .5rem 0}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.settings-grid>section{border:1px solid var(--line);border-radius:14px;padding:24px;margin-top:16px}.settings-layout .card{max-width:1200px}.settings-grid input{min-width:0}html[data-text-size=large] body{font-size:18px}html[data-text-size=larger] body{font-size:20px}@media(max-width:1000px){.settings-grid{grid-template-columns:1fr}}

/* Match dashboard geometry and navigation. */
.card,.settings-grid section{border-radius:12px}.settings-sidebar nav a[aria-current=page]{background:rgba(229,181,103,.12);color:var(--accent)}.settings-sidebar nav a:hover{background:rgba(229,181,103,.08);color:var(--text)}.settings-brand{font-size:21px}.settings-brand small{letter-spacing:2.7px;font-size:9px}.settings-layout h1{font-size:30px;font-weight:650;letter-spacing:-.6px}.settings-layout h2{font-size:18px}.settings-layout button{font-size:13px;min-height:38px}.settings-logout{background:transparent;color:var(--text);border:1px solid var(--line)}
/* Match the Relay Router enterprise identity. */
:root{--accent:#4d711d}.card{background:linear-gradient(145deg,var(--panel),var(--bg));box-shadow:0 20px 65px #00000012}.settings-sidebar nav a[aria-current=page]{background:#c0ed6818;box-shadow:inset 3px 0 var(--accent)}.settings-sidebar nav a:hover{background:#c0ed680d}html[data-theme=dark]{--bg:#0e1217;--panel:#191e25;--line:#343c47;--muted:#a8b1be;--text:#f2f5ef;--accent:#c0ed68}html[data-theme=dark] body{background:radial-gradient(ellipse at 80% 0%,#8793a415,transparent 48%),var(--bg)}html[data-theme=dark] button{background:linear-gradient(135deg,#f2f5ef,#a5cf50);color:#171c23}html[data-theme=dark] .settings-sidebar{background:linear-gradient(175deg,#20242b,#11151b)}@media(prefers-color-scheme:dark){html:not([data-theme=light]){--bg:#0e1217;--panel:#191e25;--line:#343c47;--muted:#a8b1be;--text:#f2f5ef;--accent:#c0ed68}html:not([data-theme=light]) button{background:linear-gradient(135deg,#f2f5ef,#a5cf50);color:#171c23}}

html[data-theme=dark]{--bg:#090c0b;--panel:#141916;--line:#2d362f;--muted:#a2afa5;--text:#f2f5ef;--accent:#c0ed68}html[data-theme=dark] .settings-sidebar{background:linear-gradient(170deg,#192019,#0d120f)}html[data-theme=dark] button{background:linear-gradient(135deg,#d0f789,#a5cf50);color:#17210b;box-shadow:0 0 16px #c0ed6810}@media(prefers-color-scheme:dark){html:not([data-theme=light]){--bg:#090c0b;--panel:#141916;--line:#2d362f;--muted:#a2afa5;--text:#f2f5ef;--accent:#c0ed68}html:not([data-theme=light]) button{background:linear-gradient(135deg,#d0f789,#a5cf50);color:#17210b}}

html[data-theme=dark]{--bg:#080f1b;--panel:#111d30;--line:#2a3951;--muted:#a0aec3;--text:#eef2f8;--accent:#91acd4}html[data-theme=dark] body{background:var(--bg)}html[data-theme=dark] .settings-sidebar{background:linear-gradient(170deg,#142238,#0a1425)}html[data-theme=dark] button{background:linear-gradient(135deg,#a9bedb,#7998c2);color:#0c192c;box-shadow:none}@media(prefers-color-scheme:dark){html:not([data-theme=light]){--bg:#080f1b;--panel:#111d30;--line:#2a3951;--muted:#a0aec3;--text:#eef2f8;--accent:#91acd4}html:not([data-theme=light]) button{background:linear-gradient(135deg,#a9bedb,#7998c2);color:#0c192c;box-shadow:none}}
