.identity-modal{width:min(1050px,92vw);max-height:90vh;border:1px solid var(--line,#536276);border-radius:14px;background:var(--card,#172638);color:var(--text,#eef4fb);padding:22px}.identity-modal::backdrop{background:#0009}.identity-modal h2{margin-top:0}.identity-modal-body{max-height:65vh;overflow:auto;padding:8px}.identity-actions,.identity-toolbar{display:flex;gap:10px;align-items:center;position:sticky;bottom:0;background:var(--card,#172638);padding:12px 0;z-index:2}.identity-toolbar{top:0}.identity-tabs{display:flex;gap:18px;padding:12px 0;flex-wrap:wrap}.identity-tabs a{color:inherit}.identity-list{overflow:auto}.identity-list table{width:100%;border-collapse:collapse}.identity-list th,.identity-list td{padding:9px;border-bottom:1px solid var(--line,#425166);text-align:left}.identity-list th{position:sticky;top:0;background:var(--card,#172638)}.identity-list input{max-width:150px}.identity-review{padding:12px;color:var(--muted,#b9c8da)}.identity-error{color:#ef9b9b}.identity-access-grid{display:grid;grid-template-columns:repeat(2,minmax(250px,1fr));gap:9px}.identity-access-grid h3{grid-column:1/-1}.identity-modal fieldset{margin:12px 0;padding:14px}.identity-modal fieldset label{display:inline-flex;gap:6px;margin:5px}.identity-modal dd{margin:6px 0 15px;overflow-wrap:anywhere}.identity-modal input,.identity-modal select{padding:8px}.identity-toolbar input{padding:9px;min-width:270px}
.login#login{--bg:#07111f;--bg2:#0a1524;--panel:#0f1c2d;--text:#f6f8fb;--muted:#a7b4c7;--line:#34455e;--gold:#e7bd68;--gold2:#f3d68e;--input:#0b1727;color:var(--text)!important}
html[data-theme="light"] .login#login{--bg:#f3eee4;--bg2:#fbf7ef;--panel:#fffdf8;--text:#17120c;--muted:#655b4e;--line:#cdbfa7;--gold:#996c1f;--gold2:#d8b25b;--input:#fffaf2}
#login .hero h1{font-size:clamp(42px,5.2vw,76px)!important;line-height:.98!important;color:var(--text)!important;letter-spacing:-.05em}
#login .hero h1 em{color:var(--gold)!important}
#login .login-card h2{font-size:30px!important;color:var(--text)!important}
#login .eyebrow{color:var(--gold)!important}
#login .field input{font-size:14px!important;min-height:40px!important}
#login .field>span{font-size:11px!important}
#login .btn{font-size:12px!important;min-height:36px!important}
#login .btn.primary{background:linear-gradient(135deg,var(--gold2),var(--gold))!important;color:#15120c!important;border-color:var(--gold)!important}
.identity-subscription-warning,#subscriptionWarning{padding:10px 16px;background:#fff2c6;color:#513700;border-bottom:1px solid #c79c39;font-size:14px}
.identity-modal .identity-form{display:grid;gap:16px}.identity-modal .identity-form>label,.identity-modal .identity-form .field{display:flex;flex-direction:column;gap:7px;font-size:13px}.identity-modal .identity-form input,.identity-modal select{box-sizing:border-box;min-height:38px;border:1px solid var(--line,#536276);border-radius:6px;background:var(--input,#0b1727);color:var(--text,#eef4fb);font:inherit}.identity-modal .identity-form>.btn{justify-self:start}.identity-modal:has(.identity-form>label){width:min(540px,92vw)}.identity-modal .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.identity-modal [data-ceiling-row]{padding:10px 0;border-bottom:1px solid var(--line,#536276)}.identity-modal [data-ceiling-row] strong{display:block}.identity-modal [data-ceiling-row][hidden]{display:none}
@media(max-width:640px){.identity-modal .form-grid,.identity-access-grid{grid-template-columns:1fr}}
.main:has(>.identity-tabs),.main:has(>.identity-tabs) h1,.identity-list td,.identity-tabs a{color:var(--text,#e5edf9)!important}
.identity-modal input:not([type=checkbox]),.identity-toolbar input{box-sizing:border-box;min-height:38px;border:1px solid var(--line,#536276);border-radius:6px;background:var(--input,#0b1727);color:var(--text,#eef4fb);font:inherit}
.identity-modal input::placeholder,.identity-toolbar input::placeholder{color:var(--muted,#b9c8da);opacity:1}
.identity-modal-body>label{display:block;margin:12px 0;font-size:13px}.identity-modal-body>label>input{margin-inline-start:10px;min-width:250px}
.identity-toolbar input{min-width:min(270px,60vw)!important}
#app.identity-restricted{grid-template-columns:1fr!important;grid-template-rows:1fr!important}
#app.identity-restricted>.sidebar,#app.identity-restricted>.topbar{display:none!important}
#app.identity-restricted>.main{grid-column:1/-1!important;grid-row:1/-1!important;color:var(--text,#e5edf9)!important;padding:48px!important}
#app.identity-restricted h1{color:var(--text,#e5edf9)!important}
.identity-discard{padding:12px;border:1px solid var(--gold,#e7bd68);border-radius:8px;background:var(--panel,#182638);color:var(--text,#e5edf9)}.identity-discard p{margin-top:0}.identity-discard button{margin-inline-end:8px}

.identity-toolbar,.identity-toolbar>span{color:var(--text,#e5edf9)!important}
.identity-modal-body>section>label{display:flex;align-items:center;gap:8px;margin:14px 0;flex-wrap:wrap}

/* Keep support and subscription notices above the workspace, outside sidebar flow. */
#app:has(>#supportSessionBanner),#app:has(>#subscriptionWarning:not([hidden])){grid-template-rows:48px auto minmax(0,1fr)!important}
#app:has(>#supportSessionBanner)>.sidebar,#app:has(>#subscriptionWarning:not([hidden]))>.sidebar{grid-row:1/-1!important}
#app:has(>#supportSessionBanner)>.topbar,#app:has(>#subscriptionWarning:not([hidden]))>.topbar{grid-row:1!important}
#app:has(>#supportSessionBanner)>.main,#app:has(>#subscriptionWarning:not([hidden]))>.main{grid-row:3!important;min-height:0}
#supportSessionBanner,#subscriptionWarning:not([hidden]){grid-column:2;grid-row:2;margin:0;padding:10px 16px;position:static;flex-wrap:wrap;min-width:0;font-size:13px}
#supportSessionBanner{background:#263b55;border-bottom:1px solid var(--line,#536276)}
#supportSessionBanner>span{flex:1;min-width:220px}
#app:has(>#supportSessionBanner):has(>#subscriptionWarning:not([hidden])){grid-template-rows:48px auto auto minmax(0,1fr)!important}
#app:has(>#supportSessionBanner)>#subscriptionWarning:not([hidden]){grid-row:3}
#app:has(>#supportSessionBanner):has(>#subscriptionWarning:not([hidden]))>.main{grid-row:4!important}
@media(max-width:760px){#supportSessionBanner,#subscriptionWarning:not([hidden]){grid-column:1/-1}}

/* Feature tables keep the administration dialog's readable theme colors. */
.identity-modal .identity-feature-table th,.identity-modal .identity-feature-table td{color:var(--text,#eef4fb)!important;padding:10px;border-bottom:1px solid var(--line,#536276);text-align:left}.identity-feature-table{width:100%;border-collapse:collapse}

#app.identity-restricted .setup-step-nav>button.btn:disabled{background:var(--card,#172638)!important;color:var(--text,#eef4fb)!important;opacity:.6;border:1px solid var(--line,#536276)!important}
.identity-modal .setup-choice-list>label{display:flex!important;align-items:center;gap:10px;padding:8px!important}
.identity-modal .setup-choice-list input[type=checkbox]{width:18px!important;height:18px!important;margin:0!important;flex:0 0 18px}
.identity-modal .setup-choice-list>label[hidden]{display:none!important}
.identity-modal .setup-locked-value{display:block;width:100%;min-width:0!important;margin:8px 0 0!important;cursor:default;background:var(--card,#172638)!important;color:var(--text,#eef4fb)!important;border:1px dashed var(--line,#718096)!important;opacity:1}
.identity-modal .setup-lock-explanation{padding:12px;border-left:3px solid #d7b15b;background:var(--card,#172638);line-height:1.5}
.identity-permission-tree details{margin:10px 0;padding:10px;border:1px solid var(--line,#536276);border-radius:8px}.identity-permission-tree summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}.identity-permission-tree label{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0}.identity-permission-tree .identity-permission-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.identity-permission-tree select{max-width:100%;min-width:0}.identity-permission-tree [hidden]{display:none!important}.identity-modal [data-effective-review]{margin-top:16px;padding:12px;border:1px solid var(--line,#536276);border-radius:8px}.identity-modal [data-access-reason]{display:block;width:100%;min-width:0!important;margin:8px 0 0!important}.identity-modal:has(.identity-permission-tree) .identity-actions{flex-wrap:wrap}
.identity-modal [data-access-search]{display:block;width:100%;min-width:0!important;margin:8px 0 0!important}
.identity-modal .identity-permission-tree .identity-permission-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.identity-permission-tree fieldset{min-width:0}.identity-permission-tree .op-combobox{max-width:100%;min-width:0}
