/* ============================================================
   JIT BATCH — Gestionale Impianto di Betonaggio
   App shell + components, built on JIT design tokens.
   Semantic tokens are remapped under [data-theme="dark"] so the
   control-room theme is mostly free.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root {
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --pad: 20px;        /* density-controlled */
  --pad-sm: 14px;
  --gap: 16px;
  --card-radius: 10px;
}
[data-density="compact"] {
  --pad: 13px;
  --pad-sm: 9px;
  --gap: 11px;
}

/* ---- Dark "control room" theme remap --------------------- */
[data-theme="dark"] {
  --bg-page:    #08152B;
  --bg-surface: #0E2342;
  --bg-sunken:  #0A1B33;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --fg-1: #EAF1F8;
  --fg-2: #A9BFD9;
  --fg-3: #6E89AB;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 14px 34px rgba(0,0,0,0.5);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); background-clip: content-box; }

/* ============================================================
   App shell
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ---- Sidebar (always dark navy) -------------------------- */
.sidebar {
  background: linear-gradient(180deg, #0B1D3A 0%, #061226 100%);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.sidebar::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.sidebar-brand {
  display: flex; flex-direction: column; align-items: stretch; gap: 9px;
  padding: 16px var(--pad) 15px;
  position: relative; z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand-logo-plate {
  background: var(--white);
  border-radius: 8px;
  padding: 11px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.brand-logo-plate img { width: 100%; height: auto; display: block; }
.brand-caption {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-weight: 500; font-size: 10px;
  color: var(--fg-on-dark-2); letter-spacing: 0.12em; text-transform: uppercase;
  padding-left: 2px;
}
.brand-caption .bc-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--jit-orange); flex: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 8px;
  background: var(--white);
  display: none; place-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 0 auto;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .bt-1 {
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
  color: var(--fg-on-dark); letter-spacing: -0.01em;
}
.brand-text .bt-1 em { color: var(--jit-orange); font-style: normal; }
.brand-text .bt-2 {
  font-family: var(--font-mono); font-weight: 500; font-size: 9.5px;
  color: var(--fg-on-dark-2); letter-spacing: 0.22em; text-transform: uppercase;
  margin-top: 4px;
}
.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 12px 12px;
  position: relative; z-index: 1;
}
.nav-group-label {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-on-dark-2); opacity: 0.65;
  padding: 14px 12px 7px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 1px 0;
  border-radius: 7px; cursor: pointer;
  color: var(--fg-on-dark-2);
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: background 140ms ease-out, color 140ms ease-out;
  position: relative;
  user-select: none;
}
.nav-item svg { width: 18px; height: 18px; flex: none; stroke-width: 2; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--fg-on-dark); }
.nav-item.active {
  background: rgba(242,148,31,0.12);
  color: #FFF;
  border-color: rgba(242,148,31,0.28);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--jit-orange);
}
.nav-item.active svg { color: var(--jit-orange); }
.nav-badge {
  margin-left: auto; font-family: var(--font-mono); font-weight: 600;
  font-size: 11px; background: var(--status-alarm); color: #fff;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; line-height: 1;
}
.sidebar-foot {
  padding: 12px var(--pad); position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.plc-status {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-on-dark-2);
}
.plc-status .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--status-run); box-shadow: 0 0 0 3px rgba(30,158,90,0.2); }

/* ---- Main column ---------------------------------------- */
.main-col { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: var(--topbar-h); flex: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--pad);
  position: relative; z-index: 20;
}
.topbar-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.topbar-title .tt-crumb { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.topbar-title .tt-main { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--fg-1); line-height: 1.1; }
.topbar-spacer { flex: 1; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 12px; min-width: 220px;
  color: var(--fg-3);
}
.search-box svg { width: 15px; height: 15px; }
.search-box input { border: none; background: none; outline: none; font-family: var(--font-body); font-size: 13.5px; color: var(--fg-1); width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--fg-2); cursor: pointer;
  display: grid; place-items: center; position: relative;
  transition: all 140ms ease-out;
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--fg-1); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .nd {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  background: var(--status-alarm); color: #fff; border-radius: 99px; font-size: 10px;
  font-family: var(--font-mono); font-weight: 600; display: grid; place-items: center;
  border: 2px solid var(--bg-surface); padding: 0 3px;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 99px; cursor: pointer; }
.user-chip:hover { background: var(--bg-sunken); }
.avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--navy-600); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.user-chip .uc-name { font-size: 13px; font-weight: 600; color: var(--fg-1); line-height: 1.15; white-space: nowrap; }
.user-chip .uc-role { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.user-chip > div { display: flex; flex-direction: column; }
@media (max-width: 760px) { .user-chip > div { display: none; } }

.content {
  flex: 1; overflow-y: auto; padding: var(--pad);
  scroll-behavior: smooth;
}
.content-inner { max-width: 1440px; margin: 0 auto; }

/* ============================================================
   Generic primitives
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-xs);
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: var(--pad-sm) var(--pad);
  border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.card-head .ch-sub { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); }
.card-head .spacer { flex: 1; }
.card-body { padding: var(--pad); }
.card-title-ico { width: 17px; height: 17px; color: var(--fg-accent); stroke-width: 2; }

.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-accent); }
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: var(--gap); }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  padding: 8px 15px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--fg-1);
  transition: all 130ms cubic-bezier(0.2,0,0,1); white-space: nowrap; user-select: none;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }
.btn:hover { background: var(--bg-sunken); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.99); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--jit-orange); border-color: var(--jit-orange); color: #3a2400; }
.btn-accent:hover { background: var(--orange-600); color: #2a1a00; }
.btn-danger { background: var(--status-alarm); border-color: var(--status-alarm); color: #fff; }
.btn-danger:hover { filter: brightness(0.93); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ---- Badges / status ------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  padding: 3px 9px; border-radius: 99px; line-height: 1.4; white-space: nowrap;
}
.badge .bd { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.badge.run   { color: var(--status-run);   background: var(--status-run-bg); }
.badge.warn  { color: var(--orange-700);   background: var(--status-warn-bg); }
.badge.alarm { color: var(--status-alarm); background: var(--status-alarm-bg); }
.badge.info  { color: var(--status-info);  background: var(--status-info-bg); }
.badge.idle  { color: var(--status-idle);  background: var(--status-idle-bg); }
.badge.run .bd { background: var(--status-run); }
.badge.warn .bd { background: var(--status-warn); }
.badge.alarm .bd { background: var(--status-alarm); }
.badge.info .bd { background: var(--status-info); }
.badge.idle .bd { background: var(--status-idle); }
[data-theme="dark"] .badge.run   { background: rgba(30,158,90,0.16); }
[data-theme="dark"] .badge.warn  { background: rgba(232,163,23,0.16); color: var(--orange-300); }
[data-theme="dark"] .badge.alarm { background: rgba(211,58,44,0.18); color: #F0857A; }
[data-theme="dark"] .badge.info  { background: rgba(110,151,196,0.18); color: var(--navy-200); }
[data-theme="dark"] .badge.idle  { background: rgba(157,178,204,0.14); color: var(--gray-300); }
.badge.pulse .bd { animation: dotpulse 1.4s ease-in-out infinite; }
@keyframes dotpulse { 0%,100% { box-shadow: 0 0 0 0 currentColor; opacity:1; } 50% { box-shadow: 0 0 0 4px transparent; opacity: 0.55; } }

/* ---- KPI tiles ------------------------------------------ */
.kpi {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: var(--pad-sm) var(--pad);
  display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.kpi .kpi-top { display: flex; align-items: center; gap: 8px; }
.kpi .kpi-ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.kpi .kpi-ico svg { width: 17px; height: 17px; stroke-width: 2; }
.kpi .kpi-label { font-size: 12px; color: var(--fg-3); font-weight: 600; letter-spacing: 0.01em; }
.kpi .kpi-val { font-family: var(--font-mono); font-weight: 600; font-size: 27px; color: var(--fg-1); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi .kpi-val small { font-size: 14px; color: var(--fg-3); font-weight: 500; margin-left: 2px; }
.kpi .kpi-foot { font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.kpi .trend-up { color: var(--status-run); }
.kpi .trend-dn { color: var(--status-alarm); }

/* ---- Tables --------------------------------------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fg-3); padding: 10px var(--pad-sm); border-bottom: 1px solid var(--border);
  white-space: nowrap; background: var(--bg-surface); position: sticky; top: 0;
}
table.tbl td { padding: 11px var(--pad-sm); border-bottom: 1px solid var(--border); color: var(--fg-2); vertical-align: middle; }
table.tbl tbody tr { transition: background 120ms ease-out; cursor: default; }
table.tbl tbody tr:hover { background: var(--bg-sunken); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr.selected { background: var(--navy-50); }
[data-theme="dark"] table.tbl tbody tr.selected { background: rgba(110,151,196,0.1); }
table.tbl td.num, table.tbl th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.tbl .strong { color: var(--fg-1); font-weight: 600; }
table.tbl .id-cell { font-family: var(--font-mono); font-weight: 600; color: var(--fg-accent); font-size: 12.5px; }

/* ---- Level bars ----------------------------------------- */
.levelbar { height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; position: relative; }
.levelbar > span { display: block; height: 100%; border-radius: 99px; transition: width 600ms cubic-bezier(0.2,0,0,1); }
.lv-ok > span { background: var(--status-run); }
.lv-warn > span { background: var(--status-warn); }
.lv-crit > span { background: var(--status-alarm); }

/* ---- Progress ------------------------------------------- */
.progress { height: 12px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-400), var(--jit-orange)); transition: width 400ms ease-out; }

/* ---- Filter bar ----------------------------------------- */
.filterbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: var(--gap); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.04em; }
.input, select.input {
  font-family: var(--font-body); font-size: 13.5px; color: var(--fg-1);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 7px;
  padding: 7px 11px; outline: none; transition: box-shadow 120ms, border-color 120ms;
}
.input:focus, select.input:focus { border-color: var(--navy-400); box-shadow: var(--shadow-focus); }
select.input { cursor: pointer; }
.chip-toggle { display: inline-flex; gap: 4px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.chip-toggle button { border: none; background: transparent; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--fg-3); padding: 5px 11px; border-radius: 6px; cursor: pointer; transition: all 120ms; }
.chip-toggle button.on { background: var(--bg-surface); color: var(--fg-1); box-shadow: var(--shadow-xs); }

/* ---- Page header ---------------------------------------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: var(--gap); flex-wrap: wrap; }
.page-head .ph-titles { display: flex; flex-direction: column; gap: 3px; }
.page-head h1 { font-size: 25px; font-weight: 700; margin: 0; }
.page-head p { margin: 0; font-size: 13.5px; color: var(--fg-3); }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* ---- Toasts --------------------------------------------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  background: var(--bg-surface); border: 1px solid var(--border); border-left: 4px solid var(--navy-500);
  border-radius: 9px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 11px; align-items: flex-start;
  animation: toastin 240ms cubic-bezier(0.2,0,0,1);
}
[data-theme="dark"] .toast { background: var(--bg-surface); }
@keyframes toastin { from { opacity: 0; transform: translateX(30px) scale(0.97); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastout 220ms ease-in forwards; }
@keyframes toastout { to { opacity: 0; transform: translateX(30px); height: 0; padding: 0; margin: 0; } }
.toast .t-ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.toast .t-ico svg { width: 17px; height: 17px; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-title { font-weight: 700; font-size: 13.5px; color: var(--fg-1); }
.toast .t-msg { font-size: 12.5px; color: var(--fg-3); margin-top: 1px; }
.toast.run   { border-left-color: var(--status-run); }
.toast.warn  { border-left-color: var(--status-warn); }
.toast.alarm { border-left-color: var(--status-alarm); }
.toast.info  { border-left-color: var(--status-info); }
.toast .t-close { color: var(--fg-3); cursor: pointer; background: none; border: none; padding: 2px; display: grid; place-items: center; }
.toast .t-close:hover { color: var(--fg-1); }

/* ---- Side drawer / modal -------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(6,18,38,0.45); backdrop-filter: blur(2px); z-index: 1000; animation: fade 180ms ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 94vw);
  background: var(--bg-surface); z-index: 1001; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: drawerin 260ms cubic-bezier(0.2,0,0,1);
  border-left: 1px solid var(--border);
}
@keyframes drawerin { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: var(--pad); border-bottom: 1px solid var(--border); }
.drawer-head .dh-titles { flex: 1; }
.drawer-head h2 { font-size: 19px; margin: 0; }
.drawer-head .dh-sub { font-size: 12.5px; color: var(--fg-3); font-family: var(--font-mono); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--pad); }
.drawer-foot { padding: var(--pad); border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--bg-surface); z-index: 1001; box-shadow: var(--shadow-lg);
  border-radius: 12px; border: 1px solid var(--border); width: min(560px, 94vw); max-height: 90vh;
  display: flex; flex-direction: column; animation: modalin 220ms cubic-bezier(0.2,0,0,1);
}
@keyframes modalin { from { transform: translate(-50%,-46%) scale(0.97); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }

/* ---- Definition rows ------------------------------------ */
.deflist { display: flex; flex-direction: column; }
.defrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.defrow:last-child { border-bottom: none; }
.defrow .dt { font-size: 13px; color: var(--fg-3); }
.defrow .dd { font-size: 14px; color: var(--fg-1); font-weight: 600; text-align: right; }

/* ---- Tabs ------------------------------------------------ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: var(--gap); }
.tabs button { border: none; background: none; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--fg-3); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 120ms; }
.tabs button:hover { color: var(--fg-1); }
.tabs button.on { color: var(--fg-accent); border-bottom-color: var(--jit-orange); }

/* ---- Misc ----------------------------------------------- */
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--fg-3); }
.empty svg { width: 34px; height: 34px; opacity: 0.4; margin-bottom: 8px; }
.scost-pos { color: var(--status-run); }
.scost-neg { color: var(--status-alarm); }
.scost-zero { color: var(--fg-3); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 64px 1fr; }
  .brand-logo-plate, .brand-caption, .nav-group-label, .nav-item span.lbl, .sidebar-foot .pf-txt { display: none; }
  .brand-mark { display: grid; }
  .nav-item { justify-content: center; padding: 11px; }
  .nav-badge { position: absolute; top: 2px; right: 2px; }
  .sidebar-brand { padding: 14px 0; }
  .search-box { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
