/* Painel Cabelo de Sereia — identidade da página de vendas: creme, rosa e bordô; Dreamuna nos títulos.
   Layout: barra fixa com logo e período, abas, conteúdo em grade de cartões que vira uma coluna no celular. */
@font-face { font-family: "Dreamuna"; src: url("/fonts/Dreamuna.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #FBF6F3; --surface: #FFFFFF; --soft: #FCEBF0; --blush: #FCD9E2; --pink: #F9BBCB; --rose: #E58AA8;
  --bordo: #671C32; --wine: #3F0F1E; --ink: #2B1018; --muted: #7D5A66; --line: #EFDCE2;
  --good: #1A7F45; --bad: #B4232F; --warn: #A35A00;
  --on-bordo: #FCEBF0; --top-bg: #671C32; --chart-meta: #671C32;
  --display: "Dreamuna", "Playfair Display", Georgia, serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1C0A10; --surface: #281219; --soft: #331821; --blush: #43202C; --pink: #F2A9BC; --rose: #E58AA8;
  --bordo: #F2A9BC; --wine: #FCD9E2; --ink: #FBEFF2; --muted: #C9A3AF; --line: #3D1D28;
  --good: #5CC98D; --bad: #FF7A84; --warn: #F0B35A; --on-bordo: #2B1018; --top-bg: #4A1424; --chart-meta: #B9506F; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #1C0A10; --surface: #281219; --soft: #331821; --blush: #43202C; --pink: #F2A9BC; --rose: #E58AA8;
  --bordo: #F2A9BC; --wine: #FCD9E2; --ink: #FBEFF2; --muted: #C9A3AF; --line: #3D1D28;
  --good: #5CC98D; --bad: #FF7A84; --warn: #F0B35A; --on-bordo: #2B1018; --top-bg: #4A1424; --chart-meta: #B9506F; color-scheme: dark }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--bordo); }
[hidden] { display: none !important; }
.num, td.n, .kpi b { font-variant-numeric: tabular-nums; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 20; background: var(--top-bg); --on-bordo: #FCEBF0; color: var(--on-bordo); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left)) 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.top .logo { height: 34px; width: auto; display: block; }
.top .spacer { flex: 1; }
.period { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.period select, .period input { background: transparent; border: 1px solid color-mix(in srgb, var(--on-bordo) 45%, transparent); color: var(--on-bordo); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.period select option { color: #2B1018; }
.period input[type=date] { padding: 5px 10px; }
.icon-btn { background: transparent; border: 1px solid color-mix(in srgb, var(--on-bordo) 45%, transparent); color: var(--on-bordo); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.icon-btn:hover { background: color-mix(in srgb, var(--on-bordo) 14%, transparent); }
.who { font-size: 13px; opacity: .9; }
.sync { font-size: 12px; opacity: .85; white-space: nowrap; }

/* Abas */
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: var(--top-h, 56px); z-index: 15; }
.tabs-in { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--bordo); border-bottom-color: var(--rose); }

main { max-width: 1240px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 22px; }
.view { display: flex; flex-direction: column; gap: 22px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h2.sec { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--bordo); letter-spacing: .01em; line-height: 1.1; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* Cartões */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 980px) { .g-main { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card.hero { background: var(--bordo); color: var(--on-bordo); border-color: transparent; }
.card.hero h3, .card.hero .sub { color: color-mix(in srgb, var(--on-bordo) 78%, transparent); }
.card.blush { background: var(--soft); border-color: var(--blush); }

.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.card.hero .kpi span { color: color-mix(in srgb, var(--on-bordo) 78%, transparent); }
.kpi b { font-size: 26px; font-weight: 700; line-height: 1.15; }
.kpi small { font-size: 12px; color: var(--muted); }
.card.hero .kpi small { color: color-mix(in srgb, var(--on-bordo) 80%, transparent); }
.delta { font-weight: 700; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.card.hero .delta.up, .card.hero .delta.down { color: var(--on-bordo); }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* Avisos */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { border-radius: 10px; padding: 10px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; gap: 10px; align-items: baseline; }
.alert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); background: var(--warn); }
.alert.bad::before { background: var(--bad); }
.alert.info::before { background: var(--rose); }

/* Linhas de valor */
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row.total { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; padding-top: 10px; margin-top: 4px; font-size: 15px; }
.row.sub2 { color: var(--muted); padding-left: 14px; font-size: 13px; }
.row .num { white-space: nowrap; }

/* Tabelas */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--soft); }
th.sort { cursor: pointer; user-select: none; }
th.sort[data-dir="desc"]::after { content: " ↓"; } th.sort[data-dir="asc"]::after { content: " ↑"; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }

.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--bordo); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.in { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }

.ad { display: flex; gap: 10px; align-items: center; min-width: 240px; }
.ad img, .ad .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--blush); }
.ad b { display: block; font-size: 13.5px; font-weight: 600; word-break: break-word; }
.ad small { color: var(--muted); font-size: 12px; }

/* Gráfico */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Barras simples */
.bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--rose); border-radius: 999px; }
.bar.low > i { background: var(--bad); }

/* Funil */
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step { background: var(--soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.step span { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.step b { font-size: 20px; font-variant-numeric: tabular-nums; }
.step small { font-size: 12px; color: var(--muted); }

/* Formulários */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 12px; align-items: start; }
.form > .actions { align-self: end; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bordo); color: var(--on-bordo); }
.btn { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--bordo); color: var(--on-bordo); letter-spacing: .02em; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--bordo); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 12.5px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.btn:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msg { font-size: 13px; }
.msg.ok { color: var(--good); } .msg.err { color: var(--bad); }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 16px; background: var(--soft); padding: 8px 12px; border-radius: 8px; user-select: all; display: inline-block; }

/* Diálogo */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(43, 16, 24, .45); }
.dlg { padding: 22px; display: flex; flex-direction: column; gap: 16px; }

/* Split dos sócios */
.split { display: flex; flex-direction: column; gap: 10px; }
.split-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.split-row .bar { grid-column: 1 / -1; }

/* Faixa de abertura da Visão geral */
.hero-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: 28px clamp(20px, 3vw, 36px);
  background: linear-gradient(135deg, #7A2440 0%, #671C32 45%, #3F0F1E 100%); color: #FCEBF0;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.hero-band svg.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .22; }
.hero-band svg.waves path { fill: none; stroke: #F9BBCB; stroke-width: 1.2; }
.hero-band .eyebrow { color: #F9BBCB; }
.hero-hello { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: .95; margin: 8px 0 18px; color: #FCEBF0; font-weight: 400; }
.hero-main span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #FCD9E2; }
.hero-main b { display: block; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero-main small { font-size: 13px; color: #FCD9E2; }
.hero-main .tag { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; background: rgba(252, 235, 240, .14); padding: 4px 10px; border-radius: 999px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-tile { background: rgba(252, 235, 240, .09); border: 1px solid rgba(252, 235, 240, .16); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-tile span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #FCD9E2; }
.hero-tile b { font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero-tile b em { font-style: normal; font-size: 13px; font-weight: 600; opacity: .85; }
.hero-tile small { font-size: 12px; color: #F9BBCB; }
@media (max-width: 860px) { .hero-band { grid-template-columns: 1fr; } }

/* Mini-gráfico dentro do cartão */
.spark { width: 100%; height: 38px; display: block; margin-top: auto; }
.spark path.l { fill: none; stroke: var(--rose); stroke-width: 2; }
.spark path.a { fill: color-mix(in srgb, var(--rose) 16%, transparent); stroke: none; }
.spark circle { fill: var(--bordo); }
.kpi-card { gap: 6px; }

/* Cartão de produto (estoque) */
.prod { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; }
.prod-img { width: 110px; height: 150px; object-fit: contain; border-radius: 16px; background: radial-gradient(circle at 50% 60%, var(--blush), var(--soft) 70%); padding: 6px; }
.prod-num { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--bordo); }
.prod-num small { font-size: 14px; font-weight: 600; color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini div { background: var(--soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mini span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.mini b { font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .prod { grid-template-columns: 1fr; } .prod-img { width: 100%; height: 160px; } .mini { grid-template-columns: 1fr 1fr; } }

/* Lista de contas */
.bill { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bill:last-child { border-bottom: 0; }
.bill .date { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; background: var(--soft); border-radius: 10px; padding: 6px 8px; min-width: 52px; line-height: 1.15; }
.bill .date b { display: block; font-size: 17px; color: var(--ink); }
.bill.overdue .date { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.bill .what b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.bill .what small { color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .bill { grid-template-columns: auto minmax(0, 1fr); } .bill > :nth-child(3), .bill > :nth-child(4) { grid-column: 2; } }

/* Atividade */
.feed { display: flex; flex-direction: column; }
.feed div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed div:last-child { border-bottom: 0; }
.feed time { color: var(--muted); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--wine); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.config-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .config-grid { grid-template-columns: 1fr; } }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.type-grid button { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.type-grid button small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.type-grid button[aria-pressed="true"] { border-color: var(--bordo); background: var(--soft); box-shadow: inset 0 0 0 1px var(--bordo); }
.type-grid button .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.out { background: var(--bad); } .dot.in { background: var(--good); } .dot.zero { background: var(--rose); }

/* Estoque */
.stock-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: 26px clamp(20px, 3vw, 36px);
  background: linear-gradient(135deg, #F9BBCB 0%, #E58AA8 55%, #B9506F 100%); color: #3F0F1E;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.stock-hero svg.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .35; }
.stock-hero svg.waves path { fill: none; stroke: #FCEBF0; stroke-width: 1.2; }
.stock-hero .eyebrow { color: #671C32; }
.stock-hero .hero-hello { color: #3F0F1E; }
.stock-hero-sub { margin: 0; max-width: 56ch; font-size: 14px; color: #4A1424; }
.stock-hero .hero-tile { background: rgba(255, 255, 255, .38); border-color: rgba(255, 255, 255, .55); color: #3F0F1E; }
.stock-hero .hero-tile span, .stock-hero .hero-tile small { color: #671C32; }
@media (max-width: 860px) { .stock-hero { grid-template-columns: 1fr; } }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick-btn { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.quick-btn:hover { border-color: var(--rose); background: var(--soft); }
.quick-btn .dot { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.quick-btn b { font-size: 14px; }
.quick-btn small { color: var(--muted); font-size: 12px; grid-column: 2; }

.prod-list { display: flex; flex-direction: column; gap: 16px; }
.prod-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 300px minmax(0, 1fr); min-width: 0; }
.prod-card.is-low { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.prod-stage { position: relative; background: radial-gradient(120% 90% at 50% 100%, var(--pink) 0%, var(--blush) 45%, var(--soft) 100%); display: grid; place-items: center; padding: 18px 10px 92px; min-height: 300px; }
.prod-stage img { width: 100%; max-width: 190px; height: 220px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(103, 28, 50, .25)); }
.prod-gauge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 104px; height: 104px; background: var(--surface); border-radius: 50%; box-shadow: 0 8px 24px rgba(103, 28, 50, .18); }
.ring { width: 100%; height: 100%; display: block; }
.ring-bg { fill: none; stroke: var(--soft); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--bordo); stroke-width: 9; stroke-linecap: round; }
.ring-fg.low { stroke: var(--bad); }
.prod-gauge-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.prod-gauge-num b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--bordo); }
.prod-gauge-num span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.prod-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; justify-content: center; }
.prod-name { font-family: var(--display); font-size: 26px; letter-spacing: .01em; text-transform: none; color: var(--bordo); font-weight: 400; }
.mini5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .prod-card { grid-template-columns: 1fr; } .prod-stage { min-height: 0; padding-bottom: 96px; } .mini5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yampi-row { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.yampi-row b { color: var(--ink); }

.moves { display: flex; flex-direction: column; }
.move { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 70px auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.move:last-child { border-bottom: 0; }
.move-q { font-weight: 700; font-size: 17px; text-align: center; border-radius: 10px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.move-q.in { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.move-q.out { background: var(--soft); color: var(--bordo); }
.move-what b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.move-what small { color: var(--muted); font-size: 12px; }
.move-date { font-size: 12.5px; color: var(--muted); text-align: right; }
.move-date b { color: var(--ink); }
@media (max-width: 640px) { .move { grid-template-columns: 56px minmax(0, 1fr) auto; } .move > .pill, .move > :last-child { display: none; } }

/* Entrada (login): foto do produto de um lado, marca e formulário do outro. Nada além disso. */
body.auth { background: var(--bg); }
.auth-grid { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Fundo no mesmo rosa da foto (#F0BDCB): a foto some na borda e só a Lara aparece. */
.auth-art { position: relative; overflow: hidden; background: #F0BDCB; isolation: isolate; }
/* A foto original já vem cortada na esquerda e embaixo: encosta nesses cantos para o corte coincidir com a borda. */
.auth-figure { position: absolute; left: 0; bottom: 0; height: min(96%, 1214px); aspect-ratio: 814 / 1214; z-index: 1; }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arch { position: absolute; left: 4%; bottom: -1px; width: 96%; height: 99%; border-radius: 999px 999px 0 0; pointer-events: none; z-index: 2; border: 1px solid; border-bottom: 0; }
.arch-back { border-color: rgba(255, 255, 255, .75); }
.arch-front { border-color: rgba(103, 28, 50, .38); transform: translate(18px, -18px); }
.auth-sign { position: absolute; z-index: 3; right: 30px; bottom: 30px; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: #671C32; font-weight: 500; writing-mode: vertical-rl; }
.auth-side { display: grid; place-items: center; padding: 48px max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left)); background: var(--bg); }
.auth-form { width: min(340px, 100%); display: flex; flex-direction: column; gap: 36px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.auth-logo { height: 76px; width: auto; display: block; }
.auth-dash { font-size: 11px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); padding-left: .5em; display: flex; align-items: center; gap: 14px; }
.auth-dash::before, .auth-dash::after { content: ""; width: 28px; height: 1px; background: var(--line); }
.auth-fields { display: flex; flex-direction: column; gap: 20px; }
.auth .field label { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; color: var(--muted); }
.auth .field input { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; font-size: 15px; }
.auth .field input:focus { outline: none; border-bottom-color: var(--bordo); }
.pw { position: relative; }
.pw input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 4px 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pw-toggle:hover { color: var(--bordo); }
.btn-lg { padding: 15px 22px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.auth .msg { min-height: 1.2em; margin: -20px 0 0; text-align: center; }
@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .auth-figure { height: 100%; }
  .auth-sign { right: 18px; bottom: 22px; }
  .auth-side { align-items: start; padding-top: 40px; }
  .auth-form { gap: 30px; }
  .auth-logo { height: 64px; }
}

@media (prefers-reduced-motion: no-preference) { .card, .btn { transition: background .15s, filter .15s; } }
