:root{color-scheme:dark;--bg:#0b1320;--panel:#121f30;--line:#2a3c53;--text:#edf3fc;--muted:#a5b8ce;--accent:#9ce9c8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,sans-serif}.shell{max-width:1180px;margin:auto;padding:32px 24px 64px}.login{max-width:500px;margin:8vh auto}.brand{font-weight:750;letter-spacing:.08em}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:28px;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:14px}.card{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:28px;margin-top:24px}.login .card{padding:36px}.eyebrow{color:var(--accent);font-size:12px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}h1{font-size:clamp(30px,5vw,42px);letter-spacing:-.04em;line-height:1.15;margin:14px 0}h2{font-size:21px;margin:0 0 8px}h3{font-size:17px;margin:0}p{color:var(--muted);margin:10px 0 22px}.intro{margin-top:36px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.grid .card{margin-top:0}.metric{display:flex;gap:12px;margin:24px 0;flex-wrap:wrap}.badge{display:inline-block;padding:5px 12px;border-radius:30px;background:#183a32;color:var(--accent);font-size:13px}.badge.off{background:#44313a;color:#f5b9c6}label{display:block;color:#c8d6e7;font-size:14px;font-weight:600;margin:16px 0 6px}input,select{width:100%;padding:12px 13px;background:#0c1726;border:1px solid #3b4e65;border-radius:10px;color:var(--text);font:inherit}button{padding:12px 18px;background:var(--accent);color:#102b23;border:1px solid transparent;border-radius:10px;font:inherit;font-weight:700;cursor:pointer;margin-top:20px}button:hover{filter:brightness(1.1)}button.secondary{background:transparent;border-color:#42566d;color:var(--text)}.topbar button{margin:0;padding:8px 14px}input:focus-visible,select:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.full{width:100%}.hint,footer{font-size:13px;color:var(--muted)}footer{margin-top:26px}.alert{border:1px solid #76505d;border-radius:12px;background:#34202b;color:#ffd1dd;padding:14px 18px;margin:24px 0;overflow-wrap:anywhere}.success{background:#183a32;border-color:#326750;color:#c6f4df}.account{border-top:1px solid var(--line);padding:24px 0}.account:last-child{padding-bottom:0}.account-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.access{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px}.access button{margin:0}.access label{margin-top:12px}details{margin-top:18px}summary{color:var(--muted);cursor:pointer}.reset{max-width:460px}@media(max-width:760px){.grid{grid-template-columns:1fr}.topbar{align-items:flex-start}.identity{flex-direction:column;align-items:flex-end;gap:8px}.access{grid-template-columns:1fr 1fr}.access button{grid-column:1/-1}.shell{padding:24px 18px 40px}.card,.login .card{padding:22px}.login{margin:4vh auto}.account-heading{align-items:flex-start}.brand{white-space:nowrap}}

.brand{color:var(--text);text-decoration:none}.brand:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:5px}.account-link{color:var(--muted);text-decoration:none}.account-link:hover{color:var(--text)}.portal-nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:24px;font-size:14px;color:var(--muted)}.portal-nav a{color:var(--muted);text-decoration:none;padding:6px 0}.portal-nav a:hover,.portal-nav [aria-current=page]{color:var(--accent)}.portal-nav a[aria-current=page]{border-bottom:2px solid var(--accent)}.app-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;margin-top:30px}.app-card{display:block;max-width:440px;padding:30px;border:1px solid var(--line);border-radius:22px;background:var(--panel);color:var(--text);text-decoration:none;transition:border-color .15s,background .15s}.app-card:hover{border-color:var(--accent);background:#172b3a}.app-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:28px;border-radius:15px;background:#1d4039;color:var(--accent);font-size:25px;font-weight:700}.app-card h2{font-size:25px}.app-card p{min-height:52px;margin:8px 0 28px}.app-open,.text-link{color:var(--accent);font-weight:650}.app-open{display:flex;justify-content:space-between;align-items:center}.app-note{margin-top:30px}.account-settings,.access-create{max-width:660px}.access-create{margin-bottom:24px}.access-create .card{margin-top:0}@media(max-width:440px){.app-grid{grid-template-columns:1fr}.app-card{padding:24px}.portal-nav{gap:16px}}
.grants{grid-column:1/-1;border:1px solid var(--line);border-radius:12px;margin:16px 0 0;padding:14px 18px}.grants legend{color:var(--muted);font-size:14px}.grants label,.check-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.grants input,.check-row input{width:auto;accent-color:var(--accent)}.check-row{margin-top:14px}.check-row label{margin:0 18px 0 0}.access>.grants{margin:0}.access>button{grid-column:1/-1;justify-self:start}

/* Layout matched to the supplied application overview. */
:root{--bg:#0b1320;--panel:#121f30;--line:#2a3c53;--text:#edf3fc;--muted:#a5b8ce;--accent:#9ce9c8}
body{background:var(--bg);font-family:Inter,"Segoe UI",Arial,sans-serif}
.shell{max-width:1480px;padding:12px clamp(24px,4.35vw,64px) 64px}
.site-header{max-width:1480px;margin:0 auto;padding:26px clamp(24px,4.35vw,64px) 16px;border:0;min-height:80px;align-items:center}
.brand,.login .brand{display:inline-flex;align-items:center;flex:0 0 auto;min-width:0;width:148px;max-width:148px}
.brand img,.login .brand img{display:block;width:148px;max-width:100%;height:auto}
.identity{flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:18px;font-size:14px}
.identity .account-link{color:var(--text);font-weight:600;max-width:200px;overflow-wrap:anywhere}
.header-link{color:var(--muted);text-decoration:none}
.header-link:hover,.topbar button.secondary:hover{color:var(--text);text-decoration:underline;text-underline-offset:5px}
.topbar button.secondary{padding:0;margin:0;background:transparent;border:0;border-radius:0;color:var(--muted);font-size:14px;font-weight:400}
.identity form{margin:0}
.intro{margin-top:16px;margin-bottom:24px}
.eyebrow{display:flex;align-items:center;gap:10px;letter-spacing:.22em;font-size:13px;font-weight:400;color:var(--accent)}
.eyebrow:before{content:"";width:8px;height:8px;flex:none;border-radius:50%;background:var(--accent);box-shadow:0 0 16px var(--accent)}
h1{font-size:clamp(32px,4.4vw,56px);font-weight:650;line-height:1.15;letter-spacing:-.04em;margin:22px 0 0}
.app-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px;margin-top:0;align-items:stretch}
.app-card{max-width:none;min-height:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);transition:transform .18s,border-color .18s,box-shadow .18s}
.app-card:hover{transform:translateY(-3px);border-color:var(--accent);background:#172b3a;box-shadow:0 16px 40px #0005}
.app-icon{width:34px;height:34px;margin-bottom:12px;border-radius:10px;background:#1d4039;color:var(--accent);font-size:17px}
.app-card h2{margin:0 0 6px;font-size:16px;font-weight:600}
.app-card p{min-height:0;margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.card{border-radius:16px}
.portal-nav{margin-top:12px}
.login{max-width:500px;margin:6vh auto 0;padding:0 24px 40px}
.login h1{font-size:32px;margin:16px 0 12px}
.login .card{margin-top:0}
footer{margin-top:48px}
.login footer{margin-top:24px}
@media(max-width:760px){
.site-header{align-items:flex-start;gap:16px;padding-top:22px}.identity{gap:10px 14px;font-size:13px}.topbar button.secondary{font-size:13px}.signed-in-label{display:none}.intro{margin-top:16px;margin-bottom:22px}.identity .account-link{max-width:150px}
}
@media(max-width:480px){
.site-header{flex-wrap:wrap}.brand,.login .brand{width:132px;max-width:132px}.brand img,.login .brand img{width:132px}.identity{width:100%;justify-content:flex-start}.shell{padding-top:8px}.login{margin-top:4vh;padding-top:0}.app-grid{grid-template-columns:1fr}.app-card{min-height:0}
}
@media(prefers-reduced-motion:reduce){.app-card{transition:none}.app-card:hover{transform:none}}


/* Compact access-management workspace. */
.access-page .intro{margin:10px 0 14px}
.access-page .intro h1{font-size:30px;margin:8px 0}
.access-page .intro p{margin:6px 0;font-size:14px}
.access-page .eyebrow{font-size:11px}
.access-page .portal-nav{margin-top:0;gap:18px;font-size:13px}
.access-page .metric{margin:12px 0;gap:8px}
.access-page .badge{font-size:12px;padding:3px 9px}
.access-page .card{padding:16px;border-radius:12px;margin-top:0}
.access-page h2{font-size:18px;margin-bottom:6px}
.access-page h3{font-size:15px}
.access-page p{font-size:13px;line-height:1.45;margin:6px 0 12px}
.access-page .hint{font-size:12px;margin:6px 0}
.access-page label{font-size:12px;margin:8px 0 4px}
.access-page input,.access-page select{font-size:14px;line-height:1.4;padding:7px 10px;border-radius:7px;min-height:34px}
.access-page button{font-size:13px;padding:7px 12px;margin-top:12px;border-radius:7px}
.access-page .access-create{max-width:none;margin:0 0 14px}
.access-create>details{margin:0}
.access-create>details>summary{display:inline-block;padding:7px 12px;border:1px solid var(--line);border-radius:7px;font-size:13px;color:var(--accent)}
.access-create>details[open]>summary{margin-bottom:10px}
.access-create .card{max-width:540px}
.access-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.access-page .account{padding:12px 0}
.access-page .account:last-child{padding-bottom:0}
.access-page .access{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
.access-page .access>button{grid-column:auto;grid-row:1;grid-column:3;align-self:end;margin:0}
.access-page .grants{margin:4px 0 0;padding:8px 10px;border-radius:8px}
.access-page .grants legend{font-size:12px}
.access-page .grants label{margin:4px 0}
.access-page .grants input,.access-page .check-row input{min-height:0}
.access-page details{font-size:13px;margin-top:10px}
.access-page .grid{gap:12px}
.access-page footer{margin-top:22px;font-size:12px}
@media(max-width:900px){.access-panels{grid-template-columns:1fr}}
@media(max-width:480px){.access-page .access{grid-template-columns:1fr 1fr}.access-page .access>button{grid-column:1/-1;grid-row:auto}.access-page input,.access-page select{min-height:42px}.access-page .card{padding:14px}}


/* Shared theme switch and light palette. The original dark palette stays the default. */
:root[data-theme="light"]{color-scheme:light;--bg:#f2f5f8;--panel:#fff;--line:#d2dce6;--text:#18283c;--muted:#52677e;--accent:#176849}
.topbar button.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:0;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap}
.topbar button.theme-toggle[hidden]{display:none}
.theme-toggle [data-theme-icon]{font-size:17px;line-height:1}
.topbar button.theme-toggle:hover{border-color:var(--accent);filter:none}
html[data-theme="light"] label{color:#344a61}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{background:#f8fafc;border-color:#bacada;color:var(--text)}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#6b7d91}
html[data-theme="light"] button:not(.secondary):not(.theme-toggle){color:#fff}
html[data-theme="light"] button.secondary{border-color:#bacada;color:var(--text)}
html[data-theme="light"] .topbar button.secondary{color:var(--muted)}
html[data-theme="light"] .app-card:hover{background:#edf6f1;box-shadow:0 8px 24px #18362814}
html[data-theme="light"] .app-icon{background:#e0f2e9}
html[data-theme="light"] .badge{background:#dff1e8;color:#15583e}
html[data-theme="light"] .badge.off{background:#fce5eb;color:#8d3047}
html[data-theme="light"] .alert{background:#fff0f3;border-color:#d99aab;color:#8b2944}
html[data-theme="light"] .alert.success{background:#e4f5ec;border-color:#a5cfb8;color:#155b3a}
html[data-theme="light"] .brand{background:transparent;padding:0;border-radius:0}
html[data-theme="light"] .brand img{filter:brightness(.38) saturate(1.1)}
