/* Painel de comentários. Fundo em tons de branco (Ygor, 19/11/2026: "Não precisa usar esse bege"); o amarelo do canal fica nos destaques. */
@font-face { font-family: Karla; src: url("/fontes/Karla-Variable.ttf"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Ordinal; src: url("/fontes/Roboto-Variable.ttf"); unicode-range: U+00AA, U+00BA; }
@font-face { font-family: Caveat; src: url("/fontes/Caveat-Variable.ttf"); font-weight: 400 700; font-display: swap; }
:root {
  --fundo: #F4F4F2; --sup: #EAEAE6; --cartao: #FFFFFF; --texto: #1C1A16; --suave: #5E574A;
  --amarelo: #F6B52E; --verde: #2F7A55; --vermelho: #B23A1E; --lilas: #8B80C5; --linha: #DEDEDA; --menu: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: var(--fundo); font-family: Ordinal, Karla, -apple-system, sans-serif; color: var(--texto); font-size: 15px; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.defs { position: absolute; }

/* entrada */
.tela-entrada { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(30px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); text-align: center; gap: 10px; }
.marca { width: 76px; height: 76px; border-radius: 18px; background: var(--amarelo); font-family: Caveat; font-weight: 700; font-size: 58px; line-height: 76px; }
.tela-entrada h1 { font-family: Caveat; font-weight: 700; font-size: 44px; line-height: 1; margin-top: 8px; }
.tela-entrada .sub { margin-bottom: 18px; }
.rosto { width: 26px; height: 26px; vertical-align: -6px; margin-right: 10px; }
.msg { color: var(--vermelho); font-weight: 700; font-size: 14px; min-height: 18px; }
.cadastro { width: 100%; max-width: 380px; text-align: left; margin-top: 18px; }
.cadastro summary { color: var(--suave); font-weight: 700; font-size: 14px; text-align: center; padding: 8px; }
.cadastro label { display: block; font-size: 13px; font-weight: 700; color: var(--suave); margin-top: 10px; }
.cadastro input { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--linha); background: #fff; color: var(--texto); }

/* painel */
.painel { height: 100%; display: flex; flex-direction: column; }
.topo { padding: calc(10px + env(safe-area-inset-top)) 20px 8px; flex: none; }
.topo h1 { font-family: Caveat; font-weight: 700; font-size: 38px; line-height: 1; }
.sub { color: var(--suave); font-size: 12.5px; margin-top: 3px; }
.corpo { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 16px; }
.vazio { color: var(--suave); text-align: center; margin-top: 60px; font-size: 15px; }
.cartao { background: var(--cartao); border-radius: 16px; padding: 12px 12px; margin-bottom: 8px; position: relative; }
.cartao.esmaecido { opacity: .6; }
.cartao.destaque { outline: 2.5px solid var(--lilas); }
.video { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--suave); padding-right: 34px; line-height: 1.3; }
.rede { width: 18px; height: 18px; flex: none; }
.item { font-size: 14.5px; line-height: 1.38; margin-top: 6px; overflow-wrap: anywhere; }
.mot { margin-top: 5px; font-size: 13px; color: var(--suave); line-height: 1.35; overflow-wrap: anywhere; }
.sug { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--amarelo); background: #fff8e3; border-radius: 6px; font-size: 14px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.editor { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 15px; line-height: 1.38; padding: 8px 10px; border: 1.5px solid var(--amarelo); border-radius: 8px; background: #fff; color: var(--texto); resize: vertical; min-height: 90px; }
.acoes { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.acoes button { font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 10px; background: var(--sup); }
.check { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.check span { width: 22px; height: 22px; border-radius: 6px; background: var(--texto); color: var(--fundo); text-align: center; font-weight: 800; line-height: 22px; font-size: 14px; }
.check.off span { background: transparent; border: 2px solid var(--linha); color: transparent; }
.desmarcado { margin-top: 8px; font-size: 12.5px; font-weight: 800; color: var(--vermelho); }
.estado { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.e-aj { background: #e2ddf2; color: #4f4593; } .e-env { background: #fde9bd; color: #8a5d00; }
.pedido { margin-top: 6px; font-size: 12.5px; color: #4f4593; font-weight: 700; }
.antes { margin-top: 6px; font-size: 12.5px; color: var(--suave); line-height: 1.35; }
.linha2 { display: flex; gap: 8px; margin-top: 9px; } .linha2 .btn { flex: 1; font-size: 14px; padding: 10px 0; }
.rodape { padding: 8px 16px 10px; background: var(--cartao); border-top: 1px solid var(--linha); flex: none; }
.btn { display: block; text-align: center; border-radius: 14px; padding: 13px 0; font-weight: 800; font-size: 16px; }
.btn.largo { width: 100%; max-width: 420px; margin: 6px auto 0; }
.prim { background: var(--texto); color: var(--fundo); }
.prim:disabled { opacity: .45; }
.sec { background: var(--sup); color: var(--texto); }
.fantasma { color: var(--suave); }
.perigo { color: var(--vermelho); }
.nota { font-size: 12px; color: var(--suave); line-height: 1.38; margin-top: 6px; }
.alerta { background: #f6dcd3; border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.38; margin: 4px 16px 6px; }
.alerta b { color: var(--vermelho); }
.rot { font-size: 11.5px; font-weight: 800; color: var(--suave); text-transform: uppercase; letter-spacing: .05em; margin: 14px 2px 6px; }
.aparelho { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aparelho b { display: block; font-size: 15px; }
.aparelho small { display: block; color: var(--suave); font-size: 12px; }
.aparelho button { color: var(--vermelho); font-weight: 700; font-size: 14px; }
.chave { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.sw { width: 50px; height: 30px; border-radius: 15px; background: var(--linha); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on { background: var(--verde); } .sw.on::after { left: 23px; }
.dec { font-size: 13px; line-height: 1.4; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.dec:last-child { border-bottom: 0; }
.dec small { color: var(--suave); }

/* menu */
.menu { display: flex; border-top: 1px solid var(--linha); background: var(--menu); padding: 7px 6px calc(8px + env(safe-area-inset-bottom)); flex: none; }
.menu button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--suave); position: relative; padding-top: 2px; }
.menu svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.menu .on { color: var(--texto); font-weight: 800; --mf: var(--amarelo); }
.f { fill: var(--mf, none); }
.menu .n { position: absolute; top: -3px; left: calc(50% + 7px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 800; line-height: 15px; text-align: center; border: 2px solid var(--menu); }

/* folha */
.veu { position: fixed; inset: 0; background: rgba(28,26,22,.45); z-index: 10; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; background: var(--cartao); border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); z-index: 11; }
.folha .alca { width: 40px; height: 5px; border-radius: 3px; background: var(--linha); margin: 0 auto 10px; }
.folha h3 { font-size: 19px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 18px; background: var(--sup); }
.chips button.on { background: var(--texto); color: var(--fundo); }
.campo { display: block; width: 100%; font: inherit; font-size: 16px; line-height: 1.38; padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--linha); background: #fff; color: var(--texto); resize: vertical; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--texto); color: var(--fundo); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; line-height: 1.35; z-index: 20; text-align: center; }
a.btn { text-decoration: none; }
button.cartao { width: 100%; text-align: left; }
.folha h3 { margin-bottom: 6px; }
