/* Application shell and shared components. Colours, type and spacing come from tokens.css. */
*,*::before,*::after{box-sizing:border-box}
html{min-width:320px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-sans);font-size:var(--fs-md);line-height:var(--lh);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{margin:0;font-family:var(--font-display);font-weight:750;letter-spacing:-.02em;line-height:var(--lh-tight);color:var(--ink);text-wrap:balance}
p{margin:0}
a{color:var(--accent-ink)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button,input,select,summary{touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.55}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
code{font-family:var(--font-mono);font-size:.92em;padding:2px 6px;border-radius:var(--r-xs);background:var(--surface-3);color:var(--ink-2)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tabular{font-variant-numeric:tabular-nums}
.muted{color:var(--muted);font-size:var(--fs-sm)}
.eyebrow{display:inline-block;color:var(--accent-ink);font-size:var(--fs-2xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase}

/* ---------- Shell: icon rail + top bar; maps take the remaining viewport ---------- */
:root{--app-sidebar-width:64px;--app-header-height:56px}
html[data-sidebar-expanded=true]{--app-sidebar-width:228px}
.shell{display:block;min-height:100dvh}
.shell-auth{display:grid;grid-template-areas:none;grid-template-rows:auto;grid-template-columns:var(--app-sidebar-width) minmax(0,1fr);transition:grid-template-columns var(--dur) var(--ease-out)}
.app-workspace{display:flex;flex-direction:column;min-width:0;min-height:100dvh}
.app-sidebar{grid-area:auto;position:sticky;top:0;z-index:var(--z-shell);display:flex;flex-direction:column;width:var(--app-sidebar-width);min-width:var(--app-sidebar-width);max-width:var(--app-sidebar-width);height:100dvh;max-height:100dvh;margin:0!important;overflow:hidden;background:var(--shell-bg);color:var(--shell-ink);border-right:1px solid var(--shell-line);transition:width var(--dur) var(--ease-out)}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;height:var(--app-header-height);min-height:var(--app-header-height);padding:0 14px;border-bottom:1px solid var(--shell-line)}
.brand{display:inline-flex;align-items:center;gap:10px;min-width:0;color:#fff;text-decoration:none}
.brand-mark{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#1d9e8f,#0f6d64);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .18);color:#eafffb;font-size:20px;line-height:1}
.brand-name strong,.brand-name small{display:block;line-height:1.05;white-space:nowrap}
.brand-name strong{font-family:var(--font-display);font-size:16px;font-weight:800;letter-spacing:.04em}
.brand-name small{margin-top:3px;color:var(--shell-muted);font-size:9px;font-weight:700;letter-spacing:.2em}
.sidebar-wrapper{flex:1;min-height:0;overflow:hidden auto;padding-top:var(--space-3)}
.sidebar-section-label{padding:6px 20px 8px;color:var(--shell-muted);font-size:10px;font-weight:700;letter-spacing:.14em;white-space:nowrap}
.workspace-nav{display:flex;flex-direction:column;gap:4px;padding:0 10px}
.sidebar-menu{display:flex;flex-direction:column;gap:4px;width:100%;margin:0;padding:0;list-style:none}
.app-nav-link{position:relative;display:flex;align-items:center;gap:12px;min-height:var(--touch);padding:0 12px!important;border-radius:var(--r-md);color:var(--shell-ink)!important;font-size:var(--fs-sm);font-weight:600;text-decoration:none;transition:background var(--dur-fast),color var(--dur-fast)}
.app-nav-link:hover{background:rgb(255 255 255 / .06);color:#fff!important}
.app-nav-link[aria-current=page]{background:rgb(115 217 200 / .14);color:#fff!important}
.app-nav-link[aria-current=page]::before{content:'';position:absolute;left:-10px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--shell-accent)}
.nav-icon{display:grid;place-items:center;flex:none;width:20px;height:20px;color:var(--shell-accent)}
.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-label{white-space:nowrap}
.sidebar-bottom{display:flex;align-items:center;gap:10px;min-height:52px;margin-top:auto;padding:0 20px;border-top:1px solid var(--shell-line);color:var(--shell-muted);font-size:10px;font-weight:700;letter-spacing:.1em;white-space:nowrap}
.sidebar-bottom-mark{color:var(--shell-accent);font-size:16px}
.sidebar-close,.sidebar-backdrop{display:none}
html:not([data-sidebar-expanded=true]) .shell-auth :is(.brand-name,.sidebar-section-label,.nav-label,.sidebar-bottom-text){display:none}
html:not([data-sidebar-expanded=true]) .shell-auth .sidebar-brand-row{justify-content:center;padding:0}
html:not([data-sidebar-expanded=true]) .shell-auth .workspace-nav{padding:0 8px}
html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link{justify-content:center;width:48px;padding:0!important}
html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link[aria-current=page]::before{left:-8px}
html:not([data-sidebar-expanded=true]) .shell-auth .sidebar-bottom{justify-content:center;padding:0}

/* Compact rail (prototype «Геосервис»): bare brand mark, 44px icon buttons, no section chrome. */
@media (min-width:801px){
  html:not([data-sidebar-expanded=true]) .shell-auth .sidebar-brand-row{border-bottom:0}
  html:not([data-sidebar-expanded=true]) .shell-auth .brand-mark{width:40px;height:40px;border-radius:0;background:none;box-shadow:none;color:var(--shell-accent);font-size:22px}
  html:not([data-sidebar-expanded=true]) .shell-auth .workspace-nav{align-items:center}
  html:not([data-sidebar-expanded=true]) .shell-auth .sidebar-menu{align-items:center;gap:6px}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link{width:44px;min-height:44px;border-radius:11px;color:var(--shell-muted)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link .nav-icon{width:22px;height:22px;color:inherit}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link .nav-icon svg{width:22px;height:22px}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link:hover{color:var(--shell-ink)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link[aria-current=page]{color:var(--shell-accent)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-nav-link[aria-current=page]::before{display:none}
}
.rail-account{display:none}
.rail-button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--shell-muted)}
.rail-button:hover{background:rgb(255 255 255 / .06);color:var(--shell-ink)}
.rail-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rail-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--shell-line);color:var(--shell-ink);font-size:12px;font-weight:600;letter-spacing:.02em;cursor:default;user-select:none}
.rail-account form{margin:0}

.topbar{position:relative;z-index:var(--z-panel);display:flex;align-items:center;gap:var(--space-3);height:var(--app-header-height);min-height:var(--app-header-height);flex:none;padding:0 var(--space-5);background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line)}
.topbar-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-display);font-size:var(--fs-lg);font-weight:750;letter-spacing:-.01em}
.topbar-spacer{flex:1}
.topbar-user{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:var(--fs-sm)}
.topbar form{margin:0}
.icon-button,.sidebar-compact-toggle,.nav-toggle{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--ink-2);transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast)}
.icon-button:hover,.sidebar-compact-toggle:hover,.nav-toggle:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}
.icon-button svg,.sidebar-compact-toggle svg,.nav-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-toggle{display:none}
.theme-toggle [data-theme-icon]{display:none}
.theme-toggle[data-mode=system] [data-theme-icon=system],.theme-toggle[data-mode=light] [data-theme-icon=light],.theme-toggle[data-mode=dark] [data-theme-icon=dark]{display:block}
.text-button{min-height:36px;padding:6px 10px;border:0;border-radius:var(--r-md);background:none;color:var(--ink-2);font-size:var(--fs-sm);font-weight:600;white-space:nowrap}
.text-button:hover{background:var(--surface-3);color:var(--ink)}
.shell:not(.shell-auth) .topbar{background:var(--shell-bg);border-bottom-color:var(--shell-line)}

/* Pages use the whole workspace (no 1180px column: the grey side fields wasted the screen). */
.app-workspace>#main-content{flex:1;width:calc(100% - 32px);margin:0 auto;padding:var(--space-5) 0 56px}
.app-footer{display:flex;justify-content:space-between;gap:var(--space-4);padding:var(--space-4) var(--space-6);border-top:1px solid var(--line);color:var(--subtle);font-size:var(--fs-xs)}
.shell-map .app-workspace>#main-content,.shell-admin .app-workspace>#main-content{position:relative;flex:none;width:100%;height:calc(100dvh - var(--app-header-height));min-height:0;margin:0;padding:0;overflow:hidden}
.shell-map .app-footer,.shell-admin .app-footer{display:none}
.admin-shell-page,.admin-shell-page iframe{display:block;width:100%;height:100%;min-height:0}
.admin-shell-page iframe{border:0;background:var(--bg)}
.api-shell-page{display:flex;flex-direction:column;min-height:calc(100dvh - 150px)}
.api-shell-page iframe{display:block;flex:1;width:100%;min-height:70dvh;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff}

/* Map pages on wide screens: the map owns the whole viewport beside the rail; the top
   bar's controls move to the bottom of the rail. The rail is as wide as the user chose
   (one setting for every page, 25 Oct: «почему боковая шляпа иногда раскрытая иногда нет»). */
@media (min-width:801px){
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map{--app-sidebar-width:64px;grid-template-columns:64px minmax(0,1fr)}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map :is(.brand-name,.sidebar-section-label,.nav-label,.sidebar-bottom-text){display:none}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .sidebar-brand-row{justify-content:center;padding:0;border-bottom:0;height:68px;min-height:68px}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .brand-mark{width:40px;height:40px;border-radius:0;background:none;box-shadow:none;color:var(--shell-accent);font-size:22px}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .sidebar-wrapper{padding-top:0}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .workspace-nav{align-items:center;padding:0 8px}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .sidebar-menu{align-items:center;gap:6px}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .app-nav-link{justify-content:center;width:44px;min-height:44px;padding:0!important;border-radius:11px;color:var(--shell-muted)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .app-nav-link .nav-icon{width:22px;height:22px;color:inherit}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .app-nav-link .nav-icon svg{width:22px;height:22px}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .app-nav-link:hover{color:var(--shell-ink)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .app-nav-link[aria-current=page]{color:var(--shell-accent)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .app-nav-link[aria-current=page]::before{display:none}
  html:not([data-sidebar-expanded=true]) .shell-auth.shell-map .sidebar-bottom{display:none}
  .shell-auth.shell-map .rail-account{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:auto;padding:8px 0 12px}
  html[data-sidebar-expanded=true] .shell-auth.shell-map .rail-account{flex-direction:row;justify-content:center}
  html[data-sidebar-expanded=true] .shell-auth.shell-map .sidebar-bottom{display:none}
  .shell-auth.shell-map .topbar{display:none}
  .shell-auth.shell-map .app-workspace>#main-content{height:100dvh}
}

/* ---------- Buttons ---------- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--control-h);padding:8px 16px;border:1px solid transparent;border-radius:var(--r-md);background:var(--surface);color:var(--ink);font-size:var(--fs-sm);font-weight:650;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap;transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast),transform var(--dur-fast)}
.button:active:not(:disabled){transform:translateY(1px)}
.button-primary{background:var(--accent);color:var(--on-accent)}
.button-primary:hover{background:var(--accent-hover)}
.button-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.button-secondary:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}
.button-danger{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger)}
.button-danger:hover{border-color:var(--danger)}
.button-wide{width:100%}
.button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Forms ---------- */
input,select,textarea{min-width:0;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);padding:9px 12px;outline:none;transition:border-color var(--dur-fast),box-shadow var(--dur-fast)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
input[aria-invalid=true]{border-color:var(--danger)}
label{color:var(--ink-2);font-size:var(--fs-sm);font-weight:600}
.form-row{display:flex;gap:var(--space-2)}
.form-row input{width:min(360px,100%)}
.form-error{margin-bottom:var(--space-4);padding:10px 12px;border:1px solid var(--danger-line);border-radius:var(--r-md);background:var(--danger-soft);color:var(--danger);font-size:var(--fs-sm)}
.form-help{margin:var(--space-3) 0 0;color:var(--muted);font-size:var(--fs-sm)}

/* ---------- Surfaces ---------- */
.section-block,.section-shortcut,.login-card,.secret-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-1)}
.section-block{margin-bottom:var(--space-6);padding:var(--space-6)}
.section-shortcut{display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);margin-bottom:var(--space-6);padding:var(--space-5) var(--space-6)}
.section-shortcut h2{font-size:var(--fs-lg)}
.section-shortcut p{margin-top:4px;color:var(--muted);font-size:var(--fs-sm)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-4)}
.section-heading h2{font-size:var(--fs-xl)}
.section-intro{margin:-4px 0 var(--space-4);color:var(--muted);font-size:var(--fs-sm)}
.count-pill{padding:3px 10px;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent-ink);font-size:var(--fs-xs);font-weight:700;font-variant-numeric:tabular-nums}
.empty-state{padding:var(--space-6);border:1px dashed var(--line-strong);border-radius:var(--r-md);background:var(--surface-2);color:var(--muted);font-size:var(--fs-sm)}
.empty-state strong{display:block;color:var(--ink)}
.subtle-link{color:var(--accent-ink);font-size:var(--fs-sm);font-weight:650;text-decoration:none}
.subtle-link:hover{text-decoration:underline}
.status{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-xs);font-weight:700}
.status::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.status-live{color:var(--ok)}.status-muted{color:var(--subtle)}
.notice{display:flex;gap:var(--space-3);margin:var(--space-5) 0;padding:var(--space-4);border:1px solid var(--warn-line);border-radius:var(--r-md);background:var(--warn-soft);color:var(--warn)}
.notice strong{font-size:var(--fs-sm)}.notice p{margin-top:2px;font-size:var(--fs-sm)}
.table-wrap{width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
th{padding:10px 12px;border-bottom:1px solid var(--line);color:var(--muted);font-size:var(--fs-xs);font-weight:650;text-align:left}
td{padding:12px;border-bottom:1px solid var(--line);color:var(--ink-2)}
tr:last-child td{border-bottom:0}
.key-form{margin-top:var(--space-6);padding-top:var(--space-5);border-top:1px solid var(--line)}
.key-form label{display:block;margin-bottom:var(--space-2)}

/* ---------- Sign-in ---------- */
.login-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);align-items:center;gap:64px;width:100%;max-width:1040px;min-height:calc(100dvh - 220px);margin:var(--space-8) auto}
.login-intro h1{margin:14px 0;font-size:clamp(34px,4vw,52px);line-height:1.1;letter-spacing:-.035em}
.login-intro h1 em{font-style:normal;color:var(--accent)}
.login-intro p{max-width:420px;color:var(--muted);font-size:var(--fs-lg)}
.login-card{padding:36px}
.login-card h1{margin:8px 0 6px;font-size:var(--fs-2xl)}
.login-card>p{margin-bottom:var(--space-6);color:var(--muted);font-size:var(--fs-md)}
.login-card label{display:block;margin-bottom:6px}
.login-card form input:not([type=hidden]){display:block;width:100%;min-height:46px;margin-bottom:var(--space-4);font-size:var(--fs-lg)}
.login-card .button-wide{min-height:46px;margin-top:var(--space-2);font-size:var(--fs-md)}
.login-return{margin-bottom:var(--space-4);color:var(--muted);font-size:var(--fs-sm)}
.secret-card{max-width:720px;margin:var(--space-8) auto;padding:36px}
.secret-card h1{margin:var(--space-2) 0;font-size:var(--fs-2xl)}
.secret-card>p{color:var(--muted)}

/* ---------- Menu group («Автопарки»): a toggle and its sub-pages ----------
   Expanded rail and mobile drawer: indented labels under a guide line. Compact rail:
   the sub-pages stay icons (with titles) in a tinted pill under the group icon. */
.nav-group-toggle{width:100%;border:0;background:transparent;text-align:left}
.nav-chevron{display:grid;place-items:center;margin-left:auto;color:var(--shell-muted);transition:transform var(--dur-fast)}
.nav-chevron svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-group-toggle[aria-expanded=true] .nav-chevron{transform:rotate(180deg)}
.nav-group.is-current>.nav-group-toggle[aria-expanded=false]{background:rgb(115 217 200 / .14);color:#fff!important}
.nav-sub{display:flex;flex-direction:column;gap:2px;margin:2px 0 4px 21px;padding:0 0 0 9px;border-left:1px solid var(--shell-line);list-style:none}
.nav-sub .nav-sub-link{min-height:38px;font-weight:500}
.nav-sub .nav-sub-link .nav-icon,.nav-sub .nav-sub-link .nav-icon svg{width:17px;height:17px}
.nav-sub .nav-sub-link[aria-current=page]::before{top:8px;bottom:8px}
html:not([data-sidebar-expanded=true]) .shell-auth .nav-chevron{display:none}
@media (min-width:801px){
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-group-toggle::after{content:'';position:absolute;right:5px;bottom:7px;border:3px solid transparent;border-top-color:currentColor;opacity:.7}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-group-toggle[aria-expanded=true]::after{bottom:10px;border-top-color:transparent;border-bottom-color:currentColor}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-group.is-current>.nav-group-toggle[aria-expanded=false]{color:var(--shell-accent)!important}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-sub{align-items:center;gap:4px;margin:4px 0 2px;padding:4px 0;border-left:0;border-radius:12px;background:rgb(255 255 255 / .05)}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-sub .app-nav-link.nav-sub-link{width:38px;min-height:36px;border-radius:9px}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-sub .app-nav-link.nav-sub-link .nav-icon,
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-sub .app-nav-link.nav-sub-link .nav-icon svg{width:18px;height:18px}
  html:not([data-sidebar-expanded=true]) .shell-auth .app-sidebar .nav-sub .app-nav-link.nav-sub-link[aria-current=page]{background:rgb(115 217 200 / .16)}
}
@media (max-width:800px){
  .shell-auth .app-sidebar .nav-chevron{display:grid!important}
  .shell-auth .app-sidebar .nav-group-toggle{width:100%!important}
}

/* ---------- Mobile shell ---------- */
@media (max-width:800px){
  .shell-auth,html[data-sidebar-expanded=true] .shell-auth{display:block;--app-sidebar-width:248px}
  .app-sidebar{position:fixed;inset:0 auto 0 0;width:min(280px,calc(100vw - 48px));min-width:0;max-width:min(280px,calc(100vw - 48px));height:100dvh;transform:translateX(-105%);transition:transform var(--dur) var(--ease-out);box-shadow:var(--shadow-3)}
  .shell-auth.is-sidebar-open .app-sidebar{transform:none}
  .shell-auth .app-sidebar :is(.brand-name,.sidebar-section-label,.nav-label,.sidebar-bottom-text){display:block!important}
  .shell-auth .app-sidebar .sidebar-brand-row{justify-content:space-between!important;padding:0 14px!important}
  .shell-auth .app-sidebar .workspace-nav{padding:0 10px!important}
  .shell-auth .app-sidebar .app-nav-link{justify-content:flex-start!important;width:auto!important;padding:0 12px!important}
  .shell-auth .app-sidebar .sidebar-bottom{justify-content:flex-start!important;padding:0 20px!important}
  .sidebar-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--r-md);background:rgb(255 255 255 / .08);color:#fff;font-size:24px}
  .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:calc(var(--z-shell) - 1);background:rgb(6 14 22 / .6)}
  .sidebar-compact-toggle{display:none}
  .nav-toggle{display:inline-grid}
  .topbar{padding:0 var(--space-3);gap:var(--space-2)}
  .topbar-user{display:none}
  .app-workspace>#main-content{width:calc(100% - 28px);padding:var(--space-5) 0 36px}
  .login-wrap{grid-template-columns:1fr;gap:var(--space-4);max-width:500px;min-height:0;margin:var(--space-3) auto}
  .login-intro h1{font-size:32px}
  .login-card,.secret-card{padding:24px 20px}
  .section-block{padding:var(--space-5) var(--space-4)}
  .section-shortcut{flex-direction:column;align-items:flex-start}
  .form-row{flex-direction:column}.form-row input{width:100%}
  input,select,textarea{font-size:16px}
  .button{min-height:var(--touch)}
}
@media (max-width:500px){.topbar-title{font-size:var(--fs-md)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
