/* SPbSO UI system: semantic tokens shared by all existing modules. */
:root, :root[data-theme=light] {
  --ui-bg:#f3f6fb; --ui-surface:#fff; --ui-subtle:#f7f9fc;
  --ui-ink:#17233b; --ui-muted:#53647e; --ui-line:#dbe3ed;
  --ui-input-line:#7c8da4; --ui-primary:#1d4ed8; --ui-primary-hover:#1e40af;
  --ui-on-primary:#fff; --ui-soft:#eaf0ff; --ui-success:#166347;
  --ui-success-bg:#edf8f2; --ui-warning:#81511c; --ui-warning-bg:#fff6e5;
  --ui-error:#b42332; --ui-error-bg:#fff0f1; --ui-ring:#1d4ed8;
  --ui-radius:12px; --ui-radius-small:8px; --ui-shadow:0 2px 5px #17233b06;
  --ui-font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ui-space-1:4px; --ui-space-2:8px; --ui-space-3:12px; --ui-space-4:16px;
  --ui-space-6:24px; --ui-space-8:32px; --ui-space-12:48px;
  --ui-fast:140ms; --ui-normal:200ms; --ui-sidebar:264px; --ui-header:72px;
}
:root[data-theme=dark] {
  --ui-bg:#101827; --ui-surface:#182438; --ui-subtle:#1e2d44;
  --ui-ink:#edf2fb; --ui-muted:#b4c2d7; --ui-line:#35465e;
  --ui-input-line:#71839d; --ui-primary:#a9c5ff; --ui-primary-hover:#c5d7ff;
  --ui-on-primary:#142d5a; --ui-soft:#263b60; --ui-success:#a6e7c5;
  --ui-success-bg:#173c32; --ui-warning:#f4d18c; --ui-warning-bg:#3b321f;
  --ui-error:#ffb2ba; --ui-error-bg:#412431; --ui-ring:#a9c5ff;
  --ui-shadow:none;
}
:root[data-theme=green] {
  --ui-bg:#f0f5f1; --ui-surface:#fff; --ui-subtle:#f5f9f6;
  --ui-ink:#183a2b; --ui-muted:#506b5b; --ui-line:#d0ded4;
  --ui-input-line:#718d7b; --ui-primary:#235b43; --ui-primary-hover:#194631;
  --ui-on-primary:#fff; --ui-soft:#e3f1e8; --ui-success:#235b43;
  --ui-success-bg:#e3f1e8; --ui-warning:#81511c; --ui-warning-bg:#fff6e5;
  --ui-error:#a22b39; --ui-error-bg:#fff0f1; --ui-ring:#235b43;
}
:root[data-theme] {
  --theme-bg:var(--ui-bg); --theme-surface:var(--ui-surface);
  --theme-ink:var(--ui-ink); --theme-muted:var(--ui-muted); --theme-line:var(--ui-line);
  --theme-primary:var(--ui-primary); --theme-hover:var(--ui-primary-hover); --theme-soft:var(--ui-soft);
  --theme-success:var(--ui-success); --theme-success-bg:var(--ui-success-bg);
  --theme-warning:var(--ui-warning); --theme-warning-bg:var(--ui-warning-bg);
  --theme-error:var(--ui-error); --theme-error-bg:var(--ui-error-bg);
  --border:var(--ui-line); --line:var(--ui-line); --surface:var(--ui-surface);
  --canvas:var(--ui-bg); --ink:var(--ui-ink); --muted:var(--ui-muted);
  --navy:var(--ui-ink); --blue:var(--ui-primary); --shadow:var(--ui-shadow);
  scroll-padding-top:calc(var(--ui-header) + 24px);
}
body {font-family:var(--ui-font);line-height:1.55;letter-spacing:-.012em;}
button,input,select,textarea {font-family:inherit;}
html[data-theme] :is(h1,h2,h3,h4) {color:var(--ui-ink);letter-spacing:-.035em;line-height:1.25;text-wrap:balance;}
html[data-theme] :is(.page-heading h1,.section-intro h1,#portal-content>h1,.ui-page-title) {font-size:clamp(26px,2.8vw,36px);font-weight:680;margin:0 0 12px;}
html[data-theme] h2 {font-size:21px;font-weight:640;}
html[data-theme] h3 {font-size:17px;font-weight:620;}
p {overflow-wrap:anywhere;}
html[data-theme] :is(.subtitle,.subtle,.login-note) {font-size:14px;line-height:1.65;}
html[data-theme] .eyebrow {font-size:11px;letter-spacing:.12em;font-weight:650;color:var(--ui-muted);}
html[data-theme] :is(button,a,input,select,textarea,summary) {scroll-margin-block:100px 32px;}
html[data-theme] :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--ui-ring);outline-offset:3px;}
html[data-theme] .button {
  min-height:44px;padding:10px 16px;border-radius:var(--ui-radius-small);
  font-size:14px;font-weight:580;gap:8px;line-height:1.35;box-shadow:none!important;
  transition:background var(--ui-fast),border-color var(--ui-fast),color var(--ui-fast);
  transform:none;touch-action:manipulation;
}
html[data-theme] .button.primary {background:var(--ui-primary);border-color:var(--ui-primary);color:var(--ui-on-primary);}
html[data-theme] .button.primary:hover {background:var(--ui-primary-hover);border-color:var(--ui-primary-hover);}
html[data-theme] .button.ghost {background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-ink);}
html[data-theme] .button.ghost:hover {background:var(--ui-subtle);border-color:var(--ui-input-line);}
html[data-theme] .button.danger {background:var(--ui-error-bg);color:var(--ui-error);border-color:var(--ui-error);}
html[data-theme] .button:disabled {opacity:.55;cursor:not-allowed;}
html[data-theme] :is(label,.field-label) {font-size:13px;font-weight:580;color:var(--ui-ink);gap:7px;}
html[data-theme] :is(input,select,textarea) {
  min-height:44px;padding:10px 12px;font-size:15px;line-height:1.45;
  border:1px solid var(--ui-input-line);border-radius:var(--ui-radius-small);
  background:var(--ui-surface);color:var(--ui-ink);box-shadow:none;
  transition:border-color var(--ui-fast),box-shadow var(--ui-fast);
}
html[data-theme] :is(input,textarea)::placeholder {color:var(--ui-muted);opacity:.85;}
html[data-theme] :is(input,select,textarea):focus {border-color:var(--ui-ring);box-shadow:0 0 0 3px var(--ui-soft);}
html[data-theme] :is(input,textarea)[aria-invalid=true] {border-color:var(--ui-error);}
html[data-theme] input[type=checkbox],html[data-theme] input[type=radio] {width:20px;height:20px;min-height:20px;accent-color:var(--ui-primary);flex:none;}
html[data-theme] textarea {min-height:112px;resize:vertical;}
html[data-theme] .app-shell {padding-left:var(--ui-sidebar);}
html[data-theme] .topbar {height:var(--ui-header);min-height:var(--ui-header);padding:0 32px;gap:12px;border-color:var(--ui-line);}
.ui-breadcrumb {display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ui-muted);min-width:0;margin-right:auto;}
.ui-breadcrumb strong {font-weight:580;color:var(--ui-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ui-breadcrumb span {white-space:nowrap;}
html[data-theme] .account {gap:10px;}
html[data-theme] .account strong {font-size:13px;}
html[data-theme] .account span {font-size:12px;}
html[data-theme] :is(.theme-picker summary,.notification-picker summary) {width:44px;height:44px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-small);}
html[data-theme] .notification-picker {margin-left:0;}
html[data-theme] .portal-nav.compact-nav {width:var(--ui-sidebar);padding:18px 14px 24px;gap:4px;border-color:var(--ui-line);overscroll-behavior:contain;}
html[data-theme] .sidebar-brand {height:68px;margin:-18px -14px 18px;padding:0 22px;font-size:17px;letter-spacing:-.025em;gap:12px;}
html[data-theme] .sidebar-brand .brand-logo {width:36px;height:42px;}
html[data-theme] .portal-nav :is(a.button,button.button,summary) {display:flex;align-items:center;min-height:42px;padding:10px 12px;gap:10px;font-size:13px;font-weight:500;line-height:1.35;border-radius:8px;}
html[data-theme] .portal-nav :is(a.button,button.button)[aria-current=page] {background:var(--ui-soft);color:var(--ui-primary);font-weight:650;box-shadow:inset 3px 0 var(--ui-primary)!important;}
html[data-theme] .compact-nav .nav-group {margin-top:12px;}
html[data-theme] .compact-nav .nav-group>summary {min-height:32px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:650;color:var(--ui-muted);background:transparent;}
html[data-theme] .compact-nav .nav-group-panel {padding:4px 0 0 0;margin:0;gap:3px;border:0;background:transparent;}
html[data-theme] .compact-nav .nav-group-panel .button {background:transparent;font-size:13px;}
.ui-nav-icon {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
html[data-theme] .compact-nav .nav-current {display:none;}
html[data-theme] .workspace {padding:36px 32px 64px;max-width:1440px;min-width:0;}
.workspace>*,#portal-content>* {min-width:0;max-width:100%;}
html[data-theme] :is(.portal-card,.registry-card,.role-card,.task-card,.metric,.calendar-panel,.person-card,.overview,.progress-card,.community-empty) {border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);background:var(--ui-surface);}
html[data-theme] .portal-card {padding:24px;margin:20px 0;}
html[data-theme] .portal-card>h2:first-child {margin-top:0;}
html[data-theme] .portal-card p:last-child {margin-bottom:0;}
html[data-theme] .dashboard-grid {gap:18px;margin:28px 0;}
html[data-theme] .dashboard-tile {position:relative;padding:24px;margin:0;min-height:176px;display:flex;flex-direction:column;gap:12px;border-top:3px solid var(--ui-primary);}
html[data-theme] .dashboard-tile strong {font-size:40px;font-weight:680;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em;}
html[data-theme] .dashboard-tile span {font-size:14px;font-weight:550;color:var(--ui-muted);}
html[data-theme] .dashboard-tile small {font-size:12px;color:var(--ui-primary);margin-top:auto;font-weight:550;}
html[data-theme] .dashboard-tile:hover {background:var(--ui-subtle);border-color:var(--ui-primary);}
html[data-theme] :is(.overview strong,.metric strong) {font-size:30px;font-weight:660;font-variant-numeric:tabular-nums;}
html[data-theme] .overview {padding:22px 24px;gap:24px;margin-bottom:24px;}
html[data-theme] .overview span {font-size:12px;font-weight:550;}
html[data-theme] .section-tools {align-items:end;gap:12px;margin-block:20px;}
html[data-theme] .portal-card>summary {min-height:44px;padding-block:10px;font-size:14px;cursor:pointer;}
html[data-theme] .portal-card>summary+form {margin-top:20px;}
html[data-theme] .account-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;align-items:start;}
html[data-theme] .account-grid>.portal-card {margin:0;padding:20px;}
html[data-theme] .account-grid p {font-size:13px;color:var(--ui-muted);overflow-wrap:anywhere;}
html[data-theme] .account-grid details {margin-block:8px;}
html[data-theme] :is(.field-grid,.role-grid,.task-grid,.metric-grid) {gap:20px;}
html[data-theme] .field-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.field-grid>.wide {grid-column:1/-1;}
html[data-theme] .table-wrap {max-width:100%;overflow:auto;border-radius:var(--ui-radius);border:1px solid var(--ui-line);overscroll-behavior-x:contain;}
html[data-theme] table {font-size:13px;font-variant-numeric:tabular-nums;}
html[data-theme] thead th {background:var(--ui-subtle);color:var(--ui-muted);font-size:12px;font-weight:600;padding:14px 16px;white-space:nowrap;}
html[data-theme] td {padding:16px;font-size:13px;line-height:1.5;border-color:var(--ui-line);}
html[data-theme] tbody tr:hover {background:var(--ui-subtle);}
html[data-theme] :is(.status-pill,.season-badge) {display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;font-size:12px;font-weight:580;line-height:1.4;border-radius:6px;white-space:normal;}
html[data-theme] :is(.privacy-note,.privacy-badge) {padding:12px 14px;line-height:1.6;font-size:13px;}
html[data-theme] #portal-message:not(:empty) {padding:14px 16px;background:var(--ui-soft);color:var(--ui-ink);border:1px solid var(--ui-line);border-left:3px solid var(--ui-primary);border-radius:8px;}
html[data-theme] .form-message.error {color:var(--ui-error);line-height:1.6;}
html[data-theme] .form-message.success {color:var(--ui-success);}
html[data-theme] :is(.empty-state,.community-empty) {padding:40px 24px;min-height:140px;border:1px dashed var(--ui-input-line);text-align:center;}
html[data-theme] .community-empty h2 {font-size:19px;}
html[data-theme] .community-empty p {color:var(--ui-muted);max-width:50ch;margin-inline:auto;}
html[data-theme] .fighter-list {display:grid;gap:12px;}
html[data-theme] .fighter-row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:20px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius);min-width:0;}
html[data-theme] .fighter-row>div {min-width:0;}
html[data-theme] .fighter-row strong {display:block;overflow-wrap:anywhere;font-size:14px;margin-bottom:10px;}
html[data-theme] .fighter-row label {max-width:200px;}
html[data-theme] .calendar-event {font-size:12px;line-height:1.4;padding:6px;}
html[data-theme] .calendar-day {min-width:0;}
html[data-theme] .squad-dialog {width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;background:var(--ui-surface);color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:16px;box-shadow:0 24px 80px #0004;}
html[data-theme] .squad-dialog::backdrop {background:#101827a8;}
html[data-theme] .dialog-head {padding:20px 24px;border-bottom:1px solid var(--ui-line);}
html[data-theme] .dialog-content {padding:24px;}
html[data-theme] .dialog-head h2 {font-size:22px;}
html[data-theme] .save-dock {background:var(--ui-surface);border:1px solid var(--ui-line);padding:16px 20px;border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);}
html[data-theme] .notification-panel {border-color:var(--ui-line);border-radius:var(--ui-radius);box-shadow:0 8px 32px #17233b1a;}
html[data-theme] body.auth-page {display:flex;flex-direction:column;min-height:100dvh;}
html[data-theme] .auth-page .login-screen {display:grid;grid-template-columns:minmax(0,1fr);place-items:center;flex:1;width:100%;min-height:0;max-width:none;margin:0;padding:48px 20px;background:var(--ui-bg);}
html[data-theme] .login-panel {width:100%;max-width:440px;align-self:center;padding:36px;border-radius:16px;border:1px solid var(--ui-line);background:var(--ui-surface);box-shadow:0 8px 32px #17233b08;}
html[data-theme] .brand-lockup {gap:12px;margin-bottom:28px;justify-content:center;}
html[data-theme] .brand-lockup .brand-logo {width:44px;height:54px;}
html[data-theme] .brand-lockup strong {font-size:18px;font-weight:680;}
html[data-theme] .brand-lockup span {font-size:12px;}
html[data-theme] .login-copy {text-align:center;}
html[data-theme] .login-copy h1 {font-size:28px;font-weight:680;margin:0;}
html[data-theme] .login-copy>p:last-child {font-size:14px;margin:10px 0 28px;}
html[data-theme] .login-form {gap:18px;}
html[data-theme] .login-form .button.primary {width:100%;min-height:48px;margin:2px 0 0;}
html[data-theme] .login-form #login-error {margin:0;}
html[data-theme] .login-form #login-error:empty {display:none;}
html[data-theme] .login-panel #recover-access {display:block;min-height:44px;margin:12px auto -8px;padding:10px 12px;border-color:transparent;background:transparent;color:var(--ui-primary);font-size:13px;}
html[data-theme] .login-panel #recover-access:hover {background:var(--ui-bg);}
html[data-theme] .login-panel #login-form[hidden] ~ #recover-access {display:none;}
html[data-theme] .auth-page .site-legal-footer {border-top:0;padding:16px 24px 24px;}
html[data-theme] .login-note {margin-top:20px;font-size:12px;}
html[data-theme] .login-art {display:flex;flex-direction:column;justify-content:center;align-self:center;position:relative;overflow:hidden;padding:48px;min-height:420px;border-radius:0 16px 16px 0;background:#183665;color:#fff;}
html[data-theme] .login-art::before,html[data-theme] .login-art::after {content:none;}
html[data-theme] .login-art h2 {font-size:32px;line-height:1.2;letter-spacing:-.035em;color:#fff;margin:16px 0 24px;}
.login-art .ui-art-label {font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#bfd0ed;}
.login-art p {position:static;max-width:35ch;font-size:14px;font-weight:400;letter-spacing:normal;line-height:1.7;color:#d4e0f4;}
.login-art ul {list-style:none;padding:0;margin:28px 0 0;display:grid;gap:16px;font-size:13px;}
.login-art li {padding:0 0 16px;border-bottom:1px solid #ffffff26;}
.login-art li:last-child {border-bottom:0;padding-bottom:0;}
.ui-password-control {position:relative;}
.ui-password-control input {padding-right:90px;}
.ui-password-toggle {position:absolute;right:4px;top:3px;min-height:40px;padding:8px 10px;background:transparent;border:0;border-radius:6px;color:var(--ui-primary);font-size:12px;font-weight:580;cursor:pointer;}
.ui-field {display:grid;gap:7px;}
html[data-theme] .site-legal-footer {padding:20px 24px;font-size:12px;background:var(--ui-bg);color:var(--ui-muted);}
html[data-theme] .site-legal-footer a {color:var(--ui-muted);}
html[data-theme] .privacy-form-links {font-size:11px;line-height:1.7;margin-top:4px;}
html[data-theme] .privacy-page {max-width:850px;padding:40px 24px;}
html[data-theme] .privacy-page article {padding:32px;line-height:1.8;}
.ui-skip-link {position:fixed;top:8px;left:280px;z-index:100;transform:translateY(-160%);padding:12px 16px;background:var(--ui-primary);color:var(--ui-on-primary)!important;border-radius:8px;}
.ui-skip-link:focus {transform:none;}
.ui-table-hint {color:var(--ui-muted);font-size:12px;margin:8px 0;}
.ui-empty-message {color:var(--ui-muted);line-height:1.6;padding:16px 0;}
html.ui-nav-open {overflow:hidden;}
.ui-field-error:empty {display:none;}
@media(max-width:1000px) {
  html[data-theme] .app-shell {padding-left:0;}
  html[data-theme] .workspace {padding:28px 24px 56px;}
  html[data-theme] .topbar {padding:0 24px;}
  html[data-theme] .topbar .sidebar-toggle {margin-right:0;}
  .ui-skip-link {left:12px;}
  html[data-theme] .app-shell.sidebar-open .portal-nav {z-index:40;}
  html[data-theme] .app-shell.sidebar-open .sidebar-backdrop {z-index:35;background:#10182799;}
  html[data-theme] .login-art {padding:28px;}
  html[data-theme] .login-art h2 {font-size:27px;}
}
@media(max-width:700px) {
  html[data-theme] .workspace {padding:24px 16px 48px!important;}
  html[data-theme] .topbar {height:64px;min-height:64px;padding:0 12px!important;gap:8px!important;}
  .ui-breadcrumb {display:none;}
  html[data-theme] .topbar .sidebar-toggle {margin-right:auto;}
  html[data-theme] .topbar .button {font-size:12px;padding:9px 10px;min-height:44px;}
  html[data-theme] .topbar .account {gap:6px;}
  html[data-theme] .topbar .account>div {display:none;}
  html[data-theme] .topbar #my-account-link {width:44px;height:44px;padding:10px;}
  html[data-theme] .topbar #my-account-link span {display:none;}
  html[data-theme] .account-icon {display:block;}
  html[data-theme] .field-grid {grid-template-columns:minmax(0,1fr);}
  html[data-theme] .fighter-row {grid-template-columns:repeat(2,minmax(0,1fr));padding:20px;}
  html[data-theme] .fighter-row>div {grid-column:1/-1;}
  html[data-theme] :is(input,select,textarea) {font-size:16px!important;}
  html[data-theme] .portal-card {padding:20px!important;margin:16px 0;}
  html[data-theme] .account-grid>.portal-card {margin:0;}
  html[data-theme] .dashboard-tile {padding:20px!important;min-height:150px;margin:0;}
  html[data-theme] .dashboard-grid {gap:12px;margin:24px 0;}
  html[data-theme] .overview {padding:20px;gap:18px;}
  html[data-theme] .section-tools {gap:12px;}
  html[data-theme] .section-tools>label {flex:1 1 180px;min-width:0;}
  html[data-theme] .report-tabs .button {font-size:13px;}
  html[data-theme] .auth-page .login-screen {padding:24px 16px;}
  html[data-theme] .login-panel {margin:auto;padding:28px 24px;}
  html[data-theme] .login-art {display:none;}
  html[data-theme] .login-copy h1 {font-size:26px;}
  html[data-theme] .squad-dialog {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px;}
  html[data-theme] :is(.dialog-head,.dialog-content) {padding:20px;}
  html[data-theme] .site-legal-footer {padding:20px 16px;font-size:11px;}
  html[data-theme] .privacy-page {padding:24px 16px;}
  html[data-theme] .privacy-page article {padding:24px 20px;}
  .calendar-event {overflow-wrap:anywhere;}
}
@media(prefers-reduced-motion:reduce) {html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

.pending-invitations{margin-top:16px}.pending-invitation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--ui-border)}.pending-invitation-row span{min-width:0;overflow-wrap:anywhere}.pending-invitation-row .button{flex-shrink:0}@media(max-width:600px){.pending-invitation-row{align-items:flex-start;flex-wrap:wrap}}

.account-squad-group>summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.account-squad-group [data-registration-count]{font-size:13px;color:var(--ui-muted);font-weight:500}.registration-role-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1.5fr) minmax(130px,1fr);gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--ui-border)}.registration-role-row>span{min-width:0;overflow-wrap:anywhere}.registration-role-row small{display:block;color:var(--ui-muted);margin-top:4px}.registration-status{font-size:12px;border-radius:6px;padding:6px 9px;justify-self:start}.registration-status.is-registered{color:var(--ui-success);background:var(--ui-success-bg)}.registration-status.is-pending{color:var(--ui-warning);background:var(--ui-warning-bg)}.account-management{margin-top:16px}.account-management .account-grid{margin-top:16px}.account-squad-group,.account-staff-group{margin-bottom:14px}@media(max-width:700px){.registration-role-row{grid-template-columns:1fr;gap:8px}.account-squad-group>summary{display:block}.account-squad-group [data-registration-count]{display:block;margin-top:6px}}

.access-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.access-tabs [aria-selected=true]{background:var(--ui-soft)!important;color:var(--ui-primary)!important;border-color:var(--ui-primary)!important}.access-panel[hidden],.access-panel form[hidden]{display:none!important}.access-panel>.portal-card{margin:16px 0!important}.access-panel h2{font-size:20px!important;margin:12px 0!important}.access-panel .access-action>form,.access-invite-card>form{border:0!important;box-shadow:none!important;padding:16px 0!important;margin:0!important}.access-panel .portal-card p{margin:10px 0!important}.access-panel [data-squad-status]{margin:12px 0!important;padding:16px!important}.access-panel .section-tools{justify-content:flex-start!important;gap:12px}.access-panel .section-tools button{margin:0}.access-panel .account-grid{gap:12px}.access-panel .account-grid>.portal-card{padding:18px!important}.access-panel>details>summary{min-height:28px}.access-tabs .button{min-height:44px}@media(max-width:600px){.access-tabs{display:grid;grid-template-columns:1fr;gap:6px}.access-tabs .button{text-align:left}.access-panel .section-tools>button{width:100%}}

html[data-theme] .access-panel>details.portal-card:not([open]){padding:14px 18px!important;margin:8px 0!important}

html[data-theme] .access-panel>details.portal-card:not([open]){padding:8px 18px!important}html[data-theme] .access-panel>details.portal-card>summary{padding:0!important;min-height:44px!important;align-content:center}html[data-theme] .access-panel .account-squad-group>summary:before{content:"›";font-size:20px}.access-panel .account-squad-group[open]>summary:before{transform:rotate(90deg)}@media(max-width:600px){.access-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.access-tabs .button{padding:8px!important;font-size:12px!important;text-align:center;white-space:normal}}

#technical-preview-banner{margin:12px 24px!important;padding:12px 18px!important;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}#technical-account form{display:grid;gap:16px}#technical-account label{display:block;margin:12px 0}#technical-account select{max-width:100%}

.assignment-picker{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:12px 24px;border-bottom:1px solid var(--ui-line);background:var(--ui-surface)}.assignment-picker label{display:flex;align-items:center;gap:12px;font-size:13px}.assignment-picker select{max-width:420px;min-height:44px}#assignment-manager{max-height:85dvh;overflow:auto}#assignment-manager form{display:grid;gap:12px;margin:16px 0}#assignment-manager p{overflow-wrap:anywhere}@media(max-width:600px){.assignment-picker{padding:12px 16px;justify-content:flex-start}.assignment-picker label{width:100%;display:block}.assignment-picker select{width:100%;max-width:100%;margin-top:6px}}

.top-position-options {display:grid;gap:8px;border:1px solid var(--ui-line);border-radius:8px;padding:16px;min-width:0;}
.top-position-options label {display:flex;align-items:center;gap:12px;min-height:44px;font-weight:500;}
/* Calendar types use labels as well as distinct themed colors. */
html[data-theme] .calendar-event {background:var(--ui-soft);color:var(--ui-primary);border-inline-start:solid .25rem var(--ui-primary);min-height:2.75rem;overflow-wrap:anywhere;}
html[data-theme] .calendar-event.calendar-meeting {background:var(--ui-warning-bg);color:var(--ui-warning);border-inline-start-color:var(--ui-warning);}
html[data-theme] .calendar-event small {display:block;font-size:inherit;overflow-wrap:anywhere;}
html[data-theme] .calendar-task-label {color:var(--ui-primary);}
html[data-theme] .calendar-meeting-label {color:var(--ui-warning);}
.calendar-weekday-label {display:none;}
@media(max-width:600px){
 html[data-theme] .calendar-grid {grid-template-columns:minmax(0,1fr);}
 html[data-theme] .calendar-grid>.weekday,html[data-theme] .calendar-day:not(:has(button)) {display:none;}
 html[data-theme] .calendar-day {padding:var(--ui-space-3);min-height:0;border-inline-end:0;}
 html[data-theme] .calendar-day>span {font-weight:600;}
 html[data-theme] .calendar-weekday-label {display:inline;}
 html[data-theme] .calendar-event {font-size:14px;padding:var(--ui-space-3);}
}
