/* LB jewelry · painel da loja */
:root {
  --ground: #F7F5F0; --surface: #FFFFFF; --raised: #FBFAF7; --ink: #17140F; --ink-2: #4A443C; --muted: #857C70;
  --line: #E9E4DB; --line-strong: #D9D2C6; --gold: #9C7A3C; --gold-ink: #FFFFFF; --gold-soft: #F3ECDD; --gold-line: #E2D3B3;
  --granada: #A63D2F; --granada-soft: #F6E6E2; --esmeralda: #2F6B4F; --esmeralda-soft: #E3EFE8; --citrino: #9A6D12; --citrino-soft: #F6EDD7;
  --scrim: rgba(23, 20, 15, .38); --shadow: 0 1px 2px rgba(23, 20, 15, .05), 0 12px 32px -12px rgba(23, 20, 15, .18);
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
/* Tema: automático segue o celular; a escolha no painel (data-theme) vence. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F0D0A; --surface: #181512; --raised: #1D1A16; --ink: #EFE9DF; --ink-2: #C9C0B2; --muted: #978E80;
    --line: #2A2620; --line-strong: #3A342C; --gold: #D1B172; --gold-ink: #17140F; --gold-soft: #2A2318; --gold-line: #4A3D26;
    --granada: #E07A68; --granada-soft: #3A1D18; --esmeralda: #7DC29C; --esmeralda-soft: #16291F; --citrino: #E2B65A; --citrino-soft: #33280F;
    --scrim: rgba(0, 0, 0, .55); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0F0D0A; --surface: #181512; --raised: #1D1A16; --ink: #EFE9DF; --ink-2: #C9C0B2; --muted: #978E80;
  --line: #2A2620; --line-strong: #3A342C; --gold: #D1B172; --gold-ink: #17140F; --gold-soft: #2A2318; --gold-line: #4A3D26;
  --granada: #E07A68; --granada-soft: #3A1D18; --esmeralda: #7DC29C; --esmeralda-soft: #16291F; --citrino: #E2B65A; --citrino-soft: #33280F;
  --scrim: rgba(0, 0, 0, .55); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 14px/1.45 var(--ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 16px; height: 16px; }
svg.i-xs { width: 13px; height: 13px; }
.label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.2; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.money { font-family: var(--display); font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }
.money .cur { font-size: .55em; margin-right: .18em; color: var(--muted); font-family: var(--ui); font-weight: 500; letter-spacing: .04em; vertical-align: .38em; }
.mono { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-line); display: grid; place-items: center; font: 600 13px/1 var(--display); letter-spacing: .06em; color: var(--gold); background: var(--surface); flex: none; }
.mono--lg { width: 56px; height: 56px; font-size: 20px; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--top)) 16px calc(24px + var(--bottom)); }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 32px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.login-card .mono { justify-self: start; margin-bottom: 6px; }
.login-card h1 { margin: -6px 0 6px; font: 500 34px/1.05 var(--display); }
.login-hint { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- campos ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.input { height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 14px; font-size: 16px; width: 100%; min-width: 0; outline: none; -webkit-appearance: none; appearance: none; }
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.input.money-in { font-family: var(--display); font-size: 22px; font-weight: 500; }
.hint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.hint b { color: var(--esmeralda); font-weight: 600; }
.hint b.neg { color: var(--granada); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--granada-soft); color: var(--granada); font-size: 13px; line-height: 1.4; }
.banner-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--granada-soft); color: var(--granada); font-size: 13px; }

/* ---------- botões ---------- */
.btn { height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--primary { background: var(--ink); color: var(--ground); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--sm { height: 44px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn--wa { background: var(--esmeralda); color: #fff; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); flex: none; }
.danger-link { justify-self: start; font-size: 13px; color: var(--granada); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; padding: 6px 4px; }
.link-txt { color: var(--gold); font-weight: 600; }

/* ---------- estrutura ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--top)) 16px 12px; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.topbar-title b { font: 500 24px/1.1 var(--display); display: block; }
.content { padding: 4px 16px calc(112px + var(--bottom)); max-width: 1180px; }
.screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; animation: rise .25s ease both; }
.colstack { min-width: 0; display: grid; gap: 22px; align-content: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.stack-sm { display: grid; gap: 10px; min-width: 0; }
@keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 64px 0; color: var(--muted); }
.loading span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; margin: 0 4px -12px; }
.sec-head--flush { margin: 0 4px; }
.sec-head h3 { margin: 0; font: 600 10.5px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sec-head button, .sec-head a { font-size: 12.5px; line-height: 1; color: var(--gold); font-weight: 600; padding: 4px 0; white-space: nowrap; }
.sec-head .label { line-height: 1; white-space: nowrap; }
.foot-hint { margin: -10px 4px 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar .search { flex: 1; }

/* ---------- resumo ---------- */
.hero { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; text-align: left; width: 100%; }
.hero--link:hover { border-color: var(--line-strong); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero .big { font-size: clamp(32px, 9.5vw, 42px); line-height: 1; }
.hero-row { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.hero-row b { font-weight: 600; color: var(--ink); }
.hero-row .link-txt { margin-left: auto; }
.delta { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: var(--esmeralda); background: var(--esmeralda-soft); }
.delta.down { color: var(--granada); background: var(--granada-soft); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.kpi { padding: 12px 12px 11px; display: grid; gap: 4px; min-width: 0; text-align: left; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .v { font-size: clamp(16px, 5.1vw, 22px); line-height: 1.05; white-space: nowrap; }
.kpi.alert .v { color: var(--granada); }
.kpi .label { font-size: 9.5px; }
.kpi[aria-pressed="true"] { background: var(--raised); }
.kpi:first-child { border-radius: 16px 0 0 16px; }
.kpi:last-child { border-radius: 0 16px 16px 0; }

/* ---------- listas ---------- */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.rowi { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; min-height: 64px; position: relative; }
.rowi + .rowi::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: 1px solid var(--line); }
.rowi--plain + .rowi--plain::before, .rowi--plain + .rowi::before, .rowi + .rowi--plain::before { left: 62px; }
button.rowi:hover, a.rowi:hover { background: var(--raised); }
.rowi.is-muted { opacity: .62; }
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: var(--gold-soft); border: 1px solid var(--line); }
.thumb--ph { display: grid; place-items: center; font: 600 13px var(--display); color: var(--gold); }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line); position: relative; }
.avatar[data-s]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); }
.avatar[data-s="overdue"]::after { background: var(--granada); }
.avatar[data-s="soon"]::after { background: var(--citrino); }
.avatar[data-s="open"]::after { background: var(--line-strong); }
.avatar[data-s="paid"]::after { background: var(--esmeralda); }
.mid { flex: 1; min-width: 0; display: block; }
.name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-weight: 500; font-size: 14px; line-height: 1.3; }
.meta { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.meta .warn { color: var(--citrino); font-weight: 500; }
.meta .sale-t { color: var(--granada); font-weight: 500; }
.end { text-align: right; flex: none; display: grid; gap: 3px; justify-items: end; }
.end .money { font-size: 18px; line-height: 1; }
.chev { color: var(--line-strong); }
.empty { padding: 18px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; line-height: 1.4; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.pill.red { background: var(--granada-soft); color: var(--granada); border-color: transparent; }
.pill.green { background: var(--esmeralda-soft); color: var(--esmeralda); border-color: transparent; }
.pill.amber { background: var(--citrino-soft); color: var(--citrino); border-color: transparent; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 4px 8px; }
.day-head h4 { margin: 0; font: 600 12px/1.2 var(--ui); letter-spacing: .04em; color: var(--muted); text-transform: capitalize; }

/* ---------- busca, segmentos e filtros ---------- */
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--line); gap: 3px; min-width: 0; }
.seg button { padding: 8px 4px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg button small { color: var(--muted); font-weight: 500; margin-left: 4px; }
@media (max-width: 360px) { .seg button { font-size: 12px; padding: 8px 2px; } .seg button small { margin-left: 3px; } }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.chip small { opacity: .6; margin-left: 4px; }
.chip.warn { border-color: transparent; background: var(--citrino-soft); color: var(--citrino); }
.chip.warn[aria-pressed="true"] { background: var(--citrino); color: var(--surface); }
.summary-line { font-size: 12px; color: var(--muted); margin: -8px 4px -6px; display: flex; gap: 4px 6px; flex-wrap: wrap; }
.summary-line b { color: var(--ink-2); font-weight: 600; }

/* ---------- gráficos ---------- */
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { font: 500 10px var(--ui); fill: var(--muted); }
.chart .ax-strong { font: 600 10px var(--ui); fill: var(--ink); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.bars { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.bar { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; }
.bar .track { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar .track { display: block; }
.bar .fill { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.bar .fill.g { background: var(--gold); }
.bar .val { font-weight: 600; text-align: right; white-space: nowrap; }

/* ---------- barra inferior ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 8px 10px calc(10px + var(--bottom)); background: color-mix(in srgb, var(--ground) 84%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 6px 0 2px; position: relative; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -9px; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.tab-badge { position: absolute; top: 1px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--granada); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--ground); }
.facet { justify-self: center; width: 54px; height: 54px; margin-top: -24px; display: grid; place-items: center; color: var(--gold-ink); position: relative; }
.facet::before { content: ""; position: absolute; inset: 7px; background: var(--gold); transform: rotate(45deg); border-radius: 11px; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--gold) 70%, transparent); transition: transform .25s ease; }
.facet:hover::before { transform: rotate(135deg); }
.facet svg { position: relative; width: 22px; height: 22px; stroke-width: 2; }

/* ---------- painéis ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 26px 26px 0 0; max-height: calc(92vh - var(--top)); max-height: calc(92dvh - var(--top)); display: flex; flex-direction: column; transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); border-top: 1px solid var(--line); visibility: hidden; }
.sheet.on { transform: none; visibility: visible; }
.grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 8px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px 18px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { margin: 0; flex: 1; min-width: 0; font: 500 22px/1.15 var(--display); overflow-wrap: anywhere; }
.x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--muted); flex: none; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 22px; display: grid; gap: 16px; align-content: start; }
.sheet-error { margin: 0 18px 10px; flex: none; }
.sheet-foot { padding: 12px 18px calc(14px + var(--bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; flex: none; }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn--ghost { flex: 0 0 auto; }
.prod-head { display: flex; gap: 14px; align-items: center; }
.prod-head img, .prod-head .thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.prod-head .money { font-size: 30px; line-height: 1; }
.prod-head .stack-sm { gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; }
.facts > div { padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts b { font-weight: 600; font-size: clamp(13px, 3.9vw, 15px); white-space: nowrap; }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.actions--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.act { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 14px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--raised); }
.act svg { color: var(--ink); }
.act.main { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.act.main svg { color: var(--ground); }
.menu { display: grid; gap: 8px; }
.menu-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); text-align: left; background: var(--raised); width: 100%; }
.menu-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.menu-item b { display: block; font-weight: 600; }
.menu-item small { color: var(--muted); font-size: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.switch-row b { font-weight: 500; display: block; }
.switch-row small { color: var(--muted); font-size: 12px; display: block; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--esmeralda); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; height: 46px; overflow: hidden; background: var(--surface); }
.stepper button { width: 46px; height: 100%; font-size: 20px; color: var(--ink-2); flex: none; }
.stepper input { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: 16px; border: 0; background: none; outline: none; height: 100%; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.wa-preview { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--esmeralda-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.picker { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 14px; width: 100%; text-align: left; }
.picker .thumb, .picker img { width: 42px; height: 42px; border-radius: 9px; }
.pick-more { padding: 10px 14px; font-size: 12px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.more { border: 1px solid var(--line); border-radius: 14px; }
.more summary { cursor: pointer; padding: 12px 14px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.more[open] summary::after { content: "−"; }
.more .more-body { padding: 0 14px 14px; display: grid; gap: 14px; }
.more:not([open]) .more-body { display: none; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 36px; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pay-row .pay-note { grid-column: 1 / 3; }
.pay-row .x { align-self: center; grid-row: 1 / 3; grid-column: 3; }
.totals { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); padding: 10px 12px; background: var(--raised); border-radius: 12px; }
.totals b { color: var(--ink); }
.history { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.history > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; font-size: 13px; }
.history > div + div { border-top: 1px solid var(--line); }
.history span { color: var(--muted); }

/* fotos */
.ph-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { margin: 0; position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--raised); }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); color: #fff; font-size: 11px; line-height: 1.2; }
.slot figcaption b { display: block; font-weight: 600; }
.slot figcaption small { opacity: .85; font-size: 10px; }
.slot.cover { border: 2px solid var(--gold); }
.slot-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.slot-acts button { width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .58); color: #fff; display: grid; place-items: center; }
.slot.empty { border: 1.5px dashed var(--line-strong); display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; padding: 8px; cursor: pointer; color: var(--muted); }
.slot.empty b { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.slot.empty small { font-size: 10.5px; }
.slot.busy { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.upload { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); cursor: pointer; color: var(--ink); width: 100%; text-align: left; }
.upload .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.upload b { display: block; font-weight: 600; }
.upload small { color: var(--muted); font-size: 12px; display: block; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mini-photos { display: flex; gap: 6px; align-items: center; flex: none; }
.mini-photos img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.mini-photos .gap { width: 34px; height: 34px; border-radius: 8px; border: 1px dashed var(--line-strong); }
.photo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: 14px; width: 100%; text-align: left; }
.photo-row b { display: block; font-weight: 500; }
.photo-row small { font-size: 12px; color: var(--muted); display: block; }
.photo-row small.warn { color: var(--citrino); }

/* mês das vendas */
.month-bar { display: flex; align-items: center; justify-content: center; gap: 2px; margin: -8px 0 -6px; }
.month-bar .icon-btn { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); }
.month-bar .icon-btn:hover:not(:disabled) { color: var(--ink); }
.month-bar .icon-btn:disabled { opacity: .3; cursor: default; }
.month-select { position: relative; display: inline-flex; align-items: center; }
.month-select .input { height: 30px; width: auto; border: 0; background-color: transparent; background-position: calc(100% - 9px) 13px, calc(100% - 5px) 13px; padding: 0 20px 0 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: center; text-align-last: center; cursor: pointer; border-radius: 8px; }
.month-select .input:hover { color: var(--ink); background-color: var(--raised); }
.month-select .input:focus { box-shadow: none; outline: 2px solid var(--gold); outline-offset: 1px; }
.chart-hit { cursor: pointer; }

/* tema */
.theme-row { min-height: 56px; }
.theme-pick { padding: 0 14px 12px 62px; }
.theme-row + .theme-pick + .rowi::before { left: 62px; }

/* vitrine */
.hero-prev { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: #1C1915; border: 1px solid var(--line); container-type: inline-size; }
.hero-prev .hp-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-prev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .58)); pointer-events: none; }
.hero-prev .cap { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 1; color: #fff; font: 500 clamp(18px, 8cqi, 32px)/1.05 var(--display); text-wrap: balance; }
.hp-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 1; display: flex; gap: 5px; justify-content: center; }
.hp-dots i { width: 5px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .5); transition: width .3s; }
.hp-dots i.on { background: #fff; width: 14px; }
.vid-ph { display: grid; place-items: center; align-content: center; gap: 4px; background: radial-gradient(circle at 30% 30%, #5A4A2C, #17140F 72%); color: #E9D6A6; width: 100%; height: 100%; }
.vid-ph small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.bthumb { width: 72px; height: 41px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); overflow: hidden; background: #1C1915; }
.vid-ph.bthumb small { display: none; }
.banner-row { padding: 8px 10px 8px 14px; }
.rowi.banner-row + .rowi.banner-row::before { left: 100px; }
.row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.order-btns { display: flex; flex-direction: column; gap: 3px; flex: none; }
.order-btns button { width: 32px; height: 26px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: var(--surface); }
.order-btns button:disabled { opacity: .3; cursor: default; }
.order-btns--row { flex-direction: row; }
.popup-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; width: 100%; }
.popup-card img { width: 104px; max-width: 38%; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; flex: none; }
.popup-card b { display: block; font-weight: 600; }
.popup-card small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; margin-top: 2px; }
.popup-card small b { display: inline; color: var(--ink); letter-spacing: .04em; }
.wa-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--esmeralda-soft); color: var(--esmeralda); flex: none; }
.del-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.offer-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.offer-pct { display: grid; gap: 4px; flex: 1; min-width: 110px; }
.offer-pct .money { font-size: 36px; color: var(--granada); line-height: 1; }
.pcard { width: 148px; flex: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pcard-img { position: relative; aspect-ratio: 1; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .sale { position: absolute; top: 8px; left: 8px; background: var(--granada); color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; }
.pcard-body { padding: 8px 10px 10px; display: grid; gap: 3px; font-size: 12px; }
.pcard-body small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcard-body b { font-weight: 500; line-height: 1.25; }
.pcard-body s { color: var(--muted); }
.pop-prev { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); max-width: 280px; margin: 0 auto; width: 100%; box-shadow: var(--shadow); }
.pop-prev img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pop-body { padding: 12px 14px 14px; display: grid; gap: 8px; text-align: center; }
.pop-body b { font: 500 20px/1.15 var(--display); }
.pop-in { height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; text-align: left; }
.pop-btn { height: 36px; border-radius: 8px; background: var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 13px; display: grid; place-items: center; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: center; transition: all .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--granada); color: #fff; }

/* ---------- computador ---------- */
@media (min-width: 900px) {
  .app { display: flex; }
  .side { display: flex; flex-direction: column; gap: 4px; width: 236px; flex: none; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 22px 14px; background: var(--surface); }
  .side-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 22px; }
  .side-brand b { font: 500 20px/1 var(--display); display: block; }
  .side-brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
  .nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; width: 100%; text-align: left; }
  .nav:hover { background: var(--raised); }
  .nav[aria-current="page"] { background: var(--ground); color: var(--ink); }
  .nav-badge { margin-left: auto; font-size: 11px; font-weight: 600; color: #fff; background: var(--granada); border-radius: 9px; padding: 1px 7px; }
  .side-new { margin-top: auto; height: 46px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .main { flex: 1; }
  .tabbar { display: none; }
  .topbar { padding: 20px 32px 16px; border-bottom: 1px solid var(--line); }
  .topbar .mono { display: none; }
  .topbar-title b { font-size: 30px; }
  .content { padding: 24px 32px 48px; }
  .screen.cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .screen.cols > .full { grid-column: 1 / -1; }
  .chips { margin: 0; padding: 0; flex-wrap: wrap; }
  .kpi .v { font-size: 24px; }
  .hero .big { font-size: 44px; }
  .scrim.on { background: color-mix(in srgb, var(--scrim) 60%, transparent); }
  .sheet { left: auto; right: 20px; top: 20px; bottom: 20px; width: 440px; max-height: none; border-radius: 20px; border: 1px solid var(--line); transform: translateX(calc(100% + 40px)); box-shadow: var(--shadow); }
  .sheet.on { transform: none; }
  .grab { display: none; }
  .sheet-head { padding-top: 16px; }
  .sheet-foot { padding-bottom: 16px; }
  .toast { bottom: 28px; }
  .rowi { min-height: 58px; }
  .facts b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
