/* Layout: app de celular, uma coluna (máx. 720px), barra de abas fixa embaixo; no desktop as abas sobem para o topo. */
:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --ink: #18170f;
  --muted: #67645a;
  --line: #e3e0d4;
  --accent: #f2c200;        /* amarelo da marca */
  --accent-ink: #18170f;    /* texto sobre o amarelo */
  --accent-soft: #fff4c2;
  --ok: #1f7a47;  --ok-soft: #e3f4ea;
  --warn: #9a5b00; --warn-soft: #fdf0d9;
  --bad: #b3261e;  --bad-soft: #fbe4e2;
  --info: #285a9e; --info-soft: #e5edf9;
  --shadow: 0 1px 2px rgba(24, 23, 15, .06), 0 8px 24px rgba(24, 23, 15, .06);
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121210; --surface: #1c1b17; --ink: #f2f0e6; --muted: #a29f92; --line: #2f2d26;
  --accent: #f5c518; --accent-ink: #141309; --accent-soft: #3a3110;
  --ok: #6fd39b; --ok-soft: #173325; --warn: #f0b456; --warn-soft: #3a2a10;
  --bad: #ff8a80; --bad-soft: #3d1917; --info: #8db7f2; --info-soft: #182a42;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #121210; --surface: #1c1b17; --ink: #f2f0e6; --muted: #a29f92; --line: #2f2d26;
  --accent: #f5c518; --accent-ink: #141309; --accent-soft: #3a3110;
  --ok: #6fd39b; --ok-soft: #173325; --warn: #f0b456; --warn-soft: #3a2a10;
  --bad: #ff8a80; --bad-soft: #3d1917; --info: #8db7f2; --info-soft: #182a42;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.shell { max-width: 720px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.logo-box { background: #fff; border-radius: 14px; padding: 8px; display: grid; place-items: center; }
.logo-box img { width: min(240px, 70%); height: auto; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; }
@media (max-width: 420px) { .who .chip { display: none; } }
/* Abas no topo (fixas ao rolar): o selo que a hospedagem coloca no canto de baixo não cobre mais os ícones.
   O fim da página tem uma folga para o selo não cobrir o último botão. */
main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: flex; justify-content: center; padding: 4px 6px; }
.tabs-in { display: flex; gap: 4px; width: 100%; max-width: 720px; }
.tab { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 4px; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.tab .badge { position: absolute; transform: translate(12px, -4px); }
.tab-ico { position: relative; display: inline-flex; }
@media (min-width: 900px) {
  main { padding-bottom: 72px; }
  .tab { flex-direction: row; justify-content: center; gap: 8px; font-size: .85rem; }
  .tab svg { width: 18px; height: 18px; }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.btn { border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(.96); border-color: var(--accent); }
.btn-danger { color: var(--bad); }
.btn-ok { color: var(--ok); }
.btn-ghost { background: none; border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600;
  background: var(--line); color: var(--ink); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.plain::before { display: none; }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-grid; place-items: center; padding: 0 5px; }

/* Bater ponto */
.clock-card { display: grid; gap: 14px; }
.clock { font-family: var(--f-mono); font-weight: 700; font-size: clamp(2.6rem, 13vw, 4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock small { font-size: .45em; color: var(--muted); font-weight: 500; }
.punch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.punch { position: relative; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px 14px; text-align: left; cursor: pointer;
  display: grid; gap: 6px; min-height: 92px; }
.punch:hover { border-color: var(--muted); }
.punch strong { font-family: var(--f-display); font-size: 1.05rem; }
.punch .ico { width: 26px; height: 26px; }
.punch.next { border-color: var(--accent); background: var(--accent-soft); }
.punch.next::after { content: "Próxima"; position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 2px 6px; }
.punch[disabled] { opacity: .6; cursor: progress; }
.geo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); }
.geo svg { flex: none; width: 20px; height: 20px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.switch input { width: 44px; height: 26px; appearance: none; background: var(--line); border-radius: 13px; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-time { font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Listas */
.list { display: grid; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 4px; border-top: 1px solid var(--line); align-items: center; }
.li:first-child { border-top: 0; }
.li-btn { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.li-btn:hover { background: var(--bg); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; }
.cal-d { min-height: 58px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 4px 5px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; }
.cal-d:hover { border-color: var(--muted); }
.cal-d.fora { visibility: hidden; }
.cal-d.folga { background: var(--bg); }
.cal-d.feriado { border-color: var(--warn); border-width: 2px; }
.cal-d.hoje { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-n { font-size: .75rem; font-weight: 700; }
.cal-t { font-size: .68rem; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.esc-hoje { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.esc-hoje svg { width: 18px; height: 18px; flex: none; }
.li-title { font-weight: 600; }
.li-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.day-head { padding: 14px 4px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search { flex: 1; min-width: 180px; }

/* Formulários */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .85rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
.field .err { font-weight: 500; color: var(--bad); font-size: .78rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.invalid { border-color: var(--bad) !important; }

/* Painel (sheet) */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(10, 10, 6, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 640px; max-height: 92%; overflow: auto; border-radius: 20px 20px 0 0;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: grid; gap: 16px; animation: up .2s ease-out; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }

/* Comprovante */
.foto-box { border: 1px dashed var(--line); border-radius: 12px; min-height: 180px; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.foto-box img { width: 100%; max-height: 46vh; object-fit: cover; display: block; }
.foto-mini { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.file-btn { position: relative; overflow: hidden; }
.file-btn svg, .foto-box svg, [data-ver-foto] svg, #novo-atestado svg, #ver-calendario svg, #ajustar-jornadas svg, #gerar-escala svg, [data-atestado-para] svg { width: 18px; height: 18px; vertical-align: -3px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.receipt-top { background: var(--accent); color: var(--accent-ink); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.receipt-top b { font-family: var(--f-display); }
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; padding: 14px; }
.receipt dt { color: var(--muted); font-size: .82rem; }
.receipt dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hash { font-family: var(--f-mono); font-size: .78rem; line-height: 1.6; word-break: break-all; background: var(--bg); padding: 10px 12px; border-radius: 8px; }
.receipt-foot { border-top: 1px dashed var(--line); padding: 10px 14px; font-size: .78rem; color: var(--muted); }

.callout { border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.callout.info { background: var(--info-soft); color: var(--info); }
.callout.bad { background: var(--bad-soft); color: var(--bad); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* Login */
.login { min-height: 100%; display: grid; place-items: center; padding-block: 24px; }
.login .card { width: 100%; max-width: 420px; display: grid; gap: 18px; padding: 22px; }
.persona { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.persona:hover { border-color: var(--accent); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-family: var(--f-display); }
.demo-bar { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; font-size: .85rem; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); display: grid; gap: 6px; }
.saldo { font-family: var(--f-display); font-size: 2.2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.saldo.pos { color: var(--ok); } .saldo.neg { color: var(--bad); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.num.pos { color: var(--ok); } .num.neg { color: var(--bad); }
.motivos { display: grid; gap: 8px; }
.motivo { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.motivo:hover { border-color: var(--ink); }
.motivo .grow { min-width: 0; }
.dias { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dias th { text-align: left; font-weight: 600; color: var(--muted); font-size: .75rem; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.dias td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dias td.r, .dias th.r { text-align: right; }
.table-wrap { overflow-x: auto; margin-inline: -4px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi b { font-family: var(--f-display); font-size: 1.4rem; display: block; }

/* Marcação: botão principal, câmera, estados */
.punch-main { width: 100%; min-height: 64px; border-radius: 14px; font-size: 1.1rem; font-family: var(--f-display); font-weight: 700; }
.punch-main svg { width: 24px; height: 24px; }
.punch-grid.secundario .punch { min-height: 64px; padding: 12px; }
.ultima { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.cam { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam video.espelhado { transform: scaleX(-1); }
.passo { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.passo svg { width: 22px; height: 22px; margin-top: 2px; }
.passo.ok { border-color: var(--ok); background: var(--ok-soft); }
.passo.ok svg { color: var(--ok); }
.passo.erro { border-color: var(--warn); background: var(--warn-soft); }
.net { border-radius: 12px; padding: 10px 12px; font-size: .88rem; background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); }
.carregando { min-height: 60vh; display: grid; place-items: center; gap: 10px; color: var(--muted); text-align: center; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: gira .8s linear infinite; margin: 0 auto 8px; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .78rem; color: var(--muted); }
.vinculo { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .85rem; }
.vinculo select { min-height: 40px; }
.info-tag { font-size: .72rem; font-weight: 600; color: var(--info); background: var(--info-soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* ---------- Espelho de ponto ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.esp-cab { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.esp-cab > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.espelho { min-width: 620px; }
.espelho tr.hoje td { background: var(--accent-soft); }
.espelho tfoot th { color: var(--ink); border-top: 2px solid var(--line); padding-top: 8px; }
.espelho td.marcas { line-height: 1.9; }
.nowrap { white-space: nowrap; }
.marca { display: inline-block; font-family: var(--f-mono, monospace); font-size: .82rem; padding: 0 2px; }
.marca sup { font-size: .62rem; font-weight: 700; margin-left: 1px; }
.marca.inc { color: var(--info); font-weight: 600; }
.marca.desc { color: var(--muted); }
.marca.pend { text-decoration: underline dotted var(--warn); text-underline-offset: 3px; }
.so-imprimir { display: none; }
.assinaturas { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.assinaturas div { border-top: 1px solid #000; padding-top: 4px; text-align: center; font-size: .8rem; }
.preview-arq { font: 11px/1.45 var(--f-mono, monospace); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; overflow-x: auto; white-space: pre; max-width: 100%; }
@media print {
  .topbar, .tabs, .demo-bar, .net, .nao-imprimir, .toast, #overlay, .legenda button { display: none !important; }
  .so-imprimir { display: grid !important; }
  body { background: #fff; color: #000; font-size: 11px; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .table-wrap { overflow: visible; }
  .espelho { min-width: 0; font-size: 10px; }
  .chip { border: 1px solid #999; background: none !important; color: #000 !important; }
}
/* Espelho no celular: cada dia vira um bloco (sem rolagem lateral) */
@media (max-width: 600px) {
  .espelho { min-width: 0; }
  .espelho thead { display: none; }
  .espelho tbody tr, .espelho tfoot tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 8px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .espelho td, .espelho th { border: 0 !important; padding: 0 !important; text-align: left !important; }
  .espelho td:nth-child(1), .espelho tfoot th:nth-child(1) { grid-column: 1 / 3; }
  .espelho td:nth-child(6) { grid-column: 3; grid-row: 1; justify-self: end; text-align: right !important; }
  .espelho td:nth-child(2) { grid-column: 1 / -1; }
  .espelho td:nth-child(7) { grid-column: 1 / -1; justify-self: end; }
  .espelho tfoot th:nth-child(5), .espelho tfoot th:nth-child(6) { grid-column: 1 / -1; }
  .espelho [data-l]::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
  .espelho td:empty { display: none; }
  .espelho tr.hoje { background: var(--accent-soft); border-radius: 8px; }
  .espelho tr.hoje td { background: none; }
}
/* Muitas abas (Admin/Super admin) no celular: barra rola de lado em vez de espremer os nomes */
@media (max-width: 899px) {
  .tabs-in { overflow-x: auto; scrollbar-width: none; }
  .tabs-in::-webkit-scrollbar { display: none; }
  .tab { min-width: 64px; flex: 1 0 64px; }
}
.li-meta .chip { white-space: normal; text-align: left; }
