/* Estilo Stryker (out/2026): sistema visual e shell do "Stryker System — Guia de Telas" (capítulos 2 e 3),
   com o verde do Enio (--cor-marca, Configurações) no lugar do azul de acento.
   Carregado DEPOIS de sistema.css, estilo-v2.css e estilo-compacto.css: redefine os tokens (todos os módulos mudam juntos)
   e o shell (barra lateral em vidro, topo de 56 px, contêiner de 1400 px, busca Ctrl+K, abas no celular).
   Para voltar ao visual anterior, basta tirar o <link> deste arquivo do index.html (busca.js continua funcionando). */

/* ---------- Tokens: escuro (padrão quando o aparelho está no escuro) ---------- */
:root {
  --fundo: #09090B;
  --superficie: #1C1C1E;
  --superficie-2: #242426;
  --superficie-3: #2C2C2E;
  --texto: #F5F5F7;
  --texto-2: #AEAEB2;
  --muted: #8E8E93;
  --borda: rgba(84, 84, 88, .32);
  --borda-forte: rgba(84, 84, 88, .55);
  --borda-suave: rgba(84, 84, 88, .2);
  --borda-cartao: rgba(255, 255, 255, .06);
  --vidro: rgba(28, 28, 30, .76);
  --seg-ativo: #48484A;
  /* status: cor cheia para texto (AA sobre a pílula) e pílula com a cor a ~18% sobre o cartão */
  --verde: #30D158;    --verde-bg: #203D28;
  --amarelo: #FFB340;  --amarelo-bg: #45341A;
  --vermelho: #FF6961; --vermelho-bg: #452323;
  --azul: #409CFF;     --azul-bg: #192F46;
  --roxo: #9A98FF;     --roxo-bg: #282842;
  --borda-perigo: rgba(255, 69, 58, .42); --placeholder: #636366; --menu-grupo: #8E8E93; --serie-b: #48484A;
  --cal-hover: #242426; --cal-fora: #141416; --cal-fora-num: #48484A; --estrela-off: #3A3A3C;
  /* forma */
  --raio-p: 8px; --raio-m: 10px; --raio: 16px; --raio-g: 16px;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3);
  --sombra-hover: 0 8px 24px rgba(0, 0, 0, .4);
  --sombra-destaque: 0 12px 36px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  --titulo: var(--fonte);
  --capsula: var(--superficie);
  --lateral-l: 260px;
  --topo-a: 56px;
  --margem: 32px;
}
/* ---------- Tokens: claro ---------- */
:root[data-tema="claro"] {
  --fundo: #F5F5F7;
  --superficie: #FFFFFF;
  --superficie-2: #F2F2F4;
  --superficie-3: #EAEAED;
  --texto: #1D1D1F;
  --texto-2: #5C5C61;
  --muted: #6E6E73;
  --borda: rgba(60, 60, 67, .16);
  --borda-forte: rgba(60, 60, 67, .28);
  --borda-suave: rgba(60, 60, 67, .10);
  --borda-cartao: transparent;
  --vidro: rgba(250, 250, 252, .78);
  --seg-ativo: #FFFFFF;
  --verde: #1B7A35;    --verde-bg: #E7F8EB;
  --amarelo: #B32E00;  --amarelo-bg: #FFF3E2;
  --vermelho: #C00013; --vermelho-bg: #FFE7E6;
  --azul: #0058B8;     --azul-bg: #E0EFFF;
  --roxo: #4E4BD1;     --roxo-bg: #ECEBFC;
  --borda-perigo: rgba(255, 59, 48, .35); --placeholder: #A1A1A6; --menu-grupo: #6E6E73; --serie-b: #C7C7CC;
  --cal-hover: #F7F7F9; --cal-fora: #FAFAFB; --cal-fora-num: #C7C7CC; --estrela-off: #D1D1D6;
  --sombra: 0 1px 2px rgba(0, 0, 0, .04);
  --sombra-hover: 0 8px 24px rgba(0, 0, 0, .08);
  --sombra-destaque: 0 12px 36px rgba(0, 0, 0, .12);
}
@media (max-width: 1279px) { :root { --margem: 24px; } }
@media (max-width: 767px) { :root { --margem: 16px; } }

/* ---------- Base e tipografia (KPI 30 · título 22 · seção 16 · item 14,5 · corpo 13,5 · meta 12,5 · selo 11,5) ---------- */
html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--fonte); font-size: 13.5px; line-height: 1.45; background: var(--fundo); color: var(--texto); }
h1, h2, h3 { font-family: var(--fonte); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16px; }
h3 { font-size: 14.5px; }
.pequeno { font-size: 12.5px; }
::selection { background: color-mix(in srgb, var(--cor) 30%, transparent); }
:focus-visible { outline: 2px solid var(--cor); outline-offset: 2px; }
body .rotulo-secao { font-family: var(--fonte); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
body .rotulo-secao::after { display: none; }
.metrica strong, .tabela td, .data-bloco b, #menu em, .tag, .membro-numeros b, .cal-num { font-variant-numeric: tabular-nums; }

/* ---------- Shell: duas colunas, barra lateral fixa em vidro fosco ---------- */
body .app { display: grid; grid-template-columns: var(--lateral-l) minmax(0, 1fr); gap: 0; min-height: 100vh; }
body .lateral {
  margin: 0; top: 0; height: 100vh; position: sticky; border: 0; border-right: 1px solid var(--borda); border-radius: 0; box-shadow: none;
  padding: 14px 12px 12px; gap: 14px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  background: var(--vidro); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
}
/* régua de 2 px no alto, na cor de acento */
body .lateral::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cor); }
.lateral-topo { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.lateral-topo .marca { flex: 1; min-width: 0; padding: 0 4px; }
.lateral-topo .foto-perfil { width: 34px; height: 34px; }
.marca-nome { font-family: var(--fonte); font-weight: 700; letter-spacing: .14em; font-size: 14px; white-space: nowrap; overflow: hidden; }
.lateral-mini-btn { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: var(--raio-p); background: none; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.lateral-mini-btn:hover { background: color-mix(in srgb, var(--texto) 7%, transparent); color: var(--texto); }
.lateral-mini-btn svg { width: 18px; height: 18px; }

/* seletor de áreas */
.area-seletor { margin-top: 0; }
body .area-botao { padding: 8px 10px; border-radius: var(--raio-m); border: 1px solid var(--borda); background: color-mix(in srgb, var(--texto) 4%, transparent); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; min-height: 36px; transition: border-color .2s var(--ease), background .2s var(--ease); }
body .area-botao::before { content: "Área"; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-right: auto; order: 0; }
body .area-botao { display: flex; align-items: center; gap: 6px; line-height: 1; background: color-mix(in srgb, var(--cor) 7%, transparent); border-color: color-mix(in srgb, var(--cor) 20%, transparent); }
body .area-botao:hover, body .area-botao[aria-expanded="true"] { background: color-mix(in srgb, var(--cor) 11%, transparent); border-color: color-mix(in srgb, var(--cor) 32%, transparent); }
body .area-botao::before { color: color-mix(in srgb, var(--cor) 80%, var(--texto)); }
body .area-botao .menu-seta { color: var(--cor) !important; }
body .area-botao::before, body .area-botao #area-nome, body .area-botao .menu-seta { display: block; line-height: 1; }
body .area-botao::before { padding-top: 1px; } /* maiúsculas pequenas: compensa para o centro ótico bater com "Marketing" */
body .area-botao #area-nome { order: 1; }
body .area-botao .menu-seta { order: 2; color: var(--muted); }
body .area-opcoes { width: 250px; right: auto; border-radius: var(--raio); border: 1px solid var(--borda); box-shadow: var(--sombra-destaque); padding: 6px; background: var(--superficie); }
body .area-opcoes button { border-radius: var(--raio-p); padding: 8px 10px; }
body .area-opcoes b { font-size: 14px; }
body .area-opcoes small { font-size: 12px; }

/* itens do menu: 38 px, ícone 16 px, ativo com fundo de acento a 11% e negrito */
body #menu { gap: 2px; align-content: start; }
body #menu a { min-height: 38px; padding: 0 10px; gap: 10px; border-radius: var(--raio-m); color: var(--texto-2); font-size: 14px; font-weight: 500; box-shadow: none; position: relative; transition: background .2s var(--ease), color .2s var(--ease); }
body #menu a i { width: 18px; font-size: 15px; display: inline-grid; place-items: center; flex-shrink: 0; color: var(--muted); }
body #menu a:hover { background: color-mix(in srgb, var(--texto) 6%, transparent); color: var(--texto); }
body #menu a.ativo { background: var(--cor-clara); color: var(--cor); font-weight: 600; box-shadow: none; }
body #menu a.ativo i { color: var(--cor); }
body #menu em { background: var(--cor); color: var(--sobre-cor); font-size: 11.5px; line-height: 18px; min-width: 18px; text-align: center; padding: 0 6px; }
body #menu a.ativo em { background: var(--cor); color: var(--sobre-cor); }
body .menu-hoje { margin-bottom: 4px; }
/* grupos que recolhem */
.menu-grupo-rec { display: grid; gap: 2px; }
.menu-grupo-rec + .menu-grupo-rec, #menu .menu-area > a + .menu-grupo-rec { margin-top: 8px; }
.menu-grupo-rec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px 4px; border-radius: var(--raio-p); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; user-select: none; }
.menu-grupo-rec > summary::-webkit-details-marker { display: none; }
.menu-grupo-rec > summary:hover { color: var(--texto); }
.menu-grupo-rec > summary .menu-seta { font-size: 11px; transition: transform .25s var(--ease); }
.menu-grupo-rec:not([open]) > summary .menu-seta { transform: rotate(-90deg); }

/* rodapé da conta */
body .usuario-atual { border-top: 1px solid var(--borda); border-radius: 0; background: none; padding: 10px 4px 2px; gap: 8px; }
body .usuario-atual .avatar { width: 32px; height: 32px; background: var(--cor); color: var(--sobre-cor); border: 0; }
body .usuario-atual strong { font-size: 13.5px; font-weight: 600; }
body .usuario-atual small { display: block; font-size: 12px; line-height: 1.3; }
body .usuario-atual button, body .usuario-atual .tema-btn { width: 30px; height: 30px; border-radius: var(--raio-p); border: 0; background: none; color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease); }
body .usuario-atual button:hover { background: color-mix(in srgb, var(--vermelho) 12%, transparent); color: var(--vermelho); }
body .usuario-atual .tema-btn:hover { background: color-mix(in srgb, var(--texto) 7%, transparent); color: var(--texto); }

/* ---------- Topo: 56 px, fixo, vidro fosco ---------- */
body .conteudo { padding: 0; min-width: 0; display: flex; flex-direction: column; }
.topo {
  position: sticky; top: 0; z-index: 30; height: var(--topo-a); display: flex; align-items: center; gap: 12px; padding: 0 var(--margem);
  background: var(--vidro); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid var(--borda);
}
.topo-titulo { display: none; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.topo-busca { flex: 0 1 560px; margin: 0 auto; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border-radius: var(--raio-m); border: 1px solid var(--borda); background: color-mix(in srgb, var(--texto) 4%, transparent); color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; transition: border-color .2s var(--ease), background .2s var(--ease); }
.topo-busca:hover { border-color: var(--borda-forte); background: color-mix(in srgb, var(--texto) 6%, transparent); }
.topo-busca svg { width: 16px; height: 16px; flex-shrink: 0; }
.topo-busca span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font: 600 11.5px/1 var(--fonte); color: var(--muted); border: 1px solid var(--borda); border-radius: 6px; padding: 4px 6px; background: var(--superficie); white-space: nowrap; }
.topo-acoes { display: flex; align-items: center; gap: 4px; }
body .topo-icone, body .topo .tema-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--raio-m); background: none; color: var(--muted); cursor: pointer; font-size: 16px; transition: background .2s var(--ease), color .2s var(--ease); }
body .topo-icone:hover, body .topo .tema-btn:hover { background: color-mix(in srgb, var(--texto) 7%, transparent); color: var(--texto); }
.topo-icone svg { width: 18px; height: 18px; }
.topo-icone[aria-pressed="true"] { color: var(--cor); background: var(--cor-clara); }
body .menu-toggle { display: none; width: 34px; height: 34px; border: 0; border-radius: var(--raio-m); background: none; color: var(--texto); font-size: 18px; padding: 0; flex-shrink: 0; }
body .menu-toggle:hover { background: color-mix(in srgb, var(--texto) 7%, transparent); }

/* ---------- Conteúdo: contêiner único de 1400 px, margens 16/24/32 ---------- */
.conteudo-caixa { width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px var(--margem) 64px; flex: 1; }
html.densidade-compacta .conteudo-caixa { zoom: .92; }
body .barra { margin-bottom: 20px; align-items: flex-end; gap: 12px; }
body .barra h1 { font-family: var(--fonte); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
body .barra-acoes { gap: 8px; }
.pagina.entrando > .pagina-area > * { animation: stryker-entrar .32s var(--ease) backwards; }
@keyframes stryker-entrar { from { opacity: 0; transform: translateY(6px); } }
/* elementos grudados dos módulos ficam abaixo do topo */
body .cl-lista, body .dm-ref-lamina, body .mt-estados { top: calc(var(--topo-a) + 12px); }
body .cl-lista { max-height: calc(100vh - var(--topo-a) - 110px); }
body .aviso-sync { border-radius: var(--raio-m); }

/* ---------- Cartões: fundo de cartão, sem borda forte no claro, sombra mínima, cantos de 16 ---------- */
.cartao, .metrica, .projeto-card, .membro, .coluna, .pin-card, .login-cartao { --borda: var(--borda-cartao); }
.cartao *, .metrica *, .projeto-card *, .membro *, .coluna *, .pin-card *, .login-cartao * { --borda: var(--borda-raiz); }
:root { --borda-raiz: rgba(84, 84, 88, .32); }
:root[data-tema="claro"] { --borda-raiz: rgba(60, 60, 67, .16); }
body .cartao, body .metrica, body .projeto-card, body .membro, body .coluna, body .pin-card, body .login-cartao { border-radius: var(--raio); box-shadow: var(--sombra); background: var(--superficie); }
body .cartao, body .projeto-card, body .membro { padding: 16px; overflow: visible; }
body .cartao.sem-padding { padding: 0; overflow: hidden; }
body .cartao::before, body .projeto-card::before, body .membro::before, body .metrica::before { display: none; }
body .cartao-cabeca { margin-bottom: 12px; }
body .cartao-cabeca h2 { font-size: 16px; font-weight: 600; }
body .projeto-card, body a.metrica { transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
body .projeto-card:hover, body a.metrica:hover { box-shadow: var(--sombra-hover); transform: translateY(-1px); border-color: var(--borda-cartao); }
body .projeto-card h3 { font-family: var(--fonte); font-weight: 600; font-size: 14.5px; }

/* faixa de KPIs: número 30 px tabular, rótulo e detalhe em cinza */
body .metricas { gap: 12px; }
body .metrica { padding: 14px 16px; gap: 4px; min-height: 96px; align-content: start; }
body .metrica span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
body .metrica strong { font-family: var(--fonte); font-size: min(30px, 13cqw); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
body .metrica small { font-size: 12px; }
body .metrica.destaque { --borda: color-mix(in srgb, var(--cor) 40%, transparent); }
body .data-bloco b, body .membro-numeros b, body .navegador-mes strong, body .coluna-cabeca h3, body .passo-num, body .cal-semana { font-family: var(--fonte); }
body .data-bloco b { font-weight: 600; }
body .membro-numeros b { font-weight: 600; }

/* listas e tabelas */
body .lista-item { border-radius: var(--raio-m); padding: 9px 10px; margin: 0 -10px; transition: background .2s var(--ease); }
body .lista-item .info strong { font-size: 14.5px; font-weight: 500; }
body .lista-item .info span { font-size: 12.5px; }
body .tabela { font-size: 13.5px; }
body .tabela th { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: var(--superficie-2); padding: 9px 14px; }
body .tabela td { padding: 10px 14px; }
body .tabela td small { font-size: 12px; }

/* pílulas e selos: cor a ~10-14% no fundo, texto na cor cheia */
body .tag { padding: 2px 8px; font-size: 11.5px; font-weight: 600; border-radius: 999px; line-height: 1.5; }
body .avatar { width: 28px; height: 28px; font-size: 11.5px; }
body .avatar.grande { width: 44px; height: 44px; font-size: 15px; }
body .avatar.pequeno { width: 22px; height: 22px; font-size: 10px; }
body .progresso { height: 6px; background: var(--superficie-3); }

/* ---------- Botões: 36 px, cantos de 10, texto 13 px em negrito ---------- */
body .btn { min-height: 36px; padding: 6px 14px; border-radius: var(--raio-m); font-size: 13px; font-weight: 600; line-height: 1.3; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), opacity .2s; }
body .btn:active:not(:disabled) { transform: scale(.97); }
body .btn:disabled, body .btn[disabled] { opacity: .45; cursor: default; }
body .btn-primario { background: var(--cor); color: var(--sobre-cor); border-color: transparent; }
body .btn-primario:hover { background: color-mix(in srgb, var(--cor) 88%, var(--texto)); }
body .btn-primario::after { display: none; }
body .btn-secundario { background: var(--superficie-2); color: var(--texto); border-color: transparent; }
body .btn-secundario:hover { background: var(--superficie-3); color: var(--texto); border-color: transparent; }
body .btn-perigo { background: color-mix(in srgb, var(--vermelho) 12%, transparent); color: var(--vermelho); border-color: transparent; }
body .btn-perigo:hover { background: color-mix(in srgb, var(--vermelho) 18%, transparent); }
body .btn-icone { width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: var(--raio-m); }
body .link { font-weight: 600; }

/* ---------- Campos: 36 px, cantos de 10, foco com borda de acento + halo ---------- */
body input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), body select {
  min-height: 36px; padding: 6px 12px; border-radius: var(--raio-m); background: var(--superficie-2); border: 1px solid var(--borda-raiz); font-size: 13.5px; }
body textarea { padding: 8px 12px; border-radius: var(--raio-m); background: var(--superficie-2); border: 1px solid var(--borda-raiz); font-size: 13.5px; }
body input:focus, body select:focus, body textarea:focus { border-color: var(--cor); background: var(--superficie); box-shadow: 0 0 0 3px var(--cor-clara); }
body label { font-size: 12.5px; font-weight: 500; }
body input[type=checkbox], body input[type=radio] { accent-color: var(--cor); }

/* ---------- Controle segmentado (abas): trilho cinza, opções de 28 px ---------- */
body .abas { background: var(--superficie-3); border: 0; box-shadow: none; padding: 2px; gap: 2px; border-radius: var(--raio-m); }
body .abas button, body .abas a { min-height: 28px; padding: 3px 12px; border-radius: var(--raio-p); font-size: 13px; font-weight: 500; color: var(--texto-2); transition: background .2s var(--ease), color .2s var(--ease); }
body .abas button:hover:not(.ativo), body .abas a:hover:not(.ativo) { background: color-mix(in srgb, var(--texto) 6%, transparent); color: var(--texto); }
body .abas button.ativo, body .abas a.ativo { background: var(--cor); color: var(--sobre-cor); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
body .abas button i { min-width: 18px; height: 18px; font-size: 11px; }

/* ---------- Modal (folha) e toast ---------- */
body .modal-fundo { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:root:not([data-tema="claro"]) body .modal-fundo { background: rgba(0, 0, 0, .55); }
body .modal { border-radius: var(--raio); border: 1px solid var(--borda-cartao); box-shadow: var(--sombra-destaque); padding: 20px; max-width: 600px; gap: 16px; animation: stryker-folha .32s var(--ease); }
body .modal-cabeca h2 { font-size: 17px; font-weight: 700; }
body .fechar { width: 30px; height: 30px; border-radius: 50%; background: var(--superficie-2); color: var(--muted); display: grid; place-items: center; font-size: 13px; }
body .fechar:hover { color: var(--texto); background: var(--superficie-3); }
@keyframes stryker-folha { from { opacity: 0; transform: translateY(8px) scale(.99); } }
body .toast { border-radius: 12px; padding: 10px 18px; font-size: 13.5px; box-shadow: var(--sombra-destaque); transition: transform .32s var(--ease); bottom: max(24px, env(safe-area-inset-bottom)); }

/* ---------- Login ---------- */
body .login { background: var(--fundo); }
body .login-cartao { border-radius: var(--raio); box-shadow: var(--sombra-destaque); padding: 32px; }
body .login-cartao h1 { font-family: var(--fonte); font-size: 22px; letter-spacing: .14em; }
body .tema-flutuante { border: 0; border-radius: var(--raio-m); background: var(--superficie); box-shadow: var(--sombra); width: 36px; height: 36px; }

/* ---------- Busca rápida (Ctrl+K) ---------- */
.busca-fundo { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:root:not([data-tema="claro"]) .busca-fundo { background: rgba(0, 0, 0, .55); }
.busca-folha { width: 100%; max-width: 620px; background: var(--superficie); border: 1px solid var(--borda-cartao); border-radius: var(--raio); box-shadow: var(--sombra-destaque); overflow: hidden; animation: stryker-folha .24s var(--ease); }
.busca-campo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--borda); color: var(--muted); }
.busca-campo svg { width: 20px; height: 20px; flex-shrink: 0; }
body .busca-campo input#busca-texto { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 0; min-height: 28px; font-size: 17px; color: var(--texto); }
.busca-lista { list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow-y: auto; }
.busca-lista li[role=option] { display: grid; grid-template-columns: 84px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--raio-m); cursor: pointer; }
.busca-lista li[aria-selected="true"] { background: var(--cor-clara); }
.busca-grupo { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.busca-texto { display: grid; min-width: 0; }
.busca-texto b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busca-texto small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busca-enter { color: var(--cor); opacity: 0; font-size: 14px; text-align: center; }
.busca-lista li[aria-selected="true"] .busca-enter { opacity: 1; }
.busca-vazio { padding: 22px 12px; text-align: center; color: var(--muted); }

/* ---------- Barra de abas flutuante (celular) ---------- */
.abas-celular { display: none; }

/* ---------- Modo mini (64 px, só ícones; só a partir de 1024 px) ---------- */
@media (min-width: 1024px) {
  html.lateral-mini body .app { grid-template-columns: 64px minmax(0, 1fr); }
  html.lateral-mini body .lateral { padding: 14px 8px 10px; align-items: stretch; }
  html.lateral-mini .lateral-topo { flex-direction: column; gap: 6px; }
  html.lateral-mini .lateral-topo .marca { padding: 0; justify-content: center; }
  html.lateral-mini .marca-nome { display: none; }
  html.lateral-mini body .area-botao { padding: 0; justify-content: center; font-size: 0; height: 36px; }
  html.lateral-mini body .area-botao::before { content: "▦"; font-size: 15px; margin: 0; color: var(--texto-2); }
  html.lateral-mini body .area-botao .menu-seta, html.lateral-mini body .area-botao #area-nome { display: none; }
  html.lateral-mini .menu-grupo-rec > summary { display: none; }
  html.lateral-mini .menu-grupo-rec + .menu-grupo-rec, html.lateral-mini #menu .menu-area > a + .menu-grupo-rec { margin-top: 0; padding-top: 6px; border-top: 1px solid var(--borda); }
  html.lateral-mini body #menu a { font-size: 0; justify-content: center; padding: 0; gap: 0; }
  html.lateral-mini body #menu a i { font-size: 16px; width: auto; }
  html.lateral-mini body #menu em { position: absolute; top: 7px; right: 9px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; line-height: 0; border: 2px solid var(--superficie); box-sizing: content-box; }
  html.lateral-mini body .usuario-atual { flex-direction: column; padding: 10px 0 0; }
  html.lateral-mini body .usuario-atual > div { display: none; }
}

/* ---------- Abaixo de 1024 px: a barra lateral vira gaveta ---------- */
@media (max-width: 1023px) {
  body .app { grid-template-columns: minmax(0, 1fr); }
  body .lateral { position: fixed; left: 0; top: 0; width: var(--lateral-l); height: 100vh; height: 100dvh; transform: translateX(-100%); transition: transform .32s var(--ease); z-index: 70; background: var(--superficie); box-shadow: var(--sombra-destaque); }
  body .lateral.aberto { transform: none; }
  body .lateral.aberto + .lateral-fundo { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 65; }
  .lateral-mini-btn { display: none; }
  body .menu-toggle { display: grid; place-items: center; }
  .topo { gap: 8px; }
}
/* celular: título no topo, busca vira ícone, abas flutuantes na base */
@media (max-width: 767px) {
  .topo-titulo { display: block; }
  .topo-busca { flex: 0 0 34px; width: 34px; height: 34px; margin: 0; padding: 0; justify-content: center; border: 0; background: none; color: var(--texto); }
  .topo-busca span, .topo-busca kbd { display: none; }
  .topo-busca svg { width: 18px; height: 18px; }
  .conteudo-caixa { padding-top: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body .barra { margin-bottom: 14px; }
  body .barra > div:first-child { display: none; } /* o título já está no topo */
  body .barra:has(.barra-acoes:empty) { display: none; }
  body .barra-acoes { margin-left: 0; width: 100%; }
  .abas-celular {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; height: 60px; padding: 4px;
    border-radius: 20px; border: 1px solid var(--borda); box-shadow: var(--sombra-destaque);
    background: var(--vidro); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  }
  .abas-celular a, .abas-celular button { flex: 1; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: none; border-radius: 16px; color: var(--muted); text-decoration: none; font: inherit; font-size: 10.5px; font-weight: 500; cursor: pointer; }
  .abas-celular i { font-style: normal; font-size: 17px; line-height: 1; height: 20px; display: grid; place-items: center; }
  .abas-celular .ic-rede { width: 18px; height: 18px; vertical-align: 0; }
  .abas-celular span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
  .abas-celular a.ativo { color: var(--cor); background: var(--cor-clara); font-weight: 600; }
  body .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* folha sobe da base */
  body .modal-fundo { place-items: end center; padding: 0; }
  body .modal { border-radius: var(--raio) var(--raio) 0 0; max-height: 92vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .busca-fundo { padding: 8px 8px 0; }
  .busca-lista li[role=option] { grid-template-columns: minmax(0, 1fr) 20px; }
  .busca-grupo { display: none; }
}

/* ---------- Toque: alvos de 44 px ---------- */
@media (pointer: coarse) {
  body #menu a { min-height: 44px; }
  body .abas button, body .abas a { min-height: 36px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .pagina.entrando > .pagina-area > *, body .modal, .busca-folha { animation: none; }
  body .lateral, body .btn, body .projeto-card, body a.metrica { transition: none; }
  body .btn:active:not(:disabled) { transform: none; }
}

/* ---------- Impressão: barra lateral, topo e abas somem; cartões não se partem ---------- */
@media print {
  body .lateral, .lateral-fundo, .topo, .abas-celular, body .toast, .busca-fundo { display: none !important; }
  body .app { display: block; }
  .conteudo-caixa { max-width: none; padding: 0; zoom: 1; }
  body .cartao, body .metrica, body .projeto-card, body .membro { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
