/* Comportamentos na Comunicação: azul-marinho, laranja e Nunito. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:root {
  color-scheme: light;
  /* marca */
  --navy: #020c45;
  --navy-2: #0c1a5e;
  --navy-3: #22306f;
  --amber: #fca32d;
  --amber-2: #ffb853;
  --orange: #dd791e;
  --paper: #f0efef;
  /* superfícies claras (painel) */
  --bg: #f5f6fa;
  --surface: #ffffff;
  --ink: var(--navy);
  --ink-2: #2d3766;
  --muted: #5d6485;
  --faint: #9aa0ba;
  --line: #e3e6ef;
  --line-2: #cdd2e0;
  --soft: #eef0f6;
  --softer: #f7f8fb;
  --bar-2: #a3aac6;
  --radius: 18px;
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(2, 12, 69, .04), 0 8px 24px rgba(2, 12, 69, .06);
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
b, strong { font-weight: 800; }
::selection { background: var(--amber); color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Marca ---------- */

.bubbles { width: 34px; height: 28px; flex: none; color: #fff; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.lk-text { display: grid; line-height: 1; }
.lk-top { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.lk-main { font-size: 21px; font-weight: 900; letter-spacing: -.02em; margin-top: 3px; }
.hl { color: var(--amber); }

/* ---------- Tipografia ---------- */

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.display {
  margin: 16px 0 20px;
  font-size: clamp(42px, 8.5vw, 80px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 900;
  text-wrap: balance;
}
.h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 900;
  text-wrap: balance;
}
.h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; font-weight: 800; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-weight: 700; }
.sub { margin: 0; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* ---------- Botões e campos ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border: 2px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 800; font-size: 16px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.busy { opacity: .45; pointer-events: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.accent { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn.accent:hover { background: var(--amber-2); border-color: var(--amber-2); box-shadow: 0 8px 24px rgba(252, 163, 45, .3); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-2); border-width: 1.5px; }
.btn.ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn.block { width: 100%; }
.btn.danger:hover { background: #fff4ea; color: #a14d06; border-color: var(--orange); }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0; border: 0; background: none;
  font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.link-btn:hover { color: var(--navy); }

.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.input, .prefix-input {
  width: 100%; height: 50px;
  border: 1.5px solid var(--line-2); border-radius: 14px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input { padding: 0 16px; outline: none; font-weight: 600; }
.input::placeholder, .prefix-input input::placeholder { color: var(--faint); font-weight: 600; }
.input:focus, .prefix-input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(252, 163, 45, .28); }
.prefix-input { display: flex; align-items: center; overflow: hidden; }
.prefix-input span { padding-left: 16px; font-size: 15px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.prefix-input input {
  flex: 1; min-width: 0; height: 100%;
  padding: 0 16px 0 1px; border: 0; outline: none; background: transparent;
  font-size: 15px; font-weight: 800;
}
.form-error { margin: 0; font-size: 14px; font-weight: 700; color: #a14d06; display: flex; gap: 8px; align-items: center; }
.form-error::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); box-shadow: var(--shadow); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px;
  border-radius: 999px; background: #fff3e2; color: #8a4a05;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(252, 163, 45, .25); }
.pill.off { background: var(--soft); color: var(--muted); }
.pill.off::before { background: var(--faint); box-shadow: none; }

/* ---------- Animações ---------- */

.enter { animation: enter .5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--amber);
  animation: spin .8s linear infinite;
}

/* ---------- Barras (gráfico de estilos) ---------- */

.bars { display: grid; gap: 14px; }
.bar-row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) 56px;
  align-items: center; gap: 16px;
  border-radius: 8px;
}
.bar-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.bar-row.top .bar-label { color: var(--navy); font-weight: 900; }
.bar-track { position: relative; height: 22px; background: var(--soft); border-radius: 0 6px 6px 0; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0;
  width: var(--w); background: var(--bar-2); border-radius: 0 6px 6px 0;
  animation: grow 1s var(--ease) both;
}
.bar-row.top .bar-fill { background: var(--navy); }
.bar-row.top .bar-fill::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 6px;
  background: var(--amber); border-radius: 0 6px 6px 0;
}
.bar-val { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bar-row.top .bar-val { color: var(--navy); font-weight: 900; }
.bar-row[data-tip] { cursor: default; }
.bar-row[data-tip]:hover .bar-track { background: #e4e7f0; }

@media (max-width: 560px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Tooltip e toast ---------- */

.tip {
  position: fixed; left: 0; top: 0; z-index: 100;
  max-width: 260px; padding: 9px 12px;
  background: var(--navy); color: #fff; border-radius: 10px;
  font-size: 13px; font-weight: 600; line-height: 1.4; white-space: pre-line;
  box-shadow: 0 8px 24px rgba(2, 12, 69, .25);
  pointer-events: none; opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity .12s;
}
.tip.show { opacity: 1; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  padding: 12px 20px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(2, 12, 69, .3);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast::before { content: '✓'; color: var(--amber); margin-right: 8px; font-weight: 900; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Papel (cartão com folha por trás, como o bilhete da marca) ---------- */

.paper { position: relative; isolation: isolate; background: transparent; border: 0; color: var(--navy); box-shadow: none; }
.paper::before, .paper::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.paper::before { z-index: -2; background: #dcdbdb; transform: rotate(-2.5deg) translate(-6px, 8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.paper::after { z-index: -1; background: var(--paper); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

/* =====================================================================
   QUIZ (fundo azul-marinho)
   ===================================================================== */

body.quiz {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(40, 60, 170, .45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(252, 163, 45, .10), transparent 60%),
    var(--navy);
  background-attachment: fixed;
  color: #fff;
}
.quiz .eyebrow { color: var(--amber); }
.quiz .lead { color: rgba(255, 255, 255, .8); }
.quiz .link-btn { color: rgba(255, 255, 255, .7); }
.quiz .link-btn:hover { color: #fff; }
.quiz .btn { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.quiz .btn:hover { background: var(--amber-2); border-color: var(--amber-2); box-shadow: 0 10px 30px rgba(252, 163, 45, .35); }
.quiz .spinner { border-color: rgba(255, 255, 255, .15); border-top-color: var(--amber); }

.q-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.q-top { position: sticky; top: 0; z-index: 5; padding: 18px 16px 0; background: linear-gradient(var(--navy) 70%, rgba(2, 12, 69, 0)); }
.q-top-row { max-width: 740px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.q-top #counter { font-size: 14px; font-variant-numeric: tabular-nums; }
.progress { max-width: 740px; margin: 16px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progress i { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .14); transition: background .35s var(--ease); }
.progress i.on { background: var(--amber); }
.q-main { flex: 1; display: flex; align-items: center; padding: 40px 16px 56px; }
.q-inner { width: 100%; max-width: 740px; margin: 0 auto; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; padding: 0; list-style: none; }
.meta li { padding: 7px 14px; border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.meta li::before { content: '•'; color: var(--amber); margin-right: 8px; }

.question {
  margin: 14px 0 30px;
  font-size: clamp(30px, 5.2vw, 48px);
  line-height: 1.08; letter-spacing: -.025em; font-weight: 900;
  text-wrap: balance;
}
.options { display: grid; gap: 12px; }
.opt {
  position: relative;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; align-items: start;
  width: 100%; padding: 18px 22px;
  border: 2px solid transparent; border-radius: 16px;
  background: var(--paper); color: var(--navy); text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: border-color .15s, background .2s, transform .18s var(--ease), box-shadow .2s;
}
.opt:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.opt:active { transform: translateY(0) scale(.995); }
.opt .key {
  display: grid; place-items: center; width: 32px; height: 32px; margin-top: 1px;
  border-radius: 10px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 900;
  transition: background .2s, color .2s;
}
.opt strong { display: block; font-size: 18px; font-weight: 900; letter-spacing: -.01em; line-height: 1.3; }
.opt .t { display: block; margin-top: 3px; font-size: 16px; font-weight: 600; color: #4a5277; line-height: 1.45; }
.opt.sel { background: var(--amber); border-color: var(--amber); transform: none; }
.opt.sel .key { background: #fff; color: var(--navy); }
.opt.sel .t { color: var(--navy); }

.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; min-height: 32px; }
.kbd-hint { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .45); }
@media (hover: none) { .kbd-hint { display: none; } }

.center-state { display: grid; justify-items: start; gap: 16px; }
.center-state .row-inline { display: flex; align-items: center; gap: 14px; font-weight: 700; color: rgba(255, 255, 255, .75); }

.check {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: var(--navy);
  animation: pop .5s var(--ease) both;
  box-shadow: 0 0 0 8px rgba(252, 163, 45, .28);
}
.check path { stroke-dasharray: 60; animation: draw .6s .2s var(--ease) both; }

.note { margin: 28px 0 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .5); }

.code-form { display: flex; gap: 10px; margin-top: 28px; max-width: 480px; }
.code-form .prefix-input { flex: 1; border-color: transparent; }

@media (max-width: 560px) {
  .q-main { align-items: flex-start; padding-top: 28px; }
  .opt { padding: 16px; gap: 14px; }
  .opt strong { font-size: 17px; }
  .opt .t { font-size: 15px; }
  .lead { font-size: 17px; }
  .code-form { flex-direction: column; }
  .lk-main { font-size: 18px; }
  .bubbles { width: 30px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   PAINEL
   ===================================================================== */

.a-head { position: sticky; top: 0; z-index: 10; background: var(--navy); }
.a-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--orange)); }
.a-head-in { max-width: 1100px; margin: 0 auto; padding: 14px 16px 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.a-head .lockup .lk-main { font-size: 19px; }
.brand-sub {
  margin-left: 4px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.a-nav { display: flex; gap: 22px; }
.a-nav .link-btn { color: rgba(255, 255, 255, .72); }
.a-nav .link-btn:hover { color: var(--amber); }
.a-main { max-width: 1100px; margin: 0 auto; padding: 48px 16px 96px; }

.page-head { margin-bottom: 32px; }

.create { padding: 26px; border-top: 4px solid var(--amber); }
.create-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.create .form-error { margin-top: 14px; }
.created {
  margin-top: 20px; padding: 18px 22px;
  border-radius: 14px; background: var(--navy); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  animation: enter .4s var(--ease) both;
}
.created .c-label { font-size: 13px; font-weight: 700; color: var(--amber); margin: 0 0 2px; }
.created .c-url { font-size: 17px; font-weight: 900; word-break: break-all; }
.created .btn { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.created .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.created .btn.ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 56px 0 16px; }

.rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) 110px minmax(0, 1.4fr) 130px 160px;
  align-items: center; gap: 16px;
  padding: 18px 22px; border-top: 1px solid var(--line);
  transition: background .15s;
}
.row:first-child { border-top: 0; }
.row.head { padding-top: 12px; padding-bottom: 12px; background: var(--softer); }
.row.head span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row:not(.head) { cursor: pointer; }
.row:not(.head):hover { background: #fffaf2; }
.cell-name a { display: block; font-size: 17px; font-weight: 900; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-name .code { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-num { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cell-top b { font-weight: 900; }
.cell-top .muted { font-weight: 800; font-size: 14px; margin-left: 8px; color: var(--orange); }
.cell-top .none { color: var(--faint); font-weight: 600; }
.cell-act { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.chev { color: var(--faint); font-weight: 900; transition: transform .2s var(--ease), color .2s; }
.row:hover .chev { color: var(--orange); transform: translateX(3px); }
.m-label { display: none; }

.empty { padding: 56px 24px; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--softer); }
.empty .h2 { margin-bottom: 6px; }
.empty p { margin: 0 auto; max-width: 46ch; color: var(--muted); font-weight: 600; }

.loading-line { display: flex; align-items: center; gap: 14px; padding: 40px 0; font-weight: 700; color: var(--muted); }

@media (max-width: 860px) {
  .create-grid { grid-template-columns: 1fr; }
  .create-grid .btn { width: 100%; }
  .row.head { display: none; }
  .row.head + .row { border-top: 0; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 18px 16px; }
  .cell-name { grid-column: 1; }
  .cell-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .cell-num, .cell-top { grid-column: 1 / -1; font-size: 15px; }
  .m-label { display: inline; color: var(--muted); font-weight: 600; margin-right: 8px; }
  .cell-act { grid-column: 1 / -1; justify-content: space-between; }
}

/* ---------- Detalhe ---------- */

.back { margin-bottom: 20px; }
.d-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.d-head .h1 { margin-bottom: 14px; }
.linkbox {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 6px 6px 6px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.linkbox .mono { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.linkbox .btn { flex: none; background: var(--amber); border-color: var(--amber); color: var(--navy); }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

.grid-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.stats { display: grid; gap: 16px; }
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 163, 45, .18), transparent 68%);
  pointer-events: none;
}
.hero .eyebrow { color: var(--amber); }
.hero-fig { margin: 10px 0 0; font-size: clamp(46px, 7vw, 76px); line-height: 1; letter-spacing: -.035em; font-weight: 900; text-wrap: balance; }
.hero-sub { margin: 12px 0 0; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: 14px; font-weight: 900; }
.hero-desc { position: relative; margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .8); font-size: 16px; font-weight: 600; }
.stat-fig { margin: 8px 0 2px; font-size: 48px; line-height: 1; letter-spacing: -.03em; font-weight: 900; }
.stat-fig.sm { font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.stat p.muted { margin: 0; font-size: 14px; font-weight: 600; }

.chart { margin-bottom: 16px; padding: 28px; }
.chart-head { display: grid; gap: 4px; margin-bottom: 28px; }
.chart-head p { margin: 0; font-size: 15px; font-weight: 600; }

.heat-wrap { overflow-x: auto; }
.heat { width: 100%; min-width: 300px; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.heat th { padding: 0 6px 10px; font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; vertical-align: bottom; line-height: 1.25; }
.heat th.corner { width: 24%; }
.heat tbody th { padding: 0 12px 0 0; font-size: 15px; font-weight: 800; color: var(--ink-2); text-align: left; vertical-align: middle; }
.heat td {
  height: 56px; border-radius: 10px;
  text-align: center; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  cursor: default; transition: box-shadow .15s;
}
.heat td:hover, .heat td:focus-visible { box-shadow: inset 0 0 0 3px var(--amber); outline: none; }
.heat td.zero { color: var(--faint); font-weight: 600; }
.scale { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.scale i { width: 150px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(238, 240, 247), var(--navy)); }

.ref { padding: 0; margin-top: 16px; }
.ref summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 900;
}
.ref summary::-webkit-details-marker { display: none; }
.ref summary .muted { font-weight: 600; font-size: 14px; }
.ref summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft); color: var(--navy); font-weight: 900; font-size: 18px;
}
.ref[open] summary::after { content: '−'; background: var(--amber); }
.ref-wrap { overflow-x: auto; padding: 0 24px 24px; }
.ref table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px; }
.ref th, .ref td { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ref thead th { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); border-top: 0; }
.ref tbody th { font-weight: 900; width: 13%; }
.ref td b { display: block; font-weight: 900; margin-bottom: 2px; }
.ref td span { color: var(--muted); font-weight: 600; }

@media (max-width: 860px) {
  .grid-hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chart { padding: 20px; }
  .d-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .heat th { font-size: 11px; padding: 0 2px 8px; }
  .heat tbody th { font-size: 13px; padding-right: 8px; }
  .heat td { height: 48px; font-size: 13px; border-radius: 8px; }
  .a-head .lk-top { display: none; }
  .a-head .lockup .lk-main { font-size: 17px; margin: 0; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .a-nav { gap: 14px; }
  .brand-sub { display: none; }
}

/* ---------- Login (azul-marinho + bilhete) ---------- */

.admin .login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 40px 16px;
  background: radial-gradient(800px 460px at 50% -10%, rgba(40, 60, 170, .45), transparent 60%), var(--navy);
}
.login-brand { display: grid; justify-items: center; text-align: center; color: #fff; }
.login-brand .bubbles { width: 58px; height: 48px; margin-bottom: 14px; }
.login-brand .lk-top { font-size: 14px; letter-spacing: .12em; }
.login-brand .lk-main { font-size: clamp(40px, 9vw, 58px); letter-spacing: -.03em; margin-top: 2px; }
.login-card { width: 100%; max-width: 400px; display: grid; gap: 18px; padding: 32px 30px; animation-delay: .08s; }
.login-card .h1 { margin: 4px 0 6px; font-size: 34px; }
.login-card .input { background: #fff; }

/* ---------- Diálogo ---------- */

dialog {
  width: calc(100% - 32px); max-width: 440px;
  padding: 28px; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 90px rgba(2, 12, 69, .3);
}
dialog::backdrop { background: rgba(2, 12, 69, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] { animation: enter .3s var(--ease) both; }
.dlg { display: grid; gap: 18px; }
.dlg .h2 { font-size: 24px; letter-spacing: -.02em; font-weight: 900; }
.dlg p { margin: 0; color: var(--ink-2); font-weight: 600; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
