:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#e9e7e1;background:#191817;color-scheme:dark}*{box-sizing:border-box}body{margin:0}main{width:min(440px,100%);margin:8vh auto;padding:24px}.brand{font-size:34px;font-weight:650;text-align:center}.tagline{text-align:center;color:#aaa79e;margin:6px 0 32px}section{border:1px solid #393732;border-radius:18px;padding:28px;background:#211f1c}h1{font-size:22px;margin:0 0 20px}p{line-height:1.6}label{display:block;margin:16px 0;color:#c9c6bd}input{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #555148;border-radius:8px;background:#191817;color:inherit;font:inherit}input:focus-visible,button:focus-visible{outline:2px solid #e2b56e;outline-offset:3px}button{font:inherit;cursor:pointer;width:100%;border:0;border-radius:8px;padding:12px;background:#e9e1d0;color:#24211d}button:disabled{opacity:.55;cursor:wait}.link{display:inline;width:auto;padding:0;background:none;color:#e2b56e}.help,.account{font-size:13px;color:#aaa79e}.help{margin-bottom:0}[role=alert]{color:#ffb4a9}@media(max-width:480px){main{margin:3vh auto;padding:18px}section{padding:22px}}
/* Central settings: OpenChamber semantic control sizes and compact typography. */
.admin-shell{width:100%;max-width:1200px;margin:0 auto;padding:24px;display:grid;grid-template-columns:180px minmax(0,1fr);gap:32px;font-size:13.5px}.admin-shell aside{border-right:1px solid #393732;padding:16px}.admin-shell aside p,.admin-shell small,.admin-shell header p{color:#aaa79e}.admin-shell a{color:inherit}.admin-shell nav{padding:12px 0}.admin-shell h1{font-size:17px}.admin-shell h2{font-size:14px;font-weight:550;margin:0 0 12px}.admin-shell section{border-radius:8px;padding:20px;margin:20px 0}.admin-shell input{height:32px;padding:4px 10px;border-radius:6px;font-size:13.5px}.admin-shell input[type=file]{height:auto}.admin-shell button{width:auto;min-height:28px;padding:4px 10px;font-size:13px;border-radius:6px}.admin-fields{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.admin-fields label{flex:1;min-width:150px;margin:0}.admin-toolbar{display:flex;justify-content:space-between;align-items:center}.admin-table{overflow:auto}.admin-shell table{border-collapse:collapse;width:100%;text-align:left}.admin-shell th,.admin-shell td{padding:12px 8px;border-bottom:1px solid #393732}.admin-shell td small{display:block;margin-top:4px}.admin-actions{display:flex;gap:6px;flex-wrap:wrap}.admin-shell pre{white-space:pre-wrap;overflow-wrap:anywhere}.admin-shell button:hover:not(:disabled){filter:brightness(.92)}@media(prefers-color-scheme:light){.admin-shell{color:#302f2b;background:#faf9f5}.admin-shell section{background:#f2f0e9;border-color:#d9d6cc}.admin-shell input{color:#302f2b;background:#faf9f5;border-color:#c9c6bd}.admin-shell td,.admin-shell th,.admin-shell aside{border-color:#d9d6cc}}@media(max-width:700px){.admin-shell{display:block;padding:16px}.admin-shell aside{border-right:0;border-bottom:1px solid #393732;padding:8px}.admin-shell aside nav{display:inline-block;margin:0 20px}.admin-shell section{padding:14px}}
.impersonation-shell{height:100dvh;display:flex;flex-direction:column}.impersonation-shell header{padding:8px 16px;font-size:13px;background:#211f1c;border-bottom:1px solid #555148;display:flex;gap:20px;align-items:center}.impersonation-shell header button{width:auto;padding:5px 12px}.impersonation-shell iframe{flex:1;width:100%;border:0;background:#191817}
.admin-shell table{min-width:650px}.admin-shell th,.admin-shell td{white-space:nowrap}.admin-shell a{text-decoration:none}.admin-shell a:hover{text-decoration:underline}.admin-shell article{min-width:0}@media(prefers-color-scheme:light){.admin-shell label,.admin-shell aside p,.admin-shell small,.admin-shell header p{color:#666359}.admin-shell input:focus-visible,.admin-shell button:focus-visible{outline-color:#8c622b}.admin-shell button{background:#e6dfd0;color:#302f2b}}

.admin-shell fieldset{border:0;padding:0;margin:0;min-width:0}.admin-shell nav a{display:block;padding:8px 0}.admin-shell nav [aria-current]{font-weight:650;color:#e2b56e}.admin-shell select,.admin-shell textarea{width:100%;font:inherit;color:inherit;background:transparent;border:1px solid #777;border-radius:6px;padding:6px}.admin-shell textarea{min-height:80px}.admin-shell .checkbox-label input{width:auto;height:auto;display:inline;margin-right:8px}

/* Keep model metadata captions visually centered with a small left bias for the chevron. */
.admin-shell select.model-metadata-select{appearance:none;-webkit-appearance:none;padding-inline:8px 24px;text-align:center;text-align-last:center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%238d8b83' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:12px 12px}

.usage-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:20px}.usage-cards>div{padding:14px;border:1px solid #7775;border-radius:8px}.admin-shell input.usage-check{display:inline;width:auto;height:auto;margin-right:10px}

.usage-token-bar{display:flex;height:6px;border-radius:4px;overflow:hidden;background:#7773;margin:10px 0}.usage-token-bar span{display:block;height:100%}
/* Separate account navigation from destructive session actions in every viewport. */
.admin-shell .account-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:24px;padding-top:18px;border-top:1px solid #7775}.account-navigation>a{padding:6px 0}.account-navigation>button{border:1px solid #7775;background:transparent;color:inherit}.account-navigation [role=alert]{flex-basis:100%}
.admin-shell .budget-settings{padding:24px}.budget-settings h3{font-size:14px;margin:0 0 16px}.budget-settings .budget-section{border-top:1px solid #7774;padding-top:18px;margin-top:24px}.budget-settings summary{cursor:pointer;font-weight:550;padding:4px 0}.budget-settings .budget-section>p{margin:14px 0 20px}.budget-settings form,.budget-group{margin-top:28px}.budget-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin:20px 0}.budget-overview>div{padding:16px;background:#7771;border-radius:8px;min-width:0}.budget-overview strong{display:block;font-size:18px;margin-top:10px;overflow-wrap:anywhere}.budget-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:24px}.budget-settings .price-card{border:1px solid #7774;border-radius:8px;padding:18px;margin:20px 0}.price-card legend{padding:0 8px}.price-card small{display:block;margin-top:12px}.budget-user-options,.effort-options{display:flex;flex-wrap:wrap;gap:12px 20px;margin:16px 0 24px}.admin-shell .effort-options{margin-top:24px;margin-bottom:24px}.effort-options legend{margin-bottom:10px}.effort-options .checkbox-label,.budget-user-options .checkbox-label{margin:0;display:flex;align-items:center;gap:6px}.admin-shell .budget-settings input[type=checkbox],.admin-shell .effort-options input[type=checkbox]{display:inline-block;width:auto;height:auto;margin:0}.admin-shell .admin-actions{gap:12px;margin-top:20px}.admin-shell .admin-toolbar{gap:16px;flex-wrap:wrap}.admin-shell article>header{margin-bottom:28px}
@media(max-width:700px){.admin-shell .account-navigation{margin:16px 0 8px;padding-top:14px}.admin-shell .budget-settings{padding:16px}.budget-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-overview strong{font-size:16px}}

/* Align actual controls, independently of helper text below a field. */
.admin-shell .admin-fields{align-items:flex-start}.admin-shell .admin-fields label>input,.admin-shell .admin-fields label>select,.admin-shell .admin-fields label>textarea{margin-top:8px}.admin-shell .admin-fields>button,.admin-shell .admin-fields>a{margin-top:26px}

.admin-shell .modality-options{display:flex;flex-wrap:wrap;gap:12px 20px;margin:20px 0}.modality-options legend{margin-bottom:10px}.modality-options .checkbox-label{display:flex;align-items:center;gap:6px;margin:0}.admin-shell .modality-options input[type=checkbox]{width:auto;height:auto;margin:0}

.bulk-user-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) auto;gap:12px;align-items:start;margin:16px 0}.bulk-user-row label{margin:0}.bulk-user-row>button{margin-top:26px}.admin-divider{border:0;border-top:1px solid #7774;margin:24px 0}@media(max-width:600px){.bulk-user-row{grid-template-columns:minmax(0,1fr) auto}.bulk-user-row label{grid-column:1}.bulk-user-row>button{grid-column:2;grid-row:1/3;align-self:center;margin:0}}

.admin-shell select{appearance:none;-webkit-appearance:none;padding-inline:10px 34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%238d8b83' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 12px}

.help-hint{position:relative;display:inline-flex;vertical-align:middle;margin-left:4px}.admin-shell .help-hint>button{box-sizing:border-box;display:inline-flex;flex:0 0 14px;align-items:center;justify-content:center;width:14px;height:14px;min-width:14px;max-width:14px;min-height:14px;max-height:14px;aspect-ratio:1;color:rgb(135 135 135 / 60%);border:1px solid currentColor;border-radius:50%;padding:0;background:transparent;font-size:10px;line-height:1;cursor:help}.help-hint>[role=tooltip]{display:none;position:absolute;left:0;bottom:calc(100% + 8px);width:280px;max-width:70vw;padding:10px 12px;border-radius:8px;background:#292824;color:#fff;font-size:13px;font-weight:400;line-height:1.6;z-index:30;box-shadow:0 4px 20px #0003}.help-hint:hover>[role=tooltip],.help-hint:focus-within>[role=tooltip]{display:block}

/* Cogito / NJU: unslop hierarchy and semantic tokens; product-specific purple. */
:root{--c-bg:#151218;--c-surface:#1e1a23;--c-raised:#2d2137;--c-text:#f4f0f6;--c-muted:#b8afc0;--c-border:#44394d;--c-accent:#d0a1f5;--c-primary:#9635be;--c-on-primary:#fff;--c-selection:#34223e;color:var(--c-text);background:var(--c-bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
@media(prefers-color-scheme:light){:root{color-scheme:light;--c-bg:#faf5fe;--c-surface:#fff;--c-raised:#efe2f8;--c-text:#29222f;--c-muted:#6c6174;--c-border:#d9d0df;--c-accent:#7b0fb0;--c-primary:#7b0fb0;--c-on-primary:#fff;--c-selection:#ebd8f7}}
body{background:var(--c-bg);color:var(--c-text);line-height:1.55}main:not(.admin-shell){margin:10vh auto;width:min(480px,100%);padding:24px}.brand{font-size:36px;letter-spacing:-.04em;color:var(--c-accent)}.tagline,.help,.account{color:var(--c-muted)}section,.admin-shell section{background:var(--c-surface);border:1px solid var(--c-border);border-radius:12px;box-shadow:none}main:not(.admin-shell)>section{padding:32px}input,.admin-shell input,.admin-shell select,.admin-shell textarea{color:var(--c-text);background:var(--c-bg);border:1px solid var(--c-border);border-radius:6px}button,.admin-shell button{background:var(--c-raised);color:var(--c-text);border:1px solid var(--c-border);transition:background 140ms ease,border-color 140ms ease}button[type=submit],main:not(.admin-shell) section>form button:not([type=button]){background:var(--c-primary);color:var(--c-on-primary);border-color:var(--c-primary)}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,.admin-shell button:focus-visible,.admin-shell input:focus-visible{outline:2px solid var(--c-accent);outline-offset:3px}.link{color:var(--c-accent);background:none;border:0}
.admin-shell{max-width:1360px;grid-template-columns:192px minmax(0,1fr);gap:32px;padding:32px;margin:0 auto;color:var(--c-text);background:var(--c-bg);font-size:14px}.admin-shell aside{position:sticky;top:24px;align-self:start;border:0;padding:16px 0}.admin-shell aside>b{font-size:24px;letter-spacing:-.035em;color:var(--c-accent)}.admin-shell aside p,.admin-shell small,.admin-shell label,.admin-shell header p{color:var(--c-muted)}.admin-shell nav{display:grid;gap:4px}.admin-shell nav a{padding:10px 12px;border-radius:6px}.admin-shell nav a:hover{background:var(--c-raised);text-decoration:none}.admin-shell nav [aria-current]{color:var(--c-accent);background:var(--c-selection);font-weight:600}.admin-shell h1{font-size:24px;letter-spacing:-.025em;margin-bottom:8px}.admin-shell h2{font-size:17px;color:var(--c-text)}.admin-shell h3{font-size:14px;color:var(--c-text)}.admin-shell section{padding:24px;margin:0 0 24px}.admin-shell article>header{margin-bottom:24px}.admin-shell input,.admin-shell select{min-height:36px}.admin-shell button{min-height:32px;padding:6px 12px}.admin-shell th{color:var(--c-muted);font-weight:500}.admin-shell td,.admin-shell th,.admin-shell .account-navigation,.budget-settings .budget-section{border-color:var(--c-border)}.admin-shell table,.budget-overview{font-variant-numeric:tabular-nums}.budget-overview>div{background:var(--c-raised);border-radius:8px}.budget-overview strong{font-size:24px}.admin-shell .budget-settings .price-card{border-color:var(--c-border);background:transparent}.admin-divider{border-color:var(--c-border)}.admin-shell .help-hint>button{background:transparent;color:rgb(135 135 135 / 60%);border-color:currentColor;width:14px;height:14px;min-height:14px;padding:0}.admin-shell .help-hint>[role=tooltip]{background:var(--c-text);color:var(--c-bg)}
@media(max-width:700px){.admin-shell{display:block;padding:16px}.admin-shell aside{position:static;border-bottom:1px solid var(--c-border);margin-bottom:24px;padding:8px 0 16px}.admin-shell aside nav{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0}.admin-shell section{padding:16px}.admin-shell .account-navigation{margin-top:12px;padding-top:12px}.admin-shell h1{font-size:22px}main:not(.admin-shell){margin:4vh auto;padding:16px}main:not(.admin-shell)>section{padding:24px}}
@media(prefers-reduced-motion:reduce){button,.admin-shell button{transition:none}}

/* Authentication composition: original form and events remain unchanged. */
main.auth-shell{width:min(1120px,100%);min-height:100dvh;margin:0 auto;padding:64px 32px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,420px);gap:64px;align-items:center}.auth-shell::before{content:"";position:fixed;inset:0;z-index:-1;background:#600686}.login-intro .brand{text-align:left;font-size:64px;letter-spacing:-.04em;color:#fff}.login-intro .tagline{text-align:left;font-size:30px;color:#e4cbe9;margin:12px 0 40px}.login-math{width:100%;max-width:480px;stroke:#cba8d5;stroke-width:1.5;opacity:.65}.login-math text{stroke:none;fill:#e4cbe9;font:16px Georgia,serif}.auth-shell .login-panel{padding:32px;background:#fffdfb;color:#29222f;border:1px solid #e6dce9;border-radius:16px}.login-panel h1{font-size:24px}.auth-shell .login-panel label,.auth-shell .login-panel .help,.auth-shell .login-panel .account{color:#6c6174}.auth-shell .login-panel input{background:#fff;color:#29222f;border-color:#d9d0df;min-height:44px}.auth-shell .login-panel button[type=submit]{background:#7b0fb0;color:#fff;min-height:44px;border-color:#7b0fb0}.auth-shell .login-panel [role=alert]{color:#a12c37}.auth-shell .login-panel input:focus-visible,.auth-shell .login-panel button:focus-visible{outline-color:#7b0fb0}.auth-shell .login-panel .link{color:#7b0fb0;background:transparent}.login-panel .help{font-size:12px;line-height:1.7;margin-top:24px}@media(max-width:700px){main.auth-shell{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:24px;padding:32px 20px;min-height:100dvh}.login-intro .brand{font-size:40px}.login-intro .tagline{font-size:20px;margin:4px 0 0}.login-math{display:none}.auth-shell .login-panel{padding:24px;width:100%}}
body:has(.auth-shell){background:#600686}

.user-usage{border-top:1px solid var(--c-border);padding:16px 0}.user-usage>summary{cursor:pointer;display:list-item}.user-usage>summary>strong{float:right;color:var(--c-accent)}.user-usage>summary>span{display:inline-block}.rollout-spinner{display:inline-block;width:12px;height:12px;border:2px solid var(--c-border);border-top-color:var(--c-accent);border-radius:50%;margin-right:8px;animation:rollout-spin 1s linear infinite}@keyframes rollout-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.rollout-spinner{animation:none}}

/* Shared control geometry and breathing room across admin forms. */
.admin-shell .admin-fields{gap:20px 16px;align-items:flex-start;margin-bottom:16px}
.admin-shell .admin-fields>label{line-height:22px;min-width:180px}
.admin-shell .admin-fields label>input:not([type=checkbox]),.admin-shell .admin-fields label>select{height:38px;min-height:38px;margin-top:8px;box-sizing:border-box}
.admin-shell .admin-fields>button,.admin-shell .admin-fields>a{margin-top:30px;min-height:38px;box-sizing:border-box;display:inline-flex;align-items:center}
.admin-shell .admin-toolbar{margin-bottom:24px;gap:20px}
.admin-shell .admin-toolbar>button{min-height:38px}
.admin-shell td,.admin-shell th{padding:18px 12px;vertical-align:middle}
.admin-shell td .admin-actions{margin:0;gap:12px;align-items:center}
.admin-shell .bulk-user-row{gap:16px;align-items:start;margin:20px 0}
.admin-shell .bulk-user-row>label{line-height:22px}
.admin-shell .bulk-user-row label>input{margin-top:8px;height:38px;box-sizing:border-box}
.admin-shell .bulk-user-row>button{margin-top:30px;min-height:38px}
.user-usage>summary>span{margin-left:6px;vertical-align:middle}
.user-usage>summary>span>small{display:block;margin-top:4px}
.admin-shell .budget-settings .budget-group,.admin-shell .budget-settings .budget-section{padding-top:24px;margin-top:28px}
@media(max-width:700px){.admin-shell .admin-fields>label{flex-basis:100%;min-width:0}.admin-shell .admin-fields>button,.admin-shell .admin-fields>a{margin-top:0}.admin-shell td,.admin-shell th{padding:14px 10px}}

/* Checkbox rows do not inherit text-field offsets. */
.admin-shell .checkbox-label{display:inline-flex;align-items:center;gap:8px;margin:0;line-height:22px}
.admin-shell .checkbox-label>input[type=checkbox],.admin-shell input.usage-check{width:16px;height:16px;min-height:16px;margin:0;flex:0 0 16px}
.version-update-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}
.version-update-actions>button{margin:0}
.collapsible-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.admin-shell .collapsible-heading h2,.admin-shell .collapsible-heading h3{margin:0}
.collapsible-panel>[hidden]{display:none}
.collapsible-panel>div[id]:not([hidden]){margin-top:20px}

.feedback-dialog{width:min(440px,calc(100vw - 40px));padding:24px;border:1px solid var(--c-border);border-radius:14px;background:var(--c-surface);color:var(--c-text);box-shadow:0 16px 60px #0004;overflow-wrap:anywhere}.feedback-dialog::backdrop{background:#0006}.feedback-dialog h2{margin:0 0 16px}.feedback-dialog form{display:flex;justify-content:flex-end;margin-top:24px}

/* Admin density follows native settings; the existing purple theme owns color. */
.admin-shell {
  max-width:1200px;
  grid-template-columns:160px minmax(0,1fr);
  gap:20px;
  padding:20px;
  font-size:13px;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
}
.admin-shell aside {top:20px;padding:4px 0}
.admin-shell aside>b {font-size:14px;letter-spacing:-.011em}
.admin-shell aside p {margin:4px 0 12px;font-size:12px}
.admin-shell nav {padding:4px 0;gap:4px}
.admin-shell nav a {padding:8px;line-height:16px}
.admin-shell h1,.admin-shell h2,.admin-shell h3 {
  font-size:14px;
  line-height:20px;
  font-weight:600;
  margin:0 0 8px;
}
.admin-shell article>header {margin-bottom:16px}
.admin-shell article>header h1 {margin-bottom:4px}
.admin-shell article>header p {margin:0}
.admin-shell p {margin:8px 0}
.admin-shell small {font-size:12px}
.admin-shell section,.admin-shell .budget-settings {
  padding:16px;
  margin:0 0 16px;
  border-radius:8px;
}
.admin-shell label {margin:8px 0;font-size:13px;line-height:20px}
.admin-shell input:not([type=checkbox]):not([type=file]),.admin-shell select {
  height:32px;
  min-height:32px;
  font-size:13px;
  padding-block:4px;
}
.admin-shell textarea {font-size:13px;padding:8px}
.admin-shell button:not(.help-hint>button) {min-height:32px;padding:4px 8px;font-size:13px}
.admin-shell .admin-fields {gap:12px;align-items:flex-start;margin-bottom:12px}
.admin-shell .admin-fields>label {min-width:0;flex-basis:160px;margin:0;line-height:20px}
.admin-shell .admin-fields label>input:not([type=checkbox]),.admin-shell .admin-fields label>select,
.admin-shell .bulk-user-row label>input {
  height:32px;
  min-height:32px;
  margin-top:4px;
}
.admin-shell .admin-fields label>textarea {margin-top:4px}
.admin-shell .admin-fields>button,.admin-shell .admin-fields>a,
.admin-shell .bulk-user-row>button {margin-top:24px;min-height:32px}
.admin-shell .admin-toolbar {margin-bottom:12px;gap:12px}
.admin-shell .admin-toolbar>button {min-height:32px}
.admin-shell td,.admin-shell th {padding:8px;vertical-align:middle}
.admin-shell td small {margin-top:4px}
.admin-shell .admin-actions {gap:8px;margin-top:12px}
.admin-shell td .admin-actions {margin:0;gap:8px}
.admin-shell .bulk-user-row {gap:12px;margin:12px 0}
.admin-shell .bulk-user-row>label {line-height:20px}
.admin-shell .account-navigation {gap:12px;margin-top:16px;padding-top:12px}
.admin-shell .account-navigation>a {padding:4px 0}
.admin-shell .budget-settings .budget-group,.admin-shell .budget-settings .budget-section {
  padding-top:16px;
  margin-top:16px;
}
.admin-shell .budget-settings .budget-section>p {margin:8px 0 12px}
.admin-shell .budget-settings form {margin-top:12px}
.admin-shell .budget-overview {gap:8px;margin:12px 0}
.admin-shell .budget-overview>div {padding:12px;border-radius:6px}
.admin-shell .budget-overview strong {font-size:14px;margin-top:4px}
.admin-shell .budget-action-row {gap:12px;margin-top:12px}
.admin-shell .budget-settings .price-card {padding:12px;margin:12px 0}
.admin-shell .price-card small {margin-top:8px}
.admin-shell .budget-user-options,.admin-shell .effort-options,.admin-shell .modality-options {
  gap:8px 16px;
  margin:12px 0;
}
.admin-shell .effort-options legend,.admin-shell .modality-options legend {margin-bottom:8px}
.admin-shell .checkbox-label {margin:0;line-height:20px}
.admin-shell .admin-divider {margin:16px 0}
.admin-shell .usage-cards {gap:12px;margin-top:12px;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.admin-shell .usage-cards>div {min-width:0;padding:12px;border-color:var(--c-border);border-radius:6px}
.admin-shell .user-usage {padding:8px 0}
.admin-shell .user-usage>summary {overflow-wrap:anywhere}
.admin-shell .user-usage>summary>strong {margin-left:8px}
.admin-shell .version-update-actions {gap:12px;margin:12px 0}
.admin-shell .collapsible-heading {gap:12px}
.admin-shell .collapsible-panel>div[id]:not([hidden]) {margin-top:12px}

@media(max-width:700px) {
  .admin-shell {display:block;padding:12px}
  .admin-shell aside {position:static;margin-bottom:16px;padding:0 0 12px}
  .admin-shell aside nav {margin:8px 0}
  .admin-shell section,.admin-shell .budget-settings {padding:12px}
  .admin-shell .admin-fields>label {flex-basis:100%;min-width:0}
  .admin-shell .admin-fields>button,.admin-shell .admin-fields>a {margin-top:0}
  .admin-shell .bulk-user-row>button {margin-top:24px}
  .admin-shell .user-usage>summary>strong {float:none;display:block;margin-left:20px}
}
@media(max-width:600px) {
  .admin-shell .bulk-user-row>button {margin-top:0}
}
/* Compact information spacing retains larger controls for touch navigation. */
@media(max-width:700px),(pointer:coarse) {
  .admin-shell input:not([type=checkbox]):not([type=file]),.admin-shell select,
  .admin-shell .admin-fields label>input:not([type=checkbox]),.admin-shell .admin-fields label>select,
  .admin-shell .bulk-user-row label>input {height:44px;min-height:44px}
  .admin-shell button:not(.help-hint>button),.admin-shell .admin-fields>a {min-height:44px}
  .admin-shell nav a {min-height:44px;display:flex;align-items:center}
  .admin-shell .checkbox-label {min-height:44px}
  .admin-shell .account-navigation>a {min-height:44px;display:inline-flex;align-items:center}
}

/* Workspace policy: compact catalog rows, shared purple semantic surfaces. */
.workspace-settings .ws-field-list{max-height:520px;overflow:auto;border-top:1px solid var(--c-border)}
.workspace-settings .ws-field,.workspace-settings .ws-item{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:16px;align-items:start;padding:16px 0;border-bottom:1px solid var(--c-border)}
.workspace-settings .ws-item{grid-template-columns:minmax(0,1fr) auto}
.workspace-settings .ws-item .admin-actions{margin:0}
.workspace-settings small{display:block;overflow-wrap:anywhere}
.workspace-settings details{margin-top:8px}
.workspace-settings summary{cursor:pointer}
.workspace-settings pre,.workspace-settings details p{white-space:pre-wrap;overflow-wrap:anywhere;max-width:65ch}
.workspace-settings label>small{margin-top:8px}
.workspace-settings .ws-field button{margin:0}
.workspace-settings p{max-width:65ch}
.workspace-settings strong,.workspace-settings td{font-variant-numeric:tabular-nums}
.ws-preview{width:min(640px,calc(100% - 32px));max-height:85dvh;overflow:auto}
.ws-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
@media(max-width:700px){.workspace-settings .ws-field{grid-template-columns:minmax(0,1fr) auto}.workspace-settings .ws-field>div:nth-child(2){grid-column:1}.workspace-settings .ws-field>button{grid-column:2;grid-row:1/3}.workspace-settings .ws-item{grid-template-columns:minmax(0,1fr)}.workspace-settings button,.workspace-settings select{min-height:44px}}

.native-settings-admin { display: grid; width: 100%; max-width: 1600px; margin: 0 auto; padding: 16px; }
.native-settings-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.native-settings-header h1 { margin: 8px 0 0; font-size: 20px; }
.native-settings-header a { font-size: 12px; }
.native-settings-frame { display: block; width: 100%; height: min(820px, 80vh); min-height: 480px; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg); }
.admin-shell .native-settings-delivery { margin-top: 24px; }
.native-settings-delivery input[type=checkbox] { width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; accent-color: var(--c-accent); vertical-align: middle; }
.native-settings-delivery td:first-child { min-width: 160px; }
.settings-delivery-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.settings-delivery-controls>label { width: 200px; max-width: 100%; margin: 0; }
.settings-delivery-controls select { margin-top: 8px; }
.settings-target-count { display: flex; align-items: center; align-self: end; min-height: 32px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.native-settings-delivery td.settings-selection-cell,.native-settings-delivery th.settings-selection-cell { min-width: 64px; width: 64px; }
.native-settings-delivery table { min-width: 0; table-layout: fixed; }
.native-settings-delivery th,.native-settings-delivery td { white-space: normal; overflow-wrap: anywhere; }
.native-settings-delivery .settings-status-cell { width: 112px; }
.native-settings-delivery .checkbox-label { white-space: nowrap; gap: 4px; }
.settings-selection-target { display: flex; align-items: center; justify-content: center; min-height: 32px; margin: 0; }
@media (max-width: 700px) { .settings-delivery-controls>label { flex-basis: 100%; width: auto; } .settings-delivery-controls>button { margin-inline-start: auto; } .settings-target-count,.settings-selection-target { min-height: 44px; } }
@media (max-width: 700px) { .native-settings-admin { display: block; padding: 12px; } .native-settings-frame { height: 78vh; } }

.native-settings-admin>article { min-width: 0; }

:root{--c-danger:#ef9a9a}@media(prefers-color-scheme:light){:root{--c-danger:#a92032}}
.admin-shell .required-control,.required-control{border-color:var(--c-danger)!important}.admin-shell .required-message,.required-message{display:block;color:var(--c-danger);font-size:12px;font-weight:400;margin-top:4px}.model-config-missing{margin-inline-start:8px;font-size:12px;color:var(--c-muted);overflow-wrap:anywhere}

fieldset.required-control{border:1px solid var(--c-danger);border-radius:6px;padding:8px}

.allocation-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.allocation-force-button{color:var(--c-danger);border-color:var(--c-danger)}

.skill-admin>article { min-width: 0; }
.skill-editor-grid { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.skill-file-sidebar { padding: 16px; border-right: 1px solid var(--c-border); min-width: 0; }
.skill-file-sidebar h2,.skill-file-sidebar h3 { font-size: 13px; margin: 0 0 12px; }
.skill-file-sidebar h3 { margin-top: 24px; }
.skill-file-list { list-style: none; padding: 0; margin: 0 0 16px; max-height: 280px; overflow: auto; }
.skill-file-list button { width: 100%; border: 0; border-radius: 4px; text-align: left; padding: 8px; white-space: normal; overflow-wrap: anywhere; background: transparent; }
.skill-file-list button[aria-pressed=true] { background: var(--c-surface); color: var(--c-accent); box-shadow: inset 2px 0 var(--c-accent); }
.skill-file-sidebar label { display: block; margin: 12px 0; }
.skill-file-sidebar input { width: 100%; min-width: 0; margin-top: 4px; }
.skill-file-sidebar details { border-top: 1px solid var(--c-border); padding-top: 12px; }
.skill-file-sidebar summary { cursor: pointer; }
.skill-delete { display: block; margin-top: 24px; }
.skill-document { min-width: 0; padding: 16px; }
.skill-document>header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.skill-document h2 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.skill-document-path { font-size: 12px; overflow-wrap: anywhere; }
.skill-document-text { width: 100%; min-height: 480px; height: 64vh; resize: vertical; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 13px; line-height: 1.6; tab-size: 2; }
.skill-admin .native-settings-delivery { margin-top: 24px; }
@media(max-width:700px) { .skill-admin { display: block; padding: 12px; } .skill-editor-grid { grid-template-columns: minmax(0,1fr); } .skill-file-sidebar { border-right: 0; border-bottom: 1px solid var(--c-border); } .skill-file-list { max-height: 180px; } .skill-editor button { min-height: 44px; } .skill-document-text { min-height: 360px; } }

.admin-shell .skill-editor { border: 0; padding: 0; margin: 0; background: transparent; }

/* Keep nested editor spacing independent of the admin navigation aside. */
.admin-shell .skill-file-sidebar { position: static; padding: 20px; margin: 0; border-right: 1px solid var(--c-border); }
.admin-shell .skill-document { padding: 20px; }
@media(max-width:700px) {
  .admin-shell .skill-file-sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid var(--c-border); }
  .admin-shell .skill-document { padding: 16px; }
}

.skill-dialog { box-sizing:border-box; width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; margin:auto; padding:28px; border:1px solid var(--c-border); border-radius:14px; background:var(--c-surface); color:var(--c-text); box-shadow:0 20px 64px #0005; }
.skill-dialog::backdrop { background:#0008; }
.admin-shell .skill-dialog h2 { margin:0 0 12px; font-size:18px; }
.skill-dialog p { margin:0 0 24px; line-height:1.65; color:var(--c-muted); }
.skill-dialog-field { display:grid; gap:8px; }
.admin-shell .skill-dialog .skill-dialog-field input { box-sizing:border-box; width:100%; min-height:42px; }
.skill-dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:28px; }
.admin-shell .skill-dialog .skill-dialog-actions button { min-height:40px; padding:8px 20px; transition:filter 140ms ease; }
.skill-publish-targets { margin:24px 0; padding:20px; border:1px solid var(--c-border); border-radius:8px; }
.skill-publish-targets label { display:flex; align-items:center; gap:8px; }
.skill-publish-user-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px 20px; margin-top:16px; }
.skill-publish-user-list span { overflow-wrap:anywhere; }
@media(max-width:700px) { .skill-dialog { padding:22px; } .admin-shell .skill-dialog .skill-dialog-actions button { min-height:44px; } }
.admin-shell .skill-dialog .skill-dialog-actions button { background:var(--c-raised); color:var(--c-text); border:1px solid var(--c-border); }
.admin-shell .skill-dialog .skill-dialog-actions button:first-child { background:var(--c-primary); color:var(--c-on-primary); border-color:var(--c-primary); }
.skill-publish-user-list small { display:block; margin-top:2px; }
