
/* ===== Marketing, Análises, Financeiro e Admin (prefixo bsm-) ===== */
.bsm-kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); margin-bottom: 22px; }
.bsm-kpis .kpi { min-width: 0; }
.bsm-kpis .kpi .value { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsm-kpis .kpi .value.sm { font-size: 19px; line-height: 1.5; }
.bsm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.bsm-toolbar .field { margin: 0; flex: 1 1 150px; min-width: 0; }
.bsm-toolbar .field.wide { flex: 2 1 220px; }
.bsm-toolbar label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bsm-toolbar select, .bsm-toolbar input { padding: 9px 11px; font-size: 14px; }
.bsm-rows > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1.6fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bsm-rows > div:first-child { border-top: 0; }
.bsm-rows .name { font-weight: 650; overflow-wrap: anywhere; }
.bsm-rows .val { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-weight: 650; }
.bsm-spark { height: 150px; }
.bsm-spark > i { position: relative; }
.bsm-spark > i.zero { background: var(--line-2); }
.bsm-spark > i:hover { background: var(--accent); }
.bsm-url { display: flex; gap: 8px; align-items: center; min-width: 0; }
.bsm-url code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; display: block; }
.bsm-preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #080809; display: block; }
.bsm-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.bsm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin: 0; }
.bsm-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bsm-facts dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.bsm-lines .sum-line { border-top: 1px solid var(--line); padding: 11px 0; gap: 16px; }
.bsm-lines .sum-line:first-child { border-top: 0; }
.bsm-lines .sum-line > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.bsm-lines .sum-line.total { border-top: 2px solid var(--ink); margin-top: 0; }
.bsm-lines .sum-line.info { color: var(--muted); }
.bsm-suggest { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bsm-suggest form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.bsm-count { font-weight: 700; }
td .btn.sm, td .link { white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
td.actions form { display: inline; margin-left: 10px; }
.bsm-inline { display: flex; gap: 8px; align-items: center; }
.bsm-inline input[type=text] { width: 130px; min-width: 130px; flex: none; padding: 8px 10px; font-size: 14px; }
.bsm-payout-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.bsm-payout-actions form { margin: 0; }
@media (max-width: 600px) {
  .bsm-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .bsm-kpis .kpi { padding: 12px 14px; }
  .bsm-kpis .kpi .value { font-size: 19px; }
  .bsm-kpis .kpi .value.sm { font-size: 15px; }
  .bsm-rows > div { grid-template-columns: minmax(0, 1fr) auto; }
  .bsm-rows .bar { grid-column: 1 / -1; order: 3; }
  .bsm-url code { max-width: 180px; }
  .bsm-preview { height: 420px; }
}

/* ===================================================================================
   BILHETERIA, PORTARIA E CONFIGURAÇÕES (eventos e operação) — regras desta área
   =================================================================================== */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; padding-top: 1px; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; font-size: 13.5px; }
.row-actions .link { white-space: nowrap; } .link[disabled] { opacity: .3; pointer-events: none; }
.copy-row { display: flex; gap: 8px; align-items: center; } .copy-row input { flex: 1; min-width: 0; }
.cover-thumb { width: 180px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 8px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: end; }
.filters .field { margin-bottom: 0; } .card.filters { padding-bottom: 14px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 16px; }
details > summary { cursor: pointer; } details.inline-edit > summary { list-style: none; display: inline-block; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
details.cat > summary { list-style: none; display: flex; gap: 16px; align-items: center; padding: 16px 20px; flex-wrap: wrap; }
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary::before { content: '▸'; color: var(--muted); font-size: 13px; transition: transform .15s; }
details.cat[open] > summary::before { transform: rotate(90deg); }
details.cat[open] > summary { border-bottom: 1px solid var(--line); }
.cat-meter { width: 220px; max-width: 100%; display: grid; gap: 6px; }
.cat-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; }
.checklist li.done .mark { background: var(--ok); border-color: var(--ok); color: #fff; } .checklist li.done { color: var(--muted); }
.btn.step { width: 34px; height: 34px; padding: 0; font-size: 18px; }
/* Portaria */
.door-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.door-counter { background: var(--surface-2); color: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 18px; display: grid; text-align: right; }
.door-counter .num { font: 500 26px/1.1 var(--display); } .door-counter .small { color: #cfc7b9; }
.door-ev { display: flex; gap: 16px; align-items: center; text-decoration: none; } .door-ev:hover { background: rgba(255, 255, 255, .03); }
.scan-result.idle { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--line-2); }
.scan-result .detail { font-size: 17px; margin: 0; } .scan-result .who { margin: 10px 0 0; font-weight: 700; opacity: .92; }
.scan-video { width: 100%; max-height: 340px; background: #000; border-radius: var(--r-sm); object-fit: cover; margin-top: 12px; display: block; }
.scan-video[hidden] { display: none; }
.qr-card img { margin: 0 auto; border-radius: 8px; }
/* Página de entrada do produtor (layout do site) */
.lp-steps { list-style: none; counter-reset: lp; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.lp-steps li { counter-increment: lp; border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 4px; }
.lp-steps li::before { content: counter(lp, decimal-leading-zero); font: 800 13px var(--body); letter-spacing: .08em; color: var(--accent); }
.lp-steps li b { font: 500 19px var(--display); } .lp-steps li span { color: var(--ink-2); }
@media (max-width: 900px) {
  .door-grid { grid-template-columns: 1fr; }
  .cat-meter { width: 100%; }
  .page-head h1 { font-size: 25px; }
}

/* ---------- AVO Clube: administração e parceiros ---------- */
.cluba-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: -6px 0 22px; scrollbar-width: thin; }
.cluba-nav .chip { flex: none; font-weight: 600; }
.cluba-two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cluba-two > * { min-width: 0; }
.cluba-sim { position: sticky; top: 82px; overflow: hidden; }
.cluba-sim::before { content: ''; display: block; height: 3px; background: var(--grad); margin: -20px -20px 16px; }
.cluba-sim-out { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.cluba-sim-out dt { color: var(--muted); font-size: 13px; align-self: center; }
.cluba-sim-out dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.cluba-sim-out dd.big { font: 500 20px/1.2 var(--display); }
.cluba-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0 10px; }
.cluba-suffix { display: flex; align-items: center; gap: 6px; } .cluba-suffix input { min-width: 0; } .cluba-suffix span { color: var(--muted); font-weight: 650; }
.cluba-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: var(--line-2); vertical-align: baseline; flex: none; }
.cluba-dot.pulso { background: var(--orange); } .cluba-dot.horizonte { background: var(--pink); } .cluba-dot.infinito { background: var(--purple); }
details.cluba-tier > summary { list-style: none; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
details.cluba-tier > summary::-webkit-details-marker { display: none; }
details.cluba-tier > summary .cluba-dot { width: 14px; height: 14px; margin: 0; }
details.cluba-tier[open] > summary { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cluba-thumb { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; flex: none; border: 1px solid var(--line); }
.cluba-thumb.ph { display: block; background: radial-gradient(120% 130% at 0% 100%, rgba(255, 122, 8, .7), rgba(246, 31, 140, .5) 45%, rgba(141, 22, 255, .35) 75%, var(--surface-2)); }
.cluba-pts.pos { color: var(--ok); font-weight: 700; } .cluba-pts.neg { color: var(--bad); font-weight: 700; }
td.actions details.cluba-pop { display: inline-block; vertical-align: top; }
.cluba-pop-body { text-align: left; white-space: normal; min-width: 240px; margin: 10px 0 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.cluba-pop-body .field { margin-bottom: 10px; }
.cluba-token { border-color: rgba(61, 220, 151, .35); background: var(--ok-soft); margin-bottom: 18px; }
.cluba-token input { font-size: 14px; }
.cluba-code { margin: 14px 0 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre; color: var(--ink-2); }
.cluba-nps { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; }
.cluba-nps i { display: block; min-width: 0; } .cluba-nps .p, .cluba-key.p { background: var(--ok); } .cluba-nps .n, .cluba-key.n { background: var(--warn); } .cluba-nps .d, .cluba-key.d { background: var(--bad); }
.cluba-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.cluba-intro { position: relative; overflow: hidden; padding-left: 24px; font-size: 15.5px; color: var(--ink-2); }
.cluba-intro::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--orange), var(--pink), var(--purple)); } .cluba-intro b { color: var(--ink); }
.cluba-list { margin: 0; padding: 0; list-style: none; } .cluba-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.cluba-list li:first-child { border-top: 0; padding-top: 0; } .cluba-list li b { color: var(--ink); }
.cluba-steps { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.cluba-comments > div { padding: 12px 0; border-top: 1px solid var(--line); } .cluba-comments > div:first-child { border-top: 0; padding-top: 0; }
.cluba-comments p { margin: 6px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .cluba-two { grid-template-columns: minmax(0, 1fr); }
  .cluba-sim { position: static; }
}

/* ---------- Análises: Comunidade ---------- */
.cmy-filter { display: flex; gap: 10px 14px; align-items: flex-start; flex-wrap: wrap; margin: -6px 0 22px; }
.cmy-pick { position: relative; flex: 0 1 320px; min-width: 0; max-width: 100%; }
.cmy-pick > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); font-size: 14px; min-width: 0; }
.cmy-pick > summary::-webkit-details-marker { display: none; }
.cmy-pick > summary::after { content: '▾'; margin-left: auto; color: var(--muted); font-size: 12px; }
.cmy-pick[open] > summary { border-color: var(--pink); }
.cmy-pick > summary small { font: 700 11px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); flex: none; }
.cmy-pick > summary b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cmy-pick-body { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(380px, calc(100vw - 32px)); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; }
.cmy-opts { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; margin-bottom: 12px; }
.cmy-opts label { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cmy-opts label:hover { background: rgba(255, 255, 255, .05); }
.cmy-opts input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.cmy-opts span { min-width: 0; overflow-wrap: anywhere; } .cmy-opts small { display: block; color: var(--muted); }
.cmy-scope { flex: 1 1 260px; min-width: 0; margin: 0; padding-top: 9px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.cmy-scope b { color: var(--ink); font-weight: 650; }
.cmy-section { margin-bottom: 22px; align-items: start; } .cmy-section > .card { min-width: 0; }
.cmy-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cmy-title h3 { margin: 0; }
.cmy-cap { font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; max-width: 68ch; }
.cmy-foot { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.cmy-none { margin: 0; padding: 22px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--muted); text-align: center; font-size: 14px; }
.cmy-data { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.cmy-data::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.cmy-data.low::before { background: var(--warn); }
.cmy-big { font: 500 34px/1.1 var(--display); font-variant-numeric: tabular-nums; margin: 0; }
.cmy-big small { font: 400 14px var(--body); color: var(--muted); margin-left: 6px; }
.cmy-scroll { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
/* Legenda e cores das séries */
.cmy-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 0 0 14px; padding: 0; list-style: none; }
.cmy-legend li { display: inline-flex; align-items: center; gap: 7px; }
.cmy-key { width: 10px; height: 10px; border-radius: 3px; background: var(--line-2); flex: none; }
.cmy-s1 { background: var(--orange); } .cmy-s2 { background: var(--pink); } .cmy-s3 { background: var(--purple); } .cmy-s4 { background: var(--info); } .cmy-s5 { background: var(--ok); } .cmy-s0 { background: var(--line-2); }
/* Colunas por mês, três séries lado a lado */
.cmy-cols { display: grid; grid-template-columns: repeat(12, minmax(44px, 1fr)); gap: 8px; min-width: 620px; }
.cmy-col { display: grid; gap: 6px; text-align: center; min-width: 0; }
.cmy-col .bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 150px; border-bottom: 1px solid var(--line-2); }
.cmy-col .bars i { display: block; width: 28%; max-width: 14px; min-height: 2px; border-radius: 3px 3px 0 0; }
.cmy-col .bars i.zero { background: var(--line); }
.cmy-col .lab { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cmy-col .tot { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* Colunas simples (24 horas) */
.cmy-hours { display: grid; grid-template-columns: repeat(24, minmax(16px, 1fr)); gap: 3px; min-width: 520px; }
.cmy-hours > div { display: grid; gap: 5px; text-align: center; font-size: 11px; color: var(--muted); }
.cmy-hours .bars { height: 110px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.cmy-hours .bars i { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--grad); }
.cmy-hours .bars i.zero { background: var(--line); }
/* Mapa de calor: dia da semana × hora */
.cmy-heat { display: grid; grid-template-columns: 74px repeat(24, minmax(20px, 1fr)); gap: 3px; min-width: 680px; align-items: center; font-size: 11px; color: var(--muted); }
.cmy-heat .day { font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.cmy-heat .hr { text-align: center; }
.cmy-heat i { display: grid; place-items: center; height: 26px; border-radius: 5px; background: var(--surface-2); font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.cmy-heat i.l1 { background: rgba(246, 31, 140, .22); } .cmy-heat i.l2 { background: rgba(246, 31, 140, .42); }
.cmy-heat i.l3 { background: rgba(246, 31, 140, .66); } .cmy-heat i.l4 { background: var(--pink); }
.cmy-scale { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.cmy-scale i { width: 18px; height: 10px; border-radius: 3px; background: var(--surface-2); }
.cmy-scale i.l1 { background: rgba(246, 31, 140, .22); } .cmy-scale i.l2 { background: rgba(246, 31, 140, .42); } .cmy-scale i.l3 { background: rgba(246, 31, 140, .66); } .cmy-scale i.l4 { background: var(--pink); }
/* Barra empilhada de participação */
.cmy-stack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; margin-bottom: 14px; }
.cmy-stack i { display: block; min-width: 3px; }
.cmy-stack.thin { height: 8px; margin: 0; min-width: 90px; }
.cmy-parts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cmy-parts li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.cmy-parts li:first-child { border-top: 0; }
.cmy-parts .name { font-weight: 650; overflow-wrap: anywhere; }
.cmy-parts .val { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; text-align: right; }
.cmy-parts .val span { color: var(--muted); font-weight: 400; font-size: 13px; }
.cmy-pctcell { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.cmy-pctcell .bar, .cmy-pctcell .cmy-stack { flex: 1; min-width: 50px; } .cmy-pctcell b { font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.cmy-origin { border-left: 3px solid transparent; border-image: linear-gradient(180deg, var(--orange), var(--pink), var(--purple)) 1; padding: 2px 0 2px 16px; margin-bottom: 22px; color: var(--ink-2); font-size: 14.5px; max-width: 76ch; }
.cmy-origin b { color: var(--ink); }
@media (max-width: 600px) {
  .cmy-pick { flex-basis: 100%; }
  .cmy-scope { padding-top: 0; flex-basis: 100%; }
  .cmy-big { font-size: 28px; }
}

/* ---------- Aplicativo AVO Backstage ---------- */
.app-tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: rgba(8, 8, 9, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.app-tabbar a, .app-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; min-width: 0;
  color: var(--muted); text-decoration: none; font: 600 11px/1 var(--body); letter-spacing: .02em; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-tabbar .on { color: var(--ink); }
.app-tabbar .on::before { content: ''; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; border-radius: 2px; background: var(--grad); }
.app-bars { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: grid; gap: 8px; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.app-bar { pointer-events: auto; display: flex; gap: 12px; align-items: center; width: 100%; max-width: 560px; margin: 0 auto; padding: 11px 14px; font-size: 13.5px; line-height: 1.35;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .9); }
.app-bar > span, .app-bar > .grow { flex: 1; min-width: 0; }
.app-bar .grow { display: grid; gap: 2px; } .app-bar .grow span { color: var(--ink-2); }
.app-bar .btn { flex: none; }
.app-bar.offline { background: #2a2110; border-color: rgba(255, 182, 72, .45); color: var(--warn); }
.app-bar.update { border-color: rgba(246, 31, 140, .5); }
.app-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.app-x:hover { background: var(--line); color: var(--ink); }
.app-push .row, .app-install .btn { margin-top: 4px; } .app-push p, .app-install p { margin-bottom: 10px; } .app-install p:last-child, .app-push p:last-child { margin-bottom: 0; }
[data-install-ios][hidden], [data-install-btn][hidden], [data-push-enable][hidden], [data-push-test][hidden], [data-push-disable][hidden] { display: none !important; }
@media print { .app-tabbar, .app-bars { display: none !important; } }
/* Barra de abas: só em telas pequenas (no computador o menu lateral já está à vista). */
@media (max-width: 900px) {
  html.avo-app .app-tabbar { display: grid; }
  html.avo-app .bs-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  html.avo-app .bs-side { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html.avo-app .bs-toggle { display: none; } /* "Mais", na barra, abre o mesmo menu */
  html.avo-app .app-bars { bottom: calc(61px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
  html.avo-standalone .bs-main { padding-top: calc(16px + env(safe-area-inset-top)); }
}
/* Tela "Hoje" */
.bsa { display: grid; gap: 16px; max-width: 760px; }
.bsa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bsa-head h1 { font-size: clamp(22px, 6vw, 28px); margin: 2px 0 4px; letter-spacing: .1em; overflow-wrap: anywhere; } .bsa-head p { margin: 0; }
.bsa-eyebrow { font: 700 11.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.bsa-event { display: grid; gap: 16px; }
.bsa-event h2 { font-size: 19px; letter-spacing: .08em; margin: 8px 0 2px; overflow-wrap: anywhere; } .bsa-event-head p { margin: 0; }
.bsa-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.bsa-num { display: grid; gap: 4px; min-width: 0; align-content: start; }
.bsa-num .label { font: 700 11px/1.3 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bsa-num .value { font: 500 22px/1.2 var(--display); overflow-wrap: anywhere; } .bsa-num .value .of { font: 500 14px var(--body); color: var(--muted); }
.bsa-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bsa-actions .btn { padding: 14px 10px; text-align: center; } .bsa-actions .btn:only-child { grid-column: 1 / -1; }
.bsa-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; }
.bsa-link > span:first-child { display: grid; gap: 2px; min-width: 0; } .bsa-link:hover { border-color: var(--line-2); }
/* Scanner: lanterna, clarão de resultado e modo sem internet */
.scan-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.scan-tools [hidden], .door-offline [hidden] { display: none !important; }
.scan-flash { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; }
.scan-flash.ok { background: #14804f; } .scan-flash.warn { background: #b86a00; } .scan-flash.error { background: #c22a2a; }
.scan-flash.go { animation: scan-flash .45s ease-out; }
@keyframes scan-flash { 0% { opacity: .55; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scan-flash.go { animation-duration: .01s; } }
.door-offline h3 { margin: 0; } .door-offline p { margin: 10px 0 0; }
.door-offline .row { margin-top: 12px; }
.door-offline-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.door-offline-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.door-offline-state.off { color: var(--warn); }
.door-offline-pending { font-weight: 700; color: var(--warn); }
.door-conflicts { margin: 12px 0 0; padding: 12px 14px; list-style: none; border: 1px solid rgba(255, 107, 107, .4); background: var(--bad-soft); border-radius: var(--r-sm); font-size: 13.5px; display: grid; gap: 6px; }
.door-conflicts li { overflow-wrap: anywhere; } .door-conflicts b { color: var(--bad); }
@media (max-width: 380px) { .bsa-num .value { font-size: 19px; } }

/* ---------- AVO Clube: sorteios e mensagens ---------- */
.clr-h { font-size: 20px; margin: 0 0 12px; scroll-margin-top: 80px; }
.clr-plain { margin: 12px 0; color: var(--ink-2); } .clr-plain b { color: var(--ink); }
.clr-env { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.clr-env li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.clr-env code, .clr-var { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; overflow-wrap: anywhere; }
.clr-codes code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.clr-notice { max-width: 920px; } .clr-notice legend { font-weight: 650; }
.clr-toggles { gap: 4px 22px; } .clr-toggles .check { margin-bottom: 8px; }
.clr-count { font-variant-numeric: tabular-nums; } .clr-count.over { color: var(--warn); font-weight: 650; }
.clr-msg { max-width: 420px; min-width: 180px; white-space: pre-line; overflow-wrap: anywhere; }
.clr-two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.clr-two > * { min-width: 0; }
.clr-label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.clr-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.clr-channel { position: relative; cursor: pointer; }
.clr-channel input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.clr-channel span { display: block; text-align: center; padding: 11px 10px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); font-weight: 650; font-size: 14.5px; }
.clr-channel input:checked + span { border-color: var(--pink); background: var(--accent-soft); color: #fff; }
.clr-channel input:focus-visible + span { outline: 3px solid var(--accent-soft); }
.clr-reach { display: grid; gap: 4px; margin: 4px 0 12px; } .clr-reach b { font: 500 34px/1.1 var(--display); font-variant-numeric: tabular-nums; } .clr-reach span { font-size: 13.5px; color: var(--ink-2); }
.clr-bubble { max-width: 420px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; display: grid; gap: 4px; }
.clr-bubble.whatsapp { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .3); }
.clr-bubble.push { border-radius: var(--r); }
.clr-thumb-lg { width: 64px; height: 64px; }
.clr-actions { display: grid; gap: 16px; } .clr-actions form { margin: 0; } .clr-actions .hint, .clr-two .card form .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.clr-winners { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
@media (max-width: 900px) {
  .clr-two { grid-template-columns: minmax(0, 1fr); }
  .clr-two .cluba-sim { order: -1; }
}

/* ---------- Entradas e leitura por entrada ---------- */
.ent-form { max-width: 820px; }
.ent-form [hidden], .ent-pick-tools [hidden], .ent-event [hidden], .ent-exits [hidden], .ent-actions [hidden] { display: none !important; }
.ent-event { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; max-width: 640px; }
.ent-event label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ent-event select { min-width: 0; width: 100%; }
.ent-alert { background: var(--warn-soft); border: 1px solid rgba(255, 182, 72, .45); border-left: 4px solid var(--warn); color: var(--ink); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; }
.ent-alert > b, .ent-alert .row b { color: var(--warn); } .ent-alert .small { margin-top: 2px; }
.ent-alert details { margin-top: 10px; } .ent-alert summary { cursor: pointer; }
.ent-unassigned-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ent-unassigned-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.ent-unassigned-list .grow { min-width: 150px; overflow-wrap: anywhere; }
.ent-assign { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; } .ent-assign select { width: auto; max-width: 100%; min-width: 0; flex: 1 1 140px; }
.ent-empty { max-width: 760px; } .ent-empty h3 { margin-top: 0; }
.ent-uses { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); } .ent-uses b { color: var(--ink); }
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ent-card { display: grid; gap: 10px; text-decoration: none; color: inherit; min-width: 0; align-content: start; transition: border-color .15s; }
.ent-card:hover { border-color: var(--line-2); } .ent-card h3 { margin: 0; overflow-wrap: anywhere; }
.ent-card .badge { flex: none; white-space: nowrap; } .ent-window { margin: 0; }
.ent-facts { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 0; }
.ent-facts div { min-width: 0; } .ent-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ent-facts dd { margin: 2px 0 0; font: 500 20px/1.2 var(--display); }
.ent-warn-text { color: var(--warn); margin: 0; }
.ent-head-nums { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 18px; text-align: right; }
.ent-head-nums div { display: grid; } .ent-head-nums .num { font: 500 26px/1.1 var(--display); color: #fff; } .ent-head-nums .small { color: #cfc7b9; }
.ent-edit summary, #adicionar summary { cursor: pointer; }
.ent-options { display: grid; gap: 8px; } .ent-options .check { margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--field); }
.ent-steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; }
.ent-steps li { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ent-steps li.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ent-pick-tools { margin-bottom: 10px; gap: 10px; } .ent-pick-tools input { max-width: 320px; }
.ent-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ent-pick-item { margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; background: var(--field); min-width: 0; }
.ent-pick-item span { min-width: 0; overflow-wrap: anywhere; }
.ent-pick-item:has(input:checked) { border-color: var(--accent); }
.ent-locked-note { margin: 4px 0 16px; } .ent-locked { white-space: normal; text-align: right; min-width: 130px; max-width: 170px; }
.ent-pencil { display: inline-flex; align-items: center; gap: 5px; } .ent-pencil svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ent-danger { border-color: rgba(255, 107, 107, .3); } .ent-danger h3 { margin-top: 0; }

/* scanner: escolha das entradas, contadores e respostas do resultado */
.door-grid[hidden], .ent-picker[hidden], .ent-bar[hidden] { display: none !important; }
.ent-picker { max-width: 640px; margin: 0 auto 18px; } .ent-picker h2 { margin-top: 0; font-size: 22px; }
.ent-picker .ent-pick { grid-template-columns: 1fr; margin: 14px 0; } .ent-picker .ent-pick-item { padding: 14px; }
.ent-bar { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ent-bar .chip { cursor: pointer; font: inherit; font-size: 13px; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.ent-counters { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ent-counter { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 6px 12px; font-size: 13.5px; min-width: 0; }
.ent-counter-name { color: var(--ink-2); overflow-wrap: anywhere; } .ent-counter.off { border-style: dashed; } .ent-counter.off .small { color: var(--warn); }
.scan-result.ent-wrong, .scan-flash.ent-wrong { background: #d4570b; }
.scan-result.ent-ask h2 { font-size: 21px; line-height: 1.25; }
.scan-result .small { margin: 10px 0 0; opacity: .95; }
.ent-actions { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ent-actions form { margin: 0; display: grid; } .ent-actions .btn { width: 100%; min-height: 56px; font-size: 17px; justify-content: center; white-space: normal; }
.ent-actions .ent-yes { background: #fff; border-color: #fff; color: #111; }
.ent-actions .ent-no { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .55); color: #fff; }
.ent-actions .ent-force { background: #111; border-color: #111; color: #fff; }

/* saídas e números */
.ent-exits { max-width: 520px; margin: 0 auto; }
.ent-plus { width: 148px; height: 148px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; font: 300 92px/1 var(--display); display: inline-grid; place-items: center; margin: 8px 0 14px; box-shadow: var(--shadow); touch-action: manipulation; }
.ent-plus:active { transform: scale(.96); }
.ent-exit-nums { justify-content: center; margin: 14px 0 18px; text-align: center; } .ent-exit-nums dd { font-size: 30px; }
.ent-stat-list { display: grid; gap: 14px; } .ent-stat-row { display: grid; gap: 6px; min-width: 0; } .ent-stat-row b { overflow-wrap: anywhere; }
.ent-today { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 2px; } .ent-today b { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  .ent-grid, .ent-pick { grid-template-columns: 1fr; }
  .ent-assign { width: 100%; } .ent-assign .btn { flex: 1 1 auto; }
  .ent-head-nums { text-align: left; }
  .ent-actions { grid-template-columns: 1fr; }
}

/* ---------- Bilheteria (venda na porta) ---------- */
.box-pos [hidden], .box-sale-page [hidden] { display: none !important; }
.box-head { margin-bottom: 14px; } .box-head h1 { overflow-wrap: anywhere; }
.box-tabs a { flex: 1 1 0; text-align: center; padding: 13px 10px; font-size: 15px; }
/* escolha do evento */
.box-ev { border-top: 1px solid var(--line); } .box-ev:first-child { border-top: 0; }
.box-ev-main { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; text-decoration: none; }
.box-ev-main:hover { background: rgba(255, 255, 255, .03); } .box-ev-main b { overflow-wrap: anywhere; }
.box-ev-sum { flex: none; }
.box-ev-types { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.box-ev-type { font-size: 12.5px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.box-ev-type.off { color: var(--muted); border-style: dashed; }
.box-ev-none { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: baseline; padding: 0 20px 16px; color: var(--muted); }
/* ponto de venda */
.box-pos, .box-today, .box-sale-page { max-width: 640px; }
.box-pos { display: grid; gap: 14px; margin-bottom: 18px; }
.box-cart, .box-pay { display: grid; gap: 14px; min-width: 0; }
.box-js-only { display: none; } .box-js .box-js-only { display: block; }
.box-js .box-methods.box-js-only, .box-js .box-pay-total.box-js-only { display: grid; }.box-js .box-quick.box-js-only { display: flex; } .box-js .box-change.box-js-only { display: flex; }
.box-js .box-pay { display: none; } .box-js.paying .box-pay { display: grid; }
.box-js.paying .box-cart, .box-js.paying .box-bar { display: none; }
.box-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); }
.box-item:first-child { border-top: 0; }
.box-item-info { min-width: 0; flex: 1 1 0; } .box-item-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.box-item-meta { font-size: 14px; margin-top: 2px; } .box-item.off .box-item-name, .box-item.off .box-item-meta .num { color: var(--muted); }
.box-qty { display: inline-flex; align-items: center; flex: none; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--field); }
.box-qty button { width: 48px; height: 48px; border: 0; background: none; color: var(--ink); font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.box-qty button:active { background: var(--line); } .box-qty button:disabled { opacity: .3; cursor: default; }
.box-qty input[type=number] { width: 40px; border: 0; padding: 0; background: none; text-align: center; font-weight: 700; font-size: 18px; border-radius: 0; -moz-appearance: textfield; }
.box-qty input[type=number]:focus { outline: 0; }
.box-qty input::-webkit-outer-spin-button, .box-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.box-qty:focus-within { border-color: var(--pink); }
.box-none h3 { margin-top: 0; }
.box-custom h3 { margin: 0 0 12px; }
.box-custom-row { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 0 12px; }
.box-pos input[type=text], .box-pos input[type=email], .box-pos input[type=tel], .box-pos select, .box-sale-page input[type=email], .box-search input { font-size: 16px; padding: 13px 14px; }
.box-more > summary { list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-height: 24px; }
.box-more > summary::-webkit-details-marker { display: none; }
.box-more > summary::before { content: '▸'; color: var(--muted); font-size: 13px; transition: transform .15s; }
.box-more[open] > summary::before { transform: rotate(90deg); }
.box-more > summary .small { overflow-wrap: anywhere; min-width: 0; }
.box-more-body { margin-top: 16px; }
.box-toggle { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; background: var(--field); }
.box-toggle input { width: 22px; height: 22px; margin-top: 1px; }
/* barra fixa com o total */
.box-bar { position: sticky; bottom: 0; z-index: 40; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 9, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); }
.box-bar-total { display: grid; min-width: 0; } .box-bar-total b { font: 500 24px/1.15 var(--display); white-space: nowrap; }
.box-bar-total .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-bar .btn { flex: none; min-height: 54px; padding: 14px 22px; }
@media (min-width: 901px) { .box-bar { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r) var(--r) 0 0; } }
@media (max-width: 900px) { html.avo-app .box-bar { bottom: calc(60px + env(safe-area-inset-bottom)); padding-bottom: 12px; } }
/* pagamento */
.box-pay-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.box-pay-head .link { padding: 10px 0; font-size: 15px; }
.box-pay-total { display: grid; text-align: right; margin-left: auto; } .box-pay-total b { font: 500 30px/1.1 var(--display); white-space: nowrap; }
.box-pay-title { font-size: 15px; margin: 0; }
.box-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.box-method { display: grid; gap: 4px; align-content: center; justify-items: center; min-height: 92px; padding: 12px 6px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  color: var(--ink); font: inherit; cursor: pointer; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.box-method b { font: 600 17px var(--display); } .box-method span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.box-method:hover { border-color: var(--ink); }
.box-method.on { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; }
.box-method.on span { color: var(--ink-2); }
.box-panel h3 { margin: 0 0 12px; } .box-panel .btn.lg { min-height: 58px; white-space: normal; }
.box-pay #box-error { margin: 0; }
.box-quick { gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.box-quick-btn { flex: 1 1 auto; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--field); color: var(--ink); font: 700 14px var(--body); cursor: pointer; white-space: nowrap; touch-action: manipulation; }
.box-quick-btn.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.box-change { justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.box-change b { font: 500 26px/1.1 var(--display); white-space: nowrap; } .box-change.short { background: var(--bad-soft); color: var(--bad); }
.box-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.box-kind { position: relative; margin: 0; cursor: pointer; }
.box-kind input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.box-kind span { display: block; text-align: center; padding: 15px 10px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); font-weight: 700; font-size: 16px; }
.box-kind input:checked + span { border-color: var(--pink); background: var(--accent-soft); color: #fff; }
.box-kind input:focus-visible + span { outline: 3px solid var(--accent-soft); }
/* linhas de valor (resumo do dia, itens da venda) */
.box-lines { display: grid; }
.box-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.box-line:first-child { border-top: 0; } .box-line > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.box-line.total { border-top: 2px solid var(--line-2); font-weight: 700; }
.box-today .box-lines { padding: 4px 20px 8px; }
/* vendas */
.box-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 640px; } .box-search input { flex: 1; min-width: 0; } .box-search .btn { flex: none; }
.box-sales { max-width: 640px; }
.box-sale { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; min-height: 64px; }
.box-sale:first-child { border-top: 0; } .box-sale:hover { background: rgba(255, 255, 255, .03); }
.box-sale-main { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.box-sale-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .box-sale-top b { font-size: 17px; }
.box-sale-go { color: var(--muted); flex: none; }
/* resumo */
.box-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.box-days .chip { flex: none; padding: 9px 16px; font-weight: 650; font-size: 14px; }
.box-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.box-kpis .kpi { min-width: 0; } .box-kpis .kpi .value { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box-total-row td { border-top: 2px solid var(--line-2); }
.box-fee { margin-bottom: 18px; }
.box-actions { display: flex; gap: 10px; flex-wrap: wrap; } .box-actions .btn { min-height: 50px; }
/* tela da venda */
.box-sale-page { display: grid; gap: 14px; }
.box-sale-page > * { min-width: 0; }
.box-h { font-size: 22px; letter-spacing: .08em; margin: 0; }
.box-done { text-align: center; border-radius: var(--r); padding: 26px 18px 22px; background: #14804f; color: #fff; }
.box-done.off { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); }
.box-done h1 { font-size: 24px; letter-spacing: .1em; margin: 0; color: inherit; } .box-done p { margin: 0; }
.box-done-mark { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 26px; font-weight: 700; }
.box-done-total { font: 500 40px/1.15 var(--display); margin-top: 8px !important; }
.box-done-method { font-weight: 650; opacity: .95; } .box-done-change { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 17px; }
.box-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); }
.box-ticket { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 12px; background: var(--surface); min-width: 0; }
.box-ticket img { border-radius: 8px; background: #fff; } .box-ticket-code { font-weight: 700; overflow-wrap: anywhere; }
.box-qr { display: block; width: min(300px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: var(--r-sm); padding: 8px; }
.box-email-row { display: flex; gap: 8px; } .box-email-row input { flex: 1; min-width: 0; } .box-email-row .btn { flex: none; }
.box-claim { margin-top: 14px; } .box-claim > summary { list-style: none; min-height: 50px; } .box-claim > summary::-webkit-details-marker { display: none; }
.box-claim-body { margin-top: 14px; display: grid; gap: 12px; text-align: center; } .box-claim-body p { margin: 0; }
.box-share-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; } .box-share-row .btn { min-height: 50px; }
.box-kv dd { text-align: right; }
.box-refund { border-color: rgba(255, 107, 107, .3); } .box-refund h3 { margin-top: 0; } .box-warn { color: var(--warn); }
/* Pix aguardando pagamento */
.box-pix { display: grid; gap: 14px; }
.box-pix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.box-timer { white-space: nowrap; } .box-clock { font: 500 15px var(--display); background: var(--grad); color: #fff; padding: 6px 12px; border-radius: 999px; }
.box-pix label { margin: 0 0 -8px; }
.box-pix-code { min-height: 0; font-size: 12.5px; word-break: break-all; resize: none; }
.box-wait { display: flex; align-items: center; gap: 8px; margin: 0; }
.box-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: box-pulse 1.4s ease-in-out infinite; }
@keyframes box-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .box-pulse { animation: none; } }
.box-test { border: 2px dashed rgba(255, 182, 72, .6); background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 18px 20px; }
.box-test p { margin: 0 0 12px; }
.box-test-label { font: 800 12px var(--body); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 600px) {
  .box-ev-main { padding: 14px 16px; flex-wrap: wrap; } .box-ev-none { padding: 0 16px 14px; }
  .box-ev-sum { text-align: left; display: flex; gap: 8px; align-items: baseline; flex-basis: 100%; }
  .box-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .box-kpis .kpi { padding: 12px 14px; } .box-kpis .kpi .value { font-size: 20px; }
  .box-kpis .kpi:first-child { grid-column: 1 / -1; } .box-kpis .kpi:first-child .value { font-size: 28px; }
  .box-table th, .box-table td { padding: 10px 8px; } .box-table th:first-child, .box-table td:first-child { padding-left: 14px; } .box-table th:last-child, .box-table td:last-child { padding-right: 14px; }
  .box-actions .btn { flex: 1 1 auto; }
  .box-table td .small { display: none; } /* no celular a dica de conferência fica só no texto abaixo da tabela */
  .box-method { min-height: 84px; } .box-method b { font-size: 16px; }
  .box-custom-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); }
}

/* ---------- Pesquisa de satisfação ---------- */
/* Formulário da pesquisa (views/site/_survey-form.ejs). O mesmo bloco existe em site.css e backstage.css,
   porque o formulário aparece na página pública, no Admin Console e na consulta do produtor. */
.srv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.srv-form { display: grid; gap: 14px; min-width: 0; }
.srv-form .srv-q { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 18px 20px; margin: 0; min-width: 0; }
.srv-form .srv-q legend { float: left; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 0; margin: 0 0 14px; font: 650 16px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.srv-form .srv-q legend + * { clear: both; }
.srv-q-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); display: grid; place-items: center; font: 700 12px/1 var(--body); margin-top: 1px; }
.srv-q-t { min-width: 0; overflow-wrap: anywhere; }
.srv-req { color: var(--pink); font-weight: 700; }
.srv-opt { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.srv-q-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.srv-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.srv-scale-i { position: relative; margin: 0; cursor: pointer; }
.srv-scale-i input, .srv-star input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.srv-scale-i span { display: grid; place-items: center; min-height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); font: 500 18px var(--display); font-variant-numeric: tabular-nums; }
.srv-scale-i:hover span { border-color: var(--ink); }
.srv-scale-i input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.srv-scale-i input:focus-visible + span, .srv-star input:focus-visible + .srv-star-i { outline: 3px solid var(--accent); outline-offset: 2px; }
.srv-scale-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.srv-stars { display: flex; gap: 4px; }
.srv-star { position: relative; margin: 0; cursor: pointer; width: 52px; height: 52px; display: grid; place-items: center; }
.srv-star-i { font-size: 38px; line-height: 1; color: var(--line-2); border-radius: 8px; transition: color .1s, transform .1s; }
.srv-star:hover .srv-star-i { color: var(--muted); }
.srv-star input:checked + .srv-star-i { color: var(--orange); transform: scale(1.08); }
.srv-star:has(~ .srv-star input:checked) .srv-star-i { color: var(--orange); }
.srv-opts { display: grid; gap: 8px; }
.srv-optn { display: flex; gap: 12px; align-items: center; margin: 0; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); font-weight: 500; font-size: 15px; cursor: pointer; }
.srv-optn input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--pink); }
.srv-optn span { min-width: 0; overflow-wrap: anywhere; }
.srv-optn:hover { border-color: var(--ink); }
.srv-optn:has(input:checked) { border-color: var(--pink); background: var(--accent-soft); }
.srv-form textarea { min-height: 120px; }
.srv-preview-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.srv-kicker { margin: 0 0 8px; font: 600 11.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
@media (max-width: 560px) {
  .srv-form .srv-q { padding: 16px 14px 18px; }
  .srv-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .srv-stars { justify-content: space-between; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { .srv-star-i { transition: none; } }
/* Telas do Admin Console (Pesquisas) e do Backstage (Marketing > Satisfação) */
.srv-sub { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin: 0 0 20px; max-width: 100%; }
.srv-sub a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 14px; color: var(--muted); white-space: nowrap; }
.srv-sub a:hover { color: var(--ink); } .srv-sub a.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.srv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.srv-layout > * { min-width: 0; } .srv-side { display: grid; gap: 18px; }
.srv-h { margin: 22px 0 12px; font-size: 15px; color: var(--ink-2); } .srv-main > .srv-h:first-child { margin-top: 0; }
.srv-headline { margin-bottom: 22px; }
.srv-headline-nums { display: flex; gap: 12px 36px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.srv-headline-nums div, .srv-ev-nums div { display: grid; gap: 1px; }
.srv-headline-nums b { font: 500 22px/1.2 var(--display); } .srv-headline-nums span { font-size: 13px; color: var(--muted); }
.srv-avgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.srv-avgs > div { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 12px; align-items: center; }
.srv-avgs .name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srv-avgs b { min-width: 2.2ch; text-align: right; }
.srv-nps { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.srv-nps-score { display: grid; gap: 2px; min-width: 96px; }
.srv-nps-score .label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.srv-nps-score b { font: 500 46px/1 var(--display); } .srv-nps-score .sub { font-size: 12.5px; color: var(--muted); }
.srv-nps-keys { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 10px; color: var(--ink-2); }
.srv-evs .srv-ev { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.srv-evs .srv-ev:first-child { border-top: 0; }
.srv-ev-name { font-weight: 700; font-size: 15.5px; text-decoration: none; overflow-wrap: anywhere; } .srv-ev-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.srv-ev-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.srv-ev-nums { display: flex; gap: 20px; justify-content: flex-end; }
.srv-ev-nums b { font: 500 18px/1.2 var(--display); white-space: nowrap; } .srv-ev-nums span { font-size: 12px; color: var(--muted); } .srv-ev-nums b span { font-size: 13px; }
.srv-ev-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; } .srv-ev-actions form { margin: 0; }
.srv-empty { max-width: 720px; } .srv-empty p { color: var(--ink-2); } .srv-empty form { margin: 0; }
.srv-ov { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.srv-qres-list { display: grid; gap: 14px; }
.srv-qres-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.srv-qres-head h3 { margin: 4px 0 0; overflow-wrap: anywhere; }
.srv-qres-type { font: 700 11px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.srv-qres-sum { display: grid; justify-items: end; gap: 1px; flex: none; text-align: right; } .srv-qres-sum b { font: 500 26px/1.1 var(--display); }
.srv-dist > div { grid-template-columns: minmax(64px, .7fr) minmax(60px, 2fr) 88px; padding: 7px 0; border-top: 0; }
.srv-stars-txt { color: var(--orange); letter-spacing: 1px; }
.srv-rules { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 8px 0 0; font-size: 14px; }
.srv-rules dt { color: var(--muted); } .srv-rules dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.srv-notes { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 6px; max-width: 90ch; } .srv-notes b { color: var(--ink-2); }
.srv-nodel { margin-left: 10px; cursor: help; }
.srv-preview-wrap { max-width: 620px; }
.srv-preview-title { font-size: clamp(20px, 3vw, 28px); margin-bottom: 10px; overflow-wrap: anywhere; }
.srv-intro { font-size: 16px; color: var(--ink-2); margin: 0 0 16px; }
/* Construtor de perguntas (Admin Console > Pesquisas > Modelos) */
.srv-b-list { display: grid; gap: 12px; }
.srv-b-q { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); padding: 14px 14px 4px; min-width: 0; }
.srv-b-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.srv-b-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--body); margin-bottom: 7px; }
.srv-b-n:empty { display: none; }
.srv-b-top .srv-b-type { margin: 0; flex: 1 1 200px; min-width: 0; }
.srv-b-tools { display: none; gap: 6px; margin-left: auto; margin-bottom: 3px; } .srv-js .srv-b-tools { display: flex; }
.srv-b-tools .btn { padding: 9px 12px; min-width: 40px; } .srv-b-del:hover { border-color: var(--bad); color: var(--bad); }
.srv-js .srv-b-off { display: none; }
.srv-b-foot { margin-top: 14px; margin-bottom: 12px; } .srv-b-add { display: none; } .srv-js .srv-b-add { display: inline-flex; }
.srv-b-warn { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(255, 182, 72, .3); }
.srv-b-locked { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; }
@media (max-width: 900px) {
  .srv-layout { grid-template-columns: minmax(0, 1fr); }
  .srv-evs .srv-ev { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .srv-ev-nums, .srv-ev-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .srv-nps { grid-template-columns: minmax(0, 1fr); gap: 14px; } .srv-nps-score b { font-size: 38px; }
  .srv-qres-head { flex-direction: column; gap: 8px; } .srv-qres-sum { justify-items: start; text-align: left; grid-auto-flow: column; gap: 8px; align-items: baseline; }
  .srv-dist > div { grid-template-columns: 92px minmax(0, 1fr) 78px; } .srv-dist .bar { grid-column: auto; order: 0; }
  .srv-avgs > div { grid-template-columns: minmax(0, 1fr) 70px auto; }
  .srv-b-tools { margin-left: 0; } .srv-sub a { padding: 8px 12px; }
}

/* ===== Lineup: busca e seleção de artista ===== */
.lu-search { position: relative; }
.lu-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 6px; max-height: 340px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line, #26262b); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.lu-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lu-opt .avatar { width: 36px; height: 36px; font-size: 14px; flex: none; object-fit: cover; }
.lu-opt .lu-detail { display: block; }
.lu-opt:hover, .lu-opt.is-active, .lu-opt:focus-visible { background: rgba(232,227,220,.08); }
.lu-opt.is-disabled, .lu-opt:disabled { opacity: .5; cursor: default; background: none; }
.lu-create { border-top: 1px solid var(--line, #26262b); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
.lu-none { padding: 10px; }
.lu-fallback { margin-top: 10px; }
.lu-picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #26262b); border-radius: 12px; }
.lu-picked[hidden], .lu-new[hidden], .lu-search[hidden], .lu-fallback[hidden] { display: none; }
.lu-picked .avatar { width: 40px; height: 40px; flex: none; object-fit: cover; }
.lu-picked > div { flex: 1; min-width: 0; }
.lu-new { margin-top: 12px; }

/* ===== Marketing > Merchandising (views/backstage/marketing/merch.ejs) ===== */
.mcb-gap { margin-bottom: 18px; }
.mcb-errs { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.mcb-h { font-size: 15px; margin: 26px 0 12px; }
.mcb-status { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.mcb-status-main { flex: 1 1 320px; min-width: 0; }
.mcb-status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mcb-kv { margin-top: 14px; }
.mcb-problem { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--warn-soft); border: 1px solid rgba(255, 182, 72, .3); color: var(--warn); font-size: 14px; overflow-wrap: anywhere; }
.mcb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.mcb-opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; min-width: 0; }
.mcb-opt:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.mcb-opt:focus-within { outline: 2px solid var(--pink); outline-offset: 2px; }
.mcb-opt:has(input:disabled) { cursor: default; opacity: .7; }
.mcb-opt input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--pink); flex: none; }
.mcb-opt span { display: grid; gap: 3px; min-width: 0; }
.mcb-opt small { color: var(--muted); font-weight: 400; line-height: 1.4; }
.mcb-panel[hidden] { display: none; }
.mcb-panel, .mcb-look { min-width: 0; }
.mcb-lead { margin: 0 0 14px; max-width: 72ch; }
.mcb-foot { margin: 4px 0 12px; }
.mcb-token { min-height: 96px; font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }
.mcb-honest { margin: 2px 0 14px; }
.mcb-form label .badge { margin-left: 6px; vertical-align: 1px; }
.mcb-preview { margin-top: 34px; }
.mcb-preview > .row { margin-bottom: 12px; }
.mcb-shelf { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 18px; }
.mcb-shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mcb-shelf-head b { font: 500 16px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.mcb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mcb-item { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.mcb-pic { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12.5px; overflow: hidden; }
.mcb-pic img { width: 100%; height: 100%; object-fit: cover; }
.mcb-out { position: absolute; left: 8px; top: 8px; }
.mcb-item.is-out img { opacity: .5; }
.mcb-name { padding: 10px 12px 0; font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.mcb-price { padding: 2px 12px 12px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) { .mcb-opts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .mcb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mcb-shelf { padding: 14px; } .mcb-status-actions { width: 100%; } }

/* Bilheteria: com quatro formas de pagamento, duas por linha */
.box-methods:has(.box-method:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===================================================================================
   CONDIÇÕES COMERCIAIS (AVO Banking > Vendas por evento e Conta) — taxas pagas pelo produtor e rebate
   =================================================================================== */
.bsm-lines .sum-line.bsf-plus > span:last-child { color: var(--ok); }
.bsf-terms { margin-bottom: 22px; }
.bsf-terms-kv { grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); }
@media (max-width: 600px) {
  .bsf-terms-kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .bsf-terms-kv dd { margin-bottom: 10px; }
}

/* Telas largas (referência: 1512 × 982): links inteiros na tabela, sem cortar o código do promoter. */
@media (min-width: 1360px) { .bsm-url code { max-width: 520px; } }
