﻿/* Shared layout tokens: keep company colours out of this block. */
:root { --topbar: 64px; --sidebar: 240px; --rail: 72px; --gutter: 24px; --card-padding: 20px; --radius: 6px; --modal-radius: 10px; --pill: 999px; --control: 36px; --dropdown: 320px; --drawer: 300px; --font-size: 14px; --line-height: 1.5; --fast: 150ms; --normal: 200ms; --slow: 250ms; --ease: ease-out; }
/* light palette */
:root, [data-theme="light"] { color-scheme: light; --canvas: #F4F7F5; --surface: #FFFFFF; --text: #152D29; --muted: #50655E; --border: #75877F; --accent: #0E5A54; --accent-bright: #15A393; --accent-text: #FFFFFF; --brass: #B9822E; --sidebar-bg: #0B1F1E; --sidebar-active: #17443E; --sidebar-text: #C2D4CE; --sidebar-current: #FFFFFF; --focus: #0E5A54; --sidebar-focus: #5DE2CF; --danger: #A01F39; --danger-bg: #FFF0F2; --danger-text: #741427; --info-bg: #E8F3F0; --info-text: #0E5A54; --warning-bg: #FFF3D8; --warning-text: #67420B; --warning-border: #92601B; --success-bg: #E8F5EA; --success-text: #215632; --overlay: #000000; }
/* end light palette */
/* dark palette */
[data-theme="dark"] { color-scheme: dark; --canvas: #06110F; --surface: #10251F; --text: #ECF5F0; --muted: #B3C6BD; --border: #718C82; --accent: #2BC0AE; --accent-bright: #15A393; --accent-text: #06110F; --brass: #B9822E; --sidebar-bg: #0B1F1E; --sidebar-active: #17443E; --sidebar-text: #C2D4CE; --sidebar-current: #FFFFFF; --focus: #5DE2CF; --sidebar-focus: #5DE2CF; --danger: #FFBBC7; --danger-bg: #35151D; --danger-text: #FFBBC7; --info-bg: #123A32; --info-text: #B6F5E5; --warning-bg: #36290E; --warning-text: #FFE0A0; --warning-border: #DDB468; --success-bg: #183521; --success-text: #BEEDC8; --overlay: #000000; }
/* end dark palette */
@media (prefers-color-scheme: dark) {
 [data-theme="system"] { color-scheme: dark; --canvas: #06110F; --surface: #10251F; --text: #ECF5F0; --muted: #B3C6BD; --border: #718C82; --accent: #2BC0AE; --accent-bright: #15A393; --accent-text: #06110F; --brass: #B9822E; --sidebar-bg: #0B1F1E; --sidebar-active: #17443E; --sidebar-text: #C2D4CE; --sidebar-current: #FFFFFF; --focus: #5DE2CF; --sidebar-focus: #5DE2CF; --danger: #FFBBC7; --danger-bg: #35151D; --danger-text: #FFBBC7; --info-bg: #123A32; --info-text: #B6F5E5; --warning-bg: #36290E; --warning-text: #FFE0A0; --warning-border: #DDB468; --success-bg: #183521; --success-text: #BEEDC8; --overlay: #000000; }
}
/* Machine-readable inventory: every semantic foreground/surface or boundary pair.
contrast-pair: text/canvas 4.5
contrast-pair: text/surface 4.5
contrast-pair: muted/canvas 4.5
contrast-pair: muted/surface 4.5
contrast-pair: accent/surface 4.5
contrast-pair: accent/canvas 4.5
contrast-pair: accent-text/accent 4.5
contrast-pair: border/surface 3
contrast-pair: border/canvas 3
contrast-pair: focus/surface 3
contrast-pair: focus/canvas 3
contrast-pair: sidebar-focus/sidebar-bg 3
contrast-pair: sidebar-focus/sidebar-active 3
contrast-pair: sidebar-text/sidebar-bg 4.5
contrast-pair: sidebar-text/sidebar-active 4.5
contrast-pair: sidebar-current/sidebar-active 4.5
contrast-pair: sidebar-current/sidebar-bg 4.5
contrast-pair: danger-text/danger-bg 4.5
contrast-pair: danger/surface 4.5
contrast-pair: danger-text/surface 4.5
contrast-pair: danger-text/canvas 4.5
contrast-pair: info-text/info-bg 4.5
contrast-pair: text/info-bg 4.5
contrast-pair: warning-text/warning-bg 4.5
contrast-pair: warning-border/warning-bg 3
contrast-pair: success-text/success-bg 4.5
*/
* { box-sizing: border-box; }
body { margin: 0; font: var(--font-size)/var(--line-height) system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--canvas); }
[data-motion="on"], [data-motion="system"] { --fast: 150ms; --normal: 200ms; --slow: 250ms; }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
[data-motion="off"] { --fast: 0s; --normal: 0s; --slow: 0s; }
@media (prefers-reduced-motion: reduce) {
 [data-motion="system"] *, [data-motion="system"] *::before, [data-motion="system"] *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
 [data-motion="system"] { --fast: 0s; --normal: 0s; --slow: 0s; }
}
body, .card, .topbar, button, input, dialog { transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease), border-color var(--slow) var(--ease); }
a { color: var(--accent); text-underline-offset: 3px; }
h1 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 14px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
button, input, select, textarea, .btn { font: inherit; min-height: var(--control); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px; background: var(--surface); color: var(--text); }
button, .btn, summary { cursor: pointer; }
button, .btn { transition: transform var(--fast) var(--ease), background-color var(--slow) var(--ease); }
button:hover, .btn:hover { background: var(--info-bg); color: var(--info-text); }
button:active, .btn:active { transform: translateY(1px); }
.primary, .accent { background: var(--accent); color: var(--accent-text); }
.primary:hover { background: var(--accent); color: var(--accent-text); }
.danger { color: var(--danger-text); background: var(--danger-bg); border-color: var(--danger); }
button.danger, .btn.danger { background: var(--danger-text); color: var(--danger-bg); }
button.danger:hover, .btn.danger:hover { background: var(--danger-text); color: var(--danger-bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 12px; background: var(--surface); color: var(--text); }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.js-only { display: none; }
[data-js] .js-only { display: inline-flex; }
[hidden] { display: none !important; }
.topbar { position: fixed; height: var(--topbar); inset: 0 0 auto; display: flex; align-items: center; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 30; gap: 12px; padding-right: 16px; }
.brand { width: var(--sidebar); height: var(--topbar); background: var(--sidebar-bg); color: var(--sidebar-current); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 20px; font-weight: 600; flex-shrink: 0; transition: width var(--normal) var(--ease); }
.brand-mark { display: none; }
.topbar form { margin: 0; }
.topbar button, .icon-button, .topbar summary { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.topbar button, .topbar summary, .icon-button { background: transparent; border: 0; border-radius: var(--radius); color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--accent); color: var(--accent-text); border-radius: 50%; font-weight: 600; }
.global-search { display: flex; position: relative; align-items: center; }
.global-search input { width: 210px; border-radius: var(--pill); }
.topbar .search-toggle { display: none; }
.theme-to-light { display: none; }
[data-theme="dark"] .theme-to-light { display: block; }
[data-theme="dark"] .theme-to-dark { display: none; }
@media (prefers-color-scheme: dark) { [data-theme="system"] .theme-to-light { display: block; } [data-theme="system"] .theme-to-dark { display: none; } }
#sidebar { position: fixed; top: var(--topbar); left: 0; bottom: 0; width: var(--sidebar); overflow-y: auto; background: var(--sidebar-bg); color: var(--sidebar-text); padding: 12px 0; z-index: 25; transition: width var(--normal) var(--ease), transform var(--normal) var(--ease); }
[data-js]:not([data-nav-ready]) #sidebar { transition: none; }
#sidebar :focus-visible, .brand:focus-visible { outline-color: var(--sidebar-focus); outline-offset: -3px; }
#sidebar ul { list-style: none; padding: 0; margin: 0; }
.nav-section { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 12px 20px; margin: 0; }
#sidebar a, #sidebar button { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--sidebar-text); text-decoration: none; width: 100%; background: transparent; border: 0; border-radius: 0; text-align: left; min-height: 44px; }
#sidebar a:hover, #sidebar button:hover, #sidebar a[aria-current] { background: var(--sidebar-active); color: var(--sidebar-current); }
#sidebar button .icon:last-child { margin-left: auto; transition: transform var(--normal) var(--ease); }
#sidebar button[aria-expanded="true"] .icon:last-child { transform: rotate(90deg); }
#sidebar .nav-children a { padding-left: 48px; }
.accordion-region { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--normal) var(--ease); }
.accordion-region>div { overflow: hidden; }
.accordion-region[data-open], :root:not([data-js]) .accordion-region { grid-template-rows: 1fr; }
.rail-label, .rail-group-title { display: none; }
.workspace { margin-left: var(--sidebar); padding-top: var(--topbar); transition: margin-left var(--normal) var(--ease); }
.workspace main { padding: var(--gutter); min-height: calc(100vh - 124px); }
.page-header { display: flex; justify-content: space-between; gap: var(--gutter); padding-bottom: var(--gutter); }
[aria-label="Breadcrumb"] ol { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; margin: 0; color: var(--muted); }
[aria-label="Breadcrumb"] li+li::before { content: "/"; padding-right: 8px; }
.page-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: var(--gutter); }
.page-grid>* { grid-column: span 12; min-width: 0; }
.page-grid>.stat { grid-column: span 3; }
.module-tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: var(--gutter); }
.card, .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--card-padding); box-shadow: 0 4px 18px #0000000a; }
.stack:not([hidden]) { display: grid; gap: var(--gutter); }
.stack form+form { margin-top: 12px; }
.card.accent { background: var(--accent); color: var(--accent-text); }
.card-heading, .dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-value { font-size: 28px; font-weight: 600; }
.stat p:last-child { margin: 0; }
.chart { display: block; width: 100%; height: 220px; color: var(--accent); }
.axis-label { fill: var(--muted); font-size: 14px; }
.gridline { stroke-dasharray: 4 4; }
.stat-value:has(time) { font-size: 20px; overflow-wrap: anywhere; }
.chart-bar { fill: var(--accent); }
.chart-line { stroke: var(--accent); }
.axis { stroke: var(--border); }
.chart-summaries { display: flex; gap: 32px; flex-wrap: wrap; }
footer { color: var(--muted); padding: 20px var(--gutter); }
.auth { padding: 48px 16px 16px; display: grid; place-items: center; min-height: calc(100vh - 80px); }
.auth-card { width: min(440px,100%); }
.auth-card form>button[type="submit"] { width: 100%; background: var(--accent); color: var(--accent-text); }
.wordmark { display: block; font-size: 24px; font-weight: 600; margin-bottom: 24px; text-decoration: none; }
.auth-footer { text-align: center; }
label { display: block; margin: 12px 0; }
label>input:not([type="radio"]), label>select, .form-field input { display: block; width: 100%; max-width: 360px; margin-top: 6px; }
input[type="radio"] { min-height: auto; margin-right: 8px; accent-color: var(--accent); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 4px; }
.password-field { position: relative; max-width: 360px; }
.password-field>label { margin-bottom: 6px; }
.password-input { position: relative; }
.password-input input { display: block; width: 100%; }
[data-js] .password-input input { padding-right: 76px; min-height: 40px; }
.password-input button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 32px; min-height: 32px; padding: 2px 10px; align-items: center; }
.caps-hint, .hint, .muted { color: var(--muted); }
.field-error, [aria-invalid="true"] { color: var(--danger-text); }
[aria-invalid="true"] { border-color: var(--danger); }
.qr { width: 240px; height: 240px; max-width: 100%; background: #FFFFFF; }
code { overflow-wrap: anywhere; }
.wide { overflow: auto; width: 100%; grid-column: 1/-1; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-weight: 600; margin-bottom: 12px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: var(--surface); }
th button { width: 100%; text-align: left; border: 0; border-radius: 0; background: transparent; padding: 0; font-weight: inherit; }
th button:hover { background: transparent; }
[aria-sort="ascending"] .icon { transform: rotate(180deg); }
th .icon { transition: transform var(--normal) var(--ease); }
tbody tr { transition: background-color var(--fast) var(--ease); }
tbody tr:hover { background: var(--info-bg); color: var(--info-text); }
.table-toolbar { display: grid; grid-template-columns: minmax(160px,1fr) auto auto; gap: 16px; align-items: center; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.pagination p { margin-right: auto; }
.pagination a { padding: 8px; }
.empty-state { padding: 32px 16px; text-align: center; }
.badge { display: inline-flex; align-items: center; min-height: 24px; font-size: 11px; font-weight: 600; border-radius: var(--pill); padding: 2px 8px; }
.info { color: var(--info-text); background: var(--info-bg); }
.success { color: var(--success-text); background: var(--success-bg); }
.warning { color: var(--warning-text); background: var(--warning-bg); border-color: var(--warning-border); }
.status { background: transparent; color: var(--text); }
.status span { color: var(--accent); }
.status.danger span { color: var(--danger); }
.alert { padding: 12px 16px; border: 1px solid currentColor; border-radius: var(--radius); display: flex; align-items: center; gap: 16px; }
.alert button { margin-left: auto; }
.dropdown { position: relative; }
.dropdown>summary { list-style: none; min-height: 36px; padding: 8px; border-radius: var(--radius); }
.dropdown>summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; top: calc(100% + 4px); right: 0; width: min(var(--dropdown),calc(100vw - 32px)); max-height: min(65vh,540px); overflow-y: auto; background: var(--surface); color: var(--text); padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px #00000030; z-index: 35; transform-origin: top right; animation: dropdown-in var(--normal) var(--ease); }
.dropdown-panel a, .dropdown-panel [role="menuitem"] { display: block; padding: 8px; min-height: 36px; }
.dropdown-panel p { overflow-wrap: anywhere; }
.dropdown-panel { transition: transform var(--normal) var(--ease), opacity var(--normal) var(--ease); }
#notification-items { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.notification-header, .notification-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; background: var(--surface); }
.notification-header { border-bottom: 1px solid var(--border); }
.notification-header h2 { margin: 0; }
.notification-list { overflow-y: auto; min-height: 0; padding: 0 12px; }
.notification-event { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.notification-event>div { min-width: 0; }
.notification-event p { margin: 0; }
.event-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--info-bg); color: var(--info-text); }
.notification-event[data-unread] .event-title { font-weight: 600; }
.unread-marker { color: var(--accent); }
.notification-event time { color: var(--muted); }
.notification-footer { position: sticky; bottom: 0; border-top: 1px solid var(--border); }
.notification-footer button { font-size: 14px; }
#search-results { left: 0; right: auto; }
[data-sample] .dropdown-panel { position: static; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--modal-radius); padding: 20px; max-height: 90vh; width: min(560px,calc(100vw - 32px)); }
dialog::backdrop { background: #00000080; animation: fade-in var(--normal) var(--ease); }
dialog[open] { animation: modal-in var(--normal) var(--ease); }
dialog.sm { width: min(400px,calc(100vw - 32px)); }
dialog.lg { width: min(880px,calc(100vw - 32px)); }
.drawer { position: fixed; inset: 0 0 0 auto; height: 100dvh; max-height: none; width: min(var(--drawer),100vw); margin: 0; border-radius: 0; overflow-y: auto; }
.drawer[open] { animation: drawer-in var(--normal) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes drawer-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.tabs [role="tablist"], .page-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border); position: relative; overflow-x: auto; }
.page-tabs { margin-bottom: var(--gutter); }
.tabs a { padding: 12px 8px; text-decoration: none; white-space: nowrap; min-height: 40px; border-bottom: 2px solid transparent; }
.tabs [aria-selected="true"], .page-tabs [aria-current="page"] { border-color: var(--accent); font-weight: 600; }
.tabs.pills [aria-selected="true"] { background: var(--accent); color: var(--accent-text); border-radius: var(--radius); }
.tab-indicator { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--accent); transform-origin: left; transition: transform var(--normal) var(--ease); }
.record-header { display: flex; gap: 20px; align-items: center; }
.record-header .avatar { width: 64px; height: 64px; font-size: 20px; }
.timeline { list-style: none; padding-left: 20px; border-left: 2px solid var(--accent); }
.timeline li { padding: 12px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 20px; width: 10px; height: 10px; background: var(--surface); border: 2px solid var(--accent); border-radius: 50%; }
.timeline time { color: var(--muted); }
.toast-stack { position: fixed; top: 80px; right: 24px; width: min(360px,calc(100vw - 32px)); z-index: 60; display: grid; gap: 12px; }
.toast { position: relative; border: 1px solid currentColor; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; animation: toast-in var(--normal) var(--ease); overflow: hidden; }
.toast button { margin-left: auto; }
.toast-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: currentColor; transform-origin: left; }
[data-js] .toast-progress { animation: progress 5s linear forwards; }
.toast:hover .toast-progress, .toast:focus-within .toast-progress, .toast[data-paused] .toast-progress { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes progress { to { transform: scaleX(0); } }
.leaving { pointer-events: none; animation: fade-out var(--normal) var(--ease) forwards; }
.toast.leaving { animation: toast-out var(--normal) var(--ease) forwards; }
.drawer.leaving { animation: drawer-out var(--normal) var(--ease) forwards; }
.modal.leaving { animation: modal-out var(--normal) var(--ease) forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes drawer-out { to { opacity: 0; transform: translateX(100%); } }
@keyframes modal-out { to { opacity: 0; transform: scale(.96); } }
.skeleton { display: block; position: relative; overflow: hidden; min-height: 24px; background: var(--info-bg); color: var(--info-text); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,#ffffff18,transparent); animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: 8px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 992px) {
 [data-sidebar="collapsed"] .brand, [data-sidebar="collapsed"] #sidebar { width: var(--rail); }
 [data-sidebar="collapsed"] .workspace { margin-left: var(--rail); }
 [data-sidebar="collapsed"] .brand-full { display: none; }
 [data-sidebar="collapsed"] .brand-mark { display: inline; }
 [data-sidebar="collapsed"] .nav-label, [data-sidebar="collapsed"] .nav-section { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 [data-sidebar="collapsed"] #sidebar a, [data-sidebar="collapsed"] #sidebar button { justify-content: center; padding: 14px; }
 [data-sidebar="collapsed"] #sidebar button .icon:last-child { display: none; }
 [data-sidebar="collapsed"] .nav-children { display: none; }
 [data-sidebar="collapsed"] .nav-item:is(:hover,:focus-within):not([data-flyout-dismissed])>.rail-label, [data-sidebar="collapsed"] .nav-group:is(:hover,:focus-within):not([data-flyout-dismissed])>.nav-children { display: block; position: fixed; left: var(--rail); width: 240px; background: var(--sidebar-bg); color: var(--sidebar-text); border: 1px solid var(--sidebar-focus); border-radius: var(--radius); padding: 12px; animation: flyout-in var(--fast) var(--ease); }
 [data-sidebar="collapsed"] .rail-group-title { display: block; }
 [data-sidebar="collapsed"] #sidebar .nav-children a { justify-content: flex-start; padding: 12px; }
 [data-sidebar="collapsed"] .nav-children .nav-label { position: static; width: auto; height: auto; clip-path: none; }
 [data-sidebar="collapsed"] .nav-children .rail-label { display: none !important; }
}
@keyframes flyout-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1199px) { .page-grid>.stat { grid-column: span 6; } }
@media (max-width: 991px) {
 .brand { width: var(--rail); }
 .brand-full { display: none; } .brand-mark { display: inline; }
 .workspace { margin-left: 0; }
 #sidebar { position: relative; top: var(--topbar); width: 100%; }
 [data-js] #sidebar { position: fixed; width: var(--sidebar); transform: translateX(-100%); visibility: hidden; transition: transform var(--normal) var(--ease), visibility 0s var(--normal); }
 [data-js][data-nav-open] #sidebar { transform: none; visibility: visible; transition-delay: 0s; }
 #notification-items { position: fixed; top: calc(var(--topbar) + 4px); right: 16px; }
 [data-nav-open] body { overflow: hidden; }
 [data-js] .sidebar-backdrop:not([hidden]) { position: fixed; inset: var(--topbar) 0 0; border: 0; border-radius: 0; background: #00000080; z-index: 24; animation: fade-in var(--normal) var(--ease); }
 [data-js] .global-search { display: none; }
 [data-js] .global-search[data-open] { display: flex; position: absolute; top: var(--topbar); left: 16px; background: var(--surface); padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
 [data-js] .topbar .search-toggle { display: inline-flex; }
 :root:not([data-js]) .global-search input { width: 120px; }
}
@media (max-width: 599px) { .page-grid>.stat { grid-column: span 12; } .topbar { gap: 0; padding-right: 4px; } .topbar-right { gap: 0; } .brand { width: 44px; } .workspace main { padding: 16px; } .table-toolbar { grid-template-columns: 1fr; } .page-header { flex-wrap: wrap; } .auth { padding-top: 24px; } :root:not([data-js]) .brand { display: none; } :root:not([data-js]) .global-search input { width: 96px; } }

.tab-indicator { width: 1px; }
.invite-link { overflow-wrap: anywhere; }
.nav-invited { margin-left: auto; }
@media (min-width: 992px) { [data-sidebar="collapsed"] .nav-invited { display: none; } }
@media (min-width: 992px) {
 [data-sidebar="collapsed"] .rail-label, [data-sidebar="collapsed"] .nav-group>.nav-children { margin-top: -44px; }
 [data-sidebar="collapsed"] .nav-group>.nav-children { max-height: calc(100vh - 160px); overflow-y: auto; }
}
.nav-label { transition: opacity var(--fast) var(--ease); }
[data-sidebar="collapsed"] .nav-label { opacity: 0; }
[data-sidebar="collapsed"] .nav-children .nav-label { opacity: 1; }
@media (max-width: 991px) { [data-sidebar="collapsed"] .nav-label { opacity: 1; } }
