:root,html[data-theme=balanced]{color-scheme:dark;--bg:#1a2233;--bg-glow:#2a354d;--panel:#243044;--border:#4a5a78;--text:#e8edf7;--muted:#c0c9db;--accent:#5b8fef;--accent-2:#4ec9b0;--accent-text:#0d1728;--input-bg:#1e283c;--danger:#f0a0a0;--focus:#8eb6ff;--shadow:0 0.5rem 1.5rem rgb(0 0 0/22%)}html[data-theme=dark]{color-scheme:dark;--bg:#0b1120;--bg-glow:#17233f;--panel:#131c31;--border:#3d4f73;--text:#f2f6ff;--muted:#b7c3de;--accent:#6aa2ff;--accent-2:#5eecd8;--accent-text:#06122b;--input-bg:#0f1830;--danger:#fca5a5;--focus:#9ec2ff;--shadow:0 0.5rem 1.5rem rgb(0 0 0/35%)}html[data-theme=light]{color-scheme:light;--bg:#f4f6fb;--bg-glow:#dce4f5;--panel:#ffffff;--border:#8b96a8;--text:#121826;--muted:#3d4a5c;--accent:#1558c0;--accent-2:#0b6b5c;--accent-text:#ffffff;--input-bg:#eef1f7;--danger:#9b1c1c;--focus:#1558c0;--shadow:0 0.5rem 1.5rem rgb(18 24 38/10%)}html[data-scale="100"]{font-size:100%}html[data-scale="125"]{font-size:125%}html[data-scale="150"]{font-size:150%}html[data-scale="175"]{font-size:175%}html[data-scale="200"]{font-size:200%}*{box-sizing:border-box}body,html{margin:0;padding:0;background:radial-gradient(62.5rem 31.25rem at 20% -10%,var(--bg-glow) 0,transparent 55%),var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;min-height:100vh}body{overflow-x:auto}:focus-visible{outline:.15rem solid var(--focus);outline-offset:.15rem}.shell{max-width:60rem;margin:0 auto;padding:1.5rem;min-height:100vh;display:flex;flex-direction:column;gap:1rem}.shell.wide{max-width:72rem}.brand-link{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.75rem 1rem}.brand{display:flex;align-items:center;gap:.75rem;min-width:min(12rem,100%)}.brand .mark{display:block;width:1.75rem;height:1.75rem;flex:0 0 auto;color:var(--accent-2)}.brand strong{display:block;font-size:1.125rem;letter-spacing:.02em}.brand .sub{font-size:.75rem;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;gap:.625rem;align-items:center;position:relative}.ui-settings{position:relative;flex:0 0 auto}.ui-settings-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;min-width:2.75rem;min-height:2.75rem;padding:0;border:.0625rem solid var(--border);border-radius:999px;background:var(--panel);color:var(--text);cursor:pointer}.ui-settings-toggle:focus-visible,.ui-settings-toggle:hover{outline:.15rem solid var(--focus);outline-offset:.15rem}.ui-settings-toggle[aria-expanded=true]{background:var(--accent-2);color:var(--accent-text);border-color:var(--accent-2)}.ui-settings-cog{display:block;width:1.25rem;height:1.25rem;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ui-settings-panel{position:absolute;z-index:52;top:calc(100% + .5rem);right:0;width:min(22rem,calc(100vw - 2rem));padding:1rem;background:var(--panel);color:var(--text);border:.0625rem solid var(--border);border-radius:.75rem;box-shadow:var(--shadow)}.ui-settings-panel[hidden]{display:none}.ui-controls{display:flex;flex-direction:column;flex-wrap:wrap;gap:.75rem;align-items:stretch}.ui-settings-panel .ui-seg-label{width:100%;margin:0 0 .25rem}.ui-seg{display:flex;flex-wrap:wrap;gap:.25rem}.ui-seg-label{font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);opacity:.95;margin-right:.25rem;align-self:center}.ui-seg button{min-height:2.75rem;min-width:2.75rem;padding:.5rem .75rem;border:.0625rem solid var(--border);border-radius:999px;background:var(--panel);color:var(--text);font:inherit;font-size:.875rem;font-weight:700;cursor:pointer}.ui-seg button:focus-visible,.ui-seg button:hover{outline:.15rem solid var(--focus);outline-offset:.15rem}.ui-seg button[aria-pressed=true]{background:var(--accent-2);color:var(--accent-text);border-color:var(--accent-2)}.ui-seg button:disabled{opacity:.45;cursor:not-allowed}.ui-scale-value{min-width:3.5rem;text-align:center;font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;align-self:center}.btn{border:.0625rem solid var(--border);background:transparent;color:var(--text);padding:.5rem .875rem;border-radius:.625rem;font-size:.875rem;min-height:2.5rem;cursor:pointer;white-space:normal}.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:var(--accent-text);font-weight:600;border-color:transparent}.btn.lg{padding:.75rem 1.25rem;font-size:.9375rem}.hero{flex:1 1;display:flex;flex-direction:column;justify-content:center;gap:.75rem;padding:1.5rem 0}.hero.tight{justify-content:flex-start}.hero h1{font-size:clamp(1.35rem,4vw,2.125rem);margin:0;line-height:1.2;overflow-wrap:anywhere}.lede{color:var(--muted);font-size:1.0625rem;margin:0 0 .75rem;max-width:40rem}.card{margin-top:1rem;background:var(--panel);border:.0625rem solid var(--border);border-radius:1rem;padding:1.5rem;width:100%;max-width:32.5rem;box-shadow:var(--shadow)}.card h2{margin:0 0 .5rem;font-size:1.125rem}.wide-card{max-width:none}.admin-stack{display:flex;flex-direction:column;gap:1rem;width:100%}.invite-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));grid-gap:.75rem 1rem;gap:.75rem 1rem;align-items:end}.invite-form .btn{justify-self:start}.field select,.inline-select{background:var(--input-bg);border:.0625rem solid var(--border);color:var(--text);padding:.5rem .75rem;border-radius:.625rem;font-size:1rem;min-height:2.75rem;width:100%}.inline-select{min-width:10rem;width:auto}.table-wrap{overflow-x:auto}table.users{width:100%;border-collapse:collapse;font-size:.875rem}table.users td,table.users th{text-align:left;vertical-align:top;padding:.65rem .5rem;border-bottom:.0625rem solid var(--border)}table.users th{color:var(--muted);font-weight:600}.chips{display:flex;flex-wrap:wrap;gap:.35rem}.pill{display:inline-block;border:.0625rem solid var(--border);border-radius:999px;padding:.15rem .55rem;font-size:.75rem;color:var(--muted)}.ok-pill{color:var(--accent-2);border-color:var(--accent-2)}.check{display:flex;align-items:center;gap:.4rem;font-size:.875rem;color:var(--text)}.check.compact{font-size:.8125rem;color:var(--muted)}.more-groups{margin-top:.4rem}.more-groups summary{cursor:pointer;color:var(--muted);font-size:.75rem}.card p{color:var(--muted);margin:0 0 1rem}code{background:var(--input-bg);border:.0625rem solid var(--border);border-radius:.375rem;padding:.05rem .375rem;font-size:.8125rem;overflow-wrap:anywhere}.footer{color:var(--muted);font-size:.75rem;text-align:center;padding-top:1rem}.tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}.tab{border:.0625rem solid var(--border);background:transparent;color:var(--muted);padding:.4rem .65rem;border-radius:.5rem;font-size:.8125rem;min-height:2.25rem;cursor:pointer}.tab.on{color:var(--text);border-color:var(--accent)}.field{display:flex;flex-direction:column;gap:.375rem;margin:0 0 .75rem;font-size:.8125rem;color:var(--muted)}.field input,.field textarea,table.users input{background:var(--input-bg);border:.0625rem solid var(--border);color:var(--text);padding:.625rem .75rem;border-radius:.625rem;font-size:1rem;width:100%;min-height:2.75rem}.field textarea{min-height:8rem;font-family:inherit;resize:vertical}.tenant-picker{max-width:24rem}.password-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin:0 0 1rem}.hint{font-weight:600;margin:0 0 .35rem}.hint,.rules{color:var(--muted);font-size:.8125rem}.rules{margin:0 0 1rem;padding-left:1.25rem}.rules li{margin:0 0 .25rem}.error{color:var(--danger);margin:.75rem 0 0}.error,.ok{font-size:.8125rem}.ok{color:var(--accent-2);margin:0 0 .75rem;overflow-wrap:anywhere}.home-actions{display:flex;flex-wrap:wrap;gap:.75rem}.account-stack{display:flex;flex-direction:column;gap:1rem;width:100%}.mfa-qr{display:block;width:12rem;height:12rem;background:#fff;border-radius:.5rem;padding:.35rem}.mfa-qr,.mfa-status{margin:0 0 1rem}.recovery-box{margin:1rem 0;padding:.75rem 1rem;border:.0625rem solid var(--border);border-radius:.75rem;background:var(--input-bg)}.recovery-list{margin:0;padding-left:1.25rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.recovery-list li{margin:.2rem 0}.card h3{margin:1.25rem 0 .5rem;font-size:1rem}.roles-layout{display:grid;grid-template-columns:minmax(12rem,16rem) 1fr;grid-gap:1.25rem;gap:1.25rem}@media (max-width:48rem){.roles-layout{grid-template-columns:1fr}}.role-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.role-item{width:100%;text-align:left;border:.0625rem solid var(--border);background:var(--input-bg);color:var(--text);border-radius:.625rem;padding:.55rem .7rem;cursor:pointer}.role-item strong{display:block}.role-item span{display:block;font-size:.75rem;color:var(--muted)}.role-item.on{border-color:var(--accent);box-shadow:inset 0 0 0 .0625rem var(--accent)}.role-detail h3{margin:1.25rem 0 .5rem;font-size:1rem}.role-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.grant-matrix{display:grid;grid-gap:.75rem;gap:.75rem}.grant-resource{margin:0;padding:.75rem 1rem;border:.0625rem solid var(--border);border-radius:.75rem}.grant-resource legend{padding:0 .35rem;font-size:.8125rem}.grant-resource p{margin-bottom:.5rem}.headcount-pickers{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:flex-end}.headcount-pickers .tenant-picker{margin-bottom:0}.headcount-board{display:flex;flex-direction:column;gap:1rem}.headcount-hero{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.25rem 2rem;align-items:flex-end}.headcount-kicker{margin:0 0 .25rem;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.headcount-number{margin:0;font-size:clamp(3rem,8vw,4.5rem);font-weight:700;line-height:1;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--accent-2)}.headcount-site{margin:.4rem 0 0;color:var(--text);font-weight:600}.headcount-meta{display:grid;grid-template-columns:repeat(2,minmax(8rem,1fr));grid-gap:.75rem 1.25rem;gap:.75rem 1.25rem;margin:0}.headcount-meta dt{font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.headcount-meta dd{margin:.15rem 0 0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.headcount-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.headcount-hint{margin:0;flex:1 1 16rem}.headcount-age{display:block;font-weight:600;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.muted-inline{color:var(--muted)}.headcount-aging{color:var(--accent);border-color:var(--accent)}.headcount-stale{color:var(--danger);border-color:var(--danger)}.muster-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));grid-gap:.75rem;gap:.75rem;margin:0 0 1rem}.muster-count{border:.0625rem solid var(--border);border-radius:.75rem;padding:.75rem 1rem;background:var(--input-bg)}.muster-count span{display:block;font-size:.75rem;color:var(--muted)}.muster-count strong{display:block;font-size:1.75rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.muster-count.missing strong{color:var(--danger)}