* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -48px; left: 8px; background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 999; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ===== App shell ===== */
.app-shell { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: width .2s ease, transform .25s ease;
  z-index: 40;
}
.app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
.sidebar-brand {
  height: var(--topbar-h); display: flex; align-items: center; gap: .7rem;
  padding: 0 1.3rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #8f6bff); color: #fff; font-weight: 800; font-family: var(--font-display);
  flex-shrink: 0;
}
.sidebar-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; }
.app-shell.sidebar-collapsed .sidebar-brand .name { display: none; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .8rem; }
.sidebar-section-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint);
  font-weight: 700; padding: .9rem .7rem .4rem;
}
.app-shell.sidebar-collapsed .sidebar-section-label { display: none; }
.nav-item {
  display: flex; align-items: center; gap: .8rem; padding: .65rem .7rem; border-radius: var(--radius-sm);
  color: var(--text-soft); text-decoration: none; cursor: pointer; margin-bottom: .15rem; font-weight: 500;
  border: none; background: none; width: 100%; text-align: left; white-space: nowrap; overflow: hidden;
}
.nav-item svg { flex-shrink: 0; width: 19px; height: 19px; }
.nav-item:hover { background: var(--bg-sunken); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item .badge-count {
  margin-left: auto; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .1rem .4rem; border-radius: 999px;
}
.app-shell.sidebar-collapsed .nav-item span:not(.badge-count) { display: none; }
.app-shell.sidebar-collapsed .nav-item { justify-content: center; }
.app-shell.sidebar-collapsed .nav-item .badge-count { display: none; }

.sidebar-footer { border-top: 1px solid var(--border); padding: .9rem .8rem; flex-shrink: 0; }
.collapse-btn {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .7rem; border-radius: var(--radius-sm);
  border: none; background: none; color: var(--text-soft); cursor: pointer;
}
.collapse-btn:hover { background: var(--bg-sunken); color: var(--text); }
.collapse-btn svg { transition: transform .2s ease; flex-shrink: 0; }
.app-shell.sidebar-collapsed .collapse-btn svg { transform: rotate(180deg); }
.app-shell.sidebar-collapsed .collapse-btn span { display: none; }

.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%); width: 280px; box-shadow: var(--shadow-lg);
  }
  .app-shell.mobile-nav-open .sidebar { transform: translateX(0); }
  .app-shell.sidebar-collapsed .sidebar { width: 280px; }
  .app-shell.sidebar-collapsed .sidebar-brand .name,
  .app-shell.sidebar-collapsed .nav-item span,
  .app-shell.sidebar-collapsed .sidebar-section-label { display: block; }
  .app-shell.sidebar-collapsed .nav-item { justify-content: flex-start; }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(10,13,19,.5); z-index: 35;
  }
  .app-shell.mobile-nav-open .sidebar-backdrop { display: block; }
}

/* ===== Main column ===== */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== Topbar ===== */
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 1rem; padding: 0 1.4rem;
  background: var(--glass-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-soft); cursor: pointer; flex-shrink: 0;
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.mobile-nav-toggle { display: none; }
@media (max-width: 900px) { .mobile-nav-toggle { display: grid; } }

.search-box {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: .6rem;
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .5rem .9rem;
}
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text); }
.search-box svg { color: var(--text-faint); flex-shrink: 0; }
.search-box kbd {
  font-size: .68rem; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; padding: .1rem .35rem;
}
button.search-box { font: inherit; cursor: pointer; }
.search-box-placeholder { flex: 1; text-align: left; color: var(--text-faint); font-size: .86rem; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  border: 2px solid var(--bg-elevated);
}

.user-menu-btn { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-md); padding: .35rem .7rem .35rem .35rem; cursor: pointer; }
.avatar {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .78rem;
  background: linear-gradient(135deg, var(--accent), #8f6bff); color: #fff; flex-shrink: 0;
}
.user-menu-btn .u-name { font-weight: 600; font-size: .82rem; }
.user-menu-btn .u-role { font-size: .7rem; color: var(--text-faint); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 50;
  display: none; overflow: hidden;
}
.dropdown.open .dropdown-panel { display: block; }
.dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.dropdown-header h4 { font-size: .9rem; }
.link-btn { background: none; border: none; color: var(--accent); font-size: .78rem; font-weight: 600; cursor: pointer; }
.dropdown-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-sunken); }
.notif-item.unread { background: var(--accent-soft); }
.notif-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: .82rem; font-weight: 600; }
.notif-time { font-size: .72rem; color: var(--text-faint); margin-top: .2rem; display: block; }

/* ===== Content ===== */
.content { flex: 1; padding: 1.6rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.view { display: none; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.view-header h2 { font-size: 1.4rem; }
.view-header .sub { color: var(--text-soft); font-size: .85rem; margin-top: .2rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: var(--radius-sm); padding: .6rem 1.1rem;
  font-weight: 600; font-size: .85rem; cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: none; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .4rem .8rem; font-size: .78rem; }
.btn-icon { padding: .5rem; }

/* ===== Grid & cards ===== */
.grid { display: grid; gap: 1.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) { .msg-shell[style*="grid-template-columns"] { grid-template-columns: 1fr !important; height: auto !important; } }

.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.card-glass { background: var(--glass-bg); backdrop-filter: blur(14px); border: 1px solid var(--glass-border); }

.stat-card { display: flex; flex-direction: column; gap: .5rem; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.stat-label { color: var(--text-soft); font-size: .82rem; }
.stat-delta { font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 999px; width: fit-content; }
.stat-delta.up { color: var(--success); background: var(--success-soft); }
.stat-delta.down { color: var(--danger); background: var(--danger-soft); }

.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.panel-title h3 { font-size: .95rem; }
.panel-title .sub { font-size: .76rem; color: var(--text-faint); }

.badge { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; display: inline-block; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ===== Tables ===== */
.table-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-feats { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; color: var(--text-soft); }
.plan-feats li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.onboarding-list { display: flex; flex-direction: column; gap: .7rem; }
.onboarding-item { display: flex; align-items: center; gap: .7rem; font-size: .86rem; cursor: pointer; }
.onboarding-item input[disabled] + span { color: var(--text-faint); text-decoration: line-through; }
.bulk-bar {
  display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; margin-bottom: 1rem;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); font-size: .82rem;
}
.bulk-bar span { font-weight: 700; margin-right: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th {
  text-align: left; color: var(--text-faint); font-weight: 700; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; padding: .7rem .9rem; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
  white-space: nowrap;
}
.data-table th .arrow { opacity: .35; margin-left: .3rem; }
.data-table th.sorted .arrow { opacity: 1; color: var(--accent); }
.data-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-sunken); }
.row-user { display: flex; align-items: center; gap: .6rem; }
.row-user .name { font-weight: 600; }
.row-user .email { font-size: .76rem; color: var(--text-faint); }
.table-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .8rem; color: var(--text-soft); }
.pg-btns { display: flex; gap: .4rem; }
.pg-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); cursor: pointer; color: var(--text-soft); }
.pg-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="search"], .field select, .field textarea {
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 999px; transition: all .2s ease; cursor: pointer; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: all .2s ease; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track .thumb { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: none; }
.switch-row .label { font-weight: 600; font-size: .85rem; }
.switch-row .desc { font-size: .78rem; color: var(--text-faint); margin-top: .15rem; }

.swatches { display: flex; gap: .6rem; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; position: relative; }
.swatch::after { content: ""; position: absolute; inset: -5px; }
.swatch.active { border-color: var(--text); }
.swatch.active::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .8rem; }

/* ===== Kanban ===== */
.kanban-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; align-items: flex-start; }
.kanban-col { flex: 0 0 290px; background: var(--bg-sunken); border-radius: var(--radius-md); padding: .9rem; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.kanban-col-header h4 { font-size: .82rem; display: flex; align-items: center; gap: .5rem; }
.kanban-count { background: var(--bg-elevated); border: 1px solid var(--border); font-size: .7rem; padding: .1rem .5rem; border-radius: 999px; color: var(--text-faint); }
.kanban-cards { display: flex; flex-direction: column; gap: .7rem; min-height: 60px; }
.kanban-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem;
  cursor: grab; box-shadow: var(--shadow-sm);
}
.kanban-card.dragging { opacity: .4; }
.kanban-col.drag-over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.kanban-card-title { font-weight: 600; font-size: .84rem; margin-bottom: .4rem; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.kanban-tag { font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.kanban-add { width: 100%; margin-top: .7rem; background: none; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .5rem; color: var(--text-faint); cursor: pointer; font-size: .8rem; }
.kanban-add:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Calendar ===== */
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--text-faint); padding: .4rem 0; }
.cal-day {
  aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; padding: .4rem; font-size: .78rem;
  display: flex; flex-direction: column; gap: .2rem; cursor: pointer; background: var(--bg-elevated);
}
.cal-day:hover { border-color: var(--accent); }
.cal-day.other-month { opacity: .35; }
.cal-day.today { border-color: var(--accent); background: var(--accent-soft); }
.cal-day .num { font-weight: 700; }
.cal-event { font-size: .64rem; background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Toast ===== */
.toast-stack { position: fixed; bottom: 1.3rem; right: 1.3rem; display: flex; flex-direction: column; gap: .6rem; z-index: 100; }
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem; font-size: .82rem; min-width: 240px;
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Misc ===== */
.progress-bar { height: 8px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.progress-bar .fill { height: 100%; border-radius: 999px; background: var(--accent); }
.divider { height: 1px; background: var(--border); border: none; margin: 1.2rem 0; }

.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; font-size: .78rem; color: var(--text-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.chart-tooltip {
  position: fixed; display: none; z-index: 200; pointer-events: none;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: .5rem .7rem; font-size: .78rem; color: var(--text);
  white-space: nowrap;
}
.chart-tooltip div { display: flex; align-items: center; gap: .4rem; }
.chart-tooltip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
canvas { cursor: crosshair; }

/* ===== Command palette ===== */
.palette-overlay {
  position: fixed; inset: 0; background: rgba(10,13,19,.5); z-index: 200; display: none;
  align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.palette-overlay.open { display: flex; }
.palette-box {
  width: 100%; max-width: 560px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-height: 70vh; display: flex; flex-direction: column;
}
.palette-input-row { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.palette-input-row svg { color: var(--text-faint); flex-shrink: 0; }
.palette-input-row input { flex: 1; border: none; background: none; outline: none; font-size: .95rem; color: var(--text); }
.palette-input-row kbd { font-size: .7rem; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; padding: .15rem .4rem; }
.palette-results { overflow-y: auto; padding: .5rem; }
.palette-item {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: var(--radius-sm); cursor: pointer; font-size: .87rem;
}
.palette-item svg { color: var(--text-faint); flex-shrink: 0; }
.palette-item.active { background: var(--accent-soft); color: var(--accent); }
.palette-item.active svg { color: var(--accent); }
.palette-empty { text-align: center; padding: 2rem; color: var(--text-faint); font-size: .85rem; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 480px; margin: 0 auto;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; z-index: 150; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .83rem; color: var(--text-soft); margin-bottom: .9rem; }
.cookie-banner-actions { display: flex; gap: .6rem; }

/* ===== Scroll to top ===== */
.scroll-top-btn {
  position: fixed; bottom: 1.3rem; right: 1.3rem; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer; z-index: 60;
}
.scroll-top-btn.show { display: flex; }

/* ===== Density (compact mode) ===== */
body.density-compact .card { padding: .9rem; }
body.density-compact .content { padding: 1rem; }
body.density-compact .data-table th, body.density-compact .data-table td { padding: .5rem .7rem; }
body.density-compact .topbar { height: 56px; }
body.density-compact .kanban-card { padding: .55rem; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
