/* Painel de Clientes LEVITS — tema claro, inspirado no ClickUp. */
:root {
  --acento: #7b68ee;
  --acento-h: #6a57e3;
  --acento-tint: #f1efff;
  --acento-tint-2: #f7f6ff;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #292d34;
  --ink-2: #545a66;
  --ink-3: #8a909c;
  --line: #e6e8ec;
  --line-2: #f0f1f4;
  --hover: #f7f8fb;
  --ok: #1f9d55;   --ok-bg: #e5f6ec;
  --aviso: #c26a00; --aviso-bg: #fff3e0;
  --erro: #d93f3f;  --erro-bg: #fdecec;
  --off: #7a808c;  --off-bg: #eff0f3;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(41, 45, 52, .06);
  --shadow: 0 1px 3px rgba(41, 45, 52, .06), 0 6px 20px rgba(41, 45, 52, .06);
  --shadow-pop: 0 4px 12px rgba(41, 45, 52, .10), 0 16px 40px rgba(41, 45, 52, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 2px; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 15px; margin: 0; font-weight: 650; }
h3 { font-size: 12px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; }
.muted { color: var(--ink-3); margin: 0; }
code, .mono, .mono-ish { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.mono-leve { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- topo */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: none; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #8b7bf2 0%, #7b68ee 45%, #5b8def 100%); box-shadow: 0 2px 6px rgba(123, 104, 238, .35); }
.brand-lg { font-size: 19px; margin-bottom: 6px; }
.brand-lg .brand-mark { width: 38px; height: 38px; font-size: 18px; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav a { display: flex; align-items: center; color: var(--ink-2); padding: 0 12px; font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--hover); }
.nav a.ativo { color: var(--acento); border-bottom-color: var(--acento); }
.user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #5b8def; }

.page { max-width: 1400px; margin: 0 auto; padding: 26px 24px 90px; }
.page-planilha { max-width: none; padding-bottom: 24px; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.voltar { display: inline-block; margin-bottom: 10px; font-size: 13px; color: var(--ink-3); }
.voltar:hover { color: var(--acento); text-decoration: none; }

/* ---------------------------------------------------------------- blocos */
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.vazio { padding: 48px; text-align: center; color: var(--ink-3); }
.cartao.vazio { max-width: 520px; margin: 40px auto; }
.cartao.vazio p { margin: 8px 0 20px; }

/* ---------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { text-decoration: none; background: var(--hover); border-color: #d4d7dd; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primario { background: var(--acento); border-color: var(--acento); color: #fff; box-shadow: 0 1px 2px rgba(123, 104, 238, .3); }
.btn-primario:hover { background: var(--acento-h); border-color: var(--acento-h); }
.btn-escuro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-escuro:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.btn-ghost { background: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--acento); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-filtro { font-weight: 550; color: var(--ink-2); }
.btn-filtro[aria-pressed=true] { background: var(--aviso-bg); border-color: #f5d3a3; color: var(--aviso); }
.btn-fechar { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.btn-fechar:hover { background: var(--hover); color: var(--ink); }

/* ---------------------------------------------------------------- alertas, pílulas */
.alerta { padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; border: 1px solid transparent; font-weight: 500; }
.alerta-ok { background: var(--ok-bg); color: var(--ok); border-color: #c7ebd5; }
.alerta-aviso { background: var(--aviso-bg); color: var(--aviso); border-color: #f5d3a3; }
.alerta-erro { background: var(--erro-bg); color: var(--erro); border-color: #f5c6c6; }
.badge, .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; vertical-align: middle; white-space: nowrap; line-height: 18px; }
.badge-ok, .pill-ok { background: var(--ok-bg); color: var(--ok); }
.badge-off, .pill-off { background: var(--off-bg); color: var(--off); }
.badge-aviso { background: var(--aviso-bg); color: var(--aviso); cursor: help; }
.pill-ok::before, .pill-off::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 5px; background: var(--acento-tint); color: var(--acento); }
.chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
  font-size: 12px; padding: 1px 8px; margin: 1px 4px 1px 0; border-radius: 6px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip-mais { background: var(--acento-tint); color: var(--acento); font-weight: 600; }
.chip-opcao { background: #eef4ff; color: #3b6fd8; font-weight: 600; }
.ponto { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ponto.on, .ponto-on { background: var(--ok); }
.ponto.off, .ponto-off { background: #c7cbd3; }

/* ---------------------------------------------------------------- barra de ferramentas */
.barra-ferramentas { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.busca { position: relative; flex: 0 1 360px; min-width: 220px; }
.busca svg { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--ink-3); }
.busca input { padding-left: 34px; }
.contador { margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.segmentado { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.segmentado button, .segmentado label span { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550;
  padding: 0 12px; height: 28px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; }
.segmentado button:hover, .segmentado label span:hover { color: var(--ink); }
.segmentado button.sel, .segmentado input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmentado label input { position: absolute; opacity: 0; width: 0; height: 0; }
.ponto-pend { width: 8px; height: 8px; border-radius: 50%; background: var(--aviso); }
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 260px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; }
.menu-tit { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 6px 8px; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.menu-item:hover { background: var(--hover); }
.menu-item input { width: auto; min-height: 0; accent-color: var(--acento); }
.bolinha { width: 9px; height: 9px; border-radius: 3px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.check input { width: auto; min-height: 0; accent-color: var(--acento); }
.check-sm { font-size: 12.5px; margin-top: 8px; }

/* ---------------------------------------------------------------- inputs */
input, select, textarea {
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 34px; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: #d4d7dd; }
select { width: auto; min-width: 150px; cursor: pointer; }
.campo select, .modal select { width: 100%; }
textarea { resize: vertical; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(123, 104, 238, .18); }

/* ---------------------------------------------------------------- planilha */
.planilha-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  overflow: auto; max-height: calc(100vh - 210px); position: relative; }
.planilha { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%; }
.planilha th, .planilha td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); padding: 0 12px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 42px; background: var(--surface); }
.planilha thead th { position: sticky; z-index: 3; background: #fbfbfc; }
.th-secoes th { top: 0; height: 32px; border-bottom: 0; padding: 0 12px; }
.th-campos th { top: 32px; height: 36px; border-bottom: 1px solid var(--line); }
.secao-rot { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cor); }
.secao-rot::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cor); }
.th-secoes th[style] { box-shadow: inset 0 2px 0 var(--cor); }
.ordenar { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ordenar:hover { color: var(--acento); }
.planilha .fixa { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line), 6px 0 10px -6px rgba(41, 45, 52, .12); }
.planilha thead .fixa { z-index: 5; }
.planilha tbody tr:hover td { background: var(--hover); }
.planilha tbody tr.sel td { background: var(--acento-tint-2); }
.planilha tbody tr.sel td.fixa { box-shadow: inset 3px 0 0 var(--acento), 1px 0 0 var(--line), 6px 0 10px -6px rgba(41, 45, 52, .12); }
.planilha td.editavel { cursor: pointer; font-size: 13px; color: var(--ink); }
.planilha td.editavel:hover { box-shadow: inset 0 0 0 1px #cfc8fa; }
.planilha td.editando { box-shadow: inset 0 0 0 2px var(--acento) !important; background: var(--surface) !important; }
.planilha td.piscou { animation: piscou 1.6s ease-out; }
@keyframes piscou { 0%, 30% { background: #dcf5e6; } 100% { background: var(--surface); } }
.v-vazio { color: #c2c6ce; }
.v-segredo { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.v-segredo svg { width: 12px; height: 12px; fill: var(--ink-3); }
.dias-mini { display: inline-flex; gap: 3px; }
.dias-mini i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--line-2); color: #b5bac3; }
.dias-mini i.on { background: var(--acento); color: #fff; }
.emp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.emp-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; cursor: pointer; }
.emp-nome:hover { color: var(--acento); }
.pend { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--aviso-bg); color: var(--aviso); font-size: 11px; font-weight: 700; display: grid; place-items: center; cursor: help; }
.abrir { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.abrir svg { width: 14px; height: 14px; fill: var(--ink-3); }
.abrir:hover { background: var(--acento-tint); }
.abrir:hover svg { fill: var(--acento); }
tr:hover .abrir, .abrir:focus { opacity: 1; }
.chk { position: relative; flex: none; width: 18px; height: 18px; cursor: pointer; }
.chk input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 18px; height: 18px; min-height: 0; cursor: pointer; }
.chk span { position: absolute; inset: 0; border: 1.5px solid #c5c9d1; border-radius: 5px; background: var(--surface); transition: all .12s; }
.chk:hover span { border-color: var(--acento); }
.chk input:checked + span { background: var(--acento); border-color: var(--acento); }
.chk input:checked + span::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk input:focus-visible + span { box-shadow: 0 0 0 3px rgba(123, 104, 238, .25); }

/* ---------------------------------------------------------------- popover de edição */
.popover { position: absolute; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 12px; }
.popover.salvando { opacity: .7; pointer-events: none; }
.pop-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pop-topo b { font-size: 13px; }
.pop-topo .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-ajuda { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.45; white-space: normal; }
.pop-erro { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--erro-bg); color: var(--erro); font-size: 12.5px; font-weight: 500; }
.pop-conflito { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pop-acoes { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.pop-acoes .muted { font-size: 11.5px; margin-right: auto; }
.ed-opcoes { display: flex; flex-direction: column; gap: 2px; }
.ed-opcoes button { text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); }
.ed-opcoes button:hover, .ed-opcoes button:focus-visible { background: var(--hover); outline: none; }
.ed-opcoes button.atual { background: var(--acento-tint); color: var(--acento); font-weight: 600; }
.ed-dias { display: flex; flex-wrap: wrap; gap: 5px; }
.ed-dias > button { min-width: 42px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font: inherit; font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; }
.ed-dias > button:hover { border-color: var(--acento); }
.ed-dias > button.on { background: var(--acento); border-color: var(--acento); color: #fff; }
.ed-atalhos { width: 100%; display: flex; gap: 12px; margin-top: 4px; }
.ed-atalhos button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--acento); cursor: pointer; font-weight: 550; }
.ed-segredo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ed-segredo code { background: var(--line-2); padding: 3px 8px; border-radius: 6px; word-break: break-all; }

/* ---------------------------------------------------------------- seleção e lote */
.barra-selecao { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px;
  background: #292d34; color: #fff; border-radius: 12px; padding: 8px 8px 8px 18px; box-shadow: 0 10px 30px rgba(41, 45, 52, .3); font-size: 13.5px;
  animation: subir .18s ease-out; }
@keyframes subir { from { transform: translate(-50%, 12px); opacity: 0; } }
.modal-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(41, 45, 52, .35); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop); max-height: calc(100vh - 40px); overflow: auto; }
.modal-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.modal-topo h2 { font-size: 16px; }
.modal-corpo { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-corpo .rot { font-size: 13px; font-weight: 600; margin-top: 4px; }
.modal-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.modal-acoes .muted { font-size: 12px; margin-right: auto; }
.lote-sel { background: var(--acento-tint-2); border: 1px solid #e3defd; border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.segmentado-lote { align-self: flex-start; }
.ed-input { width: 100%; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 70; background: #292d34; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(41, 45, 52, .3); animation: subir2 .18s ease-out; }
.toast-ok::before { content: "✓ "; color: #6ee7a8; font-weight: 700; }
@keyframes subir2 { from { transform: translateY(10px); opacity: 0; } }

/* ---------------------------------------------------------------- tabela simples (histórico) */
.tabela-wrap { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbfbfc; position: sticky; top: 0; }
.tabela td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 13px; }
.tabela tbody tr:hover td { background: var(--hover); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.tabela-hist .antes { color: var(--ink-3); text-decoration: line-through; }

/* ---------------------------------------------------------------- ficha completa */
.grade-editar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.lateral { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.lateral .cartao { padding: 16px; }
.form-empresa { display: flex; flex-direction: column; gap: 12px; }
.secao summary { list-style: none; cursor: pointer; padding: 15px 18px; border-radius: var(--radius); }
.secao summary:hover { background: var(--hover); }
.secao summary::-webkit-details-marker { display: none; }
.secao summary h2::before { content: "▸"; display: inline-block; width: 16px; color: var(--ink-3); transition: transform .15s; }
.secao[open] summary h2::before { transform: rotate(90deg); }
.secao summary .muted { padding-left: 16px; font-size: 13px; }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 18px; padding: 4px 18px 18px 34px; }
.campo-largo { grid-column: 1 / -1; }
.campo label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.campo .ajuda { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.campo-erro input, .campo-erro select, .campo-erro textarea { border-color: var(--erro); }
.msg-erro { color: var(--erro); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.obrig { color: var(--erro); }
.segredo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-height: 22px; }
.segredo-valor { background: var(--line-2); padding: 2px 8px; border-radius: 6px; word-break: break-all; }
.dias { display: flex; gap: 6px; flex-wrap: wrap; }
.dia input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.dia span { display: inline-block; min-width: 48px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 550; color: var(--ink-2); user-select: none; }
.dia input:checked + span { background: var(--acento); border-color: var(--acento); color: #fff; }
.dia input:focus-visible + span { box-shadow: 0 0 0 3px rgba(123, 104, 238, .25); }
.campo .dia { display: inline; margin: 0; font-weight: 500; }
.barra-salvar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.lista-pend { margin: 0; padding-left: 18px; color: var(--aviso); font-size: 13px; }
.lista-pend li + li { margin-top: 6px; }
.hist-mini { list-style: none; margin: 0 0 10px; padding: 0; font-size: 12.5px; }
.hist-mini li { padding: 8px 0; border-bottom: 1px solid var(--line-2); word-break: break-word; }
.hist-mini s { color: var(--ink-3); }
.hist-quando { color: var(--ink-3); font-size: 11.5px; }

/* ---------------------------------------------------------------- login */
.tela-login { background: radial-gradient(1200px 600px at 10% -10%, #ece8ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e3eeff 0%, transparent 60%), var(--bg); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.login-card > .muted { margin-bottom: 22px; }
.pilha { display: flex; flex-direction: column; gap: 10px; }
.pilha label { font-weight: 600; font-size: 13px; }
.pilha p { margin: 0 0 4px; }
.pilha .btn { height: 42px; margin-top: 6px; font-size: 14px; }
.pilha input { min-height: 42px; }
.input-codigo { font-size: 24px !important; letter-spacing: 8px; text-align: center; font-weight: 700; }
.linha-reenvio { display: flex; justify-content: space-between; margin-top: 16px; }

@media (max-width: 980px) {
  .grade-editar { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .brand > span:last-child { display: none; }
  .campos { padding-left: 18px; }
  .contador { margin-left: 0; }
}
@media (max-width: 600px) {
  .page { padding: 16px 16px 90px; }
  .user > span { display: none; }
  .planilha-wrap { max-height: none; }
  .busca { flex-basis: 100%; }
}
