/* Encosta Aí — Portal Admin. Marca: adesivo (contorno grafite + sombra chapada), Luckiest Guy nos
   títulos, Baloo 2 no resto. Gráficos: marcas finas sem contorno, grade hairline, cor só no dado. */
:root {
  --coral: #d85a30; --coral-600: #b8481f; --coral-100: #fbe3d9;
  --amber: #fac775; --amber-100: #fdeecd;
  --cream: #fff9ee; --cream-200: #f5ecda;
  --ink: #2c2c2a; --ink-2: #4d4b45; --ink-3: #6f6c64;
  --line: #ebe3d1; --grid: #efe8d9;
  --teal: #1d9e75; --teal-100: #d8f1e8;
  --green: #639922;
  --danger: #b93a24; --danger-100: #fbe0d8;
  --white: #fff;
  --radius: 18px;
  --shadow: 4px 4px 0 0 var(--ink);
  --shadow-sm: 2px 2px 0 0 var(--ink);
  --sans: 'Baloo 2', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Luckiest Guy', var(--sans);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 500 15px/1.45 var(--sans); background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; min-height: 40px;
  font-weight: 700; background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
  white-space: nowrap; text-decoration: none; color: var(--ink);
}
.btn:hover { background: var(--cream-200); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--amber); }
.btn.primary:hover { background: #f7bb5c; }
.btn.coral { background: var(--coral); color: var(--white); }
.btn.coral:hover { background: var(--coral-600); }
.btn.good { background: var(--teal-100); }
.btn.good:hover { background: #c3e9db; }
.btn.bad { background: var(--danger-100); color: var(--danger); }
.btn.bad:hover { background: #f8cfc2; }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 14px; border-radius: 10px; }
.btn.icon { padding: 0; width: 34px; min-height: 34px; }
.btn.flat { border-color: transparent; box-shadow: none; background: transparent; }
.btn.flat:hover { background: var(--cream-200); }
.btn .spin { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; }
.field > span small { font-weight: 500; color: var(--ink-3); }
.input {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 9px 12px; min-height: 44px;
  background: var(--white); transition: box-shadow .12s ease;
}
.input:focus { outline: none; box-shadow: 0 0 0 4px var(--amber-100); border-color: var(--coral); }
.input::placeholder { color: #9b978d; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; min-width: 240px; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 40px; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 6px 12px; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.seg button:hover { background: var(--cream-200); }
.seg button.on { background: var(--ink); color: var(--cream); }
.seg button .n { font-size: 12px; font-weight: 800; background: var(--cream-200); color: var(--ink); border-radius: 999px; padding: 0 7px; }
.seg button.on .n { background: var(--amber); }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(circle at 15% 20%, var(--amber-100) 0 180px, transparent 181px),
  radial-gradient(circle at 85% 85%, var(--coral-100) 0 220px, transparent 221px), var(--cream); }
.login-card { width: 100%; max-width: 400px; padding: 32px 28px 28px; }
.login-card .logo { width: 240px; margin: -8px auto 4px; }
.login-card h1 { font: 400 22px/1.1 var(--display); letter-spacing: .5px; text-align: center; margin: 0 0 4px; }
.login-card p.sub { text-align: center; color: var(--ink-3); margin: 0 0 22px; }
.login-card form { display: grid; gap: 14px; }
.login-card .err { color: var(--danger); font-weight: 700; min-height: 22px; margin: 0; text-align: center; }
.login-card .btn { width: 100%; min-height: 48px; font-size: 16px; }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--ink) 252px, var(--cream) 252px); }
.side { background: var(--ink); color: var(--cream); padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 6px; }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; font: 400 21px/1 var(--display); letter-spacing: .6px; color: var(--amber); }
.brand small { display: block; color: #bdb7aa; font-weight: 600; font-size: 13px; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; color: #e6dfcf; border: 2px solid transparent; }
.nav a:hover { background: #3a3a37; }
.nav a.on { background: var(--amber); color: var(--ink); border-color: var(--cream); box-shadow: 3px 3px 0 0 #000; }
.nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--coral); color: var(--white); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.side-foot { margin-top: auto; border-top: 1px solid #45443f; padding-top: 16px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who small { color: #bdb7aa; font-size: 13px; }
.side-foot .btn { background: transparent; color: var(--cream); border-color: #5b5a54; box-shadow: none; min-height: 36px; }
.side-foot .btn:hover { background: #3a3a37; }

.main { min-width: 0; padding: 28px 36px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font: 400 34px/1 var(--display); letter-spacing: .6px; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--ink-3); font-weight: 600; }
.view { max-width: 1240px; }
.view, #u-list, #p-list { transition: opacity .2s ease; }
.busy { opacity: .55; pointer-events: none; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.card-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.card-body { padding: 14px 20px 20px; }
.grid { display: grid; gap: 18px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); font-weight: 700; }
.empty .big { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 10px; font-size: 12.5px; font-weight: 800; border: 1.5px solid var(--ink); background: var(--white); white-space: nowrap; line-height: 1.6; }
.pill .ico { width: 13px; height: 13px; }
.pill.ok { background: var(--teal-100); }
.pill.warn { background: var(--amber-100); }
.pill.bad { background: var(--danger-100); color: var(--danger); border-color: var(--danger); }
.pill.dark { background: var(--ink); color: var(--cream); }
.pill.star { background: var(--amber); }
.pill.ghost { border-color: var(--line); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--amber); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; font-size: 15px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }

/* ---------------------------------------------------------------- dashboard */
.live { display: grid; grid-template-columns: 1.3fr 1fr 1fr; overflow: hidden; }
.live > div { padding: 22px 24px; }
.live .now { background: var(--coral); color: var(--white); border-right: 2px solid var(--ink); }
.live .lbl { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.live .now .lbl { color: #ffe9df; }
.live .big { font-size: 58px; font-weight: 800; line-height: 1; margin: 10px 0 4px; letter-spacing: -1px; }
.live .now small { color: #ffe9df; font-weight: 600; }
.live .side-stat { border-right: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.live .side-stat:last-child { border-right: 0; }
.live .side-stat .val { font-size: 40px; font-weight: 800; line-height: 1; }
.live .side-stat .lbl { color: var(--ink-2); }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: #c8f5a8; box-shadow: 0 0 0 0 rgba(200, 245, 168, .9); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200, 245, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 245, 168, 0); } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 148px; }
.stat .lbl { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.stat .lbl .ico { color: var(--ink-3); }
.stat .val { font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -.5px; }
.stat .delta { font-size: 13px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.stat .delta.up { color: #157a5a; }
.stat .delta.down { color: var(--danger); }
.stat .spark { margin-top: auto; height: 34px; width: 100%; }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { position: relative; }
.chart [data-bars] svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--ink-3); font: 600 11.5px var(--sans); font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .base-line { stroke: #d9d0bc; stroke-width: 1; }
.chart .col { transition: opacity .12s ease; pointer-events: none; }
.chart .cap-label { pointer-events: none; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:hover + .col, .chart .hit:focus + .col { opacity: .75; }
.chart .cap-label { fill: var(--ink); font: 800 12px var(--sans); }
.chart table, .tbl-mini { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.tbl-mini th, .tbl-mini td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl-mini td:last-child, .tbl-mini th:last-child { text-align: right; }
.tbl-scroll { max-height: 236px; overflow: auto; }
.toggle { font-size: 13px; }

.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--cream); border-radius: 10px; padding: 7px 11px; font-size: 13px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .25); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.tip b { font-size: 17px; font-weight: 800; color: var(--white); display: block; line-height: 1.15; }
.tip span { color: #cfc8b8; font-weight: 600; }

.lower { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 46px; align-items: center; gap: 10px; }
.rank .pos { width: 26px; height: 26px; border-radius: 8px; background: var(--cream-200); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.rank li:first-child .pos { background: var(--amber); border: 1.5px solid var(--ink); }
.rank .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .track { height: 8px; border-radius: 4px; background: var(--cream-200); margin-top: 5px; overflow: hidden; }
.rank .fill { height: 100%; background: var(--teal); border-radius: 0 4px 4px 0; }
.rank .num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.mod { display: flex; flex-direction: column; gap: 14px; }
.mod-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream); border: 1.5px solid var(--line); }
.mod-row .ico-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--white); flex: none; }
.mod-row.alert .ico-wrap { background: var(--coral); color: var(--white); }
.mod-row.calm .ico-wrap { background: var(--teal-100); }
.mod-row b { font-size: 22px; font-weight: 800; line-height: 1; }
.mod-row small { display: block; color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.toolbar .count-note { color: var(--ink-3); font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------- denúncias */
.reports { display: grid; gap: 16px; }
.report { display: grid; grid-template-columns: minmax(0, 1fr) 230px; overflow: hidden; }
.report .r-main { padding: 18px 20px; display: grid; gap: 12px; min-width: 0; }
.report .r-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report .r-top time { margin-left: auto; color: var(--ink-3); font-weight: 700; font-size: 13px; }
.report .content { display: flex; gap: 14px; padding: 12px; border-radius: 14px; background: var(--cream); border: 1.5px solid var(--line); min-width: 0; }
.report .content .thumb { width: 96px; height: 96px; border-radius: 12px; border: 2px solid var(--ink); object-fit: cover; flex: none; background: var(--cream-200); }
.report .content .who { font-weight: 800; }
.report .content p { margin: 2px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.report .content.gone { color: var(--ink-3); font-weight: 700; align-items: center; }
.report .by { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.report .by q { color: var(--ink-2); font-style: italic; }
.report .r-actions { background: var(--cream); border-left: 2px solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.report .r-actions .btn { width: 100%; justify-content: flex-start; }
.report .r-actions .done { text-align: center; color: var(--ink-3); font-weight: 700; display: grid; gap: 8px; justify-items: center; }
.report.resolved { box-shadow: var(--shadow-sm); }
.report.resolved .r-main { opacity: .8; }

/* ---------------------------------------------------------------- tabela de usuários */
.table-card { overflow-x: auto; }
table.data td[data-label="Entrou"] { white-space: nowrap; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); font-weight: 800; padding: 14px 14px 10px; border-bottom: 2px solid var(--ink); background: var(--cream); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #fffcf6; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.u-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 380px; }
.u-cell .u-txt { min-width: 0; }
.u-cell b { display: block; }
.u-cell small { display: block; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-cell .badges { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.cell-email { color: var(--ink-2); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- bares */
.bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.bar-card { display: flex; flex-direction: column; overflow: hidden; }
.bar-card .b-head { padding: 18px 20px 14px; display: flex; gap: 14px; align-items: flex-start; }
.bar-card .b-head .b-ico { width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink); background: var(--amber-100); display: grid; place-items: center; flex: none; }
.bar-card .b-title { flex: 1; min-width: 0; }
.bar-card h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
.bar-card .addr { color: var(--ink-3); font-weight: 600; font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }
.bar-card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bar-card .promos { border-top: 1.5px solid var(--line); padding: 12px 20px 16px; display: grid; gap: 10px; background: #fffcf7; }
.bar-card .promos .p-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); font-weight: 800; }
.promo { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); }
.promo.featured { border-color: var(--amber); background: #fffaf0; }
.promo .p-img { width: 64px; height: 48px; border-radius: 10px; border: 1.5px solid var(--ink); object-fit: cover; background: var(--cream-200); display: grid; place-items: center; color: var(--ink-3); }
.promo .p-txt { min-width: 0; }
.promo .p-txt b { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.promo .p-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.promo .p-acts { display: flex; gap: 6px; }
.no-promo { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.bar-card .empty-promos { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--white); }

/* ---------------------------------------------------------------- modal */
.overlay { position: fixed; inset: 0; background: rgba(44, 44, 42, .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; z-index: 60; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 560px; max-width: 100%; max-height: calc(100vh - 36px); display: flex; flex-direction: column; background: var(--cream); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 0 var(--ink); animation: pop .18s ease; overflow: hidden; }
.modal.narrow { width: 440px; }
@keyframes pop { from { transform: translateY(8px) scale(.97); opacity: 0; } }
.m-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--white); border-bottom: 2px solid var(--ink); }
.m-head .m-ico { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--ink); background: var(--amber); display: grid; place-items: center; flex: none; }
.m-head .m-ico.danger { background: var(--danger-100); color: var(--danger); }
.m-head h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.m-head small { display: block; color: var(--ink-3); font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.m-head .titles { flex: 1; min-width: 0; }
.m-body { padding: 20px; display: grid; gap: 16px; overflow: auto; }
.m-body p { margin: 0; color: var(--ink-2); font-weight: 600; }
.m-foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1.5px solid var(--line); background: var(--white); justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 700; background: var(--white); color: var(--ink-2); }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.drop { border: 2px dashed var(--ink-3); border-radius: 16px; background: var(--white); padding: 22px; text-align: center; cursor: pointer; font-weight: 700; color: var(--ink-2); transition: background .15s, border-color .15s; display: grid; gap: 4px; justify-items: center; }
.drop:hover, .drop.over { background: var(--amber-100); border-color: var(--ink); }
.drop small { color: var(--ink-3); font-weight: 600; }
.drop .ico { width: 30px; height: 30px; color: var(--ink-3); }
.img-prev { position: relative; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); }
.img-prev img { width: 100%; max-height: 220px; object-fit: cover; }
.img-prev .img-acts { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.days button { border: 2px solid var(--ink); border-radius: 12px; padding: 8px 4px; background: var(--white); font-weight: 800; font-size: 17px; line-height: 1.1; }
.days button small { display: block; font-weight: 700; font-size: 11.5px; color: var(--ink-3); }
.days button.on { background: var(--amber); box-shadow: var(--shadow-sm); }
.days button:hover:not(.on) { background: var(--cream-200); }
.note { padding: 10px 12px; border-radius: 12px; background: var(--amber-100); border: 1.5px solid #f2d79e; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 99; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: 14px; font-weight: 700; box-shadow: 4px 4px 0 rgba(0, 0, 0, .25); animation: pop .18s ease; max-width: 380px; }
.toast .ico { color: #9fe0c6; }
.toast.err .ico { color: #ffb4a0; }

.loader { display: grid; place-items: center; padding: 80px 0; color: var(--ink-3); font-weight: 700; gap: 12px; }
.loader .spin { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: rot .8s linear infinite; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--cream); }
  .side { position: sticky; z-index: 20; height: auto; min-width: 0; flex-direction: row; align-items: center; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .brand small { display: none; }
  .brand img { width: 36px; height: 36px; }
  .nav { flex-direction: row; overflow-x: auto; order: 3; width: 100%; padding-bottom: 2px; }
  .nav a { white-space: nowrap; padding: 8px 12px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .side-foot .who { display: none; }
  .main { padding: 22px 16px 48px; }
  .charts, .lower { grid-template-columns: 1fr; }
  .live { grid-template-columns: 1fr 1fr; }
  .live .now { grid-column: 1 / -1; border-right: 0; border-bottom: 2px solid var(--ink); }
  .report { grid-template-columns: 1fr; }
  .report .r-actions { border-left: 0; border-top: 2px solid var(--ink); flex-direction: row; flex-wrap: wrap; }
  .report .r-actions .btn { width: auto; flex: 1; }
}
@media (max-width: 700px) {
  .page-head h1 { font-size: 28px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { min-height: 0; padding: 14px; }
  .stat .val { font-size: 30px; }
  .live .big { font-size: 46px; }
  .live .side-stat .val { font-size: 32px; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  table.data td { border: 0; padding: 4px 14px; display: flex; justify-content: space-between; gap: 12px; }
  table.data td::before { content: attr(data-label); color: var(--ink-3); font-weight: 700; font-size: 13px; }
  table.data td.first::before { content: none; }
  table.data td.num { text-align: right; }
  .promo { grid-template-columns: 52px minmax(0, 1fr); }
  .promo .p-img { width: 52px; height: 40px; }
  .promo .p-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .days { grid-template-columns: repeat(2, 1fr); }
}
