/* djaibr, a tela de envio das músicas (03/11/2026).
   Mesmo visual da página de vendas do djaibr (esta pasta roda sozinha, por isso o estilo é uma cópia): as cores
   (deck A âmbar, deck B ciano sobre o preto da cabine), as letras Anton e Archivo, o botão com base sólida que afunda ao apertar,
   o foco visível, o alvo de toque de 44 px, a área segura do iPhone e o "só para leitor de tela".
   Próprio desta tela: lista de faixas, área de soltar, passos, barra de progresso, tabela do plano que vira cartões no celular,
   avisos e confirmação na própria tela.
   Sem estilo embutido e sem nada de fora: aguenta a política default-src 'none'; style-src 'self'.
   (03/11/2026, login) No fim: a camada "entrar", com a tela de entrar (entrar.html) e o botão "Sair" do topo do app. */

@layer base, layout, pecas, passos, entrar;

/* ── letras próprias (OFL), na pasta fontes/ ─────────────────────────────── */
@font-face { font-family: "Anton"; src: url("fontes/anton.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: fallback; }
@font-face { font-family: "Archivo"; src: url("fontes/archivo.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* reserva do título: Arial Bold a 67%, a largura medida da Anton */
@font-face {
  font-family: "Anton reserva";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Arial"), local("Helvetica Neue"), local("Roboto");
  font-weight: 400; font-style: normal; size-adjust: 67%;
}

:root {
  color-scheme: dark;
  --fundo: #0e0f13; --painel: #171922; --painel-2: #1e212d; --linha: #2a2d3a; --linha-forte: #3a3e50;
  --tinta: #edeae2; --suave: #a8a5ad;
  --deck-a: #ffb03a; --deck-a-funda: #e29a24;      /* âmbar: botão e "a faixa que sai" */
  --deck-b: #5bc8de;                               /* ciano: "a faixa que entra" e o foco */
  --alerta: #ff6a6e; --ok: #5fcb74;                /* alerta = o motor avisa; ok = conferido */
  --sobre-ambar: #0e0f13;

  --titulo: "Anton", "Anton reserva", "Arial Narrow", sans-serif;
  --texto: "Archivo", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --fs-micro: .8125rem; --fs-small: .9375rem; --fs-body: 1.0625rem; --fs-lead: 1.125rem;
  --fs-h1: clamp(2rem, 8vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 5.5vw, 2.25rem);

  --e1: .25rem; --e2: .5rem; --e3: .75rem; --e4: 1rem; --e5: 1.5rem; --e6: 2rem; --e8: 3rem; --e10: 4rem;
  --r: .75rem; --r-peq: .375rem; --r-pill: 999px;
  --borda: clamp(1rem, 4vw, 2rem); --largura: 68rem;
  --saida: cubic-bezier(.16, 1, .3, 1);
}

/* ══ base ═════════════════════════════════════════════════════════════════ */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; background: var(--fundo); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  @supports not (overflow-x: clip) { body { overflow-x: hidden; } }
  body {
    margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
    background: var(--fundo); color: var(--tinta);
    font: 400 var(--fs-body)/1.55 var(--texto);
    font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--deck-a); color: var(--sobre-ambar); }
  :focus-visible { outline: 3px solid var(--deck-b); outline-offset: 3px; border-radius: 4px; }
  [tabindex="-1"]:focus { outline: none; }               /* títulos e avisos que recebem o foco por programa, não por tecla */
  [tabindex="-1"]:focus-visible { outline: 3px solid var(--deck-b); outline-offset: 3px; }
  a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
  h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
  fieldset { padding: 0; border: 0; min-width: 0; }
  ul, ol { padding: 0; list-style: none; }
  h1, h2 { font-family: var(--titulo); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
  h1 { font-size: var(--fs-h1); line-height: 1.08; }
  h2 { font-size: var(--fs-h2); line-height: 1.15; }
  h3 { font: 800 1.125rem/1.25 var(--texto); text-wrap: balance; }
  p { text-wrap: pretty; }
  button, input { font: inherit; color: inherit; }
  .so-leitor, .pular:not(:focus) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .pular:focus { position: fixed; z-index: 20; top: var(--e3); left: var(--e3); padding: var(--e3) var(--e4); background: var(--deck-a); color: var(--sobre-ambar); font-weight: 700; }
  .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .suave { color: var(--suave); }
  .quebra { overflow-wrap: anywhere; }
}

/* ══ layout ═══════════════════════════════════════════════════════════════ */
@layer layout {
  .dentro {
    width: 100%; max-width: calc(var(--largura) + 2 * var(--borda)); margin-inline: auto;
    padding-inline: max(var(--borda), env(safe-area-inset-left, 0px)) max(var(--borda), env(safe-area-inset-right, 0px));
  }
  .topo { border-bottom: 1px solid var(--linha); background: var(--painel); }
  .topo-dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e1) var(--e5); min-height: 3.75rem; padding-block: var(--e1); }
  .marca { display: inline-flex; align-items: center; gap: var(--e2); min-height: 2.75rem; font: 400 1.5rem/1 var(--titulo); letter-spacing: .04em; text-transform: none; text-decoration: none; }   /* "djaibr": o nome escrito como é, com o "i" minúsculo */
  .marca-pontos { display: inline-flex; gap: 3px; }
  .marca-pontos i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--deck-a); }
  .marca-pontos i + i { background: var(--deck-b); }
  .cota { font-size: var(--fs-small); color: var(--suave); }
  .cota strong { color: var(--tinta); font-weight: 800; }
  .topo-conta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--e1) var(--e4); margin-left: auto; }
  main { flex: 1; padding-block: var(--e6) var(--e8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e5); align-content: start; }
  .cabeca { display: grid; gap: var(--e2); }
  .cabeca p { color: var(--suave); font-size: var(--fs-lead); line-height: 1.45; max-width: 44rem; }
  .rodape { border-top: 1px solid var(--linha); background: #08090c; color: var(--suave); }
  .rodape-dentro { display: grid; gap: var(--e2); padding-block: var(--e5) calc(var(--e6) + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); line-height: 1.5; }
  .rodape strong { color: var(--tinta); }
}

/* ══ peças que se repetem ═════════════════════════════════════════════════ */
@layer pecas {
  .rotulo { font: 800 var(--fs-micro)/1.2 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--deck-b); }

  /* botão: o âmbar é só dele; base sólida, afunda ao apertar */
  .botao {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--e3);
    width: 100%; min-height: 3.5rem; padding: var(--e3) var(--e5);
    border: 2px solid transparent; border-radius: var(--r); cursor: pointer;
    background: var(--deck-a); color: var(--sobre-ambar);
    font: 800 1.0625rem/1.15 var(--texto); letter-spacing: .005em; text-align: center; text-decoration: none;
    box-shadow: 0 4px 0 var(--deck-a-funda), 0 14px 26px -14px rgb(255 176 58 / .55);
    transition: transform .16s var(--saida), box-shadow .16s var(--saida), background-color .15s;
  }
  @media (hover: hover) and (pointer: fine) {
    .botao:hover:not(:disabled) { background: #ffc05e; transform: translateY(-2px); box-shadow: 0 6px 0 var(--deck-a-funda), 0 18px 30px -14px rgb(255 176 58 / .65); }
  }
  .botao:active:not(:disabled) { transform: translateY(3px) scale(.99); box-shadow: 0 1px 0 var(--deck-a-funda); }
  .botao:disabled { cursor: not-allowed; background: var(--painel-2); color: var(--suave); border-color: var(--linha-forte); box-shadow: none; }
  .botao-sec {
    background: transparent; color: var(--tinta); border-color: var(--linha-forte); box-shadow: none; min-height: 2.75rem; padding: var(--e2) var(--e4);
    font-size: var(--fs-body); font-weight: 700;
  }
  @media (hover: hover) and (pointer: fine) { .botao-sec:hover:not(:disabled) { background: var(--painel-2); border-color: var(--suave); transform: none; box-shadow: none; } }
  .botao-sec:active:not(:disabled) { transform: none; box-shadow: none; background: var(--painel-2); }
  .botao-sec:disabled { opacity: .5; }
  .botao-perigo { color: #ff9a9d; border-color: #8a3a3d; }
  @media (hover: hover) and (pointer: fine) { .botao-perigo:hover:not(:disabled) { border-color: var(--alerta); } }
  .botao-peq { width: auto; min-height: 2.75rem; min-width: 2.75rem; padding: var(--e2) var(--e4); font-size: var(--fs-small); }
  .acoes { display: grid; gap: var(--e3); }
  @media (min-width: 40rem) { .acoes { grid-template-columns: repeat(auto-fit, minmax(14rem, max-content)); align-items: center; } .acoes .botao { width: auto; } }

  .cartao { display: grid; gap: var(--e5); align-content: start; padding: var(--e5); border: 1px solid var(--linha); border-radius: calc(var(--r) * 1.25); background: var(--painel); }
  @media (min-width: 48rem) { .cartao { padding: var(--e6); } }
  .cartao > header { display: grid; gap: var(--e2); }
  .cartao > header p { color: var(--suave); max-width: 46rem; }
  .bloco { display: grid; gap: var(--e3); }
  .bloco-titulo { font: 800 var(--fs-micro)/1.2 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--deck-b); }
  .dica { font-size: var(--fs-small); line-height: 1.45; color: var(--suave); }
  .dica strong { color: var(--tinta); }

  /* ── passos ── */
  .passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e2); counter-reset: nada; }
  .passos li { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--e1); text-align: center; font-size: var(--fs-small); font-weight: 700; color: var(--suave); min-width: 0; }
  .passos li::before { content: ""; position: absolute; top: 1.25rem; left: calc(50% + 1.5rem); right: calc(-50% + 1.5rem); height: 3px; border-radius: 2px; background: var(--linha-forte); }
  .passos li:last-child::before { display: none; }
  .passos li.feito::before { background: var(--deck-b); }
  .passo-num {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; position: relative; z-index: 1;
    border: 2px solid var(--linha-forte); background: var(--painel); color: var(--suave); font: 400 1.25rem/1 var(--titulo);
  }
  .passos li[aria-current="step"] { color: var(--tinta); }
  .passos li[aria-current="step"] .passo-num { background: var(--deck-a); border-color: var(--deck-a); color: var(--sobre-ambar); box-shadow: 0 0 0 4px rgb(255 176 58 / .22); }
  .passos li.feito { color: var(--tinta); }
  .passos li.feito .passo-num { border-color: var(--deck-b); color: var(--deck-b); }
  .passos li.feito .passo-num::after { content: ""; width: .85rem; height: .45rem; margin-top: -.15rem; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; rotate: -45deg; }
  .passos li.feito .passo-num span { display: none; }
  @media (min-width: 40rem) { .passos { max-width: 40rem; } .passos li { font-size: var(--fs-body); } }

  /* ── avisos ── */
  .alerta, .nota, .aviso-rede {
    display: grid; gap: var(--e3); padding: var(--e4); border: 1px solid var(--linha-forte); border-left-width: 6px; border-radius: var(--r); background: var(--painel);
  }
  .alerta { border-left-color: var(--alerta); }
  .alerta h2 { font: 800 1.1875rem/1.25 var(--texto); text-transform: none; letter-spacing: 0; color: var(--tinta); }
  .alerta p, .nota p, .aviso-rede p { color: var(--tinta); }
  .nota { border-left-color: var(--deck-b); }
  .nota.ok { border-left-color: var(--ok); }
  .aviso-rede { border-left-color: var(--deck-a); }
  .alerta .acoes, .aviso-rede .acoes { margin-top: var(--e1); }

  /* ── confirmação na própria tela (sem janela do navegador) ── */
  .confirmar { display: grid; gap: var(--e3); padding: var(--e4); border: 2px solid var(--alerta); border-radius: var(--r); background: var(--painel-2); }
  .confirmar h3 { color: var(--tinta); }
  .confirmar p { color: var(--suave); }

  /* ── barra de progresso (a <progress> nativa, de lugar nenhum de fora) ── */
  .barra { display: grid; gap: var(--e2); }
  .barra-texto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e1) var(--e4); font-size: var(--fs-small); color: var(--suave); }
  .barra-texto strong { color: var(--tinta); font-variant-numeric: tabular-nums; }
  progress { -webkit-appearance: none; appearance: none; width: 100%; height: 1rem; border: 0; border-radius: var(--r-pill); overflow: hidden; background: var(--fundo); box-shadow: inset 0 0 0 1px var(--linha-forte); }
  progress::-webkit-progress-bar { background: var(--fundo); border-radius: var(--r-pill); }
  progress::-webkit-progress-value { background: linear-gradient(90deg, var(--deck-a), var(--deck-b)); border-radius: var(--r-pill); transition: width .5s var(--saida); }
  progress::-moz-progress-bar { background: linear-gradient(90deg, var(--deck-a), var(--deck-b)); border-radius: var(--r-pill); }

  /* equalizador: só enfeite (aria-hidden); parado para quem pede menos movimento */
  .equalizador { display: inline-flex; align-items: flex-end; gap: 4px; height: 2rem; }
  .equalizador i { width: 6px; height: 100%; border-radius: 3px; background: var(--deck-a); transform-origin: bottom; animation: dj-eq 1s ease-in-out infinite; }
  .equalizador i:nth-child(2) { background: var(--deck-b); animation-delay: -.2s; animation-duration: 1.2s; }
  .equalizador i:nth-child(3) { animation-delay: -.45s; animation-duration: .9s; }
  .equalizador i:nth-child(4) { background: var(--deck-b); animation-delay: -.7s; animation-duration: 1.1s; }
  .equalizador i:nth-child(5) { animation-delay: -.1s; animation-duration: 1.3s; }
  @keyframes dj-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
  @media (prefers-reduced-motion: reduce) {
    .equalizador i { animation: none; }
    .equalizador i:nth-child(1) { transform: scaleY(.5); } .equalizador i:nth-child(2) { transform: scaleY(.9); } .equalizador i:nth-child(3) { transform: scaleY(.4); }
    .equalizador i:nth-child(4) { transform: scaleY(.75); } .equalizador i:nth-child(5) { transform: scaleY(.55); }
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
  }
  .espera { display: flex; align-items: center; gap: var(--e4); }
  .espera p { font: 800 1.25rem/1.25 var(--texto); }

  /* etiquetas curtas */
  .etiqueta { display: inline-block; padding: 2px var(--e2); border: 1px solid currentColor; border-radius: var(--r-peq); font: 800 var(--fs-micro)/1.3 var(--texto); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .etiqueta-aviso { color: #ffc05e; }
  .etiqueta-ouvir { color: var(--sobre-ambar); background: var(--deck-a); border-color: var(--deck-a); }
  .etiqueta-ok { color: var(--ok); }
  .etiqueta-b { color: var(--deck-b); }
}

/* ══ os 4 passos ══════════════════════════════════════════════════════════ */
@layer passos {
  /* ── 1. enviar ── */
  .zona {
    display: grid; justify-items: center; gap: var(--e3); padding: var(--e6) var(--e4); text-align: center;
    border: 2px dashed var(--linha-forte); border-radius: var(--r); background: var(--painel-2);
    transition: border-color .15s, background-color .15s;
  }
  .zona.bloqueada { opacity: .6; pointer-events: none; }
  .zona.arrastando { border-color: var(--deck-a); background: rgb(255 176 58 / .1); }
  .zona-texto { font: 800 1.1875rem/1.3 var(--texto); max-width: 24rem; }
  .zona .botao { width: min(100%, 20rem); }
  .entrada-oculta { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .limites { display: grid; gap: var(--e1); font-size: var(--fs-small); color: var(--suave); }
  .limites li { position: relative; padding-left: 1.25rem; }
  .limites li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--deck-b); }
  .direitos { padding: var(--e3) var(--e4); border-left: 4px solid var(--deck-b); border-radius: 0 var(--r-peq) var(--r-peq) 0; background: var(--painel-2); font-size: var(--fs-small); line-height: 1.5; color: var(--suave); }
  .direitos strong { color: var(--tinta); }

  .lista-faixas { display: grid; gap: var(--e2); }
  .faixa-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e1) var(--e3); align-items: center;
    padding: var(--e2) var(--e2) var(--e2) var(--e4); border: 1px solid var(--linha); border-radius: var(--r); background: var(--painel-2);
  }
  .faixa-item.com-erro { border-color: #8a3a3d; }
  .faixa-nome { font-weight: 700; overflow-wrap: anywhere; line-height: 1.3; }
  .faixa-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--e1) var(--e3); font-size: var(--fs-small); color: var(--suave); }
  .faixa-erro { color: #ff9a9d; font-weight: 600; }
  .faixa-item .botao { grid-column: 2; grid-row: 1 / span 2; }
  .resumo-lista { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e1) var(--e4); }
  .envio { display: grid; gap: var(--e3); padding: var(--e4); border: 1px solid var(--linha-forte); border-radius: var(--r); background: var(--painel-2); }

  /* ── 2. plano ── */
  .plano-resumo { display: flex; flex-wrap: wrap; gap: var(--e1) var(--e5); font-size: var(--fs-small); color: var(--suave); }
  .plano-resumo strong { color: var(--tinta); }

  .tabela-plano { width: 100%; border-collapse: separate; border-spacing: 0; }
  .tabela-plano thead { display: none; }                /* no celular cada célula leva o próprio rótulo (data-rotulo) */
  .tabela-plano, .tabela-plano tbody { display: block; }
  .tabela-plano colgroup { display: none; }
  .tabela-plano tr {
    display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--e3) var(--e3);
    padding: var(--e4); margin-bottom: var(--e3); border: 1px solid var(--linha); border-radius: var(--r); background: var(--painel-2);
  }
  .tabela-plano td { display: grid; gap: var(--e1); align-content: start; padding: 0; min-width: 0; grid-column: 1 / -1; }
  .tabela-plano td::before { content: attr(data-rotulo); font: 800 var(--fs-micro)/1.2 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--deck-b); }
  .tabela-plano td.c-ordem { grid-column: 1; grid-row: 1; }
  .tabela-plano td.c-faixa { grid-column: 2; grid-row: 1; align-content: center; }
  .tabela-plano td.c-ordem::before, .tabela-plano td.c-faixa::before { display: none; }
  .ordem-num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--painel); border: 2px solid var(--deck-a); color: var(--deck-a); font: 400 1.375rem/1 var(--titulo); }
  .faixa-titulo { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
  .faixa-sub { font-size: var(--fs-small); color: var(--suave); }
  .camelot { font: 400 1.75rem/1 var(--titulo); color: var(--deck-b); }
  .tom-texto { font-size: var(--fs-small); color: var(--suave); }

  .bpm-form { display: grid; gap: var(--e2); }
  .bpm-linha { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
  .campo-bpm {
    width: 6.5rem; min-height: 2.75rem; padding: var(--e2) var(--e3); border: 2px solid var(--linha-forte); border-radius: var(--r-peq);
    background: var(--fundo); color: var(--tinta); font: 700 1.125rem/1 var(--mono); text-align: center;
  }
  .campo-bpm[aria-invalid="true"] { border-color: var(--alerta); }
  .erro-campo { font-size: var(--fs-small); font-weight: 600; color: #ff9a9d; }
  .bpm-alternativas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); font-size: var(--fs-small); color: var(--suave); }
  .avisos-faixa { display: grid; gap: var(--e2); }
  .avisos-faixa li { display: grid; gap: 2px; font-size: var(--fs-small); line-height: 1.4; }
  .avisos-faixa .etiqueta { justify-self: start; }
  .emenda-plano { display: grid; gap: var(--e1); font-size: var(--fs-small); line-height: 1.4; }
  .emenda-plano strong { font-size: var(--fs-body); }

  @media (min-width: 40rem) {
    .tabela-plano tr { grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1fr); }
    .tabela-plano td.c-faixa { grid-column: 2 / -1; }
    .tabela-plano td.c-bpm { grid-column: 1 / 3; }
    .tabela-plano td.c-tom { grid-column: 3; }
  }
  @media (min-width: 62rem) {
    .tabela-plano { display: table; table-layout: fixed; }
    .tabela-plano colgroup { display: table-column-group; }
    .tabela-plano thead { display: table-header-group; }
    .tabela-plano tbody { display: table-row-group; }
    .tabela-plano tr { display: table-row; padding: 0; margin: 0; border: 0; background: none; }
    .tabela-plano thead tr { display: table-row; }
    .tabela-plano th { padding: var(--e2) var(--e3); text-align: left; font: 800 var(--fs-micro)/1.2 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--deck-b); border-bottom: 2px solid var(--linha-forte); }
    .tabela-plano td { display: table-cell; padding: var(--e3); border-bottom: 1px solid var(--linha); vertical-align: top; align-content: start; }
    .tabela-plano td::before { display: none; }
    .tabela-plano td.c-ordem, .tabela-plano td.c-faixa, .tabela-plano td.c-bpm, .tabela-plano td.c-tom { grid-column: auto; grid-row: auto; align-content: start; }
    .tabela-plano .col-ordem { width: 4.25rem; } .tabela-plano .col-bpm { width: 15rem; } .tabela-plano .col-tom { width: 6.5rem; }
    .tabela-plano .col-faixa { width: 15%; }
  }

  .formatos { display: grid; gap: var(--e3); }
  .formato {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--e3); align-items: start; min-height: 3.5rem; padding: var(--e3) var(--e4);
    border: 2px solid var(--linha-forte); border-radius: var(--r); background: var(--painel-2); cursor: pointer;
  }
  .formato:has(input:checked) { border-color: var(--deck-a); background: rgb(255 176 58 / .08); }
  .formato:has(input:focus-visible) { outline: 3px solid var(--deck-b); outline-offset: 3px; }
  .formato input { width: 1.5rem; height: 1.5rem; margin: .125rem 0 0; accent-color: var(--deck-a); }
  .formato span { display: grid; gap: 2px; }
  .formato b { font-weight: 800; }
  .formato small { font-size: var(--fs-small); color: var(--suave); }
  @media (min-width: 40rem) { .formatos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* ── 3. gerando ── */
  .fila-numero { font: 400 clamp(3rem, 14vw, 5rem)/1 var(--titulo); color: var(--deck-a); }

  /* ── 4. pronto ── */
  .downloads { display: grid; gap: var(--e3); }
  @media (min-width: 40rem) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--e3); }
  .resumo div { display: grid; gap: 2px; padding: var(--e3) var(--e4); border-left: 4px solid var(--deck-a); border-radius: 0 var(--r-peq) var(--r-peq) 0; background: var(--painel-2); }
  .resumo div:nth-child(even) { border-left-color: var(--deck-b); }
  .resumo dt { font: 800 var(--fs-micro)/1.2 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
  .resumo dd { font: 400 1.625rem/1.1 var(--titulo); letter-spacing: .01em; }
  .ouvir-caixa { display: grid; gap: var(--e3); padding: var(--e4); border: 2px solid var(--deck-a); border-radius: var(--r); background: rgb(255 176 58 / .08); }
  .ouvir-caixa h3 { color: var(--tinta); }
  .ouvir-caixa ul { display: grid; gap: var(--e2); }
  .emendas { display: grid; gap: var(--e2); counter-reset: emenda; }
  .emenda-item { display: grid; gap: var(--e1) var(--e3); padding: var(--e3) var(--e4); border: 1px solid var(--linha); border-radius: var(--r); background: var(--painel-2); }
  .emenda-item.ouvir { border: 2px solid var(--deck-a); background: rgb(255 176 58 / .1); }
  .emenda-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); font-weight: 800; line-height: 1.3; }
  .emenda-titulo .nomes { overflow-wrap: anywhere; min-width: 0; }
  .emenda-detalhe { font-size: var(--fs-small); color: var(--suave); }
  .emenda-item.ouvir .emenda-detalhe { color: var(--tinta); }
  .lista-avisos { display: grid; gap: var(--e2); }
  .lista-avisos li { position: relative; padding-left: 1.5rem; font-size: var(--fs-small); line-height: 1.45; overflow-wrap: anywhere; }
  .lista-avisos li::before { content: "!"; position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--deck-a); color: var(--sobre-ambar); font: 800 .75rem/1 var(--texto); }
  .validade { font-size: var(--fs-small); color: var(--suave); }
  .validade strong { color: var(--tinta); }
}

/* ══ entrar (login) e o botão "Sair" ══════════════════════════════════════ */
@layer entrar {
  .cartao-entrar { width: min(100%, 34rem); justify-self: center; }
  .cartao-entrar h1 { line-height: 1.2; }                 /* título em duas linhas com acento ("É TEMPORÁRIA") não pode encostar na linha de cima */
  .entrar-form { display: grid; gap: var(--e4); }
  .campo { display: grid; gap: var(--e2); }
  .campo > label { font-weight: 700; }
  .campo-texto {
    width: 100%; min-height: 3.25rem; padding: var(--e3) var(--e4);
    border: 2px solid var(--linha-forte); border-radius: var(--r-peq); background: var(--fundo); color: var(--tinta);
    font-size: 1.0625rem; line-height: 1.3;                 /* 17 px: o iPhone não dá zoom na tela ao tocar (zoom só abaixo de 16 px) */
  }
  .campo-texto[aria-invalid="true"] { border-color: var(--alerta); }
  /* o preenchimento automático do navegador pintaria o campo de claro; aqui ele continua escuro */
  .campo-texto:-webkit-autofill, .campo-texto:-webkit-autofill:hover, .campo-texto:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--tinta); caret-color: var(--tinta); box-shadow: 0 0 0 100px var(--fundo) inset; transition: background-color 9999s;
  }
  .campo-senha { display: flex; gap: var(--e2); align-items: stretch; }
  .campo-senha .campo-texto { flex: 1 1 auto; min-width: 0; }
  .botao-ver { flex: none; width: auto; min-height: 3.25rem; padding-inline: var(--e3); }
  .marcar { display: flex; align-items: center; gap: var(--e3); min-height: 2.75rem; cursor: pointer; font-weight: 700; }
  .marcar input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--deck-a); }
  .erro-form {
    padding: var(--e3) var(--e4); border: 1px solid #8a3a3d; border-left-width: 6px; border-radius: var(--r);
    background: rgb(255 106 110 / .09); color: #ff9a9d; font-size: var(--fs-small); font-weight: 600; line-height: 1.45;
  }
  .links-entrar { display: flex; flex-wrap: wrap; gap: 0 var(--e5); }
  .link-bloco { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding-block: var(--e1); color: var(--deck-b); font-weight: 700; }
  .cartao-entrar > .bloco > p:not(.dica) { max-width: 40rem; }

  /* (06/11/2026) as telas assinar.html e trocar-senha.html usam as mesmas peças da tela de entrar; só o que é novo está aqui */
  .cartao-assinar { width: min(100%, 36rem); }
  .cartao-assinar .formatos { grid-template-columns: minmax(0, 1fr); }              /* os dois planos, um embaixo do outro */
  .entrar-form > .botao-sec { justify-self: start; width: auto; }                  /* "Mostrar as senhas": botão de apoio, não ocupa a linha toda */
  .resumo-plano { display: grid; gap: var(--e2); padding: var(--e4); border: 1px solid var(--linha-forte); border-left: 6px solid var(--deck-a); border-radius: var(--r); background: var(--painel-2); }
  .resumo-linha { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--e1) var(--e4); font-weight: 700; }
  .resumo-linha strong { font: 400 1.75rem/1.1 var(--titulo); letter-spacing: .01em; color: var(--deck-a); }
  .resumo-desistir { font-size: var(--fs-small); line-height: 1.45; color: var(--suave); }
  .resumo-desistir strong { color: var(--tinta); }
}
