/* Painel do Claudião — identidade Resenha Skins: laranja + branco (tema claro por padrão), tema escuro opcional. */
:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #f1efec;
  --surface-3: #e9e6e2;
  --line: #e6e2dd;
  --line-strong: #d4cfc8;
  --text: #17171a;
  --text-2: #55555e;
  --muted: #85858f;
  --accent: #ee6f2d;
  --accent-strong: #d85a18;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee5;
  --ok: #1a9d5c;
  --ok-soft: #e4f6ec;
  --warn: #b7791f;
  --warn-soft: #fff4d9;
  --bad: #d23f3f;
  --bad-soft: #fde8e8;
  --shadow: 0 1px 2px rgba(23, 23, 26, 0.05), 0 4px 16px rgba(23, 23, 26, 0.05);
  --shadow-lg: 0 20px 50px rgba(23, 23, 26, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}
:root[data-tema="escuro"] {
  --bg: #0d0d0f;
  --surface: #161619;
  --surface-2: #1d1d21;
  --surface-3: #26262b;
  --line: #2a2a30;
  --line-strong: #3a3a42;
  --text: #f4f4f5;
  --text-2: #c2c2c9;
  --muted: #8e8e98;
  --accent-soft: rgba(238, 111, 45, 0.16);
  --ok: #3ddc84;
  --ok-soft: rgba(61, 220, 132, 0.12);
  --warn: #ffc247;
  --warn-soft: rgba(255, 194, 71, 0.12);
  --bad: #ff6b6b;
  --bad-soft: rgba(255, 107, 107, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 22px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { display: block; font: italic 800 22px/1 var(--display); letter-spacing: 0.2px; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-2); font-weight: 500; text-align: left; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.nav button:active { transform: scale(0.97); }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
:root[data-tema="escuro"] .nav button[aria-current="page"] { color: var(--accent); }
.nav .curto { display: none; }
.side .rodape { margin-top: auto; padding: 12px 10px 0; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.main { padding: 32px clamp(18px, 4vw, 48px) 120px; max-width: 1120px; width: 100%; margin: 0 auto; }

.topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.topo h1 { font: italic 800 40px/1 var(--display); text-transform: uppercase; letter-spacing: 0.3px; }
.topo h1 span { color: var(--accent); }
.sub { color: var(--text-2); margin-top: 8px; max-width: 62ch; }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.1px; }
h3 { font-size: 14px; font-weight: 600; }
.rotulo { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.plano { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilha { display: flex; flex-direction: column; gap: 16px; }
.pilha-s { display: flex; flex-direction: column; gap: 8px; }
.linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.espaco { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.pequeno { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sep { height: 1px; background: var(--line); margin: 0; border: 0; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 14px; transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.perigo { color: var(--bad); }
.btn.suave { background: var(--surface-2); border-color: transparent; }
.btn.grande { padding: 12px 20px; font-size: 15px; }
.btn.icone { padding: 8px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--accent); }
  .btn.primario:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
  .nav button:hover { background: var(--surface-2); color: var(--text); }
  .nav button[aria-current="page"]:hover { background: var(--accent-soft); }
  .clicavel:hover { border-color: var(--accent); }
  .tile-acao:hover { border-color: var(--accent); transform: translateY(-1px); }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="text"], input[type="password"], input[type="time"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
label.campo, .campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.campo .ajuda { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; font-size: 13px; font-weight: 500; transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
button.chip:active { transform: scale(0.97); }
.chip.on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
:root[data-tema="escuro"] .chip.on { color: var(--accent); }
.chip .x { border: 0; background: none; padding: 0 0 0 2px; color: var(--muted); font-size: 16px; line-height: 1; }
.dia { min-width: 52px; height: 40px; padding: 0 12px; justify-content: center; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--radius-sm); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--text-2); transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.etq { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.etq.ok { background: var(--ok-soft); color: var(--ok); }
.etq.warn { background: var(--warn-soft); color: var(--warn); }
.etq.bad { background: var(--bad-soft); color: var(--bad); }
.etq.laranja { background: var(--accent-soft); color: var(--accent-strong); }
:root[data-tema="escuro"] .etq.laranja { color: var(--accent); }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.ponto.ok { background: var(--ok); } .ponto.warn { background: var(--warn); } .ponto.bad { background: var(--bad); }

.switch { position: relative; width: 46px; height: 28px; flex: none; border: 0; border-radius: 999px; background: var(--line-strong); padding: 0; transition: background-color 180ms var(--ease-out), transform 120ms var(--ease-out); }
.switch:active { transform: scale(0.97); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 200ms var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.barra { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.barra > i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out); border-radius: 999px; }

/* ---------- visão geral ---------- */
.hero { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.hero .ic-grande { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.hero .ic-grande svg { width: 26px; height: 26px; }
.hero.warn .ic-grande { background: var(--warn-soft); color: var(--warn); }
.hero.bad .ic-grande { background: var(--bad-soft); color: var(--bad); }
.hero h2 { font-size: 22px; letter-spacing: -0.3px; }
.faixa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.stat .valor { font: italic 800 56px/1 var(--display); letter-spacing: 0.5px; }
.stat .valor small { font-size: 28px; color: var(--muted); }

.linha-tempo { display: flex; flex-direction: column; }
.passo { display: grid; grid-template-columns: 56px 22px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; position: relative; }
.passo + .passo::before { content: ""; position: absolute; left: 66px; top: -12px; height: 24px; width: 2px; background: var(--line); }
.passo .h { font-weight: 700; }
.passo .p { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); justify-self: center; }
.passo.feito .p { background: var(--ok); border-color: var(--ok); }
.passo.proximo .p { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.passo.feito .t { color: var(--muted); }

.feed { display: flex; flex-direction: column; }
.evento { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.evento:first-child { border-top: 0; }
.evento .bolinha { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.evento.falhou .bolinha { background: var(--bad-soft); color: var(--bad); }
.evento .quem { color: var(--muted); font-size: 12.5px; }

/* ---------- cronograma ---------- */
.lista { display: flex; flex-direction: column; gap: 10px; }
.envio { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: border-color 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.envio.desligado { opacity: 0.55; }
.envio .icone-acao { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
:root[data-tema="escuro"] .envio .icone-acao { color: var(--accent); }
.envio h3 { font-size: 15.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; color: var(--muted); }

.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.coluna { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.coluna.hoje { border-color: var(--accent); background: var(--accent-soft); }
.coluna .dia-nome { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.coluna.hoje .dia-nome { color: var(--accent-strong); }
.evt { text-align: left; border: 0; border-left: 3px solid var(--accent); border-radius: 6px; padding: 6px 8px; background: var(--surface); font-size: 12.5px; line-height: 1.3; box-shadow: var(--shadow); transition: transform 120ms var(--ease-out); }
.evt:active { transform: scale(0.97); }
.evt b { display: block; font-variant-numeric: tabular-nums; }
.evt span { color: var(--text-2); }
.evt.teste { border-left-color: var(--warn); }

/* gaveta lateral */
.fundo { position: fixed; inset: 0; background: rgba(15, 15, 18, 0.45); z-index: 50; transition: opacity 220ms var(--ease-out); }
.fundo.entrando { opacity: 0; }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 51; display: flex; flex-direction: column; transition: transform 280ms var(--ease-drawer); }
.gaveta.entrando { transform: translateX(100%); }
.gaveta header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.gaveta .corpo { padding: 22px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 22px; }
.gaveta footer { padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.secao { display: flex; flex-direction: column; gap: 12px; }

/* ---------- mensagens ---------- */
.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.menu-msg { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 32px); overflow: auto; }
.menu-msg button.item-msg { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: none; font-weight: 500; color: var(--text-2); transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.menu-msg button.item-msg:active { transform: scale(0.98); }
.menu-msg button.item-msg[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.menu-msg .editada { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dois { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.zap { background: #efe7dc; border-radius: var(--radius); padding: 18px; background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px); background-size: 14px 14px; }
:root[data-tema="escuro"] .zap { background-color: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px); }
.bolha { background: #d9fdd3; color: #111b21; padding: 8px 10px 8px; border-radius: 10px 10px 2px 10px; max-width: 360px; margin-left: auto; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
:root[data-tema="escuro"] .bolha { background: #005c4b; color: #e9edef; }
.var-btn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- central ---------- */
.tile-acao { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out); }
.tile-acao:active { transform: scale(0.98); }
.tile-acao .icone-acao { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.tile-acao b { font-size: 14.5px; }
.tile-acao span.d { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.g4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.linha-cmd { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.linha-cmd:first-child { border-top: 0; }
.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 13.5px; }

/* ---------- rifas / histórico ---------- */
.rifa-card { display: flex; flex-direction: column; gap: 14px; }
.dia-grupo { margin: 18px 0 6px; }

/* ---------- barra de salvar, toasts, modal ---------- */
.salvar { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 18px; background: #17171a; color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out); z-index: 40; }
.salvar.visivel { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.salvar .btn { border-color: transparent; background: #2b2b31; color: #fff; }
.salvar .btn.primario { background: var(--accent); }
.toasts { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #17171a; color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.toast.entrando { transform: translateY(-8px) scale(0.97); opacity: 0; }
.toast.erro { background: var(--bad); }
.fundo.centro { display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.fundo.entrando .modal { transform: scale(0.95); opacity: 0; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.login form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; text-align: center; padding: 32px; }
.login img { width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; }
.login h1 { font: italic 800 36px/1 var(--display); text-transform: uppercase; }
.erro-txt { color: var(--bad); font-size: 13px; min-height: 18px; }

.vazio { padding: 36px 12px; text-align: center; color: var(--muted); }
.entra > * { animation: entra 260ms var(--ease-out) backwards; }
.entra > *:nth-child(2) { animation-delay: 40ms; }
.entra > *:nth-child(3) { animation-delay: 80ms; }
.entra > *:nth-child(4) { animation-delay: 120ms; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr; }
  .g2, .dois { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .menu-msg { position: static; max-height: none; }
  .semana { grid-template-columns: 1fr; }
  .coluna { min-height: 0; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); z-index: 30; }
  .brand, .side .rodape { display: none; }
  .nav { flex-direction: row; width: 100%; }
  .nav button { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 10.5px; flex: 1; align-items: center; min-width: 0; }
  .nav .longo { display: none; }
  .nav .curto { display: inline; }
  .main { padding: 20px 16px 120px; }
  .topo h1 { font-size: 34px; }
  .salvar { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 32px); justify-content: space-between; }
  .envio { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 14px; }
  .passo { grid-template-columns: 48px 20px 1fr; }
  .passo > :last-child { display: none; }
  .passo + .passo::before { left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.hero > .espaco { min-width: 220px; }
.editor textarea { min-height: 380px; }
@media (max-width: 800px) {
  .hero { padding: 18px; gap: 14px; }
  .hero > .btn { width: 100%; }
}

/* ---------- skins e preços ---------- */
.rolar { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .dir { text-align: right; white-space: nowrap; }
.tabela .nome-skin { font-weight: 600; min-width: 260px; }
.sobe { color: var(--ok); font-weight: 600; }
.desce { color: var(--bad); font-weight: 600; }
.medidor { display: inline-flex; align-items: center; gap: 8px; }
.medidor i { display: block; width: 56px; height: 6px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.medidor i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.5); border-radius: 999px; }
.medidor i[data-v="0"]::after { transform: scaleX(0); }
.medidor i[data-v="1"]::after { transform: scaleX(0.1); } .medidor i[data-v="2"]::after { transform: scaleX(0.2); }
.medidor i[data-v="3"]::after { transform: scaleX(0.3); } .medidor i[data-v="4"]::after { transform: scaleX(0.4); }
.medidor i[data-v="5"]::after { transform: scaleX(0.5); } .medidor i[data-v="6"]::after { transform: scaleX(0.6); }
.medidor i[data-v="7"]::after { transform: scaleX(0.7); } .medidor i[data-v="8"]::after { transform: scaleX(0.8); }
.medidor i[data-v="9"]::after { transform: scaleX(0.9); } .medidor i[data-v="10"]::after { transform: scaleX(1); }
.seg-rolar { overflow-x: auto; max-width: 100%; }
.seg-rolar button { white-space: nowrap; }
.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.linha > select { width: auto; min-width: 170px; }

/* ---- anti-zoom no celular: campos com 16px não dão zoom ao focar ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, select, input, summary { touch-action: manipulation; }
input[type="text"], input[type="password"], input[type="time"], input[type="date"], input[type="number"], select, textarea { font-size: 16px; }

/* ---- status do Claudião mais discreto ---- */
.hero.compacto { padding: 12px 14px; gap: 12px; box-shadow: none; }
.hero.compacto .ic-grande { width: 34px; height: 34px; border-radius: 10px; }
.hero.compacto .ic-grande svg { width: 18px; height: 18px; }
.hero.compacto h2 { font-size: 15px; letter-spacing: 0; }
.hero.compacto p { font-size: 13px; margin-top: 1px; }
.hero.compacto > .espaco { min-width: 160px; }
.hero.compacto > .btn { padding: 7px 12px; font-size: 13px; }
@media (max-width: 720px) { .hero.compacto { padding: 12px; } .hero.compacto > .btn { width: auto; } }
.brand img, .login img { object-fit: contain; }

/* ---- skins: botão +, atalhos de preço e montador de rifa ---- */
.mais { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.mais svg { width: 18px; height: 18px; }
.mais:active { transform: scale(0.94); }
.mais[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.col-mais { width: 44px; padding-right: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.escolhidas { display: grid; gap: 8px; }
.escolhida { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.escolhida img { width: 64px; height: 48px; object-fit: contain; flex: none; }
.escolhida .espaco { min-width: 0; display: grid; }
.escolhida b { font-size: 14px; overflow-wrap: anywhere; }
.arte { width: 100%; max-width: 560px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }

.pilula-rifa { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; transition: transform 140ms var(--ease-out); }
.pilula-rifa:active { transform: scale(0.97); }
.pilula-rifa[hidden] { display: none; }
.pilula-rifa svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .pilula-rifa { bottom: 24px; } }

/* ---- nada pode alargar a página no celular (era isso que dava zoom) ---- */
html, body { overflow-x: hidden; max-width: 100%; }
.main, .main > *, .card, .pilha > *, .pilha-s > *, .linha > .espaco { min-width: 0; max-width: 100%; }

a.btn { text-decoration: none; color: inherit; justify-content: center; }
@media (max-width: 720px) {
  .tabela { min-width: 0; }
  .tabela th:nth-child(4), .tabela td:nth-child(4), .tabela th:nth-child(6), .tabela td:nth-child(6), .tabela th:nth-child(8), .tabela td:nth-child(8) { display: none; }
  .tabela .nome-skin { min-width: 150px; }
}

.escolhida .lugar-sel { width: auto; min-width: 104px; flex: none; padding: 8px 10px; }
@media (max-width: 520px) { .escolhida { flex-wrap: wrap; } .escolhida .espaco { flex: 1 1 60%; } }

/* ---- folha de filtros ---- */
.folha-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); opacity: 0; transition: opacity 200ms var(--ease-out); }
.folha-fundo.aberta { opacity: 1; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3); transform: translateY(100%); transition: transform 220ms var(--ease-out); margin: 0 auto; max-width: 720px; }
.folha.aberta { transform: translateY(0); }
.folha-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.folha-corpo { overflow-y: auto; padding: 16px 20px; display: grid; gap: 20px; -webkit-overflow-scrolling: touch; }
.folha-rodape { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.folha-rodape .btn { justify-content: center; padding: 14px; }
.rotulo-folha { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chips-grade .chip { padding: 14px 10px; border-radius: 14px; text-align: center; min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 720px) { .chips-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } .folha { bottom: 5dvh; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .folha, .folha-fundo { transition: none; } }

.folha-corpo > *, .folha-topo > * { min-width: 0; }


/* ---------- HOJE (redesenhado) ---------- */
.hoje { gap: 16px; }
.boas-vindas h1 { font: 800 30px/1.1 var(--font); letter-spacing: -0.6px; }
.boas-vindas .sub { margin-top: 6px; }
.status { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status .espaco { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status .espaco span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px var(--ok-soft); }
.status.warn .ponto { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.status.bad .ponto { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.status.ok .ponto { animation: pulsa 2.4s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 7px transparent; } }

.destaque { display: flex; align-items: center; gap: 28px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 62%); box-shadow: var(--shadow); }
.destaque h2 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.15; }
.destaque .linha { margin-top: 8px; }
.anel-caixa { position: relative; width: 148px; height: 148px; flex: none; }
.anel { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel .trilho { fill: none; stroke: var(--surface-3); stroke-width: 11; }
.anel .arco { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 900ms var(--ease-out); }
.anel-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: italic 800 42px/1 var(--display); }
.anel-num small { font-size: 20px; color: var(--muted); margin-left: 1px; }

.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.num-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.num-card b { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; display: inline-flex; align-items: center; gap: 6px; }
.num-card b small { font-size: 16px; color: var(--muted); font-weight: 600; }
.num-card b svg { width: 20px; height: 20px; }
.laranja-txt { color: var(--accent-strong); font-size: 22px !important; }
:root[data-tema="escuro"] .laranja-txt { color: var(--accent); }

.mini-rifas { display: flex; flex-direction: column; }
.mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 160px) 52px; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini:first-child { border-top: 0; }
.mini .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mini b { text-align: right; }
.barra.fina { height: 6px; }

@media (max-width: 900px) {
  .boas-vindas h1 { font-size: 24px; }
  .destaque { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px; }
  .anel-caixa { width: 128px; height: 128px; }
  .numeros { grid-template-columns: 1fr 1fr; }
  .numeros .num-card:first-child { grid-column: 1 / -1; }
  .status .espaco span { white-space: normal; }
}
@media (hover: hover) and (pointer: fine) {
  .num-card { transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out); }
  .num-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) {
  .entra > *, .status.ok .ponto { animation: none; }
  .anel .arco, .barra > i { transition: none; }
}
.anel-num { font-size: 34px; padding-top: 2px; }
.anel-num small { display: block; font-size: 15px; margin: 2px 0 0; }
.destaque .etq { align-self: flex-start; }
@media (max-width: 900px) { .anel-num { font-size: 30px; } }

.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.alerta svg { flex: none; margin-top: 2px; }
.destino { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.destino.teste { background: var(--warn-soft); border-color: transparent; }
.destino .espaco { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.destino .espaco { flex: 1 1 180px; min-width: 0; }
.destino .seg { flex: 0 0 auto; }
@media (max-width: 900px) { .destino { flex-direction: column; align-items: stretch; } .destino .seg { display: grid; grid-template-columns: 1fr 1fr; } }

.montar textarea { min-height: 150px; }

/* ---------- lucro previsto e rifas salvas ---------- */
.fin { gap: 10px; }
.campo-fin { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lucro { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.lucro-topo { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.lucro-topo b { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.lucro-topo.positivo b { color: var(--ok); }
.lucro-topo.negativo b { color: var(--bad); }
.lucro-linhas { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lucro-linhas > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: 13.5px; }
.lucro-linhas > div + div { border-top: 1px solid var(--line); }
.total-lucro { display: flex; flex-direction: column; align-items: flex-end; }
.total-lucro b { font-size: 22px; }
.salvas { display: flex; flex-direction: column; }
.salva { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.salva:first-child { border-top: 0; }
.salva .espaco { display: flex; flex-direction: column; min-width: 0; }
.salva .espaco b, .salva .espaco small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salva .imgs { display: flex; }
.salva .imgs img { width: 44px; height: 34px; object-fit: contain; margin-right: -14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.salva .dir { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 900px) {
  .fin { grid-template-columns: 1fr; }
  .salva { grid-template-columns: minmax(0, 1fr) auto; }
  .salva .imgs { grid-column: 1 / -1; }
  .salva .linha { grid-column: 1 / -1; justify-content: flex-end; }
  .total-lucro { align-items: flex-start; }
}

/* ---------- Hoje: capa com logo em degradê ---------- */
.capa { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(180deg, #fe6000 0%, #ff7a26 70px, #ffb17f 150px, var(--surface) 330px); }
.capa-logo { display: flex; align-items: center; gap: 16px; padding: 22px 26px 0; color: #fff; }
.capa-logo img { height: 112px; width: auto; filter: drop-shadow(0 4px 14px rgba(120, 40, 0, 0.35)); }
.capa-logo b { display: block; font: italic 800 34px/1 var(--display); text-transform: uppercase; letter-spacing: 0.5px; }
.capa-logo span { display: block; margin-top: 4px; font-size: 13.5px; opacity: 0.92; }
.capa .destaque { border: 0; border-radius: 0; background: none; box-shadow: none; padding-top: 18px; }
.capa .destaque .etq.laranja { background: var(--accent-soft); }
@media (max-width: 900px) { .capa-logo img { height: 84px; } .capa-logo b { font-size: 26px; } .capa-logo { padding: 18px 20px 0; } .capa .destaque { padding-top: 26px; } }
:root[data-tema="escuro"] .capa { background: linear-gradient(180deg, #c24a00 0%, #8a3a10 90px, var(--surface) 300px); }
.destino .espaco { flex: 1 1 180px; }
@media (max-width: 900px) { .destino .espaco { flex: none; } }

/* ---------- tabela de skins com foto ---------- */
.skin-cel { display: flex; align-items: center; gap: 12px; }
.skin-cel img, .skin-cel .sem-foto { width: 76px; height: 56px; object-fit: contain; flex: none; border-radius: 8px; background: var(--surface-2); }
.skin-nome { font-size: 15px; line-height: 1.3; }
.tabela .nome-skin { min-width: 300px; }
.tabela td { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 900px) { .skin-cel img, .skin-cel .sem-foto { width: 60px; height: 46px; } .tabela .nome-skin { min-width: 190px; } .skin-nome { font-size: 14px; } }

/* ---------- navegação: no celular só as principais + "Mais" ---------- */
.nav .mais-abas { display: none; }
@media (max-width: 900px) {
  .nav .secundaria { display: none; }
  .nav .mais-abas { display: flex; }
}
.mais-lista { gap: 6px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.mais-item { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; font-size: 16px; text-align: left; transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out); }
.mais-item:active { transform: scale(0.98); }
.mais-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }

.capa-logo b { font-size: 52px; line-height: 0.95; }
@media (max-width: 900px) { .capa-logo b { font-size: 40px; } }

.filtros-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.campo-rot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-rot select { background: var(--surface); }
.campo-rot small { font-size: 12px; line-height: 1.35; }
.filtros-2 { align-items: start; }

/* Hoje: rifa principal centralizada e degradê mais longo */
.capa { background: linear-gradient(180deg, #fe6000 0%, #ff7a26 110px, #ffa066 240px, #ffd9bf 340px, var(--surface) 470px); }
:root[data-tema="escuro"] .capa { background: linear-gradient(180deg, #c24a00 0%, #8a3a10 200px, var(--surface) 430px); }
.capa-logo { justify-content: center; }
.capa .destaque { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 48px 26px 28px; }
.capa .destaque .anel-caixa { width: 176px; height: 176px; }
.capa .destaque .anel-num { font-size: 46px; }
.capa .destaque .pilha-s { align-items: center; width: 100%; }
.capa .destaque .linha { justify-content: center; }
.capa .destaque h2 { max-width: 22ch; }
@media (max-width: 900px) { .capa .destaque { padding: 44px 20px 24px; } .capa .destaque .anel-caixa { width: 160px; height: 160px; } .capa .destaque .anel-num { font-size: 42px; } .capa-logo { padding-left: 20px; } }
.capa .destaque .anel-num { font-size: 38px; }
@media (max-width: 900px) { .capa .destaque .anel-num { font-size: 34px; } }
.capa .destaque .etq { align-self: center; }

.btn.google { width: 100%; }
.ou { text-align: center; margin: 2px 0; }
/* Painel do Claudião — identidade Resenha Skins: laranja + branco (tema claro por padrão), tema escuro opcional. */
:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #f1efec;
  --surface-3: #e9e6e2;
  --line: #e6e2dd;
  --line-strong: #d4cfc8;
  --text: #17171a;
  --text-2: #55555e;
  --muted: #85858f;
  --accent: #ee6f2d;
  --accent-strong: #d85a18;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee5;
  --ok: #1a9d5c;
  --ok-soft: #e4f6ec;
  --warn: #b7791f;
  --warn-soft: #fff4d9;
  --bad: #d23f3f;
  --bad-soft: #fde8e8;
  --shadow: 0 1px 2px rgba(23, 23, 26, 0.05), 0 4px 16px rgba(23, 23, 26, 0.05);
  --shadow-lg: 0 20px 50px rgba(23, 23, 26, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}
:root[data-tema="escuro"] {
  --bg: #0d0d0f;
  --surface: #161619;
  --surface-2: #1d1d21;
  --surface-3: #26262b;
  --line: #2a2a30;
  --line-strong: #3a3a42;
  --text: #f4f4f5;
  --text-2: #c2c2c9;
  --muted: #8e8e98;
  --accent-soft: rgba(238, 111, 45, 0.16);
  --ok: #3ddc84;
  --ok-soft: rgba(61, 220, 132, 0.12);
  --warn: #ffc247;
  --warn-soft: rgba(255, 194, 71, 0.12);
  --bad: #ff6b6b;
  --bad-soft: rgba(255, 107, 107, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 22px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { display: block; font: italic 800 22px/1 var(--display); letter-spacing: 0.2px; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-2); font-weight: 500; text-align: left; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.nav button:active { transform: scale(0.97); }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
:root[data-tema="escuro"] .nav button[aria-current="page"] { color: var(--accent); }
.nav .curto { display: none; }
.side .rodape { margin-top: auto; padding: 12px 10px 0; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.main { padding: 32px clamp(18px, 4vw, 48px) 120px; max-width: 1120px; width: 100%; margin: 0 auto; }

.topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.topo h1 { font: italic 800 40px/1 var(--display); text-transform: uppercase; letter-spacing: 0.3px; }
.topo h1 span { color: var(--accent); }
.sub { color: var(--text-2); margin-top: 8px; max-width: 62ch; }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.1px; }
h3 { font-size: 14px; font-weight: 600; }
.rotulo { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.plano { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilha { display: flex; flex-direction: column; gap: 16px; }
.pilha-s { display: flex; flex-direction: column; gap: 8px; }
.linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.espaco { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.pequeno { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sep { height: 1px; background: var(--line); margin: 0; border: 0; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 14px; transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.perigo { color: var(--bad); }
.btn.suave { background: var(--surface-2); border-color: transparent; }
.btn.grande { padding: 12px 20px; font-size: 15px; }
.btn.icone { padding: 8px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--accent); }
  .btn.primario:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
  .nav button:hover { background: var(--surface-2); color: var(--text); }
  .nav button[aria-current="page"]:hover { background: var(--accent-soft); }
  .clicavel:hover { border-color: var(--accent); }
  .tile-acao:hover { border-color: var(--accent); transform: translateY(-1px); }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="text"], input[type="password"], input[type="time"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
label.campo, .campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.campo .ajuda { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; font-size: 13px; font-weight: 500; transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
button.chip:active { transform: scale(0.97); }
.chip.on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
:root[data-tema="escuro"] .chip.on { color: var(--accent); }
.chip .x { border: 0; background: none; padding: 0 0 0 2px; color: var(--muted); font-size: 16px; line-height: 1; }
.dia { min-width: 52px; height: 40px; padding: 0 12px; justify-content: center; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--radius-sm); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--text-2); transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.etq { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.etq.ok { background: var(--ok-soft); color: var(--ok); }
.etq.warn { background: var(--warn-soft); color: var(--warn); }
.etq.bad { background: var(--bad-soft); color: var(--bad); }
.etq.laranja { background: var(--accent-soft); color: var(--accent-strong); }
:root[data-tema="escuro"] .etq.laranja { color: var(--accent); }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.ponto.ok { background: var(--ok); } .ponto.warn { background: var(--warn); } .ponto.bad { background: var(--bad); }

.switch { position: relative; width: 46px; height: 28px; flex: none; border: 0; border-radius: 999px; background: var(--line-strong); padding: 0; transition: background-color 180ms var(--ease-out), transform 120ms var(--ease-out); }
.switch:active { transform: scale(0.97); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 200ms var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.barra { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.barra > i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out); border-radius: 999px; }

/* ---------- visão geral ---------- */
.hero { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.hero .ic-grande { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.hero .ic-grande svg { width: 26px; height: 26px; }
.hero.warn .ic-grande { background: var(--warn-soft); color: var(--warn); }
.hero.bad .ic-grande { background: var(--bad-soft); color: var(--bad); }
.hero h2 { font-size: 22px; letter-spacing: -0.3px; }
.faixa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.stat .valor { font: italic 800 56px/1 var(--display); letter-spacing: 0.5px; }
.stat .valor small { font-size: 28px; color: var(--muted); }

.linha-tempo { display: flex; flex-direction: column; }
.passo { display: grid; grid-template-columns: 56px 22px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; position: relative; }
.passo + .passo::before { content: ""; position: absolute; left: 66px; top: -12px; height: 24px; width: 2px; background: var(--line); }
.passo .h { font-weight: 700; }
.passo .p { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); justify-self: center; }
.passo.feito .p { background: var(--ok); border-color: var(--ok); }
.passo.proximo .p { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.passo.feito .t { color: var(--muted); }

.feed { display: flex; flex-direction: column; }
.evento { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.evento:first-child { border-top: 0; }
.evento .bolinha { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.evento.falhou .bolinha { background: var(--bad-soft); color: var(--bad); }
.evento .quem { color: var(--muted); font-size: 12.5px; }

/* ---------- cronograma ---------- */
.lista { display: flex; flex-direction: column; gap: 10px; }
.envio { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: border-color 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.envio.desligado { opacity: 0.55; }
.envio .icone-acao { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
:root[data-tema="escuro"] .envio .icone-acao { color: var(--accent); }
.envio h3 { font-size: 15.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; color: var(--muted); }

.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.coluna { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.coluna.hoje { border-color: var(--accent); background: var(--accent-soft); }
.coluna .dia-nome { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.coluna.hoje .dia-nome { color: var(--accent-strong); }
.evt { text-align: left; border: 0; border-left: 3px solid var(--accent); border-radius: 6px; padding: 6px 8px; background: var(--surface); font-size: 12.5px; line-height: 1.3; box-shadow: var(--shadow); transition: transform 120ms var(--ease-out); }
.evt:active { transform: scale(0.97); }
.evt b { display: block; font-variant-numeric: tabular-nums; }
.evt span { color: var(--text-2); }
.evt.teste { border-left-color: var(--warn); }

/* gaveta lateral */
.fundo { position: fixed; inset: 0; background: rgba(15, 15, 18, 0.45); z-index: 50; transition: opacity 220ms var(--ease-out); }
.fundo.entrando { opacity: 0; }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 51; display: flex; flex-direction: column; transition: transform 280ms var(--ease-drawer); }
.gaveta.entrando { transform: translateX(100%); }
.gaveta header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.gaveta .corpo { padding: 22px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 22px; }
.gaveta footer { padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.secao { display: flex; flex-direction: column; gap: 12px; }

/* ---------- mensagens ---------- */
.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.menu-msg { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 32px); overflow: auto; }
.menu-msg button.item-msg { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: none; font-weight: 500; color: var(--text-2); transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.menu-msg button.item-msg:active { transform: scale(0.98); }
.menu-msg button.item-msg[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.menu-msg .editada { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dois { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.zap { background: #efe7dc; border-radius: var(--radius); padding: 18px; background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px); background-size: 14px 14px; }
:root[data-tema="escuro"] .zap { background-color: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px); }
.bolha { background: #d9fdd3; color: #111b21; padding: 8px 10px 8px; border-radius: 10px 10px 2px 10px; max-width: 360px; margin-left: auto; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
:root[data-tema="escuro"] .bolha { background: #005c4b; color: #e9edef; }
.var-btn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- central ---------- */
.tile-acao { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out); }
.tile-acao:active { transform: scale(0.98); }
.tile-acao .icone-acao { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.tile-acao b { font-size: 14.5px; }
.tile-acao span.d { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.g4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.linha-cmd { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.linha-cmd:first-child { border-top: 0; }
.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 13.5px; }

/* ---------- rifas / histórico ---------- */
.rifa-card { display: flex; flex-direction: column; gap: 14px; }
.dia-grupo { margin: 18px 0 6px; }

/* ---------- barra de salvar, toasts, modal ---------- */
.salvar { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 18px; background: #17171a; color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out); z-index: 40; }
.salvar.visivel { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.salvar .btn { border-color: transparent; background: #2b2b31; color: #fff; }
.salvar .btn.primario { background: var(--accent); }
.toasts { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #17171a; color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.toast.entrando { transform: translateY(-8px) scale(0.97); opacity: 0; }
.toast.erro { background: var(--bad); }
.fundo.centro { display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.fundo.entrando .modal { transform: scale(0.95); opacity: 0; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.login form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; text-align: center; padding: 32px; }
.login img { width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; }
.login h1 { font: italic 800 36px/1 var(--display); text-transform: uppercase; }
.erro-txt { color: var(--bad); font-size: 13px; min-height: 18px; }

.vazio { padding: 36px 12px; text-align: center; color: var(--muted); }
.entra > * { animation: entra 260ms var(--ease-out) backwards; }
.entra > *:nth-child(2) { animation-delay: 40ms; }
.entra > *:nth-child(3) { animation-delay: 80ms; }
.entra > *:nth-child(4) { animation-delay: 120ms; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr; }
  .g2, .dois { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .menu-msg { position: static; max-height: none; }
  .semana { grid-template-columns: 1fr; }
  .coluna { min-height: 0; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); z-index: 30; }
  .brand, .side .rodape { display: none; }
  .nav { flex-direction: row; width: 100%; }
  .nav button { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 10.5px; flex: 1; align-items: center; min-width: 0; }
  .nav .longo { display: none; }
  .nav .curto { display: inline; }
  .main { padding: 20px 16px 120px; }
  .topo h1 { font-size: 34px; }
  .salvar { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 32px); justify-content: space-between; }
  .envio { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 14px; }
  .passo { grid-template-columns: 48px 20px 1fr; }
  .passo > :last-child { display: none; }
  .passo + .passo::before { left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.hero > .espaco { min-width: 220px; }
.editor textarea { min-height: 380px; }
@media (max-width: 800px) {
  .hero { padding: 18px; gap: 14px; }
  .hero > .btn { width: 100%; }
}

/* ---------- skins e preços ---------- */
.rolar { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .dir { text-align: right; white-space: nowrap; }
.tabela .nome-skin { font-weight: 600; min-width: 260px; }
.sobe { color: var(--ok); font-weight: 600; }
.desce { color: var(--bad); font-weight: 600; }
.medidor { display: inline-flex; align-items: center; gap: 8px; }
.medidor i { display: block; width: 56px; height: 6px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.medidor i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.5); border-radius: 999px; }
.medidor i[data-v="0"]::after { transform: scaleX(0); }
.medidor i[data-v="1"]::after { transform: scaleX(0.1); } .medidor i[data-v="2"]::after { transform: scaleX(0.2); }
.medidor i[data-v="3"]::after { transform: scaleX(0.3); } .medidor i[data-v="4"]::after { transform: scaleX(0.4); }
.medidor i[data-v="5"]::after { transform: scaleX(0.5); } .medidor i[data-v="6"]::after { transform: scaleX(0.6); }
.medidor i[data-v="7"]::after { transform: scaleX(0.7); } .medidor i[data-v="8"]::after { transform: scaleX(0.8); }
.medidor i[data-v="9"]::after { transform: scaleX(0.9); } .medidor i[data-v="10"]::after { transform: scaleX(1); }
.seg-rolar { overflow-x: auto; max-width: 100%; }
.seg-rolar button { white-space: nowrap; }
.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.linha > select { width: auto; min-width: 170px; }

/* ---- anti-zoom no celular: campos com 16px não dão zoom ao focar ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, select, input, summary { touch-action: manipulation; }
input[type="text"], input[type="password"], input[type="time"], input[type="date"], input[type="number"], select, textarea { font-size: 16px; }

/* ---- status do Claudião mais discreto ---- */
.hero.compacto { padding: 12px 14px; gap: 12px; box-shadow: none; }
.hero.compacto .ic-grande { width: 34px; height: 34px; border-radius: 10px; }
.hero.compacto .ic-grande svg { width: 18px; height: 18px; }
.hero.compacto h2 { font-size: 15px; letter-spacing: 0; }
.hero.compacto p { font-size: 13px; margin-top: 1px; }
.hero.compacto > .espaco { min-width: 160px; }
.hero.compacto > .btn { padding: 7px 12px; font-size: 13px; }
@media (max-width: 720px) { .hero.compacto { padding: 12px; } .hero.compacto > .btn { width: auto; } }
.brand img, .login img { object-fit: contain; }

/* ---- skins: botão +, atalhos de preço e montador de rifa ---- */
.mais { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.mais svg { width: 18px; height: 18px; }
.mais:active { transform: scale(0.94); }
.mais[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.col-mais { width: 44px; padding-right: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.escolhidas { display: grid; gap: 8px; }
.escolhida { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.escolhida img { width: 64px; height: 48px; object-fit: contain; flex: none; }
.escolhida .espaco { min-width: 0; display: grid; }
.escolhida b { font-size: 14px; overflow-wrap: anywhere; }
.arte { width: 100%; max-width: 560px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }

.pilula-rifa { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; transition: transform 140ms var(--ease-out); }
.pilula-rifa:active { transform: scale(0.97); }
.pilula-rifa[hidden] { display: none; }
.pilula-rifa svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .pilula-rifa { bottom: 24px; } }

/* ---- nada pode alargar a página no celular (era isso que dava zoom) ---- */
html, body { overflow-x: hidden; max-width: 100%; }
.main, .main > *, .card, .pilha > *, .pilha-s > *, .linha > .espaco { min-width: 0; max-width: 100%; }

a.btn { text-decoration: none; color: inherit; justify-content: center; }
@media (max-width: 720px) {
  .tabela { min-width: 0; }
  .tabela th:nth-child(4), .tabela td:nth-child(4), .tabela th:nth-child(6), .tabela td:nth-child(6), .tabela th:nth-child(8), .tabela td:nth-child(8) { display: none; }
  .tabela .nome-skin { min-width: 150px; }
}

.escolhida .lugar-sel { width: auto; min-width: 104px; flex: none; padding: 8px 10px; }
@media (max-width: 520px) { .escolhida { flex-wrap: wrap; } .escolhida .espaco { flex: 1 1 60%; } }

/* ---- folha de filtros ---- */
.folha-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); opacity: 0; transition: opacity 200ms var(--ease-out); }
.folha-fundo.aberta { opacity: 1; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3); transform: translateY(100%); transition: transform 220ms var(--ease-out); margin: 0 auto; max-width: 720px; }
.folha.aberta { transform: translateY(0); }
.folha-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.folha-corpo { overflow-y: auto; padding: 16px 20px; display: grid; gap: 20px; -webkit-overflow-scrolling: touch; }
.folha-rodape { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.folha-rodape .btn { justify-content: center; padding: 14px; }
.rotulo-folha { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chips-grade .chip { padding: 14px 10px; border-radius: 14px; text-align: center; min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 720px) { .chips-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } .folha { bottom: 5dvh; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .folha, .folha-fundo { transition: none; } }

.folha-corpo > *, .folha-topo > * { min-width: 0; }


/* ---------- HOJE (redesenhado) ---------- */
.hoje { gap: 16px; }
.boas-vindas h1 { font: 800 30px/1.1 var(--font); letter-spacing: -0.6px; }
.boas-vindas .sub { margin-top: 6px; }
.status { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status .espaco { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status .espaco span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px var(--ok-soft); }
.status.warn .ponto { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.status.bad .ponto { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.status.ok .ponto { animation: pulsa 2.4s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 7px transparent; } }

.destaque { display: flex; align-items: center; gap: 28px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 62%); box-shadow: var(--shadow); }
.destaque h2 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.15; }
.destaque .linha { margin-top: 8px; }
.anel-caixa { position: relative; width: 148px; height: 148px; flex: none; }
.anel { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel .trilho { fill: none; stroke: var(--surface-3); stroke-width: 11; }
.anel .arco { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 900ms var(--ease-out); }
.anel-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: italic 800 42px/1 var(--display); }
.anel-num small { font-size: 20px; color: var(--muted); margin-left: 1px; }

.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.num-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.num-card b { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; display: inline-flex; align-items: center; gap: 6px; }
.num-card b small { font-size: 16px; color: var(--muted); font-weight: 600; }
.num-card b svg { width: 20px; height: 20px; }
.laranja-txt { color: var(--accent-strong); font-size: 22px !important; }
:root[data-tema="escuro"] .laranja-txt { color: var(--accent); }

.mini-rifas { display: flex; flex-direction: column; }
.mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 160px) 52px; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini:first-child { border-top: 0; }
.mini .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mini b { text-align: right; }
.barra.fina { height: 6px; }

@media (max-width: 900px) {
  .boas-vindas h1 { font-size: 24px; }
  .destaque { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px; }
  .anel-caixa { width: 128px; height: 128px; }
  .numeros { grid-template-columns: 1fr 1fr; }
  .numeros .num-card:first-child { grid-column: 1 / -1; }
  .status .espaco span { white-space: normal; }
}
@media (hover: hover) and (pointer: fine) {
  .num-card { transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out); }
  .num-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) {
  .entra > *, .status.ok .ponto { animation: none; }
  .anel .arco, .barra > i { transition: none; }
}
.anel-num { font-size: 34px; padding-top: 2px; }
.anel-num small { display: block; font-size: 15px; margin: 2px 0 0; }
.destaque .etq { align-self: flex-start; }
@media (max-width: 900px) { .anel-num { font-size: 30px; } }

.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.alerta svg { flex: none; margin-top: 2px; }
.destino { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.destino.teste { background: var(--warn-soft); border-color: transparent; }
.destino .espaco { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.destino .espaco { flex: 1 1 180px; min-width: 0; }
.destino .seg { flex: 0 0 auto; }
@media (max-width: 900px) { .destino { flex-direction: column; align-items: stretch; } .destino .seg { display: grid; grid-template-columns: 1fr 1fr; } }

.montar textarea { min-height: 150px; }

/* ---------- lucro previsto e rifas salvas ---------- */
.fin { gap: 10px; }
.campo-fin { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lucro { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.lucro-topo { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.lucro-topo b { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.lucro-topo.positivo b { color: var(--ok); }
.lucro-topo.negativo b { color: var(--bad); }
.lucro-linhas { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lucro-linhas > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: 13.5px; }
.lucro-linhas > div + div { border-top: 1px solid var(--line); }
.total-lucro { display: flex; flex-direction: column; align-items: flex-end; }
.total-lucro b { font-size: 22px; }
.salvas { display: flex; flex-direction: column; }
.salva { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.salva:first-child { border-top: 0; }
.salva .espaco { display: flex; flex-direction: column; min-width: 0; }
.salva .espaco b, .salva .espaco small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salva .imgs { display: flex; }
.salva .imgs img { width: 44px; height: 34px; object-fit: contain; margin-right: -14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.salva .dir { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 900px) {
  .fin { grid-template-columns: 1fr; }
  .salva { grid-template-columns: minmax(0, 1fr) auto; }
  .salva .imgs { grid-column: 1 / -1; }
  .salva .linha { grid-column: 1 / -1; justify-content: flex-end; }
  .total-lucro { align-items: flex-start; }
}

/* ---------- Hoje: capa com logo em degradê ---------- */
.capa { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(180deg, #fe6000 0%, #ff7a26 70px, #ffb17f 150px, var(--surface) 330px); }
.capa-logo { display: flex; align-items: center; gap: 16px; padding: 22px 26px 0; color: #fff; }
.capa-logo img { height: 112px; width: auto; filter: drop-shadow(0 4px 14px rgba(120, 40, 0, 0.35)); }
.capa-logo b { display: block; font: italic 800 34px/1 var(--display); text-transform: uppercase; letter-spacing: 0.5px; }
.capa-logo span { display: block; margin-top: 4px; font-size: 13.5px; opacity: 0.92; }
.capa .destaque { border: 0; border-radius: 0; background: none; box-shadow: none; padding-top: 18px; }
.capa .destaque .etq.laranja { background: var(--accent-soft); }
@media (max-width: 900px) { .capa-logo img { height: 84px; } .capa-logo b { font-size: 26px; } .capa-logo { padding: 18px 20px 0; } .capa .destaque { padding-top: 26px; } }
:root[data-tema="escuro"] .capa { background: linear-gradient(180deg, #c24a00 0%, #8a3a10 90px, var(--surface) 300px); }
.destino .espaco { flex: 1 1 180px; }
@media (max-width: 900px) { .destino .espaco { flex: none; } }

/* ---------- tabela de skins com foto ---------- */
.skin-cel { display: flex; align-items: center; gap: 12px; }
.skin-cel img, .skin-cel .sem-foto { width: 76px; height: 56px; object-fit: contain; flex: none; border-radius: 8px; background: var(--surface-2); }
.skin-nome { font-size: 15px; line-height: 1.3; }
.tabela .nome-skin { min-width: 300px; }
.tabela td { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 900px) { .skin-cel img, .skin-cel .sem-foto { width: 60px; height: 46px; } .tabela .nome-skin { min-width: 190px; } .skin-nome { font-size: 14px; } }

/* ---------- navegação: no celular só as principais + "Mais" ---------- */
.nav .mais-abas { display: none; }
@media (max-width: 900px) {
  .nav .secundaria { display: none; }
  .nav .mais-abas { display: flex; }
}
.mais-lista { gap: 6px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.mais-item { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; font-size: 16px; text-align: left; transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out); }
.mais-item:active { transform: scale(0.98); }
.mais-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }

.capa-logo b { font-size: 52px; line-height: 0.95; }
@media (max-width: 900px) { .capa-logo b { font-size: 40px; } }

.filtros-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.campo-rot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-rot select { background: var(--surface); }
.campo-rot small { font-size: 12px; line-height: 1.35; }
.filtros-2 { align-items: start; }

/* Hoje: rifa principal centralizada e degradê mais longo */
.capa { background: linear-gradient(180deg, #fe6000 0%, #ff7a26 110px, #ffa066 240px, #ffd9bf 340px, var(--surface) 470px); }
:root[data-tema="escuro"] .capa { background: linear-gradient(180deg, #c24a00 0%, #8a3a10 200px, var(--surface) 430px); }
.capa-logo { justify-content: center; }
.capa .destaque { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 48px 26px 28px; }
.capa .destaque .anel-caixa { width: 176px; height: 176px; }
.capa .destaque .anel-num { font-size: 46px; }
.capa .destaque .pilha-s { align-items: center; width: 100%; }
.capa .destaque .linha { justify-content: center; }
.capa .destaque h2 { max-width: 22ch; }
@media (max-width: 900px) { .capa .destaque { padding: 44px 20px 24px; } .capa .destaque .anel-caixa { width: 160px; height: 160px; } .capa .destaque .anel-num { font-size: 42px; } .capa-logo { padding-left: 20px; } }
.capa .destaque .anel-num { font-size: 38px; }
@media (max-width: 900px) { .capa .destaque .anel-num { font-size: 34px; } }
.capa .destaque .etq { align-self: center; }

.btn.google { width: 100%; }
.ou { text-align: center; margin: 2px 0; }

/* ---------- selects com a mesma fonte dos campos ---------- */
select { font-family: inherit; font-size: 16px; font-weight: 400; appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2385858f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* ---------- Dicas de rifa ---------- */
.grande-seg { align-self: flex-start; }
.dicas-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.dica { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.dica-topo { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.dica-topo > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.dica-lucro { display: flex; flex-direction: column; align-items: flex-end; }
.dica-lucro b { font-size: 24px; letter-spacing: -0.4px; }
.dica-premios { display: flex; flex-direction: column; }
.dica-premio { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.dica-premio:first-child { border-top: 0; }
.dica-premio .lugar { font-weight: 800; color: var(--accent-strong); }
.dica-premio img, .dica-premio .sem-foto { width: 64px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.dica-premio .espaco { display: flex; flex-direction: column; min-width: 0; }
.dica-rodape { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .dicas-form { grid-template-columns: 1fr; } .dica-lucro { align-items: flex-start; } .dica-rodape .btn { width: 100%; } }

/* ---------- degradê laranja no fundo de todas as páginas ---------- */
body { background: linear-gradient(180deg, #fe6000 0%, #ff7a26 110px, #ffa066 240px, #ffd9bf 340px, var(--bg) 470px) no-repeat var(--bg); background-size: 100% 470px; }
:root[data-tema="escuro"] body { background: linear-gradient(180deg, #c24a00 0%, #7a3410 200px, var(--bg) 430px) no-repeat var(--bg); background-size: 100% 430px; }
.topo h1, .topo .sub { color: #fff; text-shadow: 0 1px 10px rgba(120, 40, 0, 0.25); }
.topo .btn.primario { background: #fff; border-color: #fff; color: var(--accent-strong); }
.topo .btn:not(.primario) { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); color: #fff; }
@media (max-width: 900px) { .dicas-form { grid-template-columns: 1fr 1fr; } .dicas-form > :first-child { grid-column: 1 / -1; } }

/* Hoje: sem "balão" — o degradê do fundo da página é o único, contínuo até a rifa principal */
.capa, :root[data-tema="escuro"] .capa { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.capa .destaque { padding-left: 0; padding-right: 0; }
.capa-logo { padding-left: 4px; padding-right: 4px; }
@media (max-width: 900px) { .capa-logo { padding-left: 4px; } .capa .destaque { padding-left: 0; padding-right: 0; } }
.pct-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.pct-linha[hidden] { display: none; }
