/* Sistema Integrado de Gestão — Outbox + Medice
   Tokens de cor em :root (claro) e [data-theme="dark"] (escuro). Todas as cores derivam deles. */

:root {
    color-scheme: light;
    --bg: #f4f3f0;
    --surface: #ffffff;
    --surface-2: #faf9f7;
    --surface-3: #efede8;
    --sunken: #ebe9e3;
    --line: #e2dfd8;
    --line-soft: #ecebe6;
    --line-strong: #cfcbc2;
    --ink: #1d1c19;
    --ink-2: #4a4741;
    --muted: #87837a;
    --faint: #b3afa6;
    --hover: rgba(40, 32, 16, .045);
    --danger: #c2410c;
    --danger-ink: #b42318;
    --ok: #15803d;
    --warn: #b45309;
    --accent: var(--accent-bu, #2b2925);
    --on-accent: var(--on-accent-bu, #ffffff);
    --ring: color-mix(in srgb, var(--accent) 35%, transparent);
    --shadow-sm: 0 1px 0 rgba(40, 32, 16, .04);
    --shadow: 0 1px 2px rgba(40, 32, 16, .05), 0 0 0 1px rgba(40, 32, 16, .02);
    --shadow-lg: 0 18px 40px -12px rgba(40, 32, 16, .22), 0 4px 10px -4px rgba(40, 32, 16, .08);
    --av-l: 88%;
    --av-ink-l: 30%;
    --radius-lg: 12px;
    --radius: 9px;
    --radius-sm: 6px;
    --radius-xs: 4px;
    --font: "Geist", ui-sans-serif, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --z-sticky: 20;
    --z-bar: 30;
    --z-sidebar: 40;
    --z-menu: 50;
    --z-toast: 60;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #131210;
    --surface: #1b1a17;
    --surface-2: #201e1b;
    --surface-3: #252320;
    --sunken: #171614;
    --line: #2f2d29;
    --line-soft: #282623;
    --line-strong: #403d37;
    --ink: #ecebe6;
    --ink-2: #bcb8af;
    --muted: #8b877e;
    --faint: #5d5a53;
    --hover: rgba(255, 248, 230, .05);
    --danger: #f08a5d;
    --danger-ink: #f2a08a;
    --ok: #4ade80;
    --warn: #f5b041;
    --accent: var(--accent-bu, #e9e7e1);
    --on-accent: var(--on-accent-bu, #1b1a17);
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-lg: 0 20px 44px -12px rgba(0, 0, 0, .7), 0 4px 12px -4px rgba(0, 0, 0, .5);
    --av-l: 26%;
    --av-ink-l: 82%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.018em; text-wrap: balance; }
h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
p { margin: 0 0 8px; text-wrap: pretty; max-width: 72ch; }
code { font-family: var(--mono); font-size: 12px; background: var(--surface-3); padding: 1px 5px; border-radius: var(--radius-xs); }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-xs); }
.ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.inline { display: inline; }
.hidden { display: none !important; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.strong { font-weight: 600; }
.skip-link { position: absolute; left: 12px; top: -40px; z-index: var(--z-toast); background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Estrutura ---------- */
.app { display: flex; min-height: 100dvh; }
.sidebar { width: 232px; flex: none; background: var(--sunken); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: 12px; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; flex: none; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; font-size: 13.5px; position: relative; transition: background .15s var(--ease), color .15s var(--ease); }
.nav a .ico { color: var(--muted); transition: color .15s var(--ease); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nav a.active .ico { color: var(--accent); }
.nav-label { font-size: 12px; color: var(--muted); padding: 16px 10px 4px; font-weight: 500; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 8px; position: relative; }
.me { width: 100%; display: flex; gap: 9px; align-items: center; min-width: 0; padding: 6px; border-radius: var(--radius-sm); border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; transition: background .15s var(--ease); }
.me:hover { background: var(--hover); }
.me > span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.me strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--muted); font-size: 12px; }
.me .ico { color: var(--muted); }

/* menu do usuário */
.menu { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: var(--z-menu); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; transform-origin: bottom center; }
.menu.open { display: block; animation: pop .16s var(--ease); }
.menu a, .menu button.item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: var(--radius-sm); border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; text-align: left; }
.menu a:hover, .menu button.item:hover { background: var(--hover); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0; }
.menu-label { font-size: 12px; color: var(--muted); padding: 4px 9px 6px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--surface-3); border-radius: var(--radius-sm); padding: 2px; margin: 0 4px 4px; }
.segmented button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 5px 4px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; transition: background .15s var(--ease), color .15s var(--ease); }
.segmented button .ico { width: 13px; height: 13px; }
.segmented button:hover { color: var(--ink); }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.content { padding: 28px 28px 56px; max-width: 1440px; width: 100%; }
.mobile-only { display: none; }

.bu-switch { scrollbar-width: none; display: flex; gap: 2px; background: var(--surface-3); padding: 3px; border-radius: 9px; }
.bu-switch button { border: 0; background: none; font: inherit; font-weight: 500; font-size: 13px; color: var(--ink-2); padding: 4px 11px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.bu-switch button i { width: 7px; height: 7px; border-radius: 2px; background: var(--bu); }
.bu-switch button:hover { color: var(--ink); }
.bu-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search { flex: 1; max-width: 400px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--muted); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; padding: 6px 0; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--ring); }
.search kbd { font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.icon-btn { border: 0; background: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--ink-2); cursor: pointer; position: relative; flex: none; transition: background .15s var(--ease), color .15s var(--ease); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn:active { transform: translateY(1px); }
.bell b { position: absolute; top: 4px; right: 3px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; min-width: 15px; height: 15px; border-radius: 5px; display: grid; place-items: center; padding: 0 3px; }

/* ---------- Cabeçalho de página ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 13.5px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; font-size: 13.5px; line-height: 1.2; padding: 7px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .08s; }
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); border-color: transparent; color: var(--on-accent); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); color: var(--bg); border-color: transparent; }
.btn-danger { color: var(--danger-ink); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-success { background: var(--ok); border-color: transparent; color: #fff; }
[data-theme="dark"] .btn-success { color: #0b1a10; }
.btn-success:hover { background: color-mix(in srgb, var(--ok) 88%, var(--ink)); color: #fff; border-color: transparent; }
.btn-ghost { background: none; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; }
.btn-link { background: none; border: 0; box-shadow: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); font: inherit; cursor: pointer; }
.btn-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; box-shadow: none; }
.btn-lg { padding: 10px 16px; font-size: 14.5px; }
.btn .ico { width: 15px; height: 15px; }
.btn-group { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 2px; }
.btn-group a { padding: 5px 10px; border-radius: 6px; color: var(--ink-2); font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: background .15s var(--ease), color .15s var(--ease); }
.btn-group a .ico { width: 14px; height: 14px; }
.btn-group a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-group a:not(.on):hover { color: var(--ink); }

/* ---------- Painéis ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); min-height: 50px; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.card-head h2 .ico, .card-head h3 .ico { color: var(--muted); }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cols > aside { position: sticky; top: 76px; }
.cols-even { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.stack > * + * { margin-top: 12px; }

/* KPIs: faixa única dividida, em vez de vários cartões */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.kpi { background: var(--surface); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .15s var(--ease); }
a.kpi:hover { background: var(--surface-2); color: inherit; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .label .ico { width: 14px; height: 14px; }
.kpi .value { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 2px; }
.kpi .value.sm { font-size: 20px; letter-spacing: -.02em; }
.kpi .value.pos { color: var(--ok); }
.kpi .foot { font-size: 12.5px; color: var(--muted); }
.kpi.alert .value { color: var(--danger-ink); }
.kpi.on { box-shadow: inset 0 -2px 0 var(--accent); }
.kpi-split { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.card > .table-wrap:first-child .table thead th:first-child, .card > .table:first-child thead th:first-child { border-top-left-radius: var(--radius-lg); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .title-cell a { font-weight: 500; }
.table .title-cell a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.table .title-cell .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.meta .mi { display: inline-flex; align-items: center; gap: 3px; }
.meta .mi .ico { width: 13px; height: 13px; }
.table td.check-col, .table th.check-col { width: 34px; padding-right: 0; }
.group-row td { background: var(--surface-2) !important; font-weight: 500; font-size: 13px; padding: 8px 12px; color: var(--ink-2); }
.table tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty .ico { width: 22px; height: 22px; color: var(--faint); display: block; margin: 0 auto 10px; }
.empty .btn { margin-top: 12px; }

/* ---------- Etiquetas e chips ---------- */
.badge { --c: #78716c; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: var(--radius-xs); white-space: nowrap; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: color-mix(in srgb, var(--c) 78%, var(--ink)); line-height: 1.6; }
.badge-green { --c: #16a34a; }
.badge-blue { --c: #2563eb; }
.badge-teal { --c: #0d9488; }
.badge-purple { --c: #7c3aed; }
.badge-amber { --c: #d97706; }
.badge-red { --c: #dc2626; }
.badge-gray { --c: #78716c; }
.bu-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.bu-badge::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--bu); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); flex: none; }
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 1px 8px 1px 7px; border-radius: var(--radius-xs); background: var(--surface-3); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.type-chip::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--c); flex: none; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 0 6px; border-radius: var(--radius-xs); color: color-mix(in srgb, var(--c) 70%, var(--ink)); background: color-mix(in srgb, var(--c) 10%, var(--surface)); line-height: 1.7; }
.prio { font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.prio::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: linear-gradient(to top, var(--p) var(--pl), var(--surface-3) var(--pl)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 40%, transparent); }
.prio-1 { --p: #a8a29e; --pl: 25%; }
.prio-2 { --p: #78716c; --pl: 50%; }
.prio-3 { --p: #d97706; --pl: 75%; }
.prio-4 { --p: #dc2626; --pl: 100%; color: var(--danger-ink); }
.due { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.due-late { color: var(--danger-ink); font-weight: 500; }
.due-today { color: var(--warn); font-weight: 500; }
.recur { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.recur .ico { width: 13px; height: 13px; }
.avatar { --h: 200; width: 24px; height: 24px; border-radius: 7px; background: hsl(var(--h) 32% var(--av-l)); color: hsl(var(--h) 38% var(--av-ink-l)); display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; letter-spacing: .01em; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; border-radius: 6px; }
.avatar.lg { width: 34px; height: 34px; font-size: 12.5px; border-radius: 9px; }
.avatars { display: inline-flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -5px; }
.who { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--c, var(--faint)); flex: none; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .fieldset > legend { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small, .fieldset small { color: var(--muted); font-size: 12.5px; }
.fieldset { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 12px 12px; margin: 0; background: var(--surface-2); }
.fieldset > legend { padding: 0 4px; }
.recur-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.recur-row > select { width: auto; min-width: 210px; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.inline-field input[type=number] { width: 70px; }
.inline-field input[type=date] { width: auto; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=time], input[type=month], input[type=search], input:not([type]), select, textarea {
    font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; width: 100%; outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); box-shadow: var(--shadow-sm);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px var(--ring); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: color-mix(in srgb, var(--danger) 60%, var(--line)); }
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 13px center, right 9px center; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; padding-right: 26px; }
select[multiple] { min-height: 100px; background-image: none; padding-right: 10px; }
input[type=color] { width: 40px; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 0; }
.form-section-title { font-size: 13.5px; color: var(--ink); font-weight: 600; margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--line-soft); margin-top: 20px; }
.cf-block { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.form-card { max-width: 860px; }
.form-card .card-body { padding: 22px 22px 18px; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 0; padding: 5px 9px; font-size: 13px; box-shadow: none; }
.filters select { padding-right: 26px; }
.filters input[name=q] { min-width: 210px; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

/* Visualizações salvas */
.views-bar { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.view-chip { display: inline-flex; align-items: center; gap: 2px; padding: 7px 4px 8px 10px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.view-chip a:hover { color: var(--ink); }
.view-chip.on { color: var(--ink); border-color: var(--accent); }
.view-chip form button { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0 4px; font-size: 15px; line-height: 1; border-radius: 4px; }
.view-chip form button:hover { color: var(--danger-ink); }
.views-bar .btn { margin-left: auto; }

/* Barra de ações em lote */
.bulk-bar { position: sticky; bottom: 16px; z-index: var(--z-bar); display: none; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: var(--bg); padding: 8px 10px 8px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); margin-top: 12px; width: fit-content; max-width: 100%; }
.bulk-bar.show { display: flex; animation: pop .18s var(--ease); }
.bulk-bar select, .bulk-bar input { width: auto; padding: 5px 26px 5px 8px; font-size: 13px; background-color: color-mix(in srgb, var(--bg) 12%, var(--ink)); color: var(--bg); border-color: transparent; box-shadow: none; }
.bulk-bar .btn { background: var(--bg); color: var(--ink); border-color: transparent; }

/* ---------- Avisos ---------- */
.flash-wrap { position: fixed; bottom: 20px; right: 20px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.alert { padding: 10px 14px 10px 12px; border-radius: var(--radius); font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow-lg); }
.alert::before { content: ""; width: 3px; align-self: stretch; border-radius: 2px; background: var(--c, var(--muted)); flex: none; }
.alert-success { --c: var(--ok); }
.alert-error { --c: var(--danger); }
.alert-info { --c: #2563eb; }
.alert-warn { --c: var(--warn); }
.flash-wrap .alert { animation: toast-in .24s var(--ease); }
.alert.leaving { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.content .alert { box-shadow: none; margin-bottom: 14px; }
.notice { padding: 12px 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); font-size: 13.5px; }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 8px 10px 10px; font-weight: 500; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; transition: color .15s var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.tabs .count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Listas de definição */
.dl { display: grid; grid-template-columns: 112px 1fr; gap: 10px 12px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; min-height: 60vh; }
.k-col { flex: 0 0 284px; background: var(--surface-3); border-radius: var(--radius-lg); display: flex; flex-direction: column; max-height: calc(100dvh - 230px); }
.k-col-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px 8px; font-weight: 600; font-size: 13px; }
.k-col-head .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.k-col-head .sum { margin-left: auto; font-size: 12.5px; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.k-list { flex: 1; overflow-y: auto; padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); transition: background .15s var(--ease); }
.k-list.over { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.k-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 11px; box-shadow: var(--shadow-sm); cursor: grab; display: block; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.k-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.k-card:active { cursor: grabbing; }
.k-card.dragging { opacity: .4; transform: rotate(1deg); }
.k-card .t { font-weight: 500; font-size: 13.5px; margin-bottom: 6px; line-height: 1.4; }
.k-card .m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.k-card .f { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 6px; }
.k-card .val { font-weight: 600; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.k-drop { flex: 0 0 150px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 500; font-size: 13px; padding: 18px; min-height: 130px; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s; }
.k-drop .ico { width: 18px; height: 18px; margin-bottom: 4px; }
.k-drop small { font-weight: 400; font-size: 12px; }
.k-drop.won.over { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.k-drop.lost.over { border-color: var(--danger); color: var(--danger-ink); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.k-drops { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Detalhe de tarefa ---------- */
.task-title { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.done-toggle { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; padding: 0; color: transparent; flex: none; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s; }
.done-toggle:hover { border-color: var(--ok); color: var(--ok); }
.done-toggle.on { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.done-toggle .ico { width: 11px; height: 11px; }
.task-title-row .done-toggle { width: 24px; height: 24px; }
.row-done .title-cell a { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li.done span { text-decoration: line-through; color: var(--muted); }
.checklist li span { flex: 1; }
.checklist .icon-btn { width: 26px; height: 26px; opacity: 0; }
.checklist li:hover .icon-btn { opacity: 1; }
.progress { height: 5px; background: var(--surface-3); border-radius: 99px; overflow: hidden; min-width: 60px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s var(--ease); }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.comment:last-of-type { border-bottom: 0; }
.comment .body { flex: 1; min-width: 0; }
.comment .head { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; display: flex; gap: 8px; align-items: center; }
.comment .head strong { color: var(--ink); font-weight: 600; }
.comment .txt { overflow-wrap: anywhere; }
.mention { color: var(--accent); font-weight: 500; }
[data-theme="dark"] .mention { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.timeline-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline-log li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.timeline-log li:last-child { border-bottom: 0; }
.timeline-log time { color: var(--muted); font-size: 12px; white-space: nowrap; min-width: 96px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.files li .ico { color: var(--muted); }
.files li a.name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.series { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.series li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.series li:last-child { border-bottom: 0; }

/* ---------- Meu trabalho ---------- */
.section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 26px 0 10px; }
.section-title:first-of-type { margin-top: 6px; }
.section-title .ico { color: var(--muted); }
.section-title .count { font-size: 13px; color: var(--muted); font-weight: 500; }
.section-title.late, .section-title.late .ico { color: var(--danger-ink); }

/* ---------- Calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cal-h { padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-h + .cal-h, .cal-d:not(:nth-child(7n+8)) { border-left: 1px solid var(--line-soft); }
.cal-d { min-height: 116px; border-bottom: 1px solid var(--line-soft); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.out { background: var(--surface-2); }
.cal-d.out .n { color: var(--faint); }
.cal-d .n { font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; padding: 0 2px 2px; font-variant-numeric: tabular-nums; }
.cal-d .n .add { opacity: 0; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.cal-d:hover .n .add { opacity: 1; }
.cal-d .n .add:hover { background: var(--hover); color: var(--ink); }
.cal-d.today .n b { background: var(--accent); color: var(--on-accent); border-radius: 6px; padding: 0 6px; }
.cal-i { display: block; font-size: 12px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 11%, var(--surface)); color: color-mix(in srgb, var(--c) 55%, var(--ink)); box-shadow: inset 2px 0 0 var(--c); transition: background .12s; }
.cal-i:hover { background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
.cal-i.done { opacity: .5; text-decoration: line-through; }
.cal-more { font-size: 12px; color: var(--muted); padding-left: 4px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; gap: 6px; align-items: center; }
.agenda-day { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-day .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda-day .d small { display: block; color: var(--muted); font-weight: 400; }
.agenda-day.today .d { color: var(--accent); }
[data-theme="dark"] .agenda-day.today .d { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.agenda-items { display: flex; flex-direction: column; gap: 6px; }
.agenda-items .cal-i { white-space: normal; font-size: 13px; padding: 6px 10px; }

/* ---------- Timeline (Gantt simplificado) ---------- */
.gantt { overflow-x: auto; }
.gantt-grid { display: grid; min-width: 900px; }
.gantt-row { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid var(--line-soft); }
.gantt-row.head { background: var(--surface-2); border-bottom-color: var(--line); }
.gantt-row .lbl { padding: 9px 12px; font-size: 13px; border-right: 1px solid var(--line-soft); min-width: 0; }
.gantt-row .lbl a { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-track { position: relative; }
.gantt-months { display: flex; height: 100%; }
.gantt-months div { flex: 1; border-right: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); padding: 9px 6px; font-weight: 500; }
.gantt-bar { position: absolute; top: 10px; height: 22px; border-radius: 5px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); box-shadow: inset 3px 0 0 var(--c); color: color-mix(in srgb, var(--c) 55%, var(--ink)); font-size: 12px; padding: 2px 8px 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--danger); opacity: .55; }

/* ---------- Barras ---------- */
.hbar { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; padding: 5px 4px; border-radius: 6px; transition: background .12s; }
.hbar:hover { background: var(--hover); color: inherit; }
.hbar .track { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--accent)); }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.vbars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.vbars .stackbar { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; background: var(--surface-3); }
.vbars .stackbar i { display: block; width: 100%; }
.vbars .b small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.c-rec { background: #3f7d5a; }
.c-one { background: #9aa8b8; }
[data-theme="dark"] .c-rec { background: #5fae7f; }
[data-theme="dark"] .c-one { background: #6c7a8a; }

/* ---------- Diálogos ---------- */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; box-shadow: var(--shadow-lg); width: min(600px, 94vw); color: var(--ink); background: var(--surface); }
dialog[open] { animation: pop .18s var(--ease); }
dialog::backdrop { background: rgba(20, 16, 8, .38); backdrop-filter: blur(2px); }
[data-theme="dark"] dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog .card-head { border-bottom: 1px solid var(--line-soft); }
dialog .dlg-body { padding: 18px; max-height: 72vh; overflow-y: auto; }
dialog.sm { width: min(440px, 94vw); }

/* ---------- Login e instalador ---------- */
.auth-body { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); background: var(--bg); }
.auth-side { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: var(--sunken) radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px) 0 0 / 18px 18px; }
.auth-side h2 { font-size: 34px; letter-spacing: -.035em; line-height: 1.1; max-width: 14ch; font-weight: 600; }
.auth-side p { color: var(--ink-2); max-width: 44ch; margin-top: 14px; font-size: 15px; }
.auth-units { display: flex; gap: 18px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.auth-units span { display: inline-flex; align-items: center; gap: 7px; }
.auth-units i { width: 8px; height: 8px; border-radius: 2px; background: var(--bu); }
.auth-main { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(380px, 100%); }
.auth-card.wide { width: min(640px, 100%); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-brand { display: flex; gap: 12px; align-items: center; }
.auth-brand strong { display: block; font-size: 14px; font-weight: 600; }
.auth-brand small { color: var(--muted); }
.auth-single { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-single .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.req-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13.5px; display: grid; gap: 5px; }
.req-list li { display: flex; gap: 8px; align-items: center; }
.req-list .ok { color: var(--ok); }
.req-list .fail { color: var(--danger-ink); font-weight: 500; }

/* Busca */
.result-group h3 { margin: 22px 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Configurações */
.settings-nav { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 76px; }
.settings-nav a { padding: 7px 10px; border-radius: var(--radius-sm); font-weight: 500; font-size: 13.5px; color: var(--ink-2); transition: background .15s var(--ease); }
.settings-nav a:hover { background: var(--hover); color: var(--ink); }
.settings-nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.lk-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.lk-row:last-child { border-bottom: 0; }
.lk-row.add { background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.lk-row form.edit { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.lk-row form.edit input[type=text] { flex: 1; min-width: 140px; width: auto; }
.lk-row form.edit select { width: auto; }
.lk-row .icon-input { width: 52px !important; flex: none !important; min-width: 0 !important; text-align: center; }
.lk-row.inactive { opacity: .55; }
.lk-tools { display: flex; gap: 0; }
.lk-tools .icon-btn { width: 28px; height: 28px; }

@media (max-width: 1100px) {
    .cols { grid-template-columns: minmax(0, 1fr); }
    .cols > aside { position: static; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .cols-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .auth-body { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}
@media (max-width: 860px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: var(--z-sidebar); transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .mobile-only { display: grid; }
    .topbar { padding: 10px 12px; flex-wrap: wrap; }
    .search { order: 5; max-width: none; flex-basis: 100%; }
    .search kbd { display: none; }
    .content { padding: 18px 14px 48px; }
    .grid-2, .grid-3, .grid-4, .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .main { overflow-x: clip; }
    .page-head .actions { width: 100%; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
    .span-2 { grid-column: auto; }
    .dl { grid-template-columns: 104px 1fr; }
    .cal-d { min-height: 78px; }
    .bu-switch { overflow-x: auto; max-width: calc(100vw - 150px); }
    .topbar .btn-primary { display: none; }
    h1 { font-size: 21px; }
    .kpi { padding: 12px; }
    .kpi .value { font-size: 21px; }
    .kpi .value.sm { font-size: 16px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .sidebar, .topbar, .actions, .filters, .bulk-bar, .views-bar { display: none !important; }
    .content { padding: 0; }
}

.bu-switch::-webkit-scrollbar { display: none; }
