/* =====================================================================================================
   Polimento visual e movimento (carrega depois de style.css). Tudo local: sem CDN; animações só com CSS/JS nativos.
   Regras: movimento curto (150–600 ms), curva de saída suave, nada que atrapalhe a leitura, e tudo desligado
   para quem pede "reduzir movimento" (bloco no fim do arquivo).
   ===================================================================================================== */
:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sombra-1: 0 1px 2px rgba(15, 15, 114, .06), 0 4px 14px rgba(15, 15, 114, .05);
  --sombra-2: 0 10px 30px rgba(15, 15, 114, .14);
  interpolate-size: allow-keywords;
}
html { scrollbar-color: var(--blue-soft) transparent; scroll-padding-top: 16px; }
h1, h2 { text-wrap: balance; }
.sub, .sec-head p, .pend-intro { text-wrap: pretty; }
.score, .pct, .count, .contador, .progresso, .badge { font-variant-numeric: tabular-nums; }
::selection { background: var(--yellow); color: var(--navy); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes giro { to { transform: rotate(360deg); } }
@keyframes deriva { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.08); } }
@keyframes tremer { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Pular para o conteúdo (teclado e leitores de tela) */
.skip { position: fixed; left: 14px; top: -70px; z-index: 60; background: var(--yellow); color: var(--navy); font-weight: 600; padding: 10px 20px; border-radius: 99px; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus-visible { top: 14px; }
.main:focus { outline: none; }

/* Fundo do conteúdo: um brilho leve no topo, sem competir com os cartões */
.main { background: radial-gradient(900px 340px at 50% -40px, rgba(40, 0, 200, .055), transparent 70%) no-repeat; min-height: 100vh; }

/* ---------- Entrada das telas ---------- */
.view-in > .sec, .view-in .form > .sec, .view-in .form-tools, .view-in .dock { animation: rise .55s var(--ease) backwards; }
.view-in .result { animation: rise .6s var(--ease) .12s backwards; }
.view-in .form > :nth-child(2) { animation-delay: .04s; } .view-in .form > :nth-child(3) { animation-delay: .08s; } .view-in .form > :nth-child(4) { animation-delay: .12s; }
.view-in .form > :nth-child(5) { animation-delay: .16s; } .view-in .form > :nth-child(6) { animation-delay: .2s; } .view-in .form > :nth-child(n+7) { animation-delay: .24s; }
.view-in > .sec:nth-child(2) { animation-delay: .06s; } .view-in > .sec:nth-child(3) { animation-delay: .12s; }
.top { animation: fade .6s var(--ease) both; }

/* ---------- Menu lateral ---------- */
.rail-item { transition: background .25s var(--ease), transform .25s var(--ease); }
.rail-item .i { transition: transform .3s var(--spring); }
.rail-item:hover .i { transform: translateY(-2px) scale(1.1); }
.rail-item:active { transform: scale(.96); }
.rail-item.is-active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* ---------- Botões ---------- */
.btn { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:not(:disabled):hover { transform: translateY(-2px); }
.btn:not(:disabled):active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-yellow:not(:disabled):hover { box-shadow: 0 10px 26px rgba(40, 0, 200, .22); }
.btn .i { transition: transform .25s var(--ease); }
.btn:not(:disabled):hover .i { transform: translateX(3px); }
.btn-danger { background: #c72a4c; color: #fff; }
.btn-danger:not(:disabled):hover { box-shadow: 0 10px 26px rgba(199, 42, 76, .3); }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; opacity: .9 !important; }
.btn.is-busy .i { opacity: 0; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--navy); border-top-color: transparent; animation: giro .7s linear infinite; }
.btn-outline.is-busy::after { border-color: var(--blue); border-top-color: transparent; }
.btn-danger.is-busy::after { border-color: #fff; border-top-color: transparent; }
.link-btn { transition: color .2s, opacity .2s; }
.link-btn:hover { color: var(--navy); }

/* ---------- Formulário ---------- */
.sec { box-shadow: var(--sombra-1); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.sec:focus-within { border-color: var(--blue-soft); box-shadow: var(--sombra-2); }
.num { transition: background .35s var(--ease), color .35s; }
.num .i { font-size: 20px; stroke-width: 3; }
.num.is-ok { background: var(--green); animation: pop .4s var(--spring); }
.form-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
input[type=text], textarea, select, input[type=password] { transition: border-color .2s, background .2s, box-shadow .25s var(--ease); }
input[type=text]:hover, textarea:hover, select:hover, input[type=password]:hover { border-color: var(--blue-soft); }
input[type=text]:focus, textarea:focus, select:focus, input[type=password]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40, 0, 200, .12); }
textarea { min-height: 3.2em; }
.mini { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.chip { transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed=true] { animation: pop .3s var(--spring); }
.drop { transition: border-color .25s, background .25s, transform .25s var(--ease); }
.drop.is-over { transform: scale(1.012); background: var(--cyan-soft); }
.file, .anexo, .nivel { animation: rise .35s var(--ease) backwards; }
.thumb { transition: border-color .2s, transform .2s var(--ease); }
.thumb:hover { border-color: var(--blue); transform: scale(1.03); }
.has-error input, .has-error textarea { animation: tremer .35s; }

/* Escolha de oferta (controle segmentado) */
fieldset.field, .seg-box { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.seg-box legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-o { position: relative; margin: 0; cursor: pointer; display: inline-block; font-weight: 500; }
.seg-o input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-o span { display: inline-flex; padding: 9px 16px; border: 2px solid var(--blue-soft); border-radius: 999px; font-size: 13.5px; background: #fff; transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.seg-o:hover span { border-color: var(--blue); }
.seg-o:active span { transform: scale(.97); }
.seg-o input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; animation: pop .3s var(--spring); }
.seg-o input:focus-visible + span { outline: 3px solid var(--yellow); box-shadow: 0 0 0 5px var(--blue); }
.reveal-box { margin-top: 14px; animation: rise .4s var(--ease); }

/* Barra fixa de ação: o botão "Gerar" fica sempre à mão, com o resumo do que falta */
.dock { position: sticky; bottom: 14px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-soft); border-radius: 999px; padding: 10px 12px 10px 26px; box-shadow: 0 14px 40px rgba(15, 15, 114, .16); }
.dock-info { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.progresso { font-size: 13px; font-weight: 600; color: var(--navy); }
.contador { text-align: left; margin: 0; font-size: 12px; }
.dock .actions { flex: none; }

/* ---------- Resultado ---------- */
.r-empty .mount { animation: flutuar 6s ease-in-out infinite; }
.r-loading, .r-error, .r-empty { animation: fade .4s var(--ease); }
.steps { margin: 4px 0 22px; }
.step { animation: rise .4s var(--ease) backwards; transition: color .3s; }
.step .dot { transition: background .3s, border-color .3s; }
.step.is-done .dot { animation: pop .35s var(--spring); }
.step.is-done { color: var(--muted); }
.r-loading .load-info { margin: 0 0 14px; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, #3a14e0 100%); animation: rise .55s var(--ease) backwards; }
.hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 270px; height: 163px; background: var(--yellow); opacity: .17; -webkit-mask: url(assets/marca-n.svg) center / contain no-repeat; mask: url(assets/marca-n.svg) center / contain no-repeat; animation: flutuar 7s ease-in-out infinite; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.bar i { transition: width 1s var(--ease); }

.tabs { position: relative; }
.tab { transition: color .2s; border-bottom-color: transparent !important; }
.tab-ind { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--blue); border-radius: 3px 3px 0 0; transition: transform .4s var(--ease), width .4s var(--ease); pointer-events: none; }
.tab:focus-visible { border-radius: 10px; }
.pane.is-in > * { animation: rise .5s var(--ease) backwards; }
.pane.is-in > :nth-child(2) { animation-delay: .04s; } .pane.is-in > :nth-child(3) { animation-delay: .08s; } .pane.is-in > :nth-child(4) { animation-delay: .12s; }
.pane.is-in > :nth-child(5) { animation-delay: .16s; } .pane.is-in > :nth-child(6) { animation-delay: .2s; } .pane.is-in > :nth-child(n+7) { animation-delay: .24s; }
.badge { transition: background .3s, color .3s; }

/* Acordeões: abrem e fecham deslizando (Chrome/Edge atuais; nos demais abrem direto) */
.acc { transition: box-shadow .25s var(--ease), border-color .25s; }
.acc:hover { border-color: var(--blue-soft); box-shadow: var(--sombra-1); }
.acc > summary { transition: background .2s; }
.acc > summary:hover { background: var(--mist); }
.acc::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.acc[open]::details-content { height: auto; }
.acc > summary .i { transition: transform .35s var(--ease); }

.pend { transition: background .3s, border-color .3s, box-shadow .25s var(--ease); }
.pend:hover { box-shadow: var(--sombra-1); }
.pend.is-done { border-color: #bfeed5; }
.pend-line { display: flex; gap: 18px; flex-wrap: wrap; }
.sev { transition: background .3s, color .3s; }
.chk { animation: rise .4s var(--ease) backwards; }
.chk:nth-child(2) { animation-delay: .04s; } .chk:nth-child(3) { animation-delay: .08s; } .chk:nth-child(4) { animation-delay: .12s; } .chk:nth-child(n+5) { animation-delay: .16s; }

/* ---------- Listas e tabelas ---------- */
.equipe-tab tbody tr { transition: background .2s; }
.equipe-tab tbody tr:hover td { background: var(--mist); }
.cards-tab tbody tr { animation: rise .45s var(--ease) backwards; }
.cards-tab tbody tr:nth-child(2) { animation-delay: .04s; } .cards-tab tbody tr:nth-child(3) { animation-delay: .08s; } .cards-tab tbody tr:nth-child(4) { animation-delay: .12s; } .cards-tab tbody tr:nth-child(n+5) { animation-delay: .16s; }
.skel-lista { display: grid; gap: 10px; padding: 6px 0; }
.skel { display: block; height: 46px; border-radius: 14px; background: linear-gradient(90deg, var(--paper) 25%, #fff 50%, var(--paper) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.aviso-reaberto { animation: rise .4s var(--ease); }

/* ---------- Aviso (toast) e diálogo ---------- */
.toast { opacity: 0; transform: translate(-50%, 18px) scale(.97); pointer-events: none; transition: opacity .3s var(--ease), transform .35s var(--spring); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.dlg { border: 0; border-radius: 28px; padding: 0; width: min(440px, calc(100vw - 32px)); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(15, 15, 114, .35); }
.dlg form { padding: 28px 28px 22px; }
.dlg h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.dlg p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.dlg-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.dlg::backdrop { background: rgba(15, 15, 114, .45); backdrop-filter: blur(3px); }
.dlg[open] { animation: rise .35s var(--spring); }
.dlg[open]::backdrop { animation: fade .3s var(--ease); }

/* ---------- Senha: mostrar/ocultar ---------- */
.pw { position: relative; }
.pw input { padding-right: 54px; }
.pw-ver { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.pw-ver:hover { background: var(--line); color: var(--blue); }
.pw-ver .i { font-size: 19px; }

/* ---------- Entrar ---------- */
.auth { position: relative; overflow: hidden; background: var(--paper); }
.auth::before, .auth::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; animation: deriva 14s ease-in-out infinite; }
.auth::before { width: 460px; height: 460px; background: #b7a6ff; left: -120px; top: -140px; }
.auth::after { width: 380px; height: 380px; background: var(--yellow); right: -100px; bottom: -120px; animation-delay: -6s; }
.auth-card { position: relative; z-index: 1; box-shadow: 0 24px 70px rgba(15, 15, 114, .16); animation: rise .6s var(--ease) backwards; }
.auth-erro { animation: tremer .4s; }

/* ---------- Celular: o menu vira barra inferior ---------- */
@media (max-width: 760px) {
  :root { --rail-w: 0px; }
  .rail { inset: auto 0 0 0; width: auto; height: 66px; flex-direction: row; justify-content: space-around; align-items: center; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(15, 15, 114, .2); }
  .rail-sep { display: none; }
  .rail-item { flex: 1; max-width: 96px; width: auto; padding: 7px 0 5px; font-size: 10.5px; }
  .rail-item .i { font-size: 22px; }
  .main { padding-bottom: 104px; }
  .toast { bottom: 84px; }
  .dock { bottom: 78px; border-radius: 26px; padding: 12px 14px; }
  .dock .actions, .dock .btn { width: 100%; }
  .top { padding-bottom: 14px; margin-bottom: 20px; }
  .logo { height: 42px; margin-bottom: 14px; }
  .form-tools .btn { flex: 1; }
  .hero { padding: 22px 20px; } .hero h2 { font-size: 24px; } .score { font-size: 52px; }
  .pend { padding: 16px; }
}

/* =====================================================================================================
   Recursos novos: letra ajustável, rascunho, dicas, passeio, progresso de arquivos, busca em Meus cards,
   "o que mudou", edição no card, histórico, tela cheia, painel do administrador.
   ===================================================================================================== */
.main { zoom: var(--zoom, 1); }

/* Ferramentas do topo */
.top-tools { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fonte-ctl { display: inline-flex; gap: 2px; background: var(--paper); border-radius: 999px; padding: 2px; }
.tool-btn { border: 0; background: transparent; color: var(--navy); font-size: 12.5px; font-weight: 600; height: 32px; min-width: 38px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s, transform .15s var(--ease); }
.tool-btn:hover:not(:disabled) { background: var(--blue-soft); }
.tool-btn:active:not(:disabled) { transform: scale(.95); }
.tool-btn:disabled { opacity: .35; cursor: not-allowed; }
.tool-txt { background: var(--paper); }
.tool-txt .i { font-size: 15px; color: var(--blue); }

/* Rascunho encontrado */
.rascunho-box { max-width: 1320px; margin: 0 auto 18px; background: var(--warn-soft); border-radius: 22px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; animation: rise .45s var(--ease); }
.rascunho-box p { font-size: 14px; font-weight: 500; flex: 1 1 280px; line-height: 1.5; }
.rascunho-box div { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dicas por seção */
.ajuda-btn { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--blue-soft); background: #fff; color: var(--blue); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.ajuda-btn .i { font-size: 15px; }
.ajuda-btn:hover, .ajuda-btn[aria-expanded=true] { border-color: var(--blue); background: var(--mist); }
.ajuda-btn:active { transform: scale(.96); }
.ajuda-box { background: var(--cyan-soft); border-radius: 18px; padding: 14px 18px 16px; margin: -6px 0 18px; font-size: 13.5px; line-height: 1.55; animation: rise .35s var(--ease); }
.ajuda-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.ajuda-cols b { display: block; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 4px; }
.ajuda-cols ul { display: grid; gap: 4px; }
.ajuda-cols li { position: relative; padding-left: 20px; font-size: 13px; }
.ajuda-cols li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ajuda-cols .bom b { color: #006b3c; } .ajuda-cols .bom li::before { content: "✓"; color: #006b3c; }
.ajuda-cols .ruim b { color: #c72a4c; } .ajuda-cols .ruim li::before { content: "✕"; color: #c72a4c; }
@media (max-width: 640px) { .ajuda-cols { grid-template-columns: minmax(0, 1fr); } .ajuda-btn span { display: none; } }

/* Passeio de boas-vindas */
.tour { width: min(480px, calc(100vw - 32px)); }
.tour-corpo { padding: 30px 30px 24px; }
.tour h2 { margin: 4px 0 8px; }
.tour-dicas { margin-top: 12px; display: grid; gap: 6px; }
.tour-dicas li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.tour-dicas li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.tour-pontos { display: flex; gap: 6px; margin-top: 18px; }
.tour-pontos i { width: 8px; height: 8px; border-radius: 99px; background: var(--blue-soft); transition: width .3s var(--ease), background .3s; }
.tour-pontos i.on { width: 24px; background: var(--blue); }
.som-aviso { margin: 14px 0 0; font-size: 13px; color: var(--muted); font-weight: 400; }

/* Leitura de arquivos: barra de progresso e aviso forte */
.prog { height: 6px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; margin: 8px 2px 2px; }
.prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #6a4cff); transition: width .4s var(--ease); }
.avisos li.forte { background: var(--red-soft); color: #8a1230; font-weight: 500; }
.file.is-convertendo { background: #eef0fb; }

/* Meus cards: busca e filtro */
.cards-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.cards-bar input[type=search] { flex: 1 1 260px; min-width: 0; background: var(--paper); border: 2px solid transparent; border-radius: 999px; padding: 11px 20px; font-size: 14.5px; transition: border-color .2s, background .2s, box-shadow .25s var(--ease); }
.cards-bar input[type=search]:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(40, 0, 200, .12); }
.cards-cont { margin: 0 0 6px; }
.cards-tab.sem-anim tbody tr { animation: none; }
.cards-tab .acoes .link-btn { margin-bottom: 4px; }

/* "O que mudou" e etiquetas */
.mudou-box { background: #fffbd6; border: 1px solid #e9e08a; border-radius: 20px; padding: 14px 18px; margin-bottom: 14px; font-size: 14px; animation: rise .45s var(--ease); }
.mudou-box b { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #5c4a00; }
.mudou-box ul { list-style: disc; padding-left: 20px; display: grid; gap: 2px; }
.tag-mudou { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--yellow); color: var(--navy); border-radius: 99px; padding: 2px 9px; margin-left: 10px; vertical-align: middle; }
.acc.is-mudou { border-color: #d9d04a; }
.fact.is-mudou { box-shadow: inset 4px 0 0 var(--yellow); }

/* Edição direta */
.ed-btn { border: 0; background: transparent; color: var(--muted); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 4px; opacity: .55; transition: opacity .2s, background .2s, color .2s; }
.ed-btn .i { font-size: 13px; }
.ed-btn:hover, .ed-btn:focus-visible { opacity: 1; background: var(--blue-soft); color: var(--blue); }
.ed-form { margin-top: 6px; }
.ed-form textarea { background: #fff; border-color: var(--blue); font-size: 14px; }
.ed-acoes { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ed-msg { color: #c72a4c; font-size: 12.5px; flex: 1 1 200px; line-height: 1.4; }
.ed-msg:empty { display: none; }

/* Histórico */
.versao { border: 1px solid var(--line-soft); border-radius: 20px; padding: 14px 18px; margin-bottom: 10px; background: #fff; animation: rise .4s var(--ease) backwards; transition: box-shadow .25s var(--ease); }
.versao:hover { box-shadow: var(--sombra-1); }
.versao-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.versao .mini { margin: 2px 0 8px; }
.versao-diff { margin-top: 10px; background: var(--mist); border-radius: 14px; padding: 10px 14px; font-size: 13px; animation: rise .3s var(--ease); }
.versao-diff ul { list-style: disc; padding-left: 18px; margin-top: 4px; }

/* Resultado em tela cheia */
.tab-extra { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--paper); color: var(--navy); font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; white-space: nowrap; transition: background .2s, transform .15s var(--ease); }
.tab-extra:hover { background: var(--blue-soft); }
.tab-extra:active { transform: scale(.96); }
.tab-extra .i { font-size: 15px; }
.work.foco { grid-template-columns: minmax(0, 1fr); }
.work.foco .form { display: none; }
.work.foco .result { position: static; max-height: none; width: 100%; max-width: 980px; margin: 0 auto; overflow: visible; }
@media (max-width: 1180px) { .tab-extra { display: none; } }

/* Painel do administrador */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--mist); border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; }
.stat b { font-size: 26px; font-weight: 600; color: var(--blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.barras { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; padding: 8px 4px 0; border-bottom: 1px solid var(--line-soft); }
.barra { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.barra i { width: 100%; min-height: 3px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #6a4cff, var(--blue)); transform-origin: bottom; animation: crescer .7s var(--ease) backwards; }
.barra em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--navy); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.barra span { position: absolute; bottom: -22px; font-size: 11px; color: var(--muted); }
@keyframes crescer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.barras { margin-bottom: 30px; }
.painel-csv { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.painel-csv .btn .i { font-size: 16px; }

/* Aviso com botão (Desfazer) */
.toast.is-on { pointer-events: auto; }
.toast-btn { margin-left: 14px; background: var(--yellow); color: var(--navy); border: 0; border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; transition: transform .15s var(--ease); }
.toast-btn:hover { transform: scale(1.05); }

/* ---------- Quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.hero .tab-extra { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(255, 255, 255, .16); color: #fff; }
.hero .tab-extra:hover { background: rgba(255, 255, 255, .28); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }
