:root { --fundo:#0f172a; --cartao:#1e293b; --texto:#f8fafc; --suave:#cbd5e1; --azul:#38bdf8; --verde:#22c55e; --vermelho:#f87171; --borda:#475569 }
* { box-sizing: border-box }
html { font-size: 20px }
body { margin:0; background:var(--fundo); color:var(--texto); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height:1.45; padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)) }
[hidden] { display:none !important }
h1 { font-size:1.6rem; margin:.4rem 0 }
h2 { font-size:1.25rem; margin:1.2rem 0 .6rem }
.tela { max-width:30rem; margin:0 auto; padding:2rem 1.2rem }
.aba { max-width:40rem; margin:0 auto; padding:.8rem 1rem }
.topo { position:sticky; top:0; background:var(--fundo); padding:.8rem 1rem; display:flex; justify-content:space-between; border-bottom:1px solid var(--borda); z-index:2 }
.suave { color:var(--suave); font-size:.9rem }
.erro { color:var(--vermelho); min-height:1.4rem }
label { display:block; margin:.8rem 0 .3rem; font-weight:600 }
input, textarea, select { width:100%; font-size:1rem; padding:.8rem; border-radius:.7rem; border:2px solid var(--borda); background:#0b1220; color:var(--texto) }
input:focus, textarea:focus, select:focus, button:focus-visible { outline:3px solid var(--azul); outline-offset:2px }
button { font-size:1rem; font-family:inherit; cursor:pointer }
.grande { width:100%; margin-top:1rem; padding:1rem; font-weight:700; border:0; border-radius:.8rem; background:var(--azul); color:#06202e }
.secundario { background:#334155; color:var(--texto) }
.perigo { background:#7f1d1d; color:#fff }
.link { background:none; border:0; color:var(--azul); text-decoration:underline; padding:.8rem 0; font-size:.95rem }
.cartao { background:var(--cartao); border-radius:1rem; padding:1rem; margin:.6rem 0 }
.msgs { display:flex; flex-direction:column; gap:.7rem; min-height:50vh; padding:.5rem 0 }
.msg { padding:.8rem 1rem; border-radius:1rem; max-width:92%; white-space:pre-wrap; overflow-wrap:anywhere }
.msg.chefe { background:#075985; align-self:flex-end }
.msg.escritorio { background:var(--cartao); align-self:flex-start }
.msg.pensando { color:var(--suave); font-style:italic }
.barra-envio { position:sticky; bottom:calc(4.8rem + env(safe-area-inset-bottom)); background:var(--fundo); padding:.5rem 0 }
.barra-envio textarea { resize:none }
.abas { position:fixed; left:0; right:0; bottom:0; display:flex; background:#0b1220; border-top:1px solid var(--borda); padding-bottom:env(safe-area-inset-bottom); z-index:3 }
.abas button { flex:1; padding:1rem .2rem; background:none; border:0; color:var(--suave); font-size:.82rem; font-weight:600; position:relative }
.abas button.ativa { color:var(--azul); border-top:3px solid var(--azul) }
.bolha { background:var(--vermelho); color:#fff; border-radius:1rem; padding:0 .45rem; font-size:.75rem; margin-left:.2rem }
.coluna h3 { margin:.8rem 0 .3rem; font-size:1rem; color:var(--suave); text-transform:uppercase }
.item { background:var(--cartao); padding:.7rem .9rem; border-radius:.7rem; margin:.4rem 0; display:flex; justify-content:space-between; gap:.6rem; align-items:center }
.item button { background:#334155; color:var(--texto); border:0; padding:.6rem .8rem; border-radius:.6rem; font-weight:600 }
.pedido .resumo { white-space:pre-wrap; max-height:14rem; overflow:auto; background:#0b1220; padding:.7rem; border-radius:.6rem; font-size:.9rem }
.botoes { display:flex; gap:.5rem; margin-top:.8rem; flex-wrap:wrap }
.botoes button { flex:1; padding:.9rem .5rem; border:0; border-radius:.7rem; font-weight:700 }
.ok { background:var(--verde); color:#052e16 }
.ajuste { background:#fbbf24; color:#422006 }
.nao { background:#7f1d1d; color:#fff }
.gasto { border:2px solid var(--vermelho); padding:.6rem; border-radius:.7rem; margin:.6rem 0; font-weight:700 }
