:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --text: #1c1b19;
  --muted: #6b6760;
  --border: #e3e0d9;
  --accent: #ea580c;
  --accent-ink: #ffffff;
  --pos: #15803d;
  --neg: #b91c1c;
  --shopee: #ee4d2d;
  --shopee-bg: #fde8e3;
  --ml: #2d3277;
  --ml-bg: #fff6b3;
  --bar-sale: #fdba74;
  --bar-profit: #ea580c;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 2px 8px rgb(0 0 0 / 0.04);
  --side-w: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1d1c19;
    --surface-2: #26241f;
    --text: #efece6;
    --muted: #a19c93;
    --border: #34312b;
    --accent: #fb923c;
    --accent-ink: #1c1206;
    --pos: #4ade80;
    --neg: #f87171;
    --shopee: #ff7a5c;
    --shopee-bg: #3a1d16;
    --ml: #fff159;
    --ml-bg: #2f2c12;
    --bar-sale: #7c4a24;
    --bar-profit: #fb923c;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin-bottom: 0.9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
h2 .more { margin-left: auto; font-size: 0.82rem; font-weight: 500; color: var(--muted); text-decoration: none; }
h2 .more:hover { color: var(--accent); }
h3 { font-size: 0.95rem; margin-top: 0.5rem; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }

/* ---------- casca: barra lateral + conteúdo ---------- */

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 1rem;
  background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 0 0.5rem; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; display: inline-block; background: var(--accent) url("/favicon.svg") center / cover; flex: none; }
.brand-mark.big { width: 48px; height: 48px; border-radius: 12px; }
.side nav { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0 0.6rem 0.3rem; font-weight: 600; }
.side nav a { text-decoration: none; padding: 0.45rem 0.6rem; border-radius: 8px; color: var(--muted); font-weight: 500; }
.side nav a:hover { color: var(--text); background: var(--surface-2); }
.side nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
.side-cta { justify-content: center; }
.logout { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0; padding: 0 0.25rem; }
.who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page { padding: 1.5rem 2rem 3rem; max-width: 1280px; width: 100%; min-width: 0; }
.page.narrow { max-width: 420px; margin: 0 auto; padding-top: 12vh; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.page-title { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.page-title p { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; min-width: 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 1.25rem; }
.grid-2 > *, .grid-3 > *, .kpis > *, .with-aside > *, .kanban > *, .spools > * { min-width: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.big-num { font-size: 1.7rem; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }

/* ---------- botões ---------- */

button, .button {
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.95rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap;
}
button:hover, .button:hover { background: var(--surface-2); }
button:disabled { opacity: 0.45; cursor: default; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.danger { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, var(--border)); }
button.small, .button.small { padding: 0.3rem 0.65rem; font-size: 0.82rem; }
button.link { border: 0; background: none; color: var(--muted); padding: 0.35rem 0.5rem; }
button.link:hover { color: var(--text); }
.button.block { display: flex; justify-content: center; width: 100%; padding: 0.75rem 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- formulários ---------- */

label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 500; }
label.check input { width: auto; accent-color: var(--accent); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; max-width: 760px; }
.form-grid.wide { max-width: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 1rem; }
.span-2 { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.platform-pick { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.platform-pick legend { width: 100%; }
.pill {
  flex-direction: row; align-items: center; gap: 0.5rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.95rem;
}
.pill input { width: auto; accent-color: var(--accent); }
.pill:has(input:checked).shopee { background: var(--shopee-bg); border-color: var(--shopee); }
.pill:has(input:checked).mercadolivre { background: var(--ml-bg); border-color: var(--ml); }
.ml-only { display: none; }
#order-form.is-ml .ml-only { display: flex; }
.ml-only select { width: auto; padding: 0.2rem 0.4rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; padding: 1rem; }
.filters label { min-width: 150px; }
.filters .grow { flex: 1; min-width: 200px; }
.danger-zone { max-width: 760px; display: flex; justify-content: flex-end; }
.drop input[type=file] { padding: 1.2rem; border-style: dashed; background: var(--surface); cursor: pointer; }
details.card > summary { cursor: pointer; }
table.tiers input { min-width: 6rem; }

.with-aside { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.with-aside > .card { margin-bottom: 0; }
.preview { position: sticky; top: 1rem; }
.preview dl, dl.mini { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 0 0 0.75rem; font-variant-numeric: tabular-nums; }
.preview dt, dl.mini dt { color: var(--muted); }
.preview dd, dl.mini dd { margin: 0; text-align: right; }
.preview .total { font-weight: 700; font-size: 1.1rem; color: var(--text); border-top: 1px solid var(--border); padding-top: 0.4rem; }
dl.mini { font-size: 0.85rem; margin-top: 0.6rem; }

.flash { padding: 0.7rem 1rem; border-radius: 8px; margin: 0 0 1rem; background: color-mix(in srgb, var(--pos) 14%, var(--surface)); }
.flash.err { background: color-mix(in srgb, var(--neg) 14%, var(--surface)); }
.flash.warn { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); margin-top: 0.75rem; }
.flash ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* ---------- login ---------- */

.login { padding: 2rem; }
.login-head { text-align: center; margin-bottom: 1.5rem; }
.login-head h1 { margin-top: 0.75rem; }
.login-head p { margin: 0.25rem 0 0; }

/* ---------- alertas, KPIs, projeção ---------- */

.alerts { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.alert { display: block; padding: 0.7rem 1rem; border-radius: 10px; text-decoration: none; border: 1px solid var(--border); background: var(--surface); overflow-wrap: anywhere; }
.alert:hover { border-color: var(--accent); }
.alert.late { border-color: color-mix(in srgb, var(--neg) 50%, var(--border)); background: color-mix(in srgb, var(--neg) 10%, var(--surface)); }
.alert.low { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi {
  display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem;
}
a.kpi:hover { border-color: var(--accent); }
.kpi span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.kpi strong { font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }

.outlook-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); }
.outlook-main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 320px; }
.outlook-main strong { font-size: 1.15rem; }
.outlook-goal { flex: 1 1 260px; display: flex; flex-direction: column; gap: 0.35rem; }
.outlook-strip .button { margin-left: auto; }

.trend { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.trend.up { background: color-mix(in srgb, var(--pos) 16%, var(--surface)); color: var(--pos); }
.trend.down { background: color-mix(in srgb, var(--neg) 16%, var(--surface)); color: var(--neg); }

.month-nav { display: flex; align-items: center; gap: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem; }
.month-nav span { padding: 0 0.6rem; font-weight: 600; min-width: 10rem; text-align: center; display: inline-block; }
.month-nav span::first-letter { text-transform: uppercase; }
.month-nav a { text-decoration: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 999px; font-size: 1.2rem; }
.month-nav a:hover { background: var(--surface-2); }

/* ---------- tabelas ---------- */

.table-wrap { overflow-x: auto; margin: 0 -0.25rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
thead th a { text-decoration: none; }
tbody th { font-weight: 500; color: var(--muted); }
.num { text-align: right; white-space: nowrap; }
tr.total th, tr.total td { font-weight: 700; color: var(--text); }
tfoot th, tfoot td { font-weight: 700; border-bottom: 0; }
tr.cancelled td { opacity: 0.5; }
tr.cancelled td:first-child a { text-decoration: line-through; }
table td a { text-decoration: none; }
table td a:hover { text-decoration: underline; }
table.velocity td { vertical-align: middle; }

.badge, .status, .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.12rem 0.55rem; border-radius: 999px; white-space: nowrap; text-decoration: none;
}
.badge.shopee { background: var(--shopee-bg); color: var(--shopee); }
.badge.mercadolivre { background: var(--ml-bg); color: var(--ml); }
.status { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.status.a_imprimir { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); }
.status.imprimindo { background: color-mix(in srgb, #2563eb 16%, var(--surface)); color: #3b82f6; }
.status.pronto { background: color-mix(in srgb, #7c3aed 16%, var(--surface)); color: #8b5cf6; }
.status.entregue { background: color-mix(in srgb, var(--pos) 16%, var(--surface)); color: var(--pos); }
.status.cancelado { text-decoration: line-through; }
.tag { font-size: 0.7rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 4px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.tag.warn { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.tag.ok { background: color-mix(in srgb, var(--pos) 16%, var(--surface)); color: var(--pos); }
a.tag:hover { text-decoration: underline; }

/* ---------- gráficos ---------- */

.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 200px; padding-top: 0.5rem; }
.bar-col { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 0.4rem; height: 100%; min-width: 0; }
.bar-pair { height: 100%; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar { width: min(22px, 40%); height: var(--h, 0%); min-height: 2px; border-radius: 4px 4px 0 0; }
.bar.sale, .dot.sale { background: var(--bar-sale); }
.bar.profit, .dot.profit { background: var(--bar-profit); }
.bar.dashed, .dot.dashed { background: transparent; border: 2px dashed var(--bar-profit); min-height: 4px; }
.bar-col a, .bar-col span { font-size: 0.78rem; color: var(--muted); text-decoration: none; text-transform: capitalize; text-align: center; line-height: 1.1; }
.bar-col a.current { color: var(--text); font-weight: 700; }
.bar-col.proj span small { display: block; font-size: 0.65rem; text-transform: none; }
.legend { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 0.5rem; }

.spark { display: block; max-width: 100%; height: auto; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mini-months { display: flex; justify-content: space-between; gap: 0.25rem; margin: 0.5rem 0; }
.mini-months a { display: flex; flex-direction: column; align-items: center; text-decoration: none; font-size: 0.75rem; color: var(--muted); text-transform: capitalize; flex: 1; padding: 0.2rem; border-radius: 6px; }
.mini-months a:hover { background: var(--surface-2); }
.mini-months strong { color: var(--text); font-size: 0.9rem; }

.platform-trends { display: flex; flex-direction: column; gap: 1rem; }
.platform-trend { display: flex; flex-direction: column; gap: 0.3rem; }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; align-items: end; }
.weekday { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.wbar { height: 90px; width: 100%; display: flex; align-items: flex-end; }
.wbar span { display: block; width: 100%; height: var(--h, 0%); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--bar-sale); }

.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: inherit; }
.meter.goal span { background: var(--pos); }

/* ---------- precificação ---------- */

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0.9rem; }
.price-card { border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; background: var(--bg); }
.price-card.shopee { border-top: 3px solid var(--shopee); }
.price-card.mercadolivre { border-top: 3px solid var(--ml); }
.big-price { font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 0.4rem; }

/* ---------- produção / estoque ---------- */

.stock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.stock-form { display: flex; gap: 0.4rem; }
.stock-form button { padding: 0.4rem 0.7rem; }

/* ---------- fila ---------- */

.due { font-size: 0.75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.due.soon { color: var(--accent); }
.due.today, .due.late { color: var(--neg); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.lane { background: var(--surface-2); border-radius: var(--radius); padding: 0.9rem; min-height: 200px; }
.lane h2 { display: flex; align-items: center; justify-content: space-between; font-size: 0.95rem; }
.count { font-size: 0.8rem; background: var(--surface); border-radius: 999px; padding: 0.05rem 0.55rem; color: var(--muted); }
.ticket {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem;
  margin-bottom: 0.65rem; display: flex; flex-direction: column; gap: 0.35rem; box-shadow: var(--shadow);
}
.ticket.is-late { border-color: color-mix(in srgb, var(--neg) 55%, var(--border)); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.ticket-title { font-weight: 650; text-decoration: none; }
.ticket-title:hover { text-decoration: underline; }
.ticket-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ticket-tags:empty { display: none; }
.ticket form { margin-top: 0.25rem; }
.note { margin: 0; padding: 0.35rem 0.5rem; background: var(--surface-2); border-radius: 6px; }
.empty { text-align: center; padding: 1.5rem 0; }

/* ---------- filamentos ---------- */

.spools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.spool { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.spool p { margin: 0; }
.spool.low { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.spool.low .meter span { background: var(--neg); }
.spool.archived { opacity: 0.55; }
.spool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.spool-head a { text-decoration: none; }
.spool-nums { display: flex; align-items: baseline; gap: 0.5rem; }
.spool-nums strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.sources { margin-top: 1rem; }

/* ---------- lançamentos ---------- */

form.inline { display: inline; margin: 0; }
.lead { font-size: 1.05rem; margin: 0 0 1rem; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.idea { border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; background: var(--bg); display: flex; flex-direction: column; gap: 0.4rem; }
.idea h3 { margin: 0; font-size: 1rem; }
.idea p { margin: 0; }
.idea .actions { margin-top: 0.3rem; }
.idea dl.mini { margin: 0; }
.idea-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.prio { font-size: 0.75rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.idea.p5 { border-color: var(--accent); } .idea.p5 .prio, .idea.p4 .prio { background: var(--accent); color: var(--accent-ink); }
.ai-plan { border-left: 4px solid var(--accent); }
.ai-plan h3 { margin: 0.75rem 0 0.4rem; }
.ai-plan ul, .ai-plan ol { margin: 0; padding-left: 1.2rem; }
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 0.9rem; }
.date-card { border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.9rem; background: var(--bg); display: flex; flex-direction: column; gap: 0.3rem; }
.date-card.urgent { border-color: color-mix(in srgb, var(--neg) 55%, var(--border)); }
.date-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.date-card ul { margin-top: 0.2rem; }
code { font-size: 0.85em; background: var(--surface-2); padding: 0.05rem 0.35rem; border-radius: 4px; }

/* ---------- telas menores ---------- */

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: sticky; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
    padding: 0.6rem 1rem; border-right: 0; border-bottom: 1px solid var(--border); z-index: 10;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  }
  .brand { padding: 0; margin-right: auto; }
  .side nav { order: 3; flex-basis: 100%; flex-direction: row; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
  .nav-group { flex-direction: row; gap: 0.25rem; }
  .nav-group + .nav-group::before { content: ""; width: 1px; background: var(--border); margin: 0.3rem 0.35rem; }
  .nav-title { display: none; }
  .side nav a { padding: 0.35rem 0.7rem; border-radius: 999px; white-space: nowrap; }
  .side nav a[aria-current="page"] { box-shadow: none; }
  .side-cta { display: none; }
  .who { display: none; }
  .page { padding: 1.25rem 1rem 3rem; }
  .with-aside { grid-template-columns: 1fr; }
  .preview { position: static; }
  .kanban { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .month-nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .month-nav span { min-width: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .kpi { padding: 0.85rem 1rem; }
  .kpi strong { font-size: 1.35rem; }
  .kpi small { font-size: 0.75rem; }
  .page-actions { width: 100%; }
}
