/* BrazaPay — painéis (cliente e admin), autenticação e checkout.
   Floresta = área do cliente. Carvão/brasa = administração. Papel = área de trabalho. */
:root {
  --paper: #f3f5f1;
  --paper-2: #e9ede6;
  --card: #ffffff;
  --ink: #142019;
  --ink-2: #44514a;
  --ink-3: #75817a;
  --line: #dde3da;
  --line-2: #cbd3c8;
  --green: #0f9a4c;
  --green-ink: #0b7139;
  --green-soft: #e1f3e7;
  --ember: #e8581c;
  --ember-ink: #b8400e;
  --ember-soft: #fdebe1;
  --gold: #b07d0b;
  --gold-soft: #fbf0d4;
  --red: #c8352b;
  --red-soft: #fbe5e2;
  --blue: #2f5fb3;
  --blue-soft: #e3ebf8;
  --forest: #0d2a1d;
  --forest-2: #143826;
  --forest-line: #23503a;
  --coal: #1e1410;
  --coal-2: #2b1d16;
  --coal-line: #47312a;
  --side-text: #c9d8cf;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(20, 32, 25, .04), 0 1px 3px rgba(20, 32, 25, .06);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--paper); font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: var(--green-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--green-ink); }
.neg { color: var(--red); }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: auto; } .kpi .value { font-size: 21px; } }

/* ---------- Shell do painel ---------- */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--forest) 244px, var(--paper) 244px); }
.area-admin .shell { background: linear-gradient(to right, var(--coal) 244px, var(--paper) 244px); }
@media (max-width: 900px) { .shell, .area-admin .shell { background: var(--paper); } }
.side {
  background: var(--forest); color: var(--side-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.area-admin .side { background: var(--coal); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #3dcc85; color: #06210f; font-weight: 800; font-size: 16px; }
.area-admin .brand-mark { background: var(--ember); color: #fff; }
.brand small { font-weight: 500; font-size: 12px; color: #f6a77f; margin-left: -4px; }
.nav-group { margin-top: 14px; padding: 0 10px 6px; font-size: 12px; color: #7f9a8b; }
.area-admin .nav-group { color: #a8887a; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: var(--forest-2); color: #fff; text-decoration: none; }
.area-admin .nav a:hover { background: var(--coal-2); }
.nav a.on { background: var(--forest-2); color: #fff; box-shadow: inset 3px 0 0 #3dcc85; }
.area-admin .nav a.on { background: var(--coal-2); box-shadow: inset 3px 0 0 var(--ember); }
.nav .count { margin-left: auto; background: var(--ember); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--forest-line); font-size: 13px; }
.area-admin .side-foot { border-color: var(--coal-line); }
.side-foot strong { display: block; color: #fff; font-weight: 600; }
.side-foot form button { background: none; border: 0; color: #9fb7aa; padding: 6px 0 0; cursor: pointer; font: inherit; }
.side-foot form button:hover { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 32px; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 20px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--ink); }
.content { padding: 28px 32px 64px; max-width: 1280px; width: 100%; }
.test-strip {
  background: repeating-linear-gradient(-45deg, var(--ember) 0 14px, #ef6a30 14px 28px); color: #fff; font-size: 13px; font-weight: 600;
  text-align: center; padding: 5px 12px;
}
.imp-strip { background: var(--gold-soft); color: #5b4004; font-size: 13.5px; padding: 8px 32px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #ecd9a3; }
.imp-strip button { margin-left: auto; }

.mode-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; background: var(--card); }
.mode-switch a { border: 0; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; color: var(--ink-2); }
.mode-switch a:hover { text-decoration: none; color: var(--ink); }
.mode-switch a.on { background: var(--ink); color: #fff; }
.mode-switch a.on.test { background: var(--ember); }
.mode-switch button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; color: var(--ink-2); cursor: pointer; }
.mode-switch button.on { background: var(--ink); color: #fff; }
.mode-switch button.on.test { background: var(--ember); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  body.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 20, 15, .45); }
  .menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 56px; }
  .imp-strip { padding: 8px 16px; flex-wrap: wrap; }
}

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head p { font-size: 13.5px; color: var(--ink-3); }
.card-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13.5px; }

.kpi { padding: 18px 20px; }
.kpi .label { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.kpi .foot { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.delta { font-weight: 650; }
.delta.up { color: var(--green-ink); }
.delta.down { color: var(--red); }

/* O cofre: saldo com barra proporcional */
.vault { background: var(--forest); color: #e7f1ea; border-radius: 14px; padding: 24px 26px; position: relative; overflow: hidden; border: 0; }
.area-admin .vault { background: var(--coal); }
.vault .label { color: #9fc3ae; font-size: 14px; }
.area-admin .vault .label { color: #d0a893; }
.vault .big { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.vault .big .cur { font-size: 20px; font-weight: 600; color: #9fc3ae; margin-right: 6px; vertical-align: 14px; }
.vault .big .dec { font-size: 24px; color: #cfe3d6; }
.vault-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); margin: 20px 0 14px; gap: 2px; }
.vault-bar span { display: block; min-width: 3px; }
.vault-bar .b-av { background: #3dcc85; }
.vault-bar .b-pe { background: #f2b33d; }
.vault-bar .b-re { background: #8aa0ff; }
.vault-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; }
.vault-legend div { display: grid; gap: 2px; }
.vault-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.vault-legend strong { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.vault-actions { position: absolute; top: 22px; right: 24px; display: flex; gap: 8px; }
@media (max-width: 640px) { .vault-actions { position: static; margin-top: 18px; } .vault .big { font-size: 36px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14.5px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: background .12s, border-color .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #26352c; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-ink); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-ink); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-danger { background: var(--card); color: var(--red); border-color: #efc2bd; }
.btn-danger:hover { background: var(--red-soft); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 6px 11px; font-size: 13.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-ink); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.inline { display: inline; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 2px 9px 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--green-soft); color: var(--green-ink); }
.pill-wait { background: var(--gold-soft); color: #87600a; }
.pill-bad { background: var(--red-soft); color: var(--red); }
.pill-warn { background: var(--ember-soft); color: var(--ember-ink); }
.pill-off { background: var(--paper-2); color: var(--ink-3); }
.pill-info { background: var(--blue-soft); color: var(--blue); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--paper-2); color: var(--ink-2); }
.tag-test { background: var(--ember-soft); color: var(--ember-ink); }

.method { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; }
.method .mi { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.method .mi .i-sm { width: 14px; height: 14px; }
.m-pix .mi { background: #dff4ee; color: #12806a; }
.m-boleto .mi { background: #ece9f8; color: #5a46b0; }
.m-card .mi { background: var(--blue-soft); color: var(--blue); }
.m-crypto .mi { background: var(--gold-soft); color: var(--gold); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbf9; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fafbf8; }
.t .right, .t th.right { text-align: right; }
.t a.rowlink { color: inherit; font-weight: 600; }
.t .sub { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.t-compact td { padding: 8px 14px; }
.empty { padding: 44px 22px; text-align: center; color: var(--ink-2); }
.empty .i-lg { margin: 0 auto 10px; color: var(--ink-3); }
.empty p + p { margin-top: 4px; }
.empty .btn { margin-top: 14px; }

.pager { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* Formulários */
.field { display: grid; gap: 6px; }
.field > span, .label-txt { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 9px 11px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 154, 76, .15); }
.area-admin .input:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232, 88, 28, .14); }
textarea.input { min-height: 90px; resize: vertical; }
.input-money { position: relative; }
.input-money::before { content: "R$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; }
.input-money .input { padding-left: 36px; font-variant-numeric: tabular-nums; }
.input-suffix { position: relative; }
.input-suffix em { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--card); }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.alert .i { margin-top: 1px; }
.alert-ok { background: var(--green-soft); border-color: #b6e2c5; color: #0b5a2e; }
.alert-err { background: var(--red-soft); border-color: #f0c1bb; color: #8f2219; }
.alert-warn { background: var(--gold-soft); border-color: #ecd9a3; color: #5b4004; }
.alert-info { background: var(--blue-soft); border-color: #c4d3ee; color: #1f427f; }
.flash { margin-bottom: 18px; }

.secret { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
.secret .btn { margin-left: auto; flex: none; }
.copy-ok { color: var(--green-ink) !important; }

.dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; font-size: 14.5px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.ok::before { background: var(--green); }
.timeline li.bad::before { background: var(--red); }
.timeline .when { color: var(--ink-3); font-size: 12.5px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.filters .field { min-width: 140px; }
.filters .input { padding: 7px 10px; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 22px; overflow-x: auto; }
.tabs a { padding: 12px 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.area-admin .tabs a.on { border-color: var(--ember); }

/* Gráfico */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2; }
.area-admin .chart .line { stroke: var(--ember); }
.chart .line2 { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); display: none; }
.chart-box { position: relative; }
.bars { display: grid; gap: 12px; }
.bars .bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.bars .track { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--green); border-radius: 99px; }
.area-admin .bars .fill { background: var(--ember); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .st { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.steps li.done .st { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.now .st { border-color: var(--ember); color: var(--ember); }

.provider { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.provider > div { padding: 22px; }
.provider > div + div { border-left: 1px solid var(--line); background: #fafbf9; border-radius: 0 var(--radius) var(--radius) 0; }
.provider ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.provider ol li { margin-bottom: 7px; }
@media (max-width: 900px) { .provider { grid-template-columns: 1fr; } .provider > div + div { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); } }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--line-2); }
.status-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot.warn { background: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }

.codeblock { background: #0f1a14; color: #d5e6db; border-radius: 10px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.65; overflow-x: auto; white-space: pre; }
.codeblock .k { color: #7fd6a4; }
.codeblock .s { color: #f2c17d; }
.codeblock .c { color: #6f8a7b; }

dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10, 20, 15, .3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(10, 20, 15, .45); }
dialog.modal .modal-body { padding: 22px; }
dialog.modal .modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fafbf9; }

/* ---------- Autenticação ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--forest); color: #dceae1; padding: 40px 48px; display: flex; flex-direction: column; }
.auth-side .brand { padding: 0; }
.auth-side .pitch { margin-top: auto; max-width: 440px; }
.auth-side .pitch h2 { font-size: 30px; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.auth-side .pitch p { margin-top: 14px; color: #a9c5b4; font-size: 15.5px; }
.auth-ledger { margin-top: 32px; display: grid; gap: 1px; background: var(--forest-line); border-radius: 12px; overflow: hidden; max-width: 440px; }
.auth-ledger div { background: var(--forest-2); padding: 12px 16px; display: flex; justify-content: space-between; font-size: 14px; }
.auth-ledger strong { color: #7fe0a8; font-variant-numeric: tabular-nums; }
.auth-side .foot { margin-top: 36px; font-size: 13px; color: #7f9a8b; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 28px; }
.auth-box .lead { color: var(--ink-2); margin-top: 6px; }
.auth-box.wide { max-width: 560px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 900px) { .auth-mobile-brand { display: flex; color: var(--ink); padding: 0; } }

/* ---------- Erro ---------- */
.errpage { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.errpage .code { font-size: 72px; font-weight: 800; letter-spacing: -0.04em; color: var(--line-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
