/* Shared school and owner theme. Layout remains in the existing module styles. */
.al-theme { font-family:var(--sans); color:var(--ink); background:var(--canvas); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; }
.al-theme :is(button,input,select,textarea) { font-family:var(--sans); color:var(--ink); }
.al-theme :is(h1,h2,h3,h4) { color:var(--ink); font-family:var(--sans); font-weight:600; letter-spacing:-.02em; }
.al-theme :is(.ws-page-heading h1,.cu-page-heading h1,.pl-page-heading h1) { font-size:32px; line-height:1.15; letter-spacing:-.025em; font-weight:600; }
.al-theme :is(.ws-panel-heading h2,.cu-widget-heading h2,.pl-panel-heading h2,.card-title,.reg-section-heading h2) { font-size:15px; font-weight:600; }
.al-theme :is(time,.erp-number,.pl-money,.reg-registration-state,.ws-finance-amount,.cu-summary strong,.pl-metric strong,.ws-metric strong) { font-variant-numeric:tabular-nums; }
.al-theme :is(.ws-button,.btn,.pl-button,.ws-search-trigger,.ws-session-chip,.cu-session,.cu-count,.pl-badge,.erp-status,.ws-class-badge,.msg-status,.sa-suggestions button) { border-radius:999px; }
.al-theme :is(.ws-button,.btn,.pl-button) { min-height:40px; padding:8px 18px; font-size:13px; line-height:1.5; font-weight:600; box-shadow:none; }
.al-theme :is(.ws-button--primary,.btn-primary,.pl-primary) { background:var(--btn); border:1px solid transparent; color:var(--on-accent); box-shadow:var(--al-button-shadow); }
.al-theme :is(.ws-button--primary,.btn-primary,.pl-primary):hover { background:var(--btn); color:var(--on-accent); filter:brightness(1.08); }
.al-theme :is(.ws-button--secondary,.pl-secondary,.btn-light,.pl-button:not(.pl-primary):not(.pl-danger)) { background:var(--surface); color:var(--accent); border:1px solid var(--control-ring); }
.al-theme :is(.ws-button--secondary,.pl-secondary,.btn-light,.pl-button:not(.pl-primary):not(.pl-danger)):hover { background:var(--accent-soft); color:var(--accent); }
.al-theme :is(.btn-danger,.pl-danger) { color:var(--bad); background:var(--surface); border-color:var(--bad); }
.al-theme :is(.btn-danger,.pl-danger):hover { background:var(--al-danger-soft); }
.al-theme :is(button:disabled,input:disabled,select:disabled,textarea:disabled,.disabled) { opacity:.6; cursor:not-allowed; }
.al-theme :is(a,button,summary,input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.al-theme :is(.form-control,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { background:var(--surface); color:var(--ink); border:1px solid var(--control-ring); border-radius:9px; min-height:42px; font-size:14px; }
.al-theme :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
.al-theme :is(.form-control,input,select,textarea):focus { border-color:var(--accent); box-shadow:var(--ws-focus-ring); }
.al-theme :is(input[type=checkbox],input[type=radio]) { accent-color:var(--accent); }
.al-theme select.form-control,.al-theme .pl-form select { background:var(--paper); border-radius:999px; }
.al-theme input[type=search] { border-radius:999px; background:var(--paper); }
.al-theme :is(textarea,.msg-message,.erp-timeline article p,.erp-summary > p,.sa-message,.al-user-content) { font-family:var(--serif); font-size:17px; font-weight:400; line-height:1.6; unicode-bidi:plaintext; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.al-theme :is(.sa-chat textarea,.sa-sources,.sa-sources a) { font-family:var(--sans); font-size:14px; white-space:normal; }
.al-theme :is(.ws-empty-state h3,.cu-empty h3,.pl-empty h2,.pl-empty h3,.ws-finance-empty h3) { font-family:var(--serif); font-weight:400; font-size:20px; letter-spacing:normal; }
.al-theme :is(.ws-panel,.card,.cu-widget,.pl-panel,.pl-metric,.sa-panel,.sa-message,.sa-chat form) { background:var(--surface); color:var(--ink); border:0; border-radius:var(--r-card); box-shadow:var(--shadow); }
.al-theme :is(.ws-panel-heading,.cu-widget-heading,.pl-panel-heading,.reg-section-heading) { padding:18px 20px; gap:12px; }
.al-theme :is(.card-header,.card-footer,.ws-table-footer,.pl-pagination,.pl-filter-bar,.ws-directory-filters,.msg-preview-item,.sa-owner-app-note) { background:var(--surface); color:var(--ink); border-color:var(--faint); }
.al-theme :is(.table,table,.dropdown-menu,.modal-content,.ws-command,.ws-shortcuts-menu) { color:var(--ink); }
.al-theme :is(.table,table) :is(th,td) { border-color:var(--faint); font-size:13px; }
.al-theme :is(.table,table) th { background:var(--paper); color:var(--muted); text-transform:none; letter-spacing:normal; font-weight:600; font-size:12px; }
.al-theme :is(.table,table) tbody tr:hover { background:var(--paper); }
.al-theme :is(.table,table) td { background:transparent; }
.al-theme :is(.dropdown-menu,.modal-content,.ws-command,.ws-shortcuts-menu) { background:var(--surface); border:0; border-radius:22px; box-shadow:var(--al-float-shadow); }
.al-theme .dropdown-item { color:var(--ink); font-size:13px; }
.al-theme .dropdown-item:hover,.al-theme .dropdown-item:focus { background:var(--paper); color:var(--accent); }
.al-theme .dropdown-divider { border-color:var(--faint); }
.al-theme .modal-content { border-radius:28px; box-shadow:var(--al-dialog-shadow); }
.al-theme .modal-header,.al-theme .modal-footer { border-color:var(--faint); }
.al-theme .close { color:var(--ink); text-shadow:none; }
.al-theme .ws-command::backdrop { background:var(--al-overlay); backdrop-filter:blur(6px); }
.al-theme .ws-command-input { border-color:var(--faint); }
.al-theme .ws-command-input input { background:var(--surface); border:0; border-radius:0; box-shadow:none; }
.al-theme :is(.ws-key,kbd) { background:var(--paper); color:var(--muted); border-color:var(--faint); border-radius:6px; }
.al-theme :is(.ws-avatar,.pl-avatar,.pl-school-avatar,.pl-owner-mark,.sa-app-icon,.ws-soft-icon,.ws-empty-symbol,.cu-page-icon,.cu-mini-icon) { color:var(--accent); background:var(--accent-soft); border-color:var(--faint); }
.al-theme :is(.text-muted,.erp-muted,.sa-chat-status,.sa-panel p) { color:var(--muted)!important; }
.al-theme .text-danger { color:var(--bad)!important; }
.al-theme .text-success { color:var(--ok)!important; }
.al-theme .text-warning { color:var(--warn)!important; }
.al-theme :is(.alert,.pl-alert,.sa-alert,.erp-notice,.msg-note) { border-radius:18px; border-color:var(--faint); font-size:13px; }
.al-theme :is(.alert-success,.pl-alert-success) { background:var(--accent-soft); color:var(--ok); }
.al-theme :is(.alert-danger,.pl-alert-error) { background:var(--al-danger-soft); color:var(--bad); border-color:var(--al-danger-line); }
.al-theme :is(.alert-warning,.sa-alert) { background:var(--al-warning-soft); color:var(--warn); border-color:var(--al-warning-line); }
.al-theme :is(.alert-info,.msg-note,.erp-notice) { background:var(--paper); color:var(--ink); }
.al-theme :is(.sa-message--user,.sa-app-icon,.sa-suggestions button) { background:var(--accent-soft); color:var(--ink); border-color:var(--faint); }
.al-theme .sa-suggestions button { color:var(--accent); }
.al-theme :is(.reg-section-index,.reg-save-bar,.msg-account-card,.msg-template-card,.att-calendar,.pl-workspace,.pl-subscription-summary) { background:var(--surface); color:var(--ink); border-color:var(--faint); border-radius:18px; }
.al-theme :is(.ws-person-caption,.reg-field label,.pl-form label,.erp-helper,.msg-reason) { font-family:var(--sans); }

/* A framed canvas, with the existing first rail for Apps. */
.workspace.al-theme.ws-app { --ws-sidebar:276px; }
.workspace.al-theme .ws-sidebar { inset:10px auto 10px 10px; width:var(--ws-sidebar); height:calc(100dvh - 20px); max-height:calc(100dvh - 20px); background:var(--panel); border:0; border-radius:28px; box-shadow:var(--panel-ring); }
.al-theme .cu-global-rail { background:var(--panel); border-color:var(--faint); border-radius:28px 0 0 28px; padding-top:18px; }
.al-theme .cu-rail-link { border-radius:12px; }
.al-theme .cu-rail-link.is-active { background:var(--accent-soft); color:var(--accent); box-shadow:none; }
.al-theme .cu-rail-link > span { font-size:10px; }
.al-theme .ws-main { margin:10px 10px 10px calc(var(--ws-sidebar) + 20px); min-height:calc(100dvh - 20px); background:var(--panel); border-radius:28px; box-shadow:var(--panel-ring); }
.al-theme .ws-brand { padding:24px 18px; min-height:84px; }
.al-theme .ws-brand-copy strong { font-family:var(--serif); font-size:21px; font-weight:400; line-height:1.2; letter-spacing:-.03em; }
.al-theme .ws-brand-copy > span { font-size:12px; color:var(--muted); }
.al-theme .ws-navigation { padding:4px 10px 28px; scrollbar-width:thin; }
.al-theme .ws-nav-heading { font-size:12px; font-weight:500; padding:0 12px 8px; color:var(--muted); text-transform:none; }
.al-theme .ws-nav-heading::before { display:none!important; }
.al-theme :is(.ws-nav-link,.ws-nav-disclosure > summary) { position:relative; padding:9px 12px; min-height:40px; border:0; border-radius:12px; color:var(--muted); font-size:13px; line-height:1.5; font-weight:400; gap:10px; }
.al-theme :is(.ws-nav-link,.ws-nav-disclosure > summary):hover { background:var(--paper); color:var(--ink); }
.al-theme .ws-nav-link.is-active { background:var(--paper); color:var(--ink); font-weight:600; }
.al-theme .ws-nav-link.is-active::before { content:''; position:absolute; left:-10px; top:8px; bottom:8px; width:4px; border-radius:0 4px 4px 0; background:var(--accent); }
.al-theme .ws-nav-link.is-active > svg { color:var(--accent); }
.al-theme .ws-nav-children { border-color:var(--faint); margin-left:14px; }
.al-theme .ws-nav-children .ws-nav-link { font-size:12px; min-height:36px; }
.al-theme .ws-sidebar-bottom { margin:10px; padding:14px 12px; border:0; border-radius:18px; background:var(--accent-soft); }
.al-theme .ws-school-context strong { font-size:12px; color:var(--ink); }
.al-theme .ws-school-context div > span { font-size:12px; color:var(--muted); }
.al-theme .ws-topbar-shell { top:10px; border-radius:22px; background:var(--surface); box-shadow:var(--shadow); }
.al-theme .ws-topbar { min-height:64px; padding:10px 24px; border:0; background:var(--surface); border-radius:22px 22px 0 0; }
.al-theme .ws-search-trigger { background:var(--paper); border:1px solid var(--faint); border-radius:999px; padding:8px 14px; min-height:40px; }
.al-theme .ws-search-trigger kbd { background:var(--surface); }
.al-theme .ws-quickbar { border-radius:0 0 22px 22px; border-bottom:0; padding-inline:24px; }
.al-theme :is(.ws-quick-link,.ws-quick-disclosure > summary) { border-radius:999px; font-size:12px; }
.al-theme .ws-shortcuts-heading strong { color:var(--ink); }
.al-theme .ws-shortcuts-heading > span { font-size:12px; }
.al-theme .ws-profile-copy strong { font-size:13px; }
.al-theme .ws-profile-copy > span { font-size:12px; }
.al-theme .ws-content { padding:26px 28px max(64px,env(safe-area-inset-bottom)); }
.al-theme.ws-overview-page .ws-content { padding:0; }
.al-theme .ws-page-heading { margin-bottom:24px; }
.al-theme .ws-page-heading p { font-size:14px; margin-top:8px; }
.al-theme .ws-workspace-footer { padding-top:28px; font-size:12px; gap:10px; flex-wrap:wrap; }

/* School dashboard uses real school measures, with one hero. */
.al-theme .cu-home { background:transparent; min-height:0; }
.al-theme .cu-page-heading { margin:10px; padding:24px 26px; background:var(--surface); border-radius:22px; box-shadow:var(--shadow); }
.al-theme .cu-view-tabs { margin:10px; padding:5px; gap:4px; background:var(--surface); border:0; border-radius:999px; }
.al-theme .cu-view-tabs > a { padding:9px 14px; border:0; font-size:13px; border-radius:999px; }
.al-theme .cu-view-tabs > a[aria-current=page] { background:var(--accent-soft); color:var(--accent); }
.al-theme .cu-home-content { padding:16px 10px max(64px,env(safe-area-inset-bottom)); gap:20px; }
.al-theme .cu-welcome { padding:0 16px; }
.al-theme .cu-welcome h2 { font-size:24px; font-weight:600; }
.al-theme .cu-welcome p,.al-theme .cu-welcome time { font-size:13px; color:var(--muted); }
.al-theme .cu-home-toolbar { padding:0 10px; }
.al-theme .cu-student-search > div { border-radius:999px; background:var(--paper); border-color:var(--control-ring); }
.al-theme .cu-student-search input { background:transparent; border:0; border-radius:999px; }
.al-theme .cu-summary { background:transparent; border:0; border-radius:0; overflow:visible; gap:10px; }
.al-theme .cu-summary > a { min-height:150px; padding:18px 18px 16px; border:0; border-radius:22px; background:var(--surface); box-shadow:var(--shadow); }
.al-theme .cu-summary strong { margin:16px 0 10px; font-size:46px; font-weight:600; line-height:1; letter-spacing:-.03em; }
.al-theme .cu-summary small { font-size:12px; color:var(--muted); }
.al-theme .cu-summary-label { font-size:13px; color:var(--ink); }
.al-theme .cu-summary > .al-hero { background:var(--al-hero); box-shadow:var(--al-hero-shadow); color:var(--al-hero-ink); }
.al-theme .al-hero :is(.cu-summary-label,strong) { color:var(--al-hero-ink); }
.al-theme .al-hero small { color:var(--al-hero-muted); }
.al-theme .al-hero .cu-mini-icon { background:var(--al-hero-ink); color:var(--accent-deep); }
.al-theme .al-hero:focus-visible { outline-color:var(--accent-mid); }
.al-theme .cu-home-grid { gap:10px; }
.al-theme :is(.cu-widget-footer,.cu-quick-access,.cu-record-toolbar,.cu-followup-caption) { background:var(--paper); border-color:var(--faint); }
.al-theme .cu-widget-footer { margin:10px; border-radius:999px; padding:12px 14px; font-size:12px; }
.al-theme .cu-view-switch { background:var(--paper); border-radius:999px; padding:3px; }
.al-theme .cu-view-switch button { border-radius:999px; color:var(--muted); }
.al-theme .cu-view-switch button[aria-pressed=true] { background:var(--accent); color:var(--on-accent); box-shadow:none; }
.al-theme .cu-quick-access { border-radius:22px; padding:18px 20px; }
.al-theme .cu-quick-access a { border-radius:999px; background:var(--surface); color:var(--accent); }
.al-theme .cu-class-track { background:var(--paper); border-radius:999px; }
.al-theme .cu-class-track > i { background:var(--accent-mid); border-radius:999px; }
.al-theme .cu-record-status { background:var(--accent-soft); color:var(--ok); border-radius:999px; }
.al-theme .ws-progress { background:var(--faint); border-radius:999px; }
.al-theme .ws-progress > span { background:var(--accent); }

/* Owner and sign-in use the same foundation. */
.al-theme .pl-sidebar { inset:10px auto 10px 10px; width:230px; padding:24px 14px; background:var(--panel); border:0; border-radius:28px; box-shadow:var(--panel-ring); }
.al-theme .pl-workspace-main { margin:10px 10px 10px 250px; border-radius:28px; background:var(--panel); min-height:calc(100dvh - 20px); }
.al-theme .pl-brand { font-family:var(--serif); font-size:20px; font-weight:400; }
.al-theme .pl-brand small { font-family:var(--sans); font-size:12px; }
.al-theme .pl-sidebar nav a { position:relative; border-radius:12px; font-size:14px; padding:10px 12px; }
.al-theme .pl-sidebar nav a svg { color:var(--muted); }
.al-theme .pl-sidebar nav a[aria-current] { background:var(--paper); color:var(--ink); }
.al-theme .pl-sidebar nav a[aria-current]::before { content:''; position:absolute; left:-14px; top:8px; bottom:8px; width:4px; border-radius:0 4px 4px 0; background:var(--accent); }
.al-theme .pl-sidebar nav a[aria-current] svg { color:var(--accent); }
.al-theme .pl-topbar { border:0; border-radius:22px; background:var(--surface); min-height:64px; }
.al-theme .pl-main { padding:26px 28px max(64px,env(safe-area-inset-bottom)); }
.al-theme .pl-metrics { gap:10px; }
.al-theme .pl-metric { padding:18px 20px; min-height:150px; }
.al-theme .pl-metric > strong { font-size:40px; font-weight:600; letter-spacing:-.03em; }
.al-theme :is(.pl-workspace,.pl-search,.pl-filter-tabs,.pl-workspace-summary,.pl-total) { background:var(--paper); color:var(--ink); border-color:var(--faint); border-radius:18px; }
.al-theme .pl-search { border-radius:999px; }
.al-theme .pl-search input { background:transparent; border:0; }
.al-theme :is(.pl-account-link,.pl-event,.pl-price-option,.pl-school-tabs) { border-color:var(--faint); }
.al-theme .pl-breadcrumb > span,.al-theme .pl-sidebar nav a svg { color:var(--muted); }
.al-theme.pl-login { background:var(--canvas); }
.al-theme .pl-login-wrap { max-width:520px; }
.al-theme .pl-login-card { background:var(--surface); border:0; border-radius:28px; box-shadow:var(--shadow); padding:32px 36px 40px; }
.al-theme .pl-login-card h1 { font-size:32px; }
.al-theme .pl-login-shield { background:var(--accent-soft); color:var(--accent); }
.al-theme.ws-auth { background:var(--canvas); min-height:100dvh; }
.al-theme .ws-auth-brand { font-family:var(--serif); font-size:22px; font-weight:400; }
.al-theme .ws-auth-brand strong { font-weight:400; }
.al-theme .ws-auth-main { padding:30px 20px; }
.al-theme .ws-login-layout { display:block; width:min(100%,520px); padding:32px 36px 40px; border-radius:28px; background:var(--surface); box-shadow:var(--shadow); }
.al-theme .ws-login-form-area { max-width:none; }
.al-theme .ws-login-intro h1 { font-size:40px; font-weight:600; letter-spacing:-.025em; }
.al-theme .ws-login-intro h1 > span { color:inherit; }
.al-theme .ws-login-intro p { font-size:16px; }
.al-theme .ws-login-symbol { background:var(--accent-soft); color:var(--accent); border:0; border-radius:18px; }
.al-theme .ws-login-form label { font-size:13px; }
.al-theme .ws-login-form .form-control { font-size:15px; min-height:44px; }
.al-theme .ws-login-options,.al-theme .ws-login-note,.al-theme .ws-login-contact { font-size:12px; }
.al-theme .ws-login-submit { min-height:46px; font-size:14px; }
.al-theme .ws-login-contact { margin-top:26px; }
.al-theme .ws-auth-header,.al-theme .ws-auth-footer { padding:24px 32px; font-size:12px; }

/* Shared appearance control. The preference is intentionally local to the signed-in browser. */
.al-theme .theme-switcher { position:relative; z-index:20; color:var(--ink); }
.al-theme .theme-switcher > summary { list-style:none; }
.al-theme .theme-switcher > summary::-webkit-details-marker { display:none; }
.al-theme .theme-switcher-trigger { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:7px 10px; border:1px solid var(--faint); border-radius:999px; background:var(--surface); color:var(--muted); cursor:pointer; font:inherit; font-size:12px; white-space:nowrap; transition:background var(--ws-motion),border-color var(--ws-motion),color var(--ws-motion); }
.al-theme .theme-switcher-trigger:hover { border-color:var(--control-ring); color:var(--ink); background:var(--paper); }
.al-theme .theme-switcher-trigger:focus-visible,.al-theme .theme-switcher-menu button:focus-visible { outline:0; box-shadow:var(--ws-focus-ring); }
.al-theme .theme-switcher-trigger > .ws-icon:last-child { opacity:.65; }
.al-theme .theme-switcher-icon { display:inline-flex; color:var(--accent); }
.al-theme .theme-switcher-menu { position:absolute; right:0; top:calc(100% + 8px); width:166px; padding:6px; border:1px solid var(--faint); border-radius:14px; background:var(--surface); box-shadow:var(--al-dialog-shadow); }
.al-theme .theme-switcher-menu button { width:100%; display:flex; align-items:center; gap:9px; padding:9px 10px; border:0; border-radius:9px; color:var(--muted); background:transparent; cursor:pointer; font:inherit; font-size:12px; text-align:left; }
.al-theme .theme-switcher-menu button:hover { background:var(--paper); color:var(--ink); }
.al-theme .theme-switcher-menu button[aria-checked="true"] { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.al-theme .theme-switcher-menu button > .ws-icon:last-child { margin-left:auto; opacity:0; }
.al-theme .theme-switcher-menu button[aria-checked="true"] > .ws-icon:last-child { opacity:1; }
.al-theme .ws-auth-header-actions,.al-theme .pl-topbar-actions { display:flex; align-items:center; gap:14px; margin-left:auto; }
.al-theme .pl-topbar-actions { gap:12px; }
.al-theme .pl-login-toolbar { display:flex; justify-content:flex-end; min-height:36px; margin-bottom:12px; }

@media (min-width:768px) {
    .al-theme.cu-sidebar-collapsed .ws-sidebar { width:64px; }
    .al-theme.cu-sidebar-collapsed .ws-main { margin-left:84px; }
}
@media (max-width:1100px) {
    .al-theme .cu-summary,.al-theme .pl-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .al-theme .cu-summary strong { font-size:38px; }
}
@media (max-width:767px) {
    .workspace.al-theme .ws-sidebar { width:276px; transform:translateX(calc(-100% - 20px)); z-index:1100; }
    .workspace.al-theme.ws-sidebar-open .ws-sidebar { transform:translateX(0); }
    .al-theme .ws-main { margin:10px; }
    .al-theme .ws-topbar { padding:10px 12px; }
    .al-theme .ws-search-trigger { width:40px; min-width:40px; padding:8px; }
    .al-theme .ws-quickbar { padding-inline:12px; }
    .al-theme .ws-content { padding:20px 18px max(64px,env(safe-area-inset-bottom)); }
    .al-theme .cu-home-content { padding:12px 10px max(64px,env(safe-area-inset-bottom)); }
    .al-theme .cu-page-heading { padding:20px 18px; flex-wrap:wrap; }
    .al-theme .cu-page-heading > div { flex-wrap:wrap; }
    .al-theme .cu-welcome { padding:0 8px; flex-wrap:wrap; gap:10px; }
    .al-theme .cu-home-toolbar { padding:0; }
    .al-theme .cu-home-grid { grid-template-columns:1fr; }
    .al-theme :is(.ws-page-heading h1,.cu-page-heading h1,.pl-page-heading h1) { font-size:28px; }
    .al-theme .cu-widget-heading { flex-wrap:wrap; }
    .al-theme .ws-breadcrumb strong { max-width:105px; }
}
@media (max-width:760px) {
    .al-theme .cu-summary,.al-theme .pl-metrics { grid-template-columns:1fr; }
    .al-theme .cu-summary strong { font-size:46px; }
}
@media (max-width:700px) {
    .al-theme .pl-sidebar { position:relative; inset:auto; width:auto; margin:10px; padding:18px; max-height:none; }
    .al-theme .pl-sidebar nav { display:flex; flex-wrap:wrap; gap:5px; }
    .al-theme .pl-sidebar nav a { padding:9px 12px; }
    .al-theme .pl-sidebar nav a[aria-current]::before { display:none; }
    .al-theme .pl-workspace-main { margin:10px; }
    .al-theme .pl-main { padding:20px 18px max(64px,env(safe-area-inset-bottom)); }
    .al-theme .pl-topbar { padding:14px 18px; height:auto; flex-wrap:wrap; }
    .al-theme .pl-topbar-actions { margin-left:auto; }
    .al-theme .pl-login-card,.al-theme .ws-login-layout { padding:28px 22px; }
    .al-theme .ws-auth-header,.al-theme .ws-auth-footer { padding:20px; }
    .al-theme .ws-auth-header-actions > span { display:none; }
    .al-theme .theme-switcher-label { display:none; }
    .al-theme .theme-switcher-trigger { padding:8px; }
    .al-theme .ws-login-intro h1 { font-size:32px; }
    .al-theme .ws-auth-main { padding:12px; }
    .al-theme .reg-save-bar > div:last-child { flex-wrap:wrap; min-width:0; }
    .al-theme .reg-save-bar button { white-space:normal; min-width:0; }
}
@media (prefers-reduced-motion:reduce) {
    .al-theme *, .al-theme *::before, .al-theme *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media print {
    .al-theme .ws-sidebar,.al-theme .ws-topbar-shell,.al-theme .pl-sidebar,.al-theme .pl-topbar { display:none!important; }
    .al-theme .ws-main,.al-theme .pl-workspace-main { margin:0; border-radius:0; box-shadow:none; background:var(--surface); }
    .al-theme .ws-content,.al-theme .pl-main { padding:0; }
    .al-theme :is(.ws-panel,.pl-panel,.card) { box-shadow:none; }
}

/* scoofiy brand mark: the SVG carries its own tile, so its holders stay transparent. */
.brand-mark { display:block; flex-shrink:0; }
.al-theme :is(.cu-rail-brand,.ws-auth-brand > .ws-brand-symbol,.ws-login-symbol--brand,.pl-brand-icon--mark) { background:transparent!important; box-shadow:none!important; border:0!important; width:auto; height:auto; padding:0; }
.al-theme .cu-rail-brand:hover .brand-mark { filter:brightness(1.08); }
:root[data-theme="dark"] .brand-mark { filter:drop-shadow(0 0 .6px rgba(251,248,241,.5)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark { filter:drop-shadow(0 0 .6px rgba(251,248,241,.5)); } }
