:root {
  --noite: #05061a;
  --painel: #0b0d29;
  --painel-2: #11143a;
  --linha: #1e2258;
  --texto: #eef0ff;
  --apagado: #8e93c4;
  --azul: #3a3eff;
  --azul-claro: #8a90ff;
  --plantao: #ff4458;
  --aviso: #2ee59d;
  --alerta: #ffc247;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --raio: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--noite); color: var(--texto); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- moldura ---------- */
.moldura { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.moldura > div { min-width: 0; }
body { overflow-x: hidden; }
.trilho { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--linha); padding: 26px 18px; display: flex; flex-direction: column; gap: 28px; background: linear-gradient(180deg, #080a24, var(--noite)); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.marca img { height: 22px; }
.marca span { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--azul-claro); line-height: 1; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--apagado); font-weight: 500; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { color: var(--texto); background: var(--painel); }
.nav a.ativo { color: var(--texto); background: var(--painel-2); box-shadow: inset 3px 0 0 var(--azul); }
.nav .bolha { margin-left: auto; background: var(--plantao); color: #fff; font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.trilho .rodape { margin-top: auto; font-size: 13px; color: var(--apagado); padding: 0 8px; display: flex; flex-direction: column; gap: 8px; }
.trilho .rodape button { background: none; border: 0; color: var(--apagado); text-align: left; cursor: pointer; padding: 0; }
.trilho .rodape button:hover { color: var(--texto); }

.conteudo { padding: 34px clamp(16px, 4vw, 48px) 80px; max-width: 1240px; width: 100%; }
.topo-movel, .abas-movel { display: none; }

@media (max-width: 860px) {
  .moldura { grid-template-columns: minmax(0, 1fr); }
  .trilho { display: none; }
  .topo-movel { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--linha); position: sticky; top: 0; background: rgba(5,6,26,.92); backdrop-filter: blur(10px); z-index: 20; }
  .topo-movel .marca { padding: 0; }
  .topo-movel button { background: none; border: 0; color: var(--apagado); font-size: 14px; }
  .abas-movel { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: rgba(8,10,36,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--linha); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .abas-movel a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--apagado); text-decoration: none; padding: 6px 0; position: relative; }
  .abas-movel a svg { width: 21px; height: 21px; }
  .abas-movel a.ativo { color: var(--texto); }
  .abas-movel a.ativo svg { color: var(--azul-claro); }
  .abas-movel .bolha { position: absolute; top: 0; right: calc(50% - 20px); background: var(--plantao); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
  .conteudo { padding: 22px 16px 110px; }
}

/* ---------- tipografia ---------- */
.titulo-pagina { overflow-wrap: anywhere; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.02; letter-spacing: -.01em; }
.sub { color: var(--apagado); margin-top: 8px; max-width: 64ch; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
.secao { margin-top: 40px; }
.secao-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.secao-cab p { color: var(--apagado); font-size: 14px; }
.mono { font-family: var(--mono); font-size: 13px; }
.apagado { color: var(--apagado); }

/* ---------- peças ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--linha); background: var(--painel-2); color: var(--texto); padding: 10px 16px; border-radius: 10px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #353b85; }
.btn.prim { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn.prim:hover { background: #4a4eff; }
.btn.perigo { background: transparent; border-color: #5a2030; color: #ff8a98; }
.btn.verde { background: var(--aviso); border-color: var(--aviso); color: #04140c; }
.btn.fantasma { background: transparent; }
.btn.peq { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: progress; }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .rotulo { font-size: 13px; color: var(--apagado); font-weight: 500; }
.campo input, .campo select, .campo textarea { background: var(--noite); border: 1px solid var(--linha); border-radius: 10px; padding: 11px 13px; width: 100%; }
.campo textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); outline: none; }
.ajuda { font-size: 13px; color: var(--apagado); }

.etq { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--painel-2); color: var(--apagado); white-space: nowrap; }
.etq::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.etq.t-breaking { color: var(--plantao); background: rgba(255,68,88,.1); }
.etq.t-aviso { color: var(--aviso); background: rgba(46,229,157,.09); }
.etq.t-normal { color: var(--azul-claro); background: rgba(58,62,255,.14); }
.st { font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 6px; background: var(--painel-2); color: var(--apagado); white-space: nowrap; }
.st.s-aguardando_aprovacao, .st.s-aguardando_publicacao { background: rgba(255,194,71,.13); color: var(--alerta); }
.st.s-programado { background: rgba(58,62,255,.18); color: #b9bcff; }
.st.s-publicado { background: rgba(46,229,157,.12); color: var(--aviso); }
.st.s-erro, .st.s-descartado { background: rgba(255,68,88,.12); color: #ff8a98; }
.st.s-gerando, .st.s-na_fila { color: var(--texto); }
.st.s-gerando::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--azul-claro); animation: pulso 1.2s infinite; vertical-align: 1px; }
@keyframes pulso { 50% { opacity: .2; } }

.vazio { border: 1px dashed var(--linha); border-radius: var(--raio); padding: 26px; color: var(--apagado); text-align: center; }
.aviso-faixa { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255,194,71,.08); border: 1px solid rgba(255,194,71,.25); color: #ffe2a3; font-size: 14px; margin-top: 18px; }
.aviso-faixa b { color: #fff; }

/* ---------- painel: sinais vitais ---------- */
.sinais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; margin-top: 26px; }
.sinal { background: var(--painel); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sinal .rotulo { display: flex; align-items: center; gap: 8px; }
.sinal .valor { font-size: 15px; font-weight: 600; }
.sinal .det { font-size: 13px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.luz { width: 8px; height: 8px; border-radius: 50%; background: #4a4f80; flex: none; }
.luz.on { background: var(--aviso); box-shadow: 0 0 0 4px rgba(46,229,157,.15); }
.luz.off { background: var(--plantao); }
@media (max-width: 860px) { .sinais { grid-template-columns: 1fr 1fr; } }

/* ---------- grade de programação (o elemento marcante) ---------- */
.grade { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.grade::-webkit-scrollbar { height: 6px; } .grade::-webkit-scrollbar-thumb { background: var(--linha); border-radius: 3px; }
.dia { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dia-cab { display: flex; align-items: baseline; gap: 6px; padding: 0 2px; }
.dia-cab b { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; }
.dia-cab span { color: var(--apagado); font-size: 13px; }
.dia-cab.hoje b { color: var(--azul-claro); }
.capa { position: relative; display: block; width: 100%; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--painel); border: 1px solid var(--linha); text-decoration: none; }
.capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capa-bloco { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.capa-bloco:hover .capa { border-color: #3a4090; }
.capa-bloco .leg { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.capa-bloco .hora { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--apagado); margin-bottom: 2px; }
.capa .serie { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1; }
.capa .sem-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; color: var(--apagado); font-size: 13px; }
.capa.livre { border-style: dashed; background: transparent; display: flex; align-items: center; justify-content: center; text-align: center; color: #555aa0; font-size: 13px; line-height: 1.5; }
.capa.livre:hover { color: var(--texto); border-color: var(--azul); }
.serie-normal { background: var(--azul); } .serie-aviso { background: var(--aviso); } .serie-breaking { background: var(--plantao); }

/* ---------- listas de posts ---------- */
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cartao { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cartao .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cartao h3 { font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.linha-post { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--linha); text-decoration: none; }
.linha-post:hover { background: var(--painel); }
.linha-post .mini { width: 56px; aspect-ratio: 4/5; border-radius: 6px; background: var(--painel-2); overflow: hidden; }
.linha-post .mini img { width: 100%; height: 100%; object-fit: cover; }
.linha-post h3 { font-size: 14.5px; font-weight: 500; }
.linha-post .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* fila de aprovação: grande, a capa manda */
.aprovar { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 18px; border: 1px solid #4a2030; background: linear-gradient(135deg, rgba(255,68,88,.08), transparent 55%), var(--painel); border-radius: 18px; }
.aprovar + .aprovar { margin-top: 14px; }
.aprovar h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.aprovar .acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 640px) { .aprovar { grid-template-columns: 1fr; } .aprovar .capa { max-width: 260px; } }

/* ---------- calendário ---------- */
.cal-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cal-barra .mes { font-family: var(--serif); font-size: 32px; min-width: 220px; text-transform: lowercase; }
.cal-barra .esp { flex: 1; }
.seg { display: inline-flex; background: var(--painel); border: 1px solid var(--linha); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 7px; color: var(--apagado); cursor: pointer; font-weight: 500; }
.seg button.on { background: var(--painel-2); color: var(--texto); }
.mes-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.mes-grade .sem { font-size: 12.5px; color: var(--apagado); padding: 0 4px 4px; }
.cel { min-height: 128px; border-radius: 10px; background: var(--painel); border: 1px solid transparent; padding: 7px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cel.fora { opacity: .35; }
.cel.hoje { border-color: var(--azul); }
.cel.slot { background: repeating-linear-gradient(135deg, var(--painel), var(--painel) 8px, #0e1131 8px, #0e1131 16px); }
.cel .n { font-family: var(--mono); font-size: 12px; color: var(--apagado); display: flex; justify-content: space-between; }
.cel .itens { display: flex; flex-direction: column; gap: 5px; }
.cel a.it { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: center; text-decoration: none; font-size: 12px; line-height: 1.25; border-radius: 6px; padding: 3px; background: var(--painel-2); }
.cel a.it img, .cel a.it .ph { width: 30px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; background: var(--linha); display: block; }
.cel a.it span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cel a.it.t-breaking { box-shadow: inset 2px 0 0 var(--plantao); } .cel a.it.t-aviso { box-shadow: inset 2px 0 0 var(--aviso); } .cel a.it.t-normal { box-shadow: inset 2px 0 0 var(--azul); }
@media (max-width: 760px) {
  .mes-grade { gap: 3px; }
  .cel { min-height: 74px; padding: 4px; }
  .cel a.it { grid-template-columns: 1fr; padding: 0; background: none; }
  .cel a.it span { display: none; }
  .cel a.it img, .cel a.it .ph { width: 100%; }
  .cal-barra .mes { font-size: 26px; min-width: 0; }
}
.legenda-cores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--apagado); }

/* ---------- detalhe ---------- */
.det { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; margin-top: 24px; align-items: start; }
@media (max-width: 960px) { .det { grid-template-columns: minmax(0, 1fr); } }
.visor { position: sticky; top: 20px; }
@media (max-width: 960px) { .visor { position: static; } }
.palco { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--linha); }
.palco img { width: 100%; height: 100%; object-fit: contain; display: block; }
.palco iframe { position: absolute; top: 0; left: 0; width: 1080px; height: 1350px; border: 0; transform-origin: 0 0; background: #000; }
.palco .seta { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(5,6,26,.75); color: #fff; cursor: pointer; display: grid; place-items: center; }
.palco .seta.esq { left: 10px; } .palco .seta.dir { right: 10px; }
.tiras { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.tiras button { flex: none; width: 54px; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--painel-2); cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--apagado); }
.tiras button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiras button.on { border-color: var(--azul-claro); color: var(--texto); }
.nota-visor { font-size: 13px; color: var(--apagado); margin-top: 8px; }

.bloco { border-top: 1px solid var(--linha); padding: 22px 0; }
.bloco:first-child { border-top: 0; padding-top: 0; }
.bloco > h2 { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grade-2 { grid-template-columns: 1fr; } }
.botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.fontes a { display: block; padding: 8px 0; border-bottom: 1px solid var(--linha); font-size: 14px; text-decoration: none; color: #c6c9ff; overflow-wrap: anywhere; }
.historico { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.historico li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; }
.historico .mono { color: var(--apagado); font-size: 12px; padding-top: 2px; }

/* música */
.climas { display: flex; flex-wrap: wrap; gap: 8px; }
.climas button { border: 1px solid var(--linha); background: var(--noite); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; cursor: pointer; color: var(--apagado); }
.climas button.on { border-color: var(--azul-claro); color: var(--texto); background: rgba(58,62,255,.15); }
.disco { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--painel); border: 1px solid var(--linha); margin-top: 12px; }
.disco .vinil { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle, var(--azul) 0 18%, #0a0a14 19% 30%, #1a1c3a 31% 33%, #0a0a14 34% 60%, #1a1c3a 61% 63%, #0a0a14 64%); }
.disco audio { width: 100%; margin-top: 8px; height: 34px; }

/* ---------- pedir ---------- */
.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .tipos { grid-template-columns: 1fr; } }
.tipo { text-align: left; border: 1px solid var(--linha); background: var(--painel); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.tipo b { font-size: 16px; }
.tipo span { font-size: 13.5px; color: var(--apagado); }
.tipo .serie { position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: .4; }
.tipo.on { border-color: var(--azul-claro); background: var(--painel-2); }
.tipo.on .serie { opacity: 1; }
.contador { display: inline-flex; align-items: center; border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; }
.contador button { width: 46px; height: 46px; border: 0; background: var(--painel-2); font-size: 20px; cursor: pointer; }
.contador output { width: 64px; text-align: center; font-family: var(--serif); font-size: 30px; }
.vagas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vagas span { font-family: var(--mono); font-size: 12.5px; padding: 5px 9px; border-radius: 6px; background: var(--painel-2); }
.form-pedir { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin-top: 26px; }

/* ---------- radar ---------- */
.chave-grande { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 16px; border: 1px solid var(--linha); background: var(--painel); margin-top: 24px; flex-wrap: wrap; }
.interruptor { position: relative; width: 64px; height: 36px; border-radius: 18px; background: #262a5c; border: 0; cursor: pointer; flex: none; transition: background .2s; }
.interruptor::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interruptor[aria-checked="true"] { background: var(--aviso); }
.interruptor[aria-checked="true"]::after { transform: translateX(28px); }
.chave-grande .txt { flex: 1; min-width: 200px; }
.chave-grande .txt b { font-size: 17px; display: block; }
.assunto { padding: 16px 0; border-bottom: 1px solid var(--linha); display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.assunto h3 { font-size: 15.5px; font-weight: 500; }
.assunto .fts { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 13px; }
.assunto .fts a { color: var(--apagado); text-decoration: none; overflow-wrap: anywhere; }
.assunto .fts a:hover { color: var(--texto); }
@media (max-width: 600px) { .assunto { grid-template-columns: 1fr; } }

/* ---------- modal e toast ---------- */
.fundo-modal { position: fixed; inset: 0; background: rgba(2,3,12,.7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: min(520px, 100%); background: var(--painel); border: 1px solid var(--linha); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; max-height: 90dvh; overflow: auto; }
.modal h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.escolhas { display: flex; flex-direction: column; gap: 10px; }
.escolha { display: flex; gap: 12px; text-align: left; padding: 14px; border: 1px solid var(--linha); border-radius: 12px; background: var(--noite); cursor: pointer; }
.escolha.on { border-color: var(--azul-claro); background: rgba(58,62,255,.1); }
.escolha b { display: block; }
.escolha span { font-size: 13.5px; color: var(--apagado); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--texto); color: var(--noite); padding: 11px 18px; border-radius: 10px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.ruim { background: var(--plantao); color: #fff; }
@media (max-width: 860px) { #toast { bottom: 88px; } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .lado { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 80% at 0% 100%, rgba(58,62,255,.45), transparent 60%), #04051a; border-right: 1px solid var(--linha); }
.login .lado h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: .98; max-width: 11ch; }
.login .lado p { color: var(--apagado); max-width: 40ch; margin-top: 18px; }
.login .series { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--apagado); }
.login .series span { display: inline-flex; align-items: center; gap: 8px; }
.login .series i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.login form { align-self: center; justify-self: center; width: min(380px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 16px; }
.login form h2 { font-size: 22px; }
.login .erro { color: #ff8a98; font-size: 14px; min-height: 20px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login .lado { padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--linha); gap: 28px; }
  .login .lado h1 { font-size: 44px; }
  .login form { padding: 32px 0; }
}

/* =========================================================
   App no celular (Tela de Início do iPhone, tela cheia)
   ========================================================= */
:root { --topo: env(safe-area-inset-top, 0px); --base: env(safe-area-inset-bottom, 0px); }
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
.topo-titulo { display: none; }
.topo-mais { display: none; }
.ic-in { display: inline-flex; vertical-align: -3px; }
.ic-in svg { width: 16px; height: 16px; }

/* atalhos do painel */
.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.atalho { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--painel); border: 1px solid var(--linha); text-decoration: none; text-align: left; cursor: pointer; min-height: 92px; }
.atalho svg { width: 20px; height: 20px; color: var(--azul-claro); margin-bottom: 6px; }
.atalho b { font-size: 18px; font-weight: 600; }
.atalho span { font-size: 13px; color: var(--apagado); }
.atalho:hover { border-color: #353b85; }
.atalho.quente { border-color: rgba(255,68,88,.5); background: linear-gradient(135deg, rgba(255,68,88,.14), transparent 70%), var(--painel); }
.atalho.quente svg, .atalho.quente b { color: #ff8a98; }

/* tela Mais */
.menu { margin-top: 18px; border: 1px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--painel); }
.item-menu { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-decoration: none; background: none; border: 0; border-top: 1px solid var(--linha); text-align: left; cursor: pointer; }
.item-menu:first-child { border-top: 0; }
.item-menu > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-menu b { font-weight: 500; }
.item-menu span { font-size: 13px; color: var(--apagado); }
.item-menu > svg { width: 18px; height: 18px; color: var(--apagado); }
.item-menu .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--painel-2); color: var(--azul-claro); flex: none; }
.item-menu .ic svg { width: 20px; height: 20px; }
.item-menu .ic.perigo { color: #ff8a98; background: rgba(255,68,88,.1); }
.instalar { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 16px; border-radius: 16px; border: 0; cursor: pointer; text-align: left; color: #fff; background: radial-gradient(120% 140% at 0% 100%, #5b5fff, var(--azul) 45%, #23259c); }
.instalar svg { width: 30px; height: 30px; flex: none; }
.instalar div { display: flex; flex-direction: column; }
.instalar b { font-size: 16px; }
.instalar span { font-size: 13px; opacity: .85; }
.passos { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.passos li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.passos li > span { width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; flex: none; }
.dica-ios { font-size: 13.5px; color: var(--apagado); line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--painel); border: 1px solid var(--linha); }
.barra-decisao { display: none; }

@media (max-width: 860px) {
  .topo-movel { display: grid; grid-template-columns: 90px 1fr 90px; padding: calc(var(--topo) + 10px) 16px 10px; gap: 8px; }
  .topo-movel .marca img { height: 18px; }
  .topo-titulo { display: block; flex: 1; font-weight: 600; font-size: 16px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topo-mais { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--painel-2); color: var(--texto); }
  .topo-mais svg { width: 20px; height: 20px; }
  .abas-movel { padding-bottom: calc(6px + var(--base)); }
  .abas-movel a { min-height: 50px; justify-content: center; }
  .abas-movel a.central { color: var(--texto); }
  .abas-movel .fab { width: 46px; height: 46px; margin-top: -20px; border-radius: 16px; background: var(--azul); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(58,62,255,.45); color: #fff; }
  .abas-movel .fab svg { width: 24px; height: 24px; }
  .conteudo { padding: 18px 16px calc(120px + var(--base)); }
  .titulo-pagina { font-size: 40px; }
  .atalhos { grid-template-columns: 1fr 1fr; }
  .btn { min-height: 44px; }
  .btn.peq { min-height: 36px; }
  .campo input, .campo select, .campo textarea { font-size: 16px; } /* iOS não dá zoom no campo */
  /* folha que sobe de baixo */
  .fundo-modal { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + var(--base)); animation: sobe .22s ease-out; }
  /* barra fixa de decisão no detalhe */
  .barra-decisao { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(62px + var(--base)); padding: 10px 16px; background: linear-gradient(to top, var(--noite) 70%, transparent); z-index: 25; }
  #toast { bottom: auto; top: calc(var(--topo) + 12px); transform: translate(-50%, -20px); }
  #toast.on { transform: translate(-50%, 0); }
  .login { padding-top: var(--topo); padding-bottom: var(--base); }
}
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (display-mode: standalone) { body { -webkit-user-select: none; user-select: none; } input, textarea { -webkit-user-select: text; user-select: text; } }

/* ---------- resposta imediata ao toque ---------- */
a, button, .btn, .atalho, .tipo, .escolha, .item-menu { touch-action: manipulation; }
.btn, .atalho, .tipo, .escolha, .item-menu, .instalar, .capa-bloco, .linha-post, .abas-movel a, .nav a { transition: transform .08s ease, background-color .12s, border-color .12s; }
.btn:active, .atalho:active, .tipo:active, .escolha:active, .instalar:active, .abas-movel a:active, .item-menu:active { transform: scale(.96); }
.capa-bloco:active, .linha-post:active { transform: scale(.985); }
.saindo { opacity: .25; pointer-events: none; transition: opacity .2s; }
/* barra fina de carregamento no topo */
body::before { content: ""; position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--azul-claro); z-index: 100; opacity: 0; }
body.carregando::before { opacity: 1; animation: barra 1.1s ease-in-out infinite; top: var(--topo); }
@keyframes barra { 0% { left: 0; width: 0; } 50% { left: 20%; width: 50%; } 100% { left: 100%; width: 0; } }
/* radar */
.pontua { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.nota { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--painel-2); color: var(--apagado); }
.nota.alta { background: rgba(255,68,88,.16); color: #ff8a98; }
.chip { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--painel-2); color: var(--apagado); }
.fontes-radar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fontes-radar span { font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: var(--painel); border: 1px solid var(--linha); color: var(--apagado); }
.fontes-radar span b { font-family: var(--mono); font-weight: 500; color: var(--texto); margin-left: 4px; }
.fontes-radar span.falha { border-color: rgba(255,68,88,.4); }
.fontes-radar span.falha b { color: #ff8a98; }

/* ---------- extras ---------- */
.aviso-faixa.forte { background: rgba(255,68,88,.1); border-color: rgba(255,68,88,.4); color: #ffc3ca; }
.gancho { margin-top: 10px; color: #cfd2f5; font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tira-aprovar { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.tira-aprovar a { flex: none; width: 64px; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: var(--painel-2); }
.tira-aprovar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atividade { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; }
.atividade li + li { border-top: 1px solid var(--linha); }
.atividade a { display: flex; gap: 12px; padding: 12px 14px; text-decoration: none; background: var(--painel); }
.atividade a:active { background: var(--painel-2); }
.atividade i { width: 4px; border-radius: 2px; flex: none; }
.atividade div { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.atividade .mono { font-size: 12px; color: var(--apagado); }
.atividade b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atividade span:last-child { font-size: 13px; color: var(--apagado); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.puxar { position: fixed; top: calc(var(--topo) + 8px); left: 50%; transform: translate(-50%, -60px); z-index: 70; background: var(--painel-2); border: 1px solid var(--linha); color: var(--apagado); font-size: 13px; padding: 7px 14px; border-radius: 999px; pointer-events: none; transition: transform .05s; }
.puxar.pronto { color: var(--texto); border-color: var(--azul); }
