/* Sorteio — identidade: aço, asfalto, gasolina e sinal âmbar.
   Barlow Condensed (placas, números) + Barlow (texto). */

/* Fontes Barlow (SIL Open Font License), servidas pelo próprio sistema */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --aco: #E7E9EB;
  --aco-2: #D9DDE0;
  --papel: #FFFFFF;
  --asfalto: #2A2E33;
  --asfalto-2: #555C64;
  --linha: #C5CBD0;
  --brand: #0E5A75;
  --brand-ink: #FFFFFF;
  --sinal: #F2A31B;
  --sinal-ink: #2A2E33;
  --pago: #2F7D4F;
  --pago-bg: #E3F0E8;
  --reserva: #9A6A00;
  --reserva-bg: #FBF0D6;
  --erro: #B3261E;
  --erro-bg: #FBE6E4;
  --r-s: 4px;
  --r-m: 8px;
  --sombra: 0 1px 0 rgba(42, 46, 51, .08), 0 6px 18px -10px rgba(42, 46, 51, .35);
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--aco);
  color: var(--asfalto);
  font: 400 17px/1.55 var(--text);
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sinal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }
small, .muted { color: var(--asfalto-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topo ---------- */
.topbar { background: var(--asfalto); color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.25rem/1 var(--cond); }
.topbar .brand img { height: 36px; width: auto; border-radius: 3px; background: #fff; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: #DDE2E6; text-decoration: none; padding: 8px 10px; border-radius: var(--r-s); font-weight: 500; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-s);
  background: var(--brand); color: var(--brand-ink); font: 600 1.15rem/1 var(--cond);
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--asfalto); box-shadow: inset 0 0 0 2px var(--linha); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--asfalto-2); filter: none; }
.btn.amber { background: var(--sinal); color: var(--sinal-ink); }
.btn.danger { background: var(--erro); color: #fff; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 1rem; }
.btn.block { width: 100%; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; font-size: .9rem; color: var(--asfalto-2); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url],
input[type=datetime-local], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--linha); border-radius: var(--r-s);
  background: var(--papel); color: var(--asfalto); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input[type=color] { width: 64px; height: 48px; padding: 4px; border: 2px solid var(--linha); border-radius: var(--r-s); background: var(--papel); }
input[type=file] { font: inherit; }
.field { margin-bottom: 18px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* ---------- avisos ---------- */
.flash { padding: 14px 16px; border-radius: var(--r-s); margin: 16px 0; font-weight: 500; border-left: 5px solid; }
.flash.ok { background: var(--pago-bg); border-color: var(--pago); }
.flash.error { background: var(--erro-bg); border-color: var(--erro); }
.flash.warn { background: var(--reserva-bg); border-color: var(--sinal); }

@media (max-width: 640px) {
  .topbar .wrap { flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .topbar .brand { font-size: 1.1rem; }
  .topbar nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .topbar nav a { padding: 6px 8px; font-size: .95rem; white-space: nowrap; }
  .hero .photo.empty { display: none; }
  .hero .cta .btn { flex: 1 1 auto; }
}

/* ---------- herói público ---------- */
.hero { background: var(--asfalto); color: #fff; padding: 28px 0 0; overflow: hidden; }
.hero .grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 860px) { .hero .grid { grid-template-columns: 1.05fr 1fr; } }
.hero .org { color: #C9D0D6; font-weight: 500; margin-bottom: 8px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero .prize { font: 600 clamp(1.3rem, 3vw, 1.7rem)/1.2 var(--cond); color: var(--sinal); margin-bottom: 18px; }
.hero .photo { position: relative; align-self: stretch; min-height: 220px; }
.hero .photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r-m) var(--r-m) 0 0; }
.hero .photo .placeholder { height: 100%; min-height: 240px; border-radius: var(--r-m) var(--r-m) 0 0; background:
  repeating-linear-gradient(135deg, #343940 0 14px, #2F343A 14px 28px); display: grid; place-items: center; color: #8E979F; font: 600 1.2rem var(--cond); }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 28px; justify-content: start; margin: 0 0 22px; }
.facts dt { color: #AEB7BF; font-size: .9rem; }
.facts dd { margin: 0; font: 700 1.55rem/1.1 var(--cond); color: #fff; }
.meter { margin: 0 0 26px; }
.meter .bar { height: 12px; background: #3C424A; border-radius: 6px; overflow: hidden; }
.meter .bar span { display: block; height: 100%; background: var(--sinal); border-radius: 6px; transition: width .6s ease; }
.meter p { margin: 8px 0 0; color: #C9D0D6; font-size: .95rem; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 28px; }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px #5D656E; }

/* ---------- passo a passo ---------- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; margin: 34px 0 10px; }
.steps li { list-style: none; padding: 4px 22px 4px 0; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--asfalto); color: #fff; font: 700 1.1rem var(--cond); margin-bottom: 8px; }
.steps strong { display: block; font: 700 1.3rem/1.2 var(--cond); }
.steps p { color: var(--asfalto-2); margin: 2px 0 0; }

/* ---------- grade de bilhetes ---------- */
.section { padding: 34px 0; }
.grid-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.grid-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--aco-2); border-radius: var(--r-s); padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 3px; font: 600 1rem var(--cond); color: var(--asfalto-2); cursor: pointer; min-height: 38px; }
.seg button[aria-pressed=true] { background: var(--papel); color: var(--asfalto); box-shadow: var(--sombra); }
.filters input[type=search] { width: 180px; min-height: 44px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--asfalto-2); margin: 0 0 14px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 2px solid var(--linha); background: var(--papel); }
.legend i.r { background: var(--reserva-bg); border-color: #E2C27A; }
.legend i.p { background: var(--asfalto); border-color: var(--asfalto); }
.legend i.s { background: var(--sinal); border-color: var(--sinal); }

.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tk {
  position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left;
  border: 2px solid var(--linha); background: var(--papel); border-radius: var(--r-s);
  padding: 6px 8px 7px; cursor: pointer; font: inherit; color: inherit; min-height: 74px;
  transition: border-color .12s, background-color .12s;
}
/* picote do canhoto */
.tk::after { content: ""; position: absolute; left: 6px; right: 6px; top: 31px; border-top: 2px dotted var(--aco-2); }
.tk .code { font: 700 1.25rem/1 var(--cond); }
.tk .nums { margin-top: auto; display: flex; gap: 6px; font: 600 1rem/1 var(--cond); color: var(--asfalto-2); }
.tk .who { position: absolute; right: 7px; top: 7px; font-size: .7rem; line-height: 1; color: inherit; opacity: .75; }
.tk:hover:not([disabled]) { border-color: var(--asfalto-2); }
.tk[data-s=r] { background: var(--reserva-bg); border-color: #E2C27A; cursor: not-allowed; }
.tk[data-s=r] .who { color: var(--reserva); opacity: 1; }
.tk[data-s=p] { background: var(--asfalto); border-color: var(--asfalto); color: #E7E9EB; cursor: default; }
.tk[data-s=p] .nums { color: #AEB7BF; }
.tk[data-s=p]::after { border-color: #444B53; }
.tk[aria-pressed=true] { background: var(--sinal); border-color: var(--sinal); color: var(--sinal-ink); }
.tk[aria-pressed=true] .nums { color: var(--sinal-ink); }
.tk[aria-pressed=true]::after { border-color: rgba(42, 46, 51, .25); }
.tk.win { outline: 4px solid var(--sinal); outline-offset: 2px; }
.tickets[data-filter=a] .tk:not([data-s=a]) { display: none; }
.tk.hide { display: none !important; }
.empty-filter { padding: 30px; text-align: center; color: var(--asfalto-2); background: var(--papel); border-radius: var(--r-m); }

/* barra de seleção fixa */
.cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--asfalto); color: #fff;
  transform: translateY(110%); transition: transform .22s ease; box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .5);
}
.cart.on { transform: none; }
.cart .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-block: 10px; }
.cart .sum { font: 600 1.2rem/1.2 var(--cond); }
.cart .sum small { display: block; color: #AEB7BF; font: 400 .9rem var(--text); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart .btn { margin-left: auto; }
.cart .clear { background: none; border: 0; color: #C9D0D6; text-decoration: underline; cursor: pointer; font: inherit; }
body.has-cart { padding-bottom: 90px; }

/* ---------- cartões de conteúdo ---------- */
.panel { background: var(--papel); border-radius: var(--r-m); padding: 22px; box-shadow: var(--sombra); }
.panel + .panel { margin-top: 18px; }
.two { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two { grid-template-columns: 1.2fr .8fr; } .two.even { grid-template-columns: 1fr 1fr; } }

.stub { display: flex; border: 2px solid var(--linha); border-radius: var(--r-s); background: var(--papel); overflow: hidden; }
.stub .l { padding: 10px 14px; border-right: 2px dashed var(--linha); font: 700 1.6rem/1 var(--cond); display: grid; place-items: center; min-width: 80px; }
.stub .l small { display: block; font: 400 .75rem var(--text); color: var(--asfalto-2); text-align: center; }
.stub .r { padding: 10px 14px; display: flex; gap: 14px; align-items: center; font: 600 1.4rem var(--cond); }
.stub .r span { background: var(--aco); padding: 2px 10px; border-radius: 3px; }
.stubs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- Pix ---------- */
.pix { text-align: center; }
.pix .qr { width: min(280px, 100%); margin: 6px auto 14px; padding: 12px; background: #fff; border: 2px solid var(--linha); border-radius: var(--r-m); }
.pix .qr img, .pix .qr canvas, .pix .qr svg { width: 100%; height: auto; image-rendering: pixelated; }
.pix .amount { font: 700 2.6rem/1 var(--cond); margin: 4px 0 2px; }
.copy { display: flex; gap: 8px; margin: 12px 0; }
.copy input { font: 500 .85rem/1.3 ui-monospace, monospace; }
.timer { font: 700 1.4rem var(--cond); }
.timer.low { color: var(--erro); }
.status-box { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; background: var(--aco); border-radius: var(--r-s); font-weight: 600; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--sinal); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.paid-banner { background: var(--pago); color: #fff; border-radius: var(--r-m); padding: 22px; text-align: center; }
.paid-banner h2 { color: #fff; }

/* ---------- odômetro do sorteio ---------- */
.odo { display: inline-flex; gap: 6px; padding: 10px; background: #15181B; border-radius: var(--r-m); box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7), 0 0 0 4px #3C424A; }
.odo .d { position: relative; width: 1em; height: 1.3em; overflow: hidden; background: linear-gradient(#0E1012, #2A2E33 45%, #2A2E33 55%, #0E1012); border-radius: 4px; font: 700 1em/1.3 var(--cond); color: #fff; text-align: center; }
.odo .d .reel { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.odo .d .reel span { display: block; height: 1.3em; }
.odo .d.last { color: var(--sinal); }
.odo-wrap { font-size: clamp(4rem, 18vw, 11rem); }

/* ---------- resultado ---------- */
.winner { background: var(--asfalto); color: #fff; border-radius: var(--r-m); padding: 28px; display: grid; gap: 18px; }
.winner .label { color: var(--sinal); font: 600 1.3rem var(--cond); }
.winner .name { font: 700 clamp(2.4rem, 7vw, 4rem)/1 var(--cond); }
.winner .stub { border-color: #4A5159; background: #32373D; }
.winner .stub .r span { background: #2A2E33; }
.winner .stub .l { border-color: #4A5159; }
.winner .stub .r span.hit { background: var(--sinal); color: var(--sinal-ink); }
ol.trail { padding-left: 1.2em; margin: 0; }
ol.trail li { margin-bottom: 6px; overflow-wrap: anywhere; }
ol.trail li.hit { font-weight: 700; }

.hashline { font: 500 .82rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--aco); padding: 8px 10px; border-radius: var(--r-s); }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--asfalto-2); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--aco-2); }
.timeline time { color: var(--asfalto-2); font-size: .9rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

footer.site { margin-top: 40px; padding: 28px 0 40px; color: var(--asfalto-2); font-size: .95rem; border-top: 1px solid var(--linha); }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- painel do organizador ---------- */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 980px) { .admin-shell { grid-template-columns: 236px 1fr; } }
.side { background: var(--asfalto); color: #fff; padding: 18px 14px; }
.side .brand { display: block; color: #fff; text-decoration: none; font: 700 1.4rem/1.1 var(--cond); margin: 4px 8px 4px; }
.side .sub { color: #AEB7BF; font-size: .85rem; margin: 0 8px 18px; }
.side nav a { display: block; color: #DDE2E6; text-decoration: none; padding: 10px 12px; border-radius: var(--r-s); font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav a[aria-current] { background: var(--brand); color: #fff; }
.side nav .sep { height: 1px; background: #3C424A; margin: 10px 8px; }
.side .who { margin: 22px 8px 0; font-size: .85rem; color: #AEB7BF; }
.side .who button { background: none; border: 0; color: #DDE2E6; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 979px) {
  .side { position: sticky; top: 0; z-index: 10; padding: 10px 12px; }
  .side .sub, .side .who { display: none; }
  .side .brand { margin: 0 0 8px; font-size: 1.15rem; }
  .side nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .side nav a { white-space: nowrap; padding: 8px 10px; }
  .side nav .sep { display: none; }
}
.main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.page-head { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 .95rem var(--cond); background: var(--aco-2); white-space: nowrap; }
.pill.selling, .pill.paid { background: var(--pago-bg); color: var(--pago); }
.pill.closed, .pill.reserved, .pill.pending { background: var(--reserva-bg); color: var(--reserva); }
.pill.drawn { background: var(--sinal); color: var(--sinal-ink); }
.pill.conflict, .pill.error { background: var(--erro-bg); color: var(--erro); }
.pill.expired, .pill.cancelled, .pill.available { background: var(--aco-2); color: var(--asfalto-2); }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--papel); border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--sombra); }
.kpi b { display: block; font: 700 2.3rem/1 var(--cond); }
.kpi span { color: var(--asfalto-2); font-size: .95rem; }
.kpi.accent { background: var(--asfalto); color: #fff; }
.kpi.accent span { color: #AEB7BF; }

.table-wrap { overflow-x: auto; background: var(--papel); border-radius: var(--r-m); box-shadow: var(--sombra); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--aco); vertical-align: top; }
th { font: 600 1rem var(--cond); color: var(--asfalto-2); background: #F6F7F8; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .code { font: 700 1.2rem var(--cond); }
tbody tr:hover td { background: #FAFBFB; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { width: min(320px, 100%); }
.toolbar .grow { flex: 1; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--aco); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--aco-2); color: var(--asfalto-2); }
.checklist .done .mark { background: var(--pago); color: #fff; }
.checklist .now .mark { background: var(--sinal); color: var(--sinal-ink); }
.checklist p { margin: 2px 0 0; color: var(--asfalto-2); font-size: .95rem; }

.sheet-preview { overflow: auto; max-height: 420px; background: var(--papel); border-radius: var(--r-m); box-shadow: var(--sombra); }
.sheet-preview table { font-size: .9rem; }
.sheet-preview td, .sheet-preview th { white-space: nowrap; padding: 6px 10px; border-right: 1px solid var(--aco); }
.sheet-preview th.rownum, .sheet-preview td.rownum { background: #F6F7F8; color: var(--asfalto-2); text-align: right; position: sticky; left: 0; }
.sheet-preview tr.header td { background: #FFF6E0; font-weight: 600; }
.sheet-preview .mapped { box-shadow: inset 0 -3px 0 var(--brand); }
.sheet-preview .tag { display: block; font: 600 .78rem var(--text); color: var(--brand); }
.mapgrid { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.issues { margin: 0; padding-left: 1.2em; max-height: 280px; overflow: auto; }
.issues li { margin-bottom: 4px; }

.bars { display: flex; gap: 6px; align-items: flex-end; height: 120px; padding-top: 10px; }
.bars div { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .75rem; color: var(--asfalto-2); white-space: nowrap; }
.bars div b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 600 .85rem var(--cond); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--asfalto); }
.login .panel { width: min(420px, 100%); }

details.more summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.danger-zone { border: 2px solid var(--erro-bg); }

/* ---------- tela ao vivo ---------- */
body.live { background: #1D2024; color: #fff; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
body.live h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
body.live .org { color: #AEB7BF; font: 600 1.3rem var(--cond); }
body.live .prize { color: var(--sinal); font: 600 clamp(1.4rem, 3vw, 2rem) var(--cond); margin-bottom: 30px; }
body.live .status { color: #C9D0D6; font-size: 1.2rem; margin-top: 26px; min-height: 2em; }
body.live .reveal { margin-top: 26px; opacity: 0; transform: translateY(10px); transition: all .6s ease; }
body.live .reveal.on { opacity: 1; transform: none; }
body.live .reveal .who { font: 700 clamp(2.4rem, 7vw, 4.6rem)/1 var(--cond); }
body.live .reveal .tk-l { color: #C9D0D6; font-size: 1.3rem; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .side, .cart, footer.site, .btn, form { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 640px) {
  .cart .wrap { gap: 10px; }
  .cart .btn { padding: 0 16px; flex: none; }
  .cart .sum { min-width: 0; flex: 1; }
  .cart .sum small { max-width: 100%; }
}
