/* Athena — A Deusa dos Olhos Brilhantes. Noite azul, ouro da égide, olhos glaucos. */
:root {
  --fundo: #0E1424; --fundo2: #131A2E; --cartao: #18213A; --cartao2: #1F2A48; --linha: #2A3657;
  --texto: #EEF1F8; --suave: #A4AEC6; --fraco: #6F7A96;
  --ouro: #E0B84C; --ouro2: #F1D27A; --olho: #7FE3E0; --olho2: #1FA7B8;
  --erro: #FF7B7B; --ok: #6FDC9A; --sombra: 0 10px 30px rgba(0,0,0,.35);
  --raio: 16px; --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --topo: env(safe-area-inset-top, 0px); --base: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) {
    --fundo: #F5F3EE; --fundo2: #EFECE4; --cartao: #FFFFFF; --cartao2: #F7F5EF; --linha: #E1DCCF;
    --texto: #1A2238; --suave: #56607A; --fraco: #8A93A8; --ouro: #A87B14; --ouro2: #C99A2E; --olho: #0E8FA0; --olho2: #0B7482;
    --erro: #C0392B; --ok: #1E8E4E; --sombra: 0 8px 24px rgba(26,34,56,.10); color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--fundo); color: var(--texto); font: 16px/1.5 var(--sans); overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--olho); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.serif { font-family: var(--serif); letter-spacing: .01em; }
.oculto { display: none !important; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───── casca ───── */
.app { height: 100%; display: flex; flex-direction: column; }
.casca { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vista { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: var(--topo); }
.nav { display: none; background: var(--fundo2); }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; color: var(--fraco); font-size: 11px; position: relative; }
.nav button.on { color: var(--ouro); }
.nav .marca { display: none; }
.nav .bolha { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--olho); color: #062a30; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
@media (min-width: 900px) {
  .casca { flex-direction: row-reverse; }
  .nav { display: flex; flex-direction: column; width: 250px; border-top: 0; border-right: 1px solid var(--linha); padding: 18px 12px; gap: 4px; }
  .nav button { flex: none; flex-direction: row; gap: 12px; padding: 11px 14px; font-size: 15px; border-radius: 12px; justify-content: flex-start; }
  .nav button.on { background: var(--cartao); }
  .nav .bolha { position: static; margin-left: auto; }
  .nav .marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
  .nav .marca img { width: 42px; height: 42px; border-radius: 11px; }
  .nav .marca b { font: 600 22px var(--serif); display: block; line-height: 1.1; }
  .nav .marca small { color: var(--fraco); font-size: 10.5px; white-space: nowrap; }
}
.barra { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 56px; border-bottom: 1px solid var(--linha); }
.barra h1 { font: 600 21px var(--serif); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra h1 small { display: block; font: 400 11.5px var(--sans); color: var(--fraco); }
.ib { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--suave); flex: none; }
.ib:hover { background: var(--cartao); color: var(--texto); }
.ib.on { color: var(--ouro); }
.rola { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.miolo { max-width: 820px; margin: 0 auto; padding: 16px 14px 28px; width: 100%; }

/* ───── peças ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--ouro); color: #1b1503; font-weight: 600; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: var(--cartao2); color: var(--texto); border: 1px solid var(--linha); font-weight: 500; }
.btn.perigo { background: transparent; color: var(--erro); border: 1px solid color-mix(in srgb, var(--erro) 45%, transparent); font-weight: 500; }
.btn.peq { min-height: 36px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn.cheio { width: 100%; }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; }
.cartao + .cartao { margin-top: 12px; }
.cartao h2 { font-size: 16.5px; margin-bottom: 4px; }
.cartao p.dica, .dica { color: var(--suave); font-size: 13.5px; margin: 2px 0 12px; }
.campo { display: block; margin-bottom: 12px; }
.campo > span { display: block; font-size: 13px; color: var(--suave); margin-bottom: 5px; }
.campo input, .campo select, .campo textarea, .entrada { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--fundo2); border: 1px solid var(--linha); border-radius: 11px; outline: none; }
.campo textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .entrada:focus { border-color: var(--olho2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olho) 22%, transparent); }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tripla { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .tripla { grid-template-columns: 1fr 1fr; } .tripla > :first-child { grid-column: 1 / -1; } }
.linha-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 99px; background: var(--cartao); border: 1px solid var(--linha); color: var(--suave); font-size: 13.5px; white-space: nowrap; }
.chip.on { background: color-mix(in srgb, var(--ouro) 18%, var(--cartao)); border-color: var(--ouro); color: var(--texto); }
.selo { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; background: var(--cartao2); color: var(--suave); border: 1px solid var(--linha); }
.selo.ok { color: var(--ok); } .selo.erro { color: var(--erro); } .selo.ouro { color: var(--ouro); }
.ponto { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.vazio { text-align: center; color: var(--fraco); padding: 44px 20px; }
.vazio svg.i { width: 40px; height: 40px; margin-bottom: 8px; stroke-width: 1.3; }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--linha); width: 100%; text-align: left; }
.item:last-child { border-bottom: 0; }
.item .corpo { flex: 1; min-width: 0; }
.item .corpo b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .corpo small { color: var(--suave); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.interruptor { width: 46px; height: 28px; border-radius: 99px; background: var(--linha); position: relative; flex: none; transition: background .15s; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.interruptor.on { background: var(--olho2); } .interruptor.on::after { transform: translateX(18px); }
.avisos { position: fixed; left: 0; right: 0; top: calc(66px + var(--topo)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 60; padding: 0 16px; }
.aviso { background: var(--cartao2); border: 1px solid var(--linha); box-shadow: var(--sombra); padding: 11px 16px; border-radius: 12px; max-width: 520px; font-size: 14.5px; pointer-events: auto; }
.aviso.erro { border-color: var(--erro); } .aviso.ok { border-color: var(--ok); }
.girando { animation: gira 1s linear infinite; } @keyframes gira { to { transform: rotate(360deg); } }

/* ───── folha (modal) ───── */
.veu { position: fixed; inset: 0; background: rgba(4,7,15,.62); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.folha { background: var(--fundo); width: 100%; max-width: 720px; max-height: 94%; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: var(--sombra); border: 1px solid var(--linha); border-bottom: 0; padding-bottom: var(--base); }
.folha.cheia { height: 94%; }
@media (min-width: 900px) { .veu { align-items: center; } .folha { border-radius: 22px; border-bottom: 1px solid var(--linha); max-height: 88%; } .folha.cheia { height: 88%; } }
.folha .barra { border-bottom: 1px solid var(--linha); }
.folha .rola { padding: 16px; }

/* ───── entrada (login) ───── */
.porta { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 20px calc(24px + var(--base)); background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--olho2) 22%, transparent), transparent 70%); overflow-y: auto; }
.porta .caixa { width: 100%; max-width: 380px; text-align: center; }
.porta img { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 0 60px color-mix(in srgb, var(--olho) 30%, transparent); }
.porta h1 { font: 600 44px var(--serif); margin-top: 14px; line-height: 1; }
.porta .sub { color: var(--ouro); font: italic 16px var(--serif); margin: 6px 0 26px; }
.porta form { text-align: left; }
.porta .ou { color: var(--fraco); font-size: 13px; margin: 14px 0; text-align: center; }

/* ───── conversa ───── */
.falas { padding: 16px 14px 8px; max-width: 820px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.fala { max-width: 88%; padding: 11px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.fala.eu { align-self: flex-end; background: color-mix(in srgb, var(--olho2) 30%, var(--cartao)); border-bottom-right-radius: 6px; }
.fala.ela { align-self: flex-start; background: var(--cartao); border: 1px solid var(--linha); border-bottom-left-radius: 6px; }
.fala.erro { align-self: center; background: transparent; border: 1px solid var(--erro); color: var(--erro); font-size: 14.5px; }
.fala .docs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.estado { align-self: flex-start; color: var(--suave); font-size: 14px; display: flex; align-items: center; gap: 9px; padding: 4px 6px; }
.estado .olhos { display: inline-flex; gap: 5px; }
.estado .olhos i { width: 9px; height: 9px; border-radius: 50%; background: var(--olho); box-shadow: 0 0 10px var(--olho); animation: pisca 2.4s infinite; }
@keyframes pisca { 0%, 86%, 100% { transform: scaleY(1); } 92% { transform: scaleY(.1); } }
.saudacao { text-align: center; padding: 6vh 20px 10px; max-width: 560px; margin: 0 auto; }
.saudacao img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 50px color-mix(in srgb, var(--olho) 25%, transparent); }
.saudacao h2 { font: 600 28px var(--serif); margin-top: 14px; }
.saudacao p { color: var(--suave); margin: 6px 0 18px; }
.sugestoes { display: flex; flex-direction: column; gap: 8px; }
.sugestoes button { text-align: left; padding: 13px 15px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; }
.sugestoes button:hover { border-color: var(--ouro); }
.compor { border-top: 1px solid var(--linha); background: var(--fundo2); padding: 8px 10px calc(8px + 0px); }
.compor .dentro { max-width: 820px; margin: 0 auto; display: flex; align-items: flex-end; gap: 4px; }
.compor textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 11px 13px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; outline: none; line-height: 1.4; }
.compor textarea:focus { border-color: var(--olho2); }
.compor .enviar { background: var(--ouro); color: #1b1503; border-radius: 50%; width: 44px; height: 44px; }
.compor .enviar:disabled { opacity: .45; }
.compor .mic.gravando { color: #fff; background: var(--erro); animation: pulso 1.2s infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--erro) 25%, transparent); } }
.anexados { max-width: 820px; margin: 0 auto 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.anexado { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 99px; background: var(--cartao); border: 1px solid var(--linha); font-size: 13px; max-width: 100%; }
.anexado span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.anexado button { width: 22px; height: 22px; border-radius: 50%; color: var(--suave); display: inline-flex; align-items: center; justify-content: center; }
.anexado svg.i { width: 14px; height: 14px; }
.rascunho { align-self: stretch; background: var(--cartao); border: 1px solid var(--ouro); border-radius: var(--raio); padding: 14px; }
.rascunho .cab { display: flex; align-items: center; gap: 8px; color: var(--ouro); font-weight: 600; margin-bottom: 8px; }
.rascunho dl { margin: 0 0 8px; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.rascunho dt { color: var(--fraco); } .rascunho dd { margin: 0; overflow-wrap: anywhere; }
.rascunho textarea { width: 100%; min-height: 150px; background: var(--fundo2); border: 1px solid var(--linha); border-radius: 11px; padding: 10px 12px; resize: vertical; outline: none; }

/* ───── e-mails ───── */
.busca { display: flex; gap: 8px; padding: 10px 14px 0; }
.busca .entrada { flex: 1; } .busca select.entrada { flex: 0 1 170px; min-width: 0; }
.msg { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--linha); width: 100%; text-align: left; align-items: flex-start; }
.msg:hover { background: var(--fundo2); }
.msg .cor { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.msg .txt { flex: 1; min-width: 0; }
.msg .l1 { display: flex; gap: 8px; align-items: baseline; }
.msg .l1 b { flex: 1; font-weight: 500; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .l1 time { color: var(--fraco); font-size: 12.5px; flex: none; }
.msg .ass { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--suave); }
.msg .prev { color: var(--fraco); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.nova .l1 b, .msg.nova .ass { color: var(--texto); font-weight: 700; }
.msg.nova .cor { box-shadow: 0 0 8px var(--olho); }
.msg .marcas { display: flex; gap: 4px; color: var(--ouro); } .msg .marcas svg.i { width: 15px; height: 15px; }
.leitura h2 { font: 600 21px var(--serif); margin-bottom: 10px; overflow-wrap: anywhere; }
.leitura .quem { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.leitura .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--cartao2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ouro); flex: none; }
.leitura .quem small { color: var(--suave); display: block; overflow-wrap: anywhere; }
.leitura .texto { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.leitura iframe { width: 100%; height: 60vh; border: 1px solid var(--linha); border-radius: 12px; background: #fff; }
.flutua { position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 18px; background: var(--ouro); color: #1b1503; display: flex; align-items: center; justify-content: center; box-shadow: var(--sombra); z-index: 5; }
.rel { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ───── agenda ───── */
.mes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px 10px 10px; max-width: 820px; margin: 0 auto; width: 100%; }
.mes .ds { text-align: center; font-size: 11.5px; color: var(--fraco); padding: 4px 0; }
.dia { aspect-ratio: 1 / .82; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 14.5px; color: var(--suave); }
.dia.fora { opacity: .32; } .dia.hoje { color: var(--ouro); font-weight: 700; }
.dia.sel { background: var(--cartao); outline: 1.5px solid var(--ouro); color: var(--texto); }
.dia .pts { display: flex; gap: 2px; height: 5px; } .dia .pts i { width: 5px; height: 5px; border-radius: 50%; }
.dia-titulo { font: 600 15px var(--sans); color: var(--ouro); padding: 14px 4px 4px; }
.dia-titulo::first-letter { text-transform: uppercase; }
@media (max-width: 520px) { .barra h1 { font-size: 19px; } }
.ev { display: flex; gap: 11px; padding: 11px 4px; border-bottom: 1px solid var(--linha); width: 100%; text-align: left; }
.ev .hora { width: 54px; flex: none; color: var(--suave); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ev .cor { width: 4px; border-radius: 4px; flex: none; }
.ev b { display: block; font-weight: 600; } .ev small { color: var(--suave); }

/* ───── treino ───── */
.abas { display: flex; border-bottom: 1px solid var(--linha); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.abas button { padding: 12px 12px; color: var(--suave); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14.5px; }
.abas button.on { color: var(--ouro); border-color: var(--ouro); }
.licao { padding: 12px 0; border-bottom: 1px solid var(--linha); display: flex; gap: 10px; align-items: flex-start; }
.licao:last-child { border-bottom: 0; }
.licao .c { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.licao .c b { display: block; } .licao .c .resp { color: var(--suave); margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--ouro); }
.licao.off .c { opacity: .45; }
pre.prompt { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--suave); margin: 0; }

/* seletor de modelo e raciocínio, acima da caixa de mensagem */
.motor { max-width: 820px; margin: 0 auto 6px; display: flex; align-items: center; gap: 6px; color: var(--fraco); font-size: 12.5px; padding: 0 4px; }
.motor svg.i { width: 16px; height: 16px; color: var(--ouro); }
.motor select { appearance: none; -webkit-appearance: none; background: var(--cartao); border: 1px solid var(--linha); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; color: var(--suave); outline: none; max-width: 46%; }
.motor select:focus { border-color: var(--olho2); }
.motor span { margin-left: 4px; }
.passos { counter-reset: p; list-style: none; padding: 0; margin: 0 0 14px; }
.passos li { counter-increment: p; position: relative; padding: 0 0 10px 34px; color: var(--suave); font-size: 14.5px; }
.passos li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--cartao2); border: 1px solid var(--linha); color: var(--ouro); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.copia { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.copia input { flex: 1; min-width: 0; font-size: 13px; }

/* menu lateral (contas e pastas dos e-mails) */
.veu.lado { align-items: stretch; justify-content: flex-start; }
.gaveta { width: min(86vw, 320px); background: var(--fundo2); border-right: 1px solid var(--linha); overflow-y: auto; padding: calc(10px + var(--topo)) 8px calc(16px + var(--base)); box-shadow: var(--sombra); animation: entra .16s ease-out; }
@keyframes entra { from { transform: translateX(-24px); opacity: .4; } }
.gt { display: flex; gap: 11px; align-items: center; padding: 8px 10px 12px; }
.gt img { width: 40px; height: 40px; border-radius: 11px; } .gt b { font: 600 19px var(--serif); display: block; line-height: 1.15; } .gt small { color: var(--fraco); font-size: 12px; }
.gs { display: flex; align-items: center; gap: 8px; padding: 16px 12px 6px; color: var(--fraco); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; min-height: 12px; }
.gi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 11px; color: var(--suave); text-align: left; }
.gi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi b { font-size: 12px; background: var(--olho); color: #062a30; border-radius: 99px; padding: 1px 8px; }
.gi.sub { padding-left: 26px; } .gi.sub svg.i { width: 18px; height: 18px; }
.gi:hover { background: var(--cartao); } .gi.on { background: var(--cartao); color: var(--ouro); }

/* dinheiro e listas do Orçamento / Contatos */
.cartoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (min-width: 700px) { .cartoes { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; padding: 12px 13px; min-width: 0; }
.kpi small { color: var(--suave); font-size: 12.5px; display: block; }
.kpi b { font-size: 19px; font-variant-numeric: tabular-nums; display: block; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi i { font-style: normal; color: var(--fraco); font-size: 12px; display: block; }
.verde { color: var(--ok); } .vermelho { color: var(--erro); }
.barra-cat { margin: 9px 0; } .barra-cat .t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.barra-cat .t span:last-child { font-variant-numeric: tabular-nums; color: var(--suave); white-space: nowrap; }
.barra-cat .f { height: 8px; border-radius: 99px; background: var(--fundo2); overflow: hidden; } .barra-cat .f i { display: block; height: 100%; border-radius: 99px; }
.lanc { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--linha); }
.lanc:last-child { border-bottom: 0; }
.lanc .cor { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.lanc .c { flex: 1; min-width: 0; text-align: left; } .lanc .c b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lanc .c small { color: var(--suave); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lanc .v { text-align: right; flex: none; font-variant-numeric: tabular-nums; } .lanc .v b { display: block; } .lanc .v small { color: var(--fraco); font-size: 12px; }
.lanc .ok { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--linha); display: flex; align-items: center; justify-content: center; color: var(--fraco); flex: none; }
.lanc .ok.sim { background: var(--ok); border-color: var(--ok); color: #06301a; } .lanc .ok svg.i { width: 17px; height: 17px; }
.total-lista { display: flex; justify-content: space-between; padding: 12px 2px 2px; color: var(--suave); font-size: 14px; } .total-lista b { color: var(--texto); font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--fundo2); border: 1px solid var(--linha); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { padding: 9px 6px; border-radius: 9px; color: var(--suave); font-size: 14.5px; } .seg button.on { background: var(--cartao2); color: var(--texto); font-weight: 600; }
.avatar-c { width: 42px; height: 42px; border-radius: 50%; background: var(--cartao2); border: 1px solid var(--linha); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ouro); flex: none; }
@media (min-width: 900px) { .bmenu:not(.sempre) { display: none; } }

/* ───── barra de baixo (celular): Dashboard · E-mails · Athena no centro · Agenda · Menu ───── */
.meio { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.base { display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; background: var(--fundo2); border-top: 1px solid var(--linha); padding: 0 4px var(--base); position: relative; z-index: 3; }
.base > button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; color: var(--fraco); font-size: 11px; position: relative; min-width: 0; }
.base > button.on { color: var(--ouro); }
.base .bolha { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--olho); color: #062a30; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.base .centro { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.base .grande { width: 66px; height: 66px; margin: -16px 0 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1b1503;
  background: radial-gradient(circle at 50% 35%, var(--ouro2), var(--ouro)); border: 4px solid var(--fundo2); box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 1px var(--linha); transition: transform .12s; }
.base .grande svg.i { width: 34px; height: 34px; stroke-width: 1.7; }
.base .grande span { display: none; }
.base .grande.on { box-shadow: 0 0 22px color-mix(in srgb, var(--olho) 60%, transparent), 0 0 0 2px var(--olho); }
.base .grande:active { transform: scale(.94); }
@media (min-width: 900px) { .base { display: none; } }

/* menu geral, à direita */
.veu.lado.direita { justify-content: flex-end; }
.veu.lado.direita .gaveta { border-right: 0; border-left: 1px solid var(--linha); animation-name: entra-d; }
@keyframes entra-d { from { transform: translateX(24px); opacity: .4; } }
.perfil { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--linha); }
.perfil .avatar-c { width: 48px; height: 48px; font-size: 19px; }
.perfil b { display: block; font: 600 18px var(--serif); } .perfil small { color: var(--fraco); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; }
.perfil > span:last-child { min-width: 0; }
.gi span small { display: block; color: var(--fraco); font-size: 12px; font-weight: 400; }
@media (max-width: 899px) { .compor { padding-bottom: 20px; } }

/* Custo com I.A.: barras por dia */
.dias { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 8px 0 4px; border-bottom: 1px solid var(--linha); }
.dia-b { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.dia-b i { display: block; width: 100%; background: var(--ouro); border-radius: 3px 3px 0 0; min-height: 0; }

/* ───── Dashboard e o cartão do Guardinha ───── */
.d-ola { font-size: 24px; font-weight: 600; margin: 2px 2px 14px; }
.kpi.toque { text-align: left; width: 100%; display: block; } .kpi.toque:hover { border-color: var(--ouro); }
.guardinha.cartao { border-left: 4px solid var(--linha); margin-top: 12px; }
.guardinha.cartao.critico { border-left-color: var(--erro); } .guardinha.cartao.atencao { border-left-color: var(--ouro); } .guardinha.cartao.ok { border-left-color: var(--ok); }
.g-cab { display: flex; align-items: center; gap: 11px; } .g-cab > div { flex: 1; min-width: 0; }
.g-cab h2 { margin: 0; font: 600 19px var(--serif); } .g-cab small { color: var(--fraco); font-size: 12.5px; display: block; }
.g-escudo { width: 42px; height: 42px; border-radius: 12px; background: var(--cartao2); border: 1px solid var(--linha); display: flex; align-items: center; justify-content: center; color: var(--olho); flex: none; }
.g-quando { color: var(--fraco); font-size: 12.5px; margin: 12px 0 2px; } .g-quando::first-letter { text-transform: uppercase; }
.g-atraso { margin: 6px 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--ouro); color: var(--ouro); font-size: 14px; }
.g-veredito { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 4px 0 8px; text-wrap: balance; }
.g-resumo { color: var(--suave); margin: 0 0 4px; }
.g-secao { margin-top: 18px; } .g-secao h3 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); margin-bottom: 8px; }
.g-item { background: var(--fundo2); border: 1px solid var(--linha); border-left: 3px solid var(--linha); border-radius: 10px; padding: 11px 13px; margin-bottom: 8px; overflow-wrap: anywhere; }
.g-item.critico { border-left-color: var(--erro); } .g-item.atencao { border-left-color: var(--ouro); } .g-item.ok { border-left-color: var(--ok); }
.g-item > b { display: block; font-weight: 600; } .g-item p { margin: 6px 0 0; color: var(--suave); font-size: 14.5px; white-space: pre-wrap; }
.g-item p.g-dep { color: var(--ouro); font-size: 13.5px; font-weight: 600; }
.g-fatos { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12.5px; color: var(--fraco); margin-top: 4px; } .g-fatos b { color: var(--suave); font-weight: 500; }
.g-tabela { overflow-x: auto; border: 1px solid var(--linha); border-radius: 10px; }
.g-tabela table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.g-tabela th, .g-tabela td { padding: 8px 11px; text-align: left; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.g-tabela th { font-size: 11.5px; color: var(--fraco); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.g-tabela tr:last-child td { border-bottom: 0; } .g-tabela td.n { text-align: right; }
.g-sis { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14.5px; } .g-sis dt { font-weight: 600; } .g-sis dd { margin: 0; color: var(--suave); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .g-sis { grid-template-columns: 1fr; gap: 2px; } .g-sis dd { margin-bottom: 8px; } }
.g-ruido { color: var(--fraco); font-size: 13.5px; border: 1px dashed var(--linha); border-radius: 10px; padding: 10px 13px; margin: 0; }

/* Dashboard: números e gráficos do Guardinha (o relatório inteiro mora na tela "O Guardinha") */
.g-cont { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.g-cont span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: var(--fundo2); border: 1px solid var(--linha); font-size: 13.5px; color: var(--suave); }
.g-cont span b { color: var(--texto); font-variant-numeric: tabular-nums; } .g-cont i { width: 8px; height: 8px; border-radius: 50%; }
.g-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } @media (min-width: 700px) { .g-nums { grid-template-columns: repeat(3, 1fr); } }
.g-num { background: var(--fundo2); border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px 8px; min-width: 0; }
.g-num small { color: var(--suave); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-num b { font-size: 21px; font-variant-numeric: tabular-nums; display: block; line-height: 1.25; }
.g-num em { font-style: normal; font-size: 12px; color: var(--fraco); display: block; min-height: 17px; }
.g-num svg { display: block; width: 100%; height: 34px; margin-top: 4px; overflow: visible; }
.g-num svg polyline { fill: none; stroke: var(--olho2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.g-num svg rect { fill: transparent; } .g-num svg rect:hover { fill: color-mix(in srgb, var(--olho) 14%, transparent); }
.g-lojas .f i { background: var(--olho2); border-radius: 0 4px 4px 0; }
.g-lojas .f { height: 10px; border-radius: 0 4px 4px 0; }
.g-dias { padding: 10px 14px; }
