/* Gestão — Resplande Advocacia
   Paleta e tipografia: ADVOCACIA/_MODELOS/IDENTIDADE-VISUAL/IDENTIDADE-VISUAL.md
   Navy #1C2B3E · Azul secundário #33465E · Dourado fosco #9C7A32 (acento) · Papel #FAF8F3 · Linha #DCD4C2 */

:root {
  --navy: #1C2B3E;
  --navy-2: #33465E;
  --ouro: #9C7A32;
  --ouro-claro: #C9A458;
  --ivory: #F4EFE3;

  --bg: #FAF8F3;
  --bg-2: #F1EAD9;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --line: #DCD4C2;
  --line-soft: #EAE4D6;
  --text: #2B2A28;
  --text-2: #5A5850;
  --text-3: #85827A;
  --brand: var(--navy);
  --brand-text: var(--ivory);
  --accent: var(--ouro);
  --focus: #9C7A32;

  --ok: #2F6B4F;   --ok-bg: #E4EFE8;
  --warn: #8A5A12; --warn-bg: #F6EBD6;
  --bad: #9A2F2F;  --bad-bg: #F5E1DE;
  --info: #2D4F7C; --info-bg: #E2E9F3;
  --demo: #6B4E9A; --demo-bg: #ECE5F5;

  --sidebar-bg: var(--navy);
  --sidebar-text: #D9D3C4;
  --sidebar-active: rgba(201, 164, 88, .16);

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 43, 62, .06), 0 2px 8px rgba(28, 43, 62, .05);
  --font-marca: Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121B27; --bg-2: #18222F; --surface: #1A2533; --surface-2: #1F2B3A;
    --line: #33465E; --line-soft: #283749; --text: #F4EFE3; --text-2: #C9C3B5; --text-3: #9A9688;
    --brand: #C9A458; --brand-text: #1C2B3E; --accent: #C9A458; --focus: #C9A458;
    --ok: #8FCBAA; --ok-bg: #1E3A2D; --warn: #E3B86A; --warn-bg: #3A2F1A; --bad: #EBA49A; --bad-bg: #3D2222;
    --info: #A9C2E6; --info-bg: #1F2E44; --demo: #C7B2EA; --demo-bg: #2E2540;
    --sidebar-bg: #0E1620; --sidebar-text: #CFC8B8;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121B27; --bg-2: #18222F; --surface: #1A2533; --surface-2: #1F2B3A;
  --line: #33465E; --line-soft: #283749; --text: #F4EFE3; --text-2: #C9C3B5; --text-3: #9A9688;
  --brand: #C9A458; --brand-text: #1C2B3E; --accent: #C9A458; --focus: #C9A458;
  --ok: #8FCBAA; --ok-bg: #1E3A2D; --warn: #E3B86A; --warn-bg: #3A2F1A; --bad: #EBA49A; --bad-bg: #3D2222;
  --info: #A9C2E6; --info-bg: #1F2E44; --demo: #C7B2EA; --demo-bg: #2E2540;
  --sidebar-bg: #0E1620; --sidebar-text: #CFC8B8;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-marca); font-weight: 700; color: var(--text); margin: 0; line-height: 1.25; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.carregando-tela { display: grid; place-items: center; height: 100vh; color: var(--text-3); }

/* ------------------------------------------------------------------ estrutura */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .marca { padding: 20px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .marca img { width: 100%; max-width: 200px; height: auto; display: block; }
.sidebar .marca small { display: block; margin-top: 6px; font-family: var(--font-marca); color: var(--ouro-claro); letter-spacing: .04em; font-size: .78rem; }
.sidebar nav { padding: 10px 8px; flex: 1; }
.sidebar .grupo { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #8E8A7E; padding: 14px 12px 4px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; color: var(--sidebar-text); text-decoration: none; font-size: .93rem; }
.sidebar a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar a.ativo { background: var(--sidebar-active); color: #fff; box-shadow: inset 2px 0 0 var(--ouro-claro); }
.sidebar svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.sidebar .rodape { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.sidebar .rodape button { background: none; border: 0; color: var(--sidebar-text); cursor: pointer; padding: 4px 0; text-decoration: underline; }

.topo-mobile { display: none; }
.principal { min-width: 0; padding: 24px 28px 48px; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecalho .sub { color: var(--text-2); margin-top: 4px; font-size: .92rem; }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.migalha { font-size: .85rem; color: var(--text-3); margin-bottom: 6px; }
.migalha a { color: var(--text-2); }

.nav-inferior { display: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .layout.menu-aberto .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .topo-mobile { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 40;
    background: var(--sidebar-bg); color: var(--ivory); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topo-mobile img { height: 30px; width: auto; }
  .topo-mobile button { background: none; border: 0; color: var(--ivory); padding: 6px; cursor: pointer; }
  .topo-mobile svg { width: 24px; height: 24px; }
  .principal { padding: 16px 16px 96px; }
  h1 { font-size: 1.3rem; }
  .nav-inferior { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .nav-inferior a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .7rem; color: var(--text-2); text-decoration: none; }
  .nav-inferior a.ativo { color: var(--brand); font-weight: 600; }
  .nav-inferior svg { width: 22px; height: 22px; }
}

/* ------------------------------------------------------------------ componentes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: .9rem; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--text-3); }
.btn.primario { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }
.btn.primario:hover { filter: brightness(1.1); }
.btn.perigo { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.perigo.cheio { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.btn.peq { padding: 5px 10px; font-size: .82rem; }
.btn.fantasma { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-icone { background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; padding: 4px; color: var(--text-2); display: inline-grid; place-items: center; }
.btn-icone:hover { border-color: var(--line); }
.btn-icone svg { width: 16px; height: 16px; }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.painel { padding: 18px; }
.painel > h2, .painel > .painel-topo { margin-bottom: 12px; }
.painel-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.painel-topo h2 { margin: 0; }
.grade { display: grid; gap: 16px; }
.grade.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grade.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grade.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grade.c2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grade.c3, .grade.c4 { grid-template-columns: 1fr; } }
.secao { margin-top: 22px; }

/* indicadores */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 132px; }
.kpi .rotulo { font-size: .82rem; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kpi .valor { font-family: var(--font-marca); font-size: 1.7rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .detalhe { font-size: .8rem; color: var(--text-3); margin-top: auto; }
.kpi.restrito .valor { font-size: 1rem; color: var(--text-3); font-family: var(--font-ui); font-weight: 400; }
.kpi .filete { width: 28px; height: 2px; background: var(--accent); }
.barra { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.barra.ok > i { background: var(--ok); }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.numero { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); }
.numero .r { font-size: .78rem; color: var(--text-2); }
.numero .v { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; }
.numero .v.neg { color: var(--bad); }
.numero .v.pos { color: var(--ok); }

.navmes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.navmes .mes { font-family: var(--font-marca); font-weight: 700; min-width: 150px; text-align: center; }

/* barras horizontais (gráfico simples) */
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 8px; align-items: center; font-size: .86rem; padding: 4px 0; }
.hbar .trilho { height: 10px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.hbar .trilho > i { display: block; height: 100%; background: var(--navy-2); border-radius: 99px; }
:root[data-theme="dark"] .hbar .trilho > i { background: var(--ouro-claro); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hbar .trilho > i { background: var(--ouro-claro); } }
.hbar .n { font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 2ch; text-align: right; }

/* listas simples */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { padding: 9px 0; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.lista li:first-child { border-top: 0; }
.lista .t { font-weight: 550; }
.lista .s { font-size: .82rem; color: var(--text-2); }
.vazio { color: var(--text-3); font-size: .9rem; padding: 10px 0; }

/* etiquetas */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 2px 8px; border-radius: 99px; background: var(--bg-2);
  color: var(--text-2); border: 1px solid var(--line-soft); white-space: nowrap; font-weight: 550; line-height: 1.5; }
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.tag.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.tag.demo { background: var(--demo-bg); color: var(--demo); border-color: transparent; letter-spacing: .04em; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* barra de ferramentas e tabela */
.ferramentas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ferramentas .busca { flex: 1 1 220px; min-width: 0; }
.ferramentas select, .ferramentas input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 100%; }
.ferramentas .contagem { font-size: .82rem; color: var(--text-3); margin-left: auto; }
.filtros-extra { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .ferramentas select { flex: 1 1 45%; } .ferramentas .contagem { margin-left: 0; width: 100%; } }

.tabela-wrap { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabela th { text-align: left; font-weight: 600; color: var(--text-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.tabela th.ordenavel { cursor: pointer; user-select: none; }
.tabela th.ordenavel:hover { color: var(--text); }
.tabela td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td { background: var(--surface-2); }
.tabela tr.arquivado td { opacity: .6; }
.tabela td.num, .tabela th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela tfoot td { font-weight: 650; border-top: 1px solid var(--line); border-bottom: 0; }
.atrasado { color: var(--bad); font-weight: 600; }
.hoje-txt { color: var(--warn); font-weight: 600; }

@media (max-width: 700px) {
  table.tabela.responsiva thead { display: none; }
  table.tabela.responsiva, .tabela.responsiva tbody, .tabela.responsiva tr, .tabela.responsiva td { display: block; width: 100%; }
  .tabela.responsiva tr { border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: 10px; padding: 6px 0; background: var(--surface); }
  .tabela.responsiva td { border: 0; padding: 4px 12px; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  .tabela.responsiva td::before { content: attr(data-label); color: var(--text-3); font-size: .78rem; text-align: left; flex: none; max-width: 45%; }
  .tabela.responsiva td.num { justify-content: space-between; }
  .tabela.responsiva td:first-child { font-weight: 600; }
  .tabela.responsiva tfoot { display: block; }
}

/* formulários */
form.formulario { display: grid; gap: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
fieldset legend { font-family: var(--font-marca); font-weight: 700; font-size: .98rem; padding: 0 0 6px; grid-column: 1 / -1; width: 100%;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
@media (max-width: 640px) { fieldset { grid-template-columns: 1fr; } }
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.campo.largo { grid-column: 1 / -1; }
.campo > label, .campo > .rotulo { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.campo .obrig { color: var(--bad); }
.campo input[type=text], .campo input[type=email], .campo input[type=url], .campo input[type=date], .campo input[type=number], .campo input[type=password],
.campo select, .campo textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.campo textarea { min-height: 76px; resize: vertical; }
.campo .ajuda { font-size: .76rem; color: var(--text-3); }
.campo .erro { font-size: .78rem; color: var(--bad); }
.campo.com-erro input, .campo.com-erro select, .campo.com-erro textarea { border-color: var(--bad); }
.campo.check { flex-direction: row; align-items: center; gap: 8px; }
.campo.check label { font-weight: 500; color: var(--text); font-size: .9rem; }
.campo .somente { padding: 8px 0; color: var(--text-2); }
.opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.opcoes label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; cursor: pointer; background: var(--surface); }
.opcoes label:has(input:checked) { background: var(--bg-2); border-color: var(--accent); }
.opcoes.coluna { flex-direction: column; align-items: stretch; }
.opcoes.coluna label { border-radius: 8px; }
.form-acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; }
.form-acoes .esq { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* diálogo */
dialog { border: 0; border-radius: 14px; padding: 0; background: var(--surface); color: var(--text); width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.estreito { width: min(460px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(14, 22, 32, .55); }
dialog .d-topo { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--surface); z-index: 1; }
dialog .d-corpo { padding: 18px 20px; overflow-y: auto; }
dialog .d-rodape { padding: 12px 20px 16px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.aviso-box { padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: .88rem; }
.aviso-box ul { margin: 6px 0 0; padding-left: 18px; }
.info-box { padding: 12px 14px; border-radius: 8px; background: var(--info-bg); color: var(--info); font-size: .86rem; }
.perigo-box { padding: 12px 14px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: .88rem; }

/* notificações */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; max-width: calc(100vw - 32px); }
.toast { background: var(--navy); color: var(--ivory); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; max-width: 420px; }
.toast.erro { background: var(--bad); color: #fff; }
@media (max-width: 900px) { #toasts { bottom: 76px; left: 16px; right: 16px; } }

/* quadro (kanban) */
.quadro { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.coluna { flex: 0 0 272px; background: var(--bg-2); border-radius: var(--radius); padding: 10px; scroll-snap-align: start; max-height: calc(100vh - 220px); display: flex; flex-direction: column; }
.coluna.alvo { outline: 2px dashed var(--accent); outline-offset: -2px; }
.coluna .c-topo { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: .84rem; font-weight: 650; color: var(--text-2); gap: 6px; }
.coluna .c-topo .n { background: var(--surface); border-radius: 99px; padding: 0 8px; font-size: .75rem; }
.coluna .c-corpo { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 40px; }
.cartao { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px; font-size: .86rem; cursor: grab; box-shadow: var(--shadow); }
.cartao:active { cursor: grabbing; }
.cartao.arrastando { opacity: .5; }
.cartao .ct { font-weight: 600; margin-bottom: 4px; }
.cartao .cs { color: var(--text-2); font-size: .8rem; }
.cartao .cr { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cartao select { font-size: .78rem; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); max-width: 100%; }
@media (max-width: 700px) { .coluna { flex-basis: 82vw; max-height: none; } }

/* abas */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.abas button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; cursor: pointer; color: var(--text-2); white-space: nowrap; font-size: .9rem; }
.abas button.ativa { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.segmentado { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.segmentado button { background: var(--surface); border: 0; padding: 7px 12px; cursor: pointer; font-size: .85rem; color: var(--text-2); border-right: 1px solid var(--line-soft); }
.segmentado button:last-child { border-right: 0; }
.segmentado button.ativa { background: var(--brand); color: var(--brand-text); }

/* detalhes */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; }
.dl > div { min-width: 0; }
.dl dt { font-size: .76rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.dl dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dl .largo { grid-column: 1 / -1; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } }
.linha-tempo { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.linha-tempo li { position: relative; padding: 0 0 14px 12px; }
.linha-tempo li::before { content: ''; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.linha-tempo .quando { font-size: .78rem; color: var(--text-3); }
.linha-tempo .oque { font-weight: 600; }
.linha-tempo .fase { font-size: .84rem; color: var(--text-2); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--sidebar-bg); }
.login .caixa { width: min(400px, 100%); background: var(--surface); border-radius: 14px; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login .caixa img { width: 220px; max-width: 100%; display: block; margin: 0 auto 6px; }
.login .caixa .filete { width: 40px; height: 2px; background: var(--accent); margin: 10px auto 18px; }
.login .caixa h1 { text-align: center; font-size: 1.15rem; margin-bottom: 4px; }
.login .caixa p.sub { text-align: center; color: var(--text-2); font-size: .88rem; margin: 0 0 18px; }
.login form { display: grid; gap: 12px; }
.login .btn { width: 100%; padding: 11px; }
.login .nota { font-size: .78rem; color: var(--text-3); text-align: center; margin-top: 14px; }
.qr { display: block; margin: 8px auto; background: #fff; padding: 6px; border-radius: 8px; }
code.segredo { display: block; word-break: break-all; background: var(--bg-2); padding: 8px; border-radius: 6px; font-size: .85rem; text-align: center; }

.mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .mb { margin-bottom: 12px; }
.mudo { color: var(--text-3); } .peq { font-size: .84rem; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.direita { margin-left: auto; }
pre.json { white-space: pre-wrap; word-break: break-word; font-size: .78rem; background: var(--bg-2); padding: 8px; border-radius: 6px; margin: 4px 0 0; max-height: 220px; overflow: auto; }
.faixa-demo { background: var(--demo-bg); color: var(--demo); padding: 8px 14px; border-radius: 8px; font-size: .86rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* o conteúdo nunca alarga a página; quadros e tabelas rolam dentro do próprio contêiner */
.layout > div { min-width: 0; }
.principal, .card, .ferramentas { max-width: 100%; }
