/*
 * Painel Vero Norte — tema claro.
 *
 * PALETA: as cores nomeadas vêm do manual de marca da Vero Norte. O painel usa Branco Polar
 * como fundo e Azul Horizonte / Azul Corrente como acento; Terracota Norte é reservada a
 * alerta e piora de métrica — nunca a decoração. Não há verde na marca, então "melhorou" é
 * azul e "piorou" é terracota. Isso é decisão de identidade, não economia de paleta.
 *
 * TIPOGRAFIA: IBM Plex Sans, títulos em peso 500 (nunca 700), tracking levemente negativo,
 * razão título:corpo perto de 4:1. O manual descreve a fonte como "técnica, estruturada,
 * clara" — tipografia monumental está fora, mesmo em dashboard.
 */

:root {
  /*
   * PALETA DO MANUAL, completa. Cada cor tem UMA função no painel — a paleta é ampla, mas
   * cor aqui é informação, não decoração: se duas coisas diferentes usarem o mesmo azul, a
   * tela deixa de comunicar e passa a só enfeitar.
   */
  --abissal: #050F1E;    /* texto principal */
  --profundo: #182752;   /* títulos de gráfico, texto sobre fundo claro de destaque */
  --horizonte: #5696FB;  /* acento vivo: barras, Meta Ads, seleção */
  --corrente: #1B43BF;   /* acento de texto e ação (contraste em fundo branco) */
  --marinho: #264B66;    /* segunda série de dado, Google Ads */
  --atlantico: #26364D;  /* texto secundário escuro */
  --ceu: #B0E9FD;        /* realce suave, fundo de KPI principal */
  --terracota: #CC553D;  /* alerta, piora de métrica, dia sem trabalho */
  --areia: #EADBBE;      /* data comercial (calor de varejo, fora da família azul) */
  --neblina: #DEE5ED;    /* divisórias */
  --costeiro: #9CB2BF;   /* texto apagado, estado vazio */
  --polar: #FFFFFF;

  /* semântica de tela */
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-sunken: #EFF4FA;
  --border: #DEE5ED;
  --border-strong: #C9D6E4;
  --text: #050F1E;
  --text-2: #3B4E63;
  --text-muted: #6E8298;
  --accent: #1B43BF;
  --accent-bright: #5696FB;
  --accent-soft: #EBF2FE;
  --accent-2: #264B66;         /* Azul Marinho: a segunda plataforma / segunda série */
  --accent-2-soft: #E7EEF3;
  --ceu-soft: #EEFAFE;         /* Azul Céu diluído: fundo do KPI principal */
  --warn: #CC553D;
  --warn-soft: #FAEDE9;
  --areia-soft: #FBF4E8;       /* Areia Clara diluída: fundo de data comercial */
  --areia-line: #DFC79B;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(5, 15, 30, 0.04), 0 6px 18px rgba(5, 15, 30, 0.05);
  --shadow-sm: 0 1px 2px rgba(5, 15, 30, 0.05);

  --fs-body: 14.5px;
  --sidebar-w: 236px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.016em; margin: 0; line-height: 1.18; }
h1 { font-size: 25px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.muted { color: var(--text-muted); }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }

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

.side {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-brand { padding: 22px 20px 18px; border-bottom: 1px solid var(--border); }
.side-brand img { width: 118px; height: auto; display: block; }
.side-brand span { display: block; margin-top: 7px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.side-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.side-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px; text-decoration: none;
}
.side-nav a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.side-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.side-nav a svg { width: 17px; height: 17px; flex: 0 0 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.side-nav .nav-sep { margin: 12px 11px 6px; font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--costeiro); }
.side-foot { padding: 12px; border-top: 1px solid var(--border); }
.side-user { display: flex; align-items: center; gap: 9px; padding: 6px 4px; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who strong { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { display: block; font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar .title { min-width: 0; flex: 1; }
.topbar .title h1 { overflow: hidden; text-overflow: ellipsis; }
.topbar .title p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.content { padding: 20px 24px 56px; max-width: 1560px; width: 100%; }
/* seletor com a classe do pai: `.btn` é declarado depois e ganharia de um `.burger` solto */
.topbar .burger { display: none; }

/* ---------- controles ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font-size: 13.5px; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--bg-sunken); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.btn-primary:hover { background: #163AA6; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--warn); border-color: #E7C4BA; }
.btn-danger:hover { background: var(--warn-soft); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn {
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: var(--radius-sm); font-size: 20px; line-height: 1;
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); }

.segmented { display: inline-flex; background: var(--bg-sunken); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  padding: 6px 11px; border-radius: 5px; font-size: 13px; white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--bg); color: var(--accent); font-weight: 500; box-shadow: var(--shadow-sm); }

.input, select.input, textarea.input {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 14px;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: 2px solid var(--accent-soft); outline-offset: 0; border-color: var(--accent-bright);
}
.field { margin-bottom: 13px; }
.field > label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- cards / KPIs ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.card-head h2 { flex: 1; min-width: 140px; }
.card-sub { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--text-muted); }
.card-body { padding: 16px; }
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/*
 * As divisórias são BORDA DE CADA CÉLULA, não gap sobre um fundo cinza. Com gap, a última
 * linha incompleta (7 KPIs em 6 colunas) deixava um retângulo cinza vazio ocupando meia tela.
 * As margens negativas escondem a borda de cima da primeira linha e a da direita da última
 * coluna por baixo da borda do próprio card.
 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); margin: -1px -1px 0 0; }
.kpi {
  background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  border-top: 1px solid var(--border); border-right: 1px solid var(--border);
}
.kpi-label { font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.kpi-value { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; }
.kpi-delta { font-size: 12.5px; }
.kpi-hint { font-size: 11.5px; color: var(--text-muted); }
/* o KPI principal usa Azul Céu diluído — separa o número que ancora a tela dos demais sem
   precisar de borda, tamanho maior ou peso extra */
.kpi.kpi-hero { background: var(--ceu-soft); box-shadow: inset 3px 0 0 var(--horizonte); }
.kpi.kpi-hero .kpi-value { color: var(--profundo); }

.delta { font-variant-numeric: tabular-nums; }
.delta-up { color: var(--accent); }
.delta-down { color: var(--warn); }
.delta-flat, .delta-none { color: var(--text-muted); }

/* ---------- pills ---------- */
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: var(--bg-sunken); color: var(--text-2);
}
.pill-on { background: var(--accent-soft); color: var(--accent); }
.pill-off { background: var(--bg-sunken); color: var(--text-muted); }
.pill-mute { background: transparent; color: var(--costeiro); border: 1px solid var(--border); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--warn); color: #fff; }
/* As duas plataformas ganham cores distintas da paleta (Azul Horizonte × Azul Marinho): numa
   tabela que mistura Meta e Google, a cor é o que deixa ler a linha sem soletrar o rótulo. */
.pill-plat { border: 1px solid var(--border); background: var(--bg); }
.pill-meta { color: var(--corrente); border-color: #C6DAFD; background: var(--accent-soft); }
.pill-google { color: var(--marinho); border-color: #C9D8E2; background: var(--accent-2-soft); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl thead th {
  position: sticky; top: 0; background: var(--bg-soft); z-index: 1;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; border-bottom: 1px solid var(--border-strong);
}
.tbl thead th.sortable { cursor: pointer; user-select: none; }
.tbl thead th.sortable:hover { color: var(--text); }
.tbl thead th.sorted { color: var(--accent); }
.tbl thead th.sorted::after { content: ' ▾'; }
.tbl thead th.sorted.asc::after { content: ' ▴'; }
.tbl tbody tr:hover { background: var(--bg-soft); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl td.ta-r, .tbl th.ta-r { text-align: right; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.cell-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-name strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.cell-name span { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.cell-tags { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.linkish { color: var(--accent); cursor: pointer; }
.linkish:hover { text-decoration: underline; }

/* ---------- criativos ---------- */
.thumb {
  width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: cover;
  background: var(--bg-sunken); border: 1px solid var(--border); flex: 0 0 46px; display: block;
}
.thumb-ph {
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex: 0 0 46px;
  background: var(--bg-sunken); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--costeiro); font-size: 15px;
}
.ad-cell { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 16px; }
.creative {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column;
}
.creative-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-sunken); display: block; }
.creative-ph { width: 100%; aspect-ratio: 1/1; background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; color: var(--costeiro); font-size: 12px; }
.creative-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.creative-body h3 { font-size: 13px; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.creative-body .copy { font-size: 12px; color: var(--text-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap; }
.creative-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; border-top: 1px solid var(--border); padding: 9px 12px; }
.creative-stats b { font-weight: 500; }

/* ---------- gráficos ---------- */
.chart-mount { padding: 8px 14px 14px; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--text-muted); font-size: 11px; }
.chart .axis-alt { fill: var(--accent); }
.chart .bar { fill: var(--accent-bright); opacity: .82; }
.chart .bar:hover { opacity: 1; }
/* gasto em Azul Horizonte, conversões em Azul Marinho: duas cores da mesma família, distantes
   o bastante em luminosidade pra funcionar também impressas em preto e branco */
.chart .line { fill: none; stroke: var(--marinho); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-legend { display: flex; gap: 16px; padding: 0 14px 4px; font-size: 12px; color: var(--text-muted); }
.lg::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.lg-bar::before { background: var(--accent-bright); }
.lg-line::before { background: var(--marinho); border-radius: 50%; }

.barsh { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.barh-row { display: grid; grid-template-columns: 132px 1fr 96px; gap: 10px; align-items: center; font-size: 13px; }
.barh-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.barh-track { background: var(--bg-sunken); border-radius: 999px; height: 9px; overflow: hidden; }
.barh-fill { display: block; height: 100%; background: var(--accent-bright); border-radius: 999px; }
.barh-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

.pacing { padding: 2px 0 0; }
.pacing-track { position: relative; height: 8px; border-radius: 999px; background: var(--bg-sunken); overflow: visible; }
.pacing-fill { height: 100%; border-radius: 999px; background: var(--accent-bright); }
.pacing-fill.over { background: var(--warn); }
.pacing-mark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--profundo); border-radius: 1px; }
.pacing-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; margin-top: 6px; color: var(--text-2); flex-wrap: wrap; }

/* ---------- calendário ---------- */
/*
 * Duas famílias de cor, de propósito: azul é a marca e a operação (hoje, seleção), terracota é
 * "não se trabalha" e areia é data comercial. Data comercial FORA da família azul porque ela
 * não é folga nem alerta — é varejo, e precisa ser distinguível de relance no meio do ano.
 */
.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px; padding: 16px; }
.cal-month h3 { font-size: 13px; font-weight: 500; color: var(--profundo); margin-bottom: 7px; letter-spacing: -0.01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { margin-bottom: 3px; }
.cal-dow span { text-align: center; font-size: 10.5px; color: var(--costeiro); text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; border-radius: 5px; color: var(--text-2);
  font-variant-numeric: tabular-nums; background: var(--bg-soft);
}
.cal-blank { background: transparent; }
.cal-fds { color: var(--costeiro); background: transparent; }
.cal-off { background: var(--warn-soft); color: #A8462F; font-weight: 500; }
.cal-com { background: var(--areia-soft); color: #8A6A33; font-weight: 500; box-shadow: inset 0 -2px 0 var(--areia-line); }
/* um dia pode ser as duas coisas (25/12): a folga manda no fundo, o varejo fica na base */
.cal-off.cal-com { background: var(--warn-soft); box-shadow: inset 0 -2px 0 var(--areia-line); }
.cal-hoje { outline: 2px solid var(--horizonte); outline-offset: -2px; color: var(--corrente); font-weight: 600; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; }
.cal-legend .lg-off { background: var(--warn-soft); box-shadow: inset 0 0 0 1px #E7C4BA; }
.cal-legend .lg-com { background: var(--areia-soft); box-shadow: inset 0 0 0 1px var(--areia-line); }
.cal-legend .lg-fds { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.cal-legend .lg-hoje { background: var(--bg); box-shadow: inset 0 0 0 2px var(--horizonte); }

/* ---------- estados ---------- */
.empty { padding: 34px 20px; text-align: center; color: var(--text-muted); }
.empty p { margin: 0 0 12px; }
.errbox { padding: 16px; background: var(--warn-soft); border-radius: var(--radius-sm); margin: 16px; color: #8E3A26; }
.errbox p { margin: 0 0 10px; }
.skel { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.skel-row { height: 38px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--bg-sunken) 25%, #F7FAFE 50%, var(--bg-sunken) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.notice {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--accent-soft); color: var(--profundo); margin-bottom: 16px;
}
.notice.warn { background: var(--warn-soft); color: #8E3A26; }
.notice b { font-weight: 500; }

/* ---------- toast / modal ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--abissal); color: #fff; padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 13.5px; box-shadow: var(--shadow); max-width: 380px; animation: tin .18s ease-out;
}
.toast-err { background: var(--warn); }
.toast.out { opacity: 0; transition: opacity .25s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

.overlay {
  position: fixed; inset: 0; background: rgba(5, 15, 30, 0.42); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 560px;
  max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(5, 15, 30, .22);
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-text { margin: 0; color: var(--text-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 18px; border-top: 1px solid var(--border); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-soft); }
.login {
  width: 100%; max-width: 380px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px;
}
.login img { width: 128px; height: auto; display: block; margin: 0 auto 6px; }
.login .sub { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 22px; }
.login .err { background: var(--warn-soft); color: #8E3A26; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 13px; }
.login .btn { width: 100%; justify-content: center; margin-top: 6px; }
.login .alt { text-align: center; margin: 14px 0 0; font-size: 12.5px; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; height: 100vh;
    transform: translateX(-100%); transition: transform .18s ease-out; box-shadow: var(--shadow);
  }
  .side.open { transform: none; }
  .topbar .burger { display: inline-flex; }
  .content { padding: 16px 14px 48px; }
  .topbar { padding: 12px 14px; }
  .scrim { position: fixed; inset: 0; background: rgba(5, 15, 30, .3); z-index: 90; }
  .barh-row { grid-template-columns: 100px 1fr 80px; }
}
