/* DS AZUL. Palette and motion come from tokens.css; web typography follows
   design-systems.md (Inter replaces the historical display font). */
.brandbook-root[data-bb-theme="main"] {
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-bb-sans: var(--font-sans);
  --font-bb-display: var(--font-sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bb-canvas); color: var(--bb-cream); font: 400 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button, summary { cursor: pointer; }
button { color: inherit; }
::selection { background: var(--bb-flare); color: var(--bb-cream); }
:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; }
h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.07; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
p { margin-bottom: 16px; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--bb-muted); }
.accent { color: var(--bb-accent); }
.mono, .mono-label, .section-label { font-family: var(--font-mono); }
.mono-label { font-size: 10px; line-height: 1.6; letter-spacing: .1em; color: var(--bb-meta); }
.mono-label b { font-weight: 500; color: var(--bb-accent); margin-right: 8px; }
.section-label { color: var(--bb-accent); font-size: 10px; letter-spacing: .18em; }
.fine-print { font-size: 12px; color: var(--bb-meta); line-height: 1.7; margin: 16px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 16px; padding: 12px; background: var(--bb-surface-alt); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-footer { width: min(1240px, calc(100% - 80px)); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: grid; grid-template-columns: 28px auto; align-items: center; column-gap: 12px; text-decoration: none; font-size: 18px; letter-spacing: .15em; font-weight: 700; line-height: 1.4; }
.brand-symbol { grid-row: 1 / 3; display: flex; gap: 3px; align-items: flex-start; height: 27px; }
.brand-symbol i { display: block; width: 6px; height: 27px; background: var(--bb-accent); }
.brand-symbol i:nth-child(2) { height: 19px; }
.brand-symbol i:nth-child(3) { height: 11px; }
main { width: min(1120px, calc(100% - 80px)); margin: 42px auto 88px; min-height: 64vh; }
.page-index { display: flex; justify-content: space-between; padding-bottom: 34px; }
.site-footer { border-top: 1px solid var(--bb-border); min-height: 96px; padding: 24px 0; color: var(--bb-meta); font-size: 11px; }
.footer-divider { margin: 0 14px; color: var(--bb-border-hover); }
.payment-signature { display: flex; align-items: center; gap: 12px; }
.payment-signature strong { color: var(--bb-muted); font-size: 14px; font-weight: 600; letter-spacing: -.03em; }
/* Offer and enrollment share a structural grid, not a set of cards. */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 88px; align-items: start; }
.offer-column { min-width: 0; height: 100%; }
.offer-sticky { position: sticky; top: 32px; padding-top: 16px; }
.offer-title { font-size: clamp(48px, 5.4vw, 78px); line-height: .99; letter-spacing: -.065em; margin: 22px 0 24px; font-weight: 500; }
.offer-title > span { font-weight: 600; }
.offer-intro { color: var(--bb-meta); font-size: 16px; line-height: 1.7; }
.offer-rule { display: flex; width: 100%; gap: 4px; margin: 34px 0; border-bottom: 1px solid var(--bb-border-strong); align-items: end; height: 14px; }
.offer-rule span { background: var(--bb-accent); width: 6px; height: 6px; }
.offer-rule span:nth-child(2) { height: 10px; }
.offer-rule span:nth-child(3) { height: 14px; margin-right: auto; }
.offer-price strong { display: block; font: 400 clamp(29px, 2.6vw, 38px)/1.25 var(--font-mono); letter-spacing: -.06em; margin: 10px 0 16px; }
.offer-price p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; color: var(--bb-muted); }
.offer-price small { color: var(--bb-meta); font-size: 12px; }
.installment-details { border-top: 1px solid var(--bb-border); border-bottom: 1px solid var(--bb-border); }
.installment-details summary { display: flex; list-style: none; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-size: 13px; }
.installment-details summary::-webkit-details-marker { display: none; }
.disclosure-plus { position: relative; width: 20px; height: 20px; border: 1px solid var(--bb-border-strong); }
.disclosure-plus::before, .disclosure-plus::after { content: ""; background: var(--bb-meta); position: absolute; left: 5px; top: 9px; width: 8px; height: 1px; transition: transform var(--bb-dur-fast); }
.disclosure-plus::after { transform: rotate(90deg); }
details[open] .disclosure-plus::after { transform: rotate(0); }
details[open] summary { color: var(--bb-accent); }
.installment-table { width: 100%; border-collapse: collapse; font: 11px/1.5 var(--font-mono); font-variant-numeric: tabular-nums; }
.installment-table td, .installment-table th { padding: 9px 2px; text-align: right; border-top: 1px solid var(--bb-border); }
.installment-table th { font-weight: 400; color: var(--bb-meta); }
.installment-table td:first-child, .installment-table th:first-child { text-align: left; }
.installment-details .fine-print { margin: 12px 0 20px; }
.payment-facts { margin: 24px 0; }
.payment-facts p { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--bb-muted); margin-bottom: 13px; }
.payment-facts .icon { color: var(--bb-accent); width: 17px; height: 17px; }
.security-note { padding-top: 18px; border-top: 1px solid var(--bb-border); }
.security-note summary { display: flex; align-items: center; gap: 10px; list-style: none; font-size: 11px; color: var(--bb-meta); min-height: 32px; }
.security-note summary::-webkit-details-marker { display: none; }
.security-note summary > span:first-of-type { flex: 1; }
.security-note .icon { width: 16px; height: 16px; }
.security-note p { margin: 14px 0 0; font-size: 12px; color: var(--bb-meta); line-height: 1.7; }
.offer-signature { display: flex; align-items: center; justify-content: space-between; margin-top: 38px; }
.signature-bars { display: flex; gap: 3px; height: 22px; }
.signature-bars i { display: block; height: 100%; width: 2px; background: var(--bb-border-strong); }
.signature-bars i:nth-child(3n) { width: 5px; }
.signature-bars i:nth-child(4n) { background: var(--bb-accent); }
.form-panel { border: 1px solid var(--bb-border-strong); background: var(--bb-surface); position: relative; min-width: 0; }
.form-panel::before, .form-panel::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--bb-meta); pointer-events: none; }
.form-panel::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.form-panel::after { bottom: -4px; right: -4px; border-top: 0; border-left: 0; }
.steps { display: flex; align-items: center; gap: 20px; padding: 24px 36px; border-bottom: 1px solid var(--bb-border); color: var(--bb-meta); font-size: 12px; }
.steps > span:not(.step-connector) { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.steps b { font: 10px var(--font-mono); width: 25px; height: 25px; border: 1px solid var(--bb-border-strong); display: grid; place-items: center; }
.steps [aria-current] { color: var(--bb-cream); }
.steps [aria-current] b { color: var(--bb-accent); border-color: var(--bb-accent-40); background: var(--bb-accent-08); }
.step-connector { height: 1px; flex: 1; background: var(--bb-border-strong); }
.form-content { padding: 32px 36px; }
.form-heading { margin-bottom: 28px; }
.form-heading h2 { margin: 0 0 10px; }
.form-heading .section-label { display: block; margin-bottom: 12px; }
.form-heading p { font-size: 13px; color: var(--bb-meta); margin: 0; }
label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 20px; color: var(--bb-muted); }
input, select { display: block; width: 100%; min-width: 0; border: 1px solid var(--bb-border-input); border-radius: 2px; padding: 12px 13px; min-height: 48px; font-size: 14px; line-height: 1.5; margin-top: 7px; transition: border-color var(--bb-dur-fast), background var(--bb-dur-fast); }
input:hover, select:hover { border-color: var(--bb-border-hover); }
input::placeholder { font-weight: 400; font-size: 12px; }
.brandbook-root[data-bb-theme="main"] :is(input, select, textarea, option) {
  color-scheme: dark;
  background-color: var(--bb-surface-alt);
  color: var(--bb-cream);
}
.brandbook-root[data-bb-theme="main"] :is(input, textarea)::placeholder {
  color: var(--bb-meta);
  opacity: 1;
}
.brandbook-root[data-bb-theme="main"] :is(input, select, textarea):focus {
  border-color: var(--bb-accent);
  background-color: var(--bb-surface-console);
}
input:user-invalid { border-color: var(--bb-error); }
label small { font-size: 10px; font-weight: 400; color: var(--bb-meta); float: right; }
.grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.address-fields { padding: 26px 0 0; margin: 12px 0 8px; border: 0; border-top: 1px solid var(--bb-border); min-width: 0; }
.address-fields legend { font-size: 13px; color: var(--bb-muted); padding: 0 12px 0 0; }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 11px; font-weight: 400; line-height: 1.7; margin: 8px 0 24px; }
.check input { flex: 0 0 auto; width: 16px; min-height: 16px; height: 16px; padding: 0; margin: 2px 0; accent-color: var(--bb-accent); }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 22px; position: relative; overflow: hidden; width: 100%; min-height: 56px; padding: 17px 22px; border: 1px solid var(--bb-border-strong); border-radius: 3px; background: var(--bb-surface-alt); color: var(--bb-cream); text-decoration: none; font-size: 13px; line-height: 1.5; font-weight: 500; text-align: left; transition: border-color var(--bb-dur-fast), color var(--bb-dur-fast); }
.primary::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--bb-accent); transform: translateY(100%); transition: transform var(--bb-dur-fast) var(--bb-ease-decel); }
.primary:hover:not(:disabled) { color: var(--bb-accent); border-color: var(--bb-accent-50); }
.primary:hover:not(:disabled)::after { transform: translateY(0); }
.cta-squares { display: flex; flex: 0 0 auto; gap: 4px; transition: transform var(--bb-dur-medium) var(--bb-ease-decel); }
.cta-squares i { width: 6px; height: 6px; background: var(--bb-accent); }
.cta-squares i:last-child { margin-left: 4px; }
.primary:hover:not(:disabled) .cta-squares { transform: translateX(4px); }
button:disabled { opacity: .55; cursor: not-allowed; }
button[aria-busy="true"] { cursor: wait; }
button[aria-busy="true"] .cta-squares i { animation: processing 1.2s ease-in-out infinite; }
button[aria-busy="true"] .cta-squares i:nth-child(2) { animation-delay: .16s; }
button[aria-busy="true"] .cta-squares i:nth-child(3) { animation-delay: .32s; }
@keyframes processing { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; min-height: 43px; background: var(--bb-surface-alt); color: var(--bb-muted); border: 1px solid var(--bb-border-strong); border-radius: 2px; font: 500 12px/1.5 var(--font-sans); text-decoration: none; white-space: nowrap; transition: border-color var(--bb-dur-fast); }
.secondary:hover { border-color: var(--bb-meta); color: var(--bb-cream); }
.secondary .icon { width: 15px; height: 15px; }
.text-button { background: transparent; border: 0; padding: 12px 0; color: var(--bb-meta); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
#back { display: block; margin: 8px auto 0; }
.form-footnote { border-top: 1px solid var(--bb-border); padding: 14px 36px; display: flex; justify-content: center; align-items: center; gap: 8px; font: 9px var(--font-mono); color: var(--bb-meta); }
.status-dot { width: 4px; height: 4px; background: var(--bb-accent); }
.card-channel { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bb-accent-04); border: 1px solid var(--bb-accent-20); margin-bottom: 26px; font-size: 12px; }
.card-channel .icon { color: var(--bb-accent); }
.card-channel .mono-label { margin-left: auto; font-size: 9px; }
.payment-total { border-top: 1px solid var(--bb-border-strong); margin: 28px 0 22px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.payment-total div > span { display: block; }
#chosen-installments { color: var(--bb-meta); font-size: 11px; margin-top: 5px; }
.payment-total strong { font: 400 24px var(--font-mono); letter-spacing: -.06em; white-space: nowrap; }
.secure-caption { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--bb-meta); font-size: 10px; line-height: 1.6; margin: 16px 0 0; }
.secure-caption .icon { width: 13px; height: 13px; }
#message:empty { display: none; }
#message:not(:empty), .notice { padding: 16px; border: 1px solid var(--bb-accent-25); background: var(--bb-accent-05); color: var(--bb-muted); font-size: 13px; margin: 0 0 24px; }
#message[data-tone="error"] { border-color: var(--bb-error-20); background: var(--bb-error-10); }
#message[data-tone="loading"]::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--bb-accent); margin-right: 10px; animation: processing 1.2s ease-in-out infinite; }
/* Confirmation: editorial message paired with a printable receipt. */
.confirmation-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 92px; padding: 34px 0; align-items: start; }
.confirmation-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.confirmation-mark > .icon { color: var(--bb-accent); width: 42px; height: 42px; border: 1px solid var(--bb-accent-40); padding: 10px; background: var(--bb-accent-05); }
.confirmation-copy h1 { font-size: clamp(40px, 4.7vw, 66px); margin-bottom: 28px; }
.confirmation-lead { font-size: 26px; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 18px; }
.confirmation-copy > .muted { font-size: 14px; line-height: 1.8; max-width: 390px; }
.next-step { margin-top: 42px; border-top: 1px solid var(--bb-border-strong); padding-top: 26px; }
.next-step h2 { font-size: 22px; margin: 16px 0 12px; }
.next-step p { font-size: 13px; color: var(--bb-meta); max-width: 390px; }
.receipt { border: 1px solid var(--bb-border-strong); background: var(--bb-surface); min-width: 0; }
.receipt-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; border-bottom: 1px solid var(--bb-border); }
.receipt-top .icon { color: var(--bb-meta); }
.receipt-body { padding: 30px; }
.receipt-body h2 { margin: 8px 0; }
.receipt-owner { font-size: 13px; color: var(--bb-meta); }
.receipt-value { padding: 30px 0; border-top: 1px solid var(--bb-border); border-bottom: 1px solid var(--bb-border); margin: 28px 0; }
.receipt-value > span { display: block; }
.receipt-value strong { display: block; font: 400 clamp(28px, 2.8vw, 38px)/1.4 var(--font-mono); letter-spacing: -.06em; margin: 8px 0; }
.receipt-value .mono { font-size: 12px; color: var(--bb-meta); }
.receipt-details { margin: 0 0 30px; }
.receipt-details > div { display: flex; justify-content: space-between; gap: 24px; margin: 18px 0; font-size: 11px; align-items: baseline; }
.receipt-details dt { color: var(--bb-meta); }
.receipt-details dd { font-family: var(--font-mono); margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.status-tag { color: var(--bb-muted); background: var(--bb-accent-08); border: 1px solid var(--bb-accent-25); padding: 4px 8px; }
.print-help { text-align: center; font-size: 10px; }
.receipt-seal { padding: 22px 30px; border-top: 1px dashed var(--bb-border-strong); display: flex; justify-content: space-between; align-items: center; }
.receipt-seal .mono-label { font-size: 9px; }
/* Founder workspace. Counts and monetary data use the official mono family. */
.stat-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--bb-border-strong); border-bottom: 1px solid var(--bb-border-strong); }
.stat-link { text-decoration: none; padding: 24px; position: relative; min-width: 0; border-right: 1px solid var(--bb-border); transition: background var(--bb-dur-fast); }
.stat-link:last-child { border-right: 0; }
.stat-link[aria-current] { background: var(--bb-accent-05); }
.stat-link[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--bb-accent); }
.stat-link:hover { background: var(--bb-surface); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bb-muted); }
.status-square { width: 5px; height: 5px; border: 1px solid var(--bb-meta); }
.stat-link[aria-current] .status-square { border-color: var(--bb-accent); background: var(--bb-accent); }
.stat-count { display: block; font: 400 44px/1.2 var(--font-mono); letter-spacing: -.07em; margin: 18px 0 12px; }
.stat-caption { display: block; font-size: 10px; color: var(--bb-meta); }
.stat-action { position: absolute; right: 24px; top: 58px; color: var(--bb-meta); }
.stat-link[aria-current] .stat-action { color: var(--bb-accent); }
.filter-section { display: flex; gap: 26px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--bb-border); padding: 28px 0; margin-bottom: 36px; }
.filter-label small { display: block; font-size: 11px; color: var(--bb-meta); margin-top: 6px; }
.filters { display: flex; align-items: flex-end; gap: 12px; }
.filters label { margin: 0; font-size: 10px; }
.filters input { font-family: var(--font-mono); font-size: 11px; min-height: 43px; width: 156px; }
.records-panel { border: 1px solid var(--bb-border-strong); background: var(--bb-surface); }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-bottom: 1px solid var(--bb-border); }
.list-heading h2 { font-size: 22px; margin: 10px 0 0; }
.list-gross { text-align: right; }
.list-gross strong { display: block; font: 400 20px var(--font-mono); margin-top: 10px; letter-spacing: -.04em; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.records-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.records-table th { font: 400 9px var(--font-mono); color: var(--bb-meta); letter-spacing: .03em; text-transform: uppercase; background: var(--bb-surface-alt); padding: 14px 24px; white-space: nowrap; }
.records-table td { border-top: 1px solid var(--bb-border); padding: 17px 24px; vertical-align: middle; }
.records-table tbody tr:hover { background: var(--bb-accent-02); }
.person-name { font-weight: 500; min-width: 170px; }
.number-cell, .date-cell { font-family: var(--font-mono); white-space: nowrap; font-size: 11px; }
.installment-badge { border: 1px solid var(--bb-border-strong); padding: 4px 7px; color: var(--bb-muted); }
.contact-cell { color: var(--bb-muted); min-width: 180px; }
.contact-cell span { overflow-wrap: anywhere; }
.contact-cell small, .date-cell small { display: block; color: var(--bb-meta); font: 10px/1.7 var(--font-mono); margin-top: 3px; }
.offer-cell { min-width: 140px; color: var(--bb-muted); }
.reason-text { color: var(--bb-meta); font-size: 11px; display: block; min-width: 140px; max-width: 240px; }
.records-table .empty { padding: 56px 24px; text-align: center; }
.empty > span, .empty > strong { display: block; }
.empty > strong { font-weight: 500; font-size: 14px; margin: 14px 0 8px; }
.empty > span:last-child { color: var(--bb-meta); font-size: 12px; }
.empty-marker { color: var(--bb-accent); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--bb-border); color: var(--bb-meta); font: 10px var(--font-mono); }
.pagination > div { display: flex; align-items: center; gap: 20px; }
.pagination a { color: var(--bb-muted); padding: 6px 0; }
.admin-bottom-note { display: flex; align-items: flex-start; gap: 8px; color: var(--bb-meta); font-size: 10px; margin-top: 18px; }
.admin-bottom-note .icon { width: 13px; height: 13px; margin-top: 1px; }
.login { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; min-height: 65vh; }
.login-intro h1 { font-size: 48px; margin: 24px 0; }
.login-intro .offer-rule { width: 130px; }
.login-form { background: var(--bb-surface); padding: 40px; border: 1px solid var(--bb-border-strong); }
.login-icon { display: block; margin-bottom: 24px; color: var(--bb-accent); }
.login-form h2 { margin: 0 0 12px; }
.login-form > .muted { color: var(--bb-meta); font-size: 13px; margin-bottom: 30px; }
@media (min-width: 1440px) {
}
@media (max-width: 1050px) {
  .checkout-layout { gap: 40px; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  .form-content { padding: 28px; }
  .steps { padding: 22px 28px; gap: 12px; }
  .confirmation-layout { gap: 50px; }
  .filter-section { flex-wrap: wrap; }
  .login { gap: 48px; }
}
@media (max-width: 760px) {
  .site-footer { width: calc(100% - 40px); }
  .wordmark { font-size: 15px; column-gap: 8px; grid-template-columns: 23px auto; }
  .brand-symbol { gap: 2px; height: 24px; }
  .brand-symbol i { width: 5px; height: 24px; }
  .brand-symbol i:nth-child(2) { height: 17px; }
  .brand-symbol i:nth-child(3) { height: 10px; }
  main { width: calc(100% - 40px); margin: 24px auto 48px; }
  .page-index { padding-bottom: 20px; }
  .index-end { display: none; }
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .offer-sticky { position: static; padding: 0; }
  .offer-column .section-label { font-size: 9px; margin-bottom: 12px; }
  .offer-title { font-size: 52px; margin: 0 0 18px; }
  .offer-title br { display: none; }
  .offer-title > span::before { content: " "; }
  .offer-title > span { display: block; }
  .offer-intro { font-size: 13px; margin-bottom: 0; }
  .offer-intro br { display: none; }
  .offer-intro br::after { content: " "; }
  .offer-rule { margin: 22px 0; }
  .offer-price strong { font-size: 32px; margin: 8px 0 10px; }
  .offer-price p { font-size: 13px; margin-bottom: 18px; }
  .offer-price p br { display: none; }
  .offer-price small { display: block; }
  .installment-details summary { min-height: 48px; }
  .payment-facts { margin: 18px 0 0; }
  .payment-facts p { font-size: 11px; margin-bottom: 8px; }
  .security-note { margin-top: 18px; padding-top: 18px; }
  .security-note p { font-size: 11px; }
  .offer-signature { display: none; }
  .form-content { padding: 24px 20px; }
  .steps { padding: 20px; gap: 12px; font-size: 11px; }
  .steps b { width: 22px; height: 22px; font-size: 9px; }
  .form-heading h2 { font-size: 26px; }
  .form-heading p { font-size: 12px; }
  label { font-size: 12px; margin-bottom: 18px; }
  input, select { font-size: 16px; min-height: 48px; padding: 11px; }
  input::placeholder { font-size: 11px; }
  .grid { gap: 12px; }
  .grid label { font-size: 11px; }
  .address-fields { margin-top: 8px; padding-top: 20px; }
  .primary { padding: 16px; gap: 10px; font-size: 12px; min-height: 56px; }
  .fine-print { font-size: 11px; }
  .form-footnote { padding: 14px 16px; }
  .payment-total { gap: 12px; align-items: flex-start; flex-direction: column; }
  .payment-total strong { font-size: 27px; }
  .secure-caption { font-size: 9px; align-items: flex-start; }
  .card-channel { padding: 12px; gap: 8px; }
  .card-channel .mono-label { font-size: 8px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; min-height: auto; font-size: 10px; }
  .payment-signature strong { font-size: 12px; }
  .confirmation-layout { grid-template-columns: 1fr; gap: 32px; padding: 12px 0 0; }
  .confirmation-mark { margin-bottom: 26px; }
  .confirmation-copy h1 { font-size: 44px; }
  .confirmation-lead { font-size: 25px; }
  .confirmation-copy > .muted { font-size: 13px; }
  .next-step { margin-top: 28px; padding-top: 22px; }
  .receipt-body { padding: 24px; }
  .receipt-top, .receipt-seal { padding: 20px 24px; }
  .receipt-value strong { font-size: 31px; }
  .receipt-details > div { gap: 14px; font-size: 10px; }
  .stat-link { padding: 16px 10px; }
  .stat-label { font-size: 10px; gap: 5px; white-space: nowrap; }
  .stat-count { font-size: 32px; margin: 16px 0 4px; }
  .stat-caption, .stat-action { display: none; }
  .filter-section { padding: 24px 0; gap: 18px; margin-bottom: 24px; }
  .filter-label { display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .filter-label small { margin: 0; font-size: 10px; }
  .filters { display: grid; width: 100%; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .filters input { width: 100%; font-size: 12px; min-width: 0; }
  .filters .secondary { width: 100%; }
  .list-heading { padding: 20px 16px; gap: 12px; }
  .list-heading h2 { font-size: 19px; }
  .list-heading .mono-label { font-size: 8px; }
  .list-heading .secondary { font-size: 10px; padding: 10px; }
  .list-gross strong { font-size: 15px; }
  .records-table { min-width: 600px; }
  .records-table td, .records-table th { padding-left: 18px; padding-right: 18px; }
  .pagination { padding: 16px; font-size: 9px; flex-wrap: wrap; gap: 12px; }
  .pagination > div { gap: 14px; }
  .admin-bottom-note { font-size: 10px; }
  .login { grid-template-columns: 1fr; gap: 24px; }
  .login-intro h1 { font-size: 35px; margin: 18px 0; }
  .login-intro .muted { font-size: 13px; }
  .login-intro .offer-rule { display: none; }
  .login-form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .site-footer, .page-index, .confirmation-copy, #save-receipt, .print-help, .skip-link { display: none !important; }
  .thanks-page main { margin: 0; width: 100%; }
  .confirmation-layout { display: block; padding: 0; }
  .receipt { max-width: 520px; margin: auto; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.count-unavailable { font-size: 14px; letter-spacing: 0; }

.table-scroll-hint { display: none; }
.contact-cell { min-width: 230px; }
@media (max-width: 760px) {
  .table-scroll-hint { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin: 0; color: var(--bb-meta); font-size: 10px; border-bottom: 1px solid var(--bb-border); }
  .table-scroll-hint .icon { width: 12px; height: 12px; }
}

/* Progressive billing fields keep the DS AZUL disclosure language. */
.optional-address { margin: 12px 0 0; }
.optional-address summary { color: var(--bb-meta); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.optional-address[open] summary { margin-bottom: 16px; }
#address-status { margin: 0 0 16px; }
#manual-address { margin-top: 16px; }

/* Protótipo v2 aprovado: box branco, escopo isolado do painel. */
.checkout-v2{
    --page-bg: #000000;
    --box-bg: #FFFFFF;
    --ink: #0A0A0A;
    --ink-2: #52525B;
    --ink-3: #71717A;
    --line: #E4E4E7;
    --line-strong: #D4D4D8;
    --soft: #F4F4F5;
    --accent: #2B7DE1;
    --accent-text: #003A70; /* DS AZUL: azul profundo para texto sobre branco. */
    --accent-soft: rgba(43, 125, 225, 0.08);
    --accent-ring: rgba(43, 125, 225, 0.22);
    --error: #C93A3A;
    --error-ring: rgba(201, 58, 58, 0.14);
    --demo-ink: #8A8A93;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --radius: 10px;
    --radius-box: 12px;
  }.checkout-v2 *,.checkout-v2 *::before,.checkout-v2 *::after{ box-sizing: border-box; }.checkout-v2 html{ -webkit-text-size-adjust: 100%; }.checkout-v2{
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }.checkout-v2 .page{
    padding: 8px 8px 24px;
  }.checkout-v2 .box{
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: var(--box-bg);
    border-radius: var(--radius-box);
    padding: 16px 20px 24px;
  }@media (min-width: 520px){.checkout-v2 .page{ padding: 16px 16px 32px; }.checkout-v2 .box{ padding: 20px 28px 28px; }}.checkout-v2 .seal{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }.checkout-v2 .seal svg{ width: 16px; height: 16px; flex: none; }.checkout-v2 .product{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }.checkout-v2 .logo{ width: 36px; height: 36px; flex: none; border-radius: 8px; display: block; }.checkout-v2 .product-name{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
  }.checkout-v2 .product-desc{
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.4;
  }.checkout-v2 .cover{
    position: relative;
    margin-top: 16px;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius);
    background-color: #0A0A0A;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 12px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
  }.checkout-v2 .cover-label{
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
  }.checkout-v2 .cover-dot{ width: 6px; height: 6px; background: var(--accent); display: inline-block; margin-right: 8px; vertical-align: 1px; }.checkout-v2 .price{ margin-top: 16px; }.checkout-v2 .price-main{
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }.checkout-v2 .price-main small{ font-size: 18px; font-weight: 500; color: var(--ink-2); margin-right: 2px; letter-spacing: 0; }.checkout-v2 .price-cash{ margin-top: 4px; font-size: 14px; color: var(--ink-2); }.checkout-v2 .price-cash strong{ font-family: var(--font-mono); font-weight: 500; color: var(--ink); }.checkout-v2 .section{
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }.checkout-v2 .section-title{
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
  }.checkout-v2 .section-title span{
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-3);
  }.checkout-v2 .field + .field,.checkout-v2 .field + .row,.checkout-v2 .row + .field{ margin-top: 14px; }.checkout-v2 .row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.checkout-v2 .row > .field{ margin-top: 0; }.checkout-v2 label{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
  }.checkout-v2 .brand{
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }.checkout-v2 input,.checkout-v2 select{
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    -webkit-appearance: none;
    appearance: none;
  }.checkout-v2 input::placeholder{ color: var(--ink-2); opacity: 1; }.checkout-v2 .num{ font-family: var(--font-mono); letter-spacing: 0.02em; }.checkout-v2 select{
    padding-right: 40px;
    font-family: var(--font-mono);
    font-size: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
  }.checkout-v2 input:focus,.checkout-v2 select:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }.checkout-v2 .field.is-error input{ border-color: var(--error); }.checkout-v2 .field.is-error input:focus{ box-shadow: 0 0 0 3px var(--error-ring); }.checkout-v2 .error{
    min-height: 0;
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--error);
  }.checkout-v2 .error:empty{ display: none; }.checkout-v2 .summary{
    margin: 24px 0 0;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--soft);
  }.checkout-v2 .summary-row{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-2);
  }.checkout-v2 .summary-row + .summary-row{ margin-top: 8px; }.checkout-v2 .summary-row dd{ margin: 0; font-family: var(--font-mono); font-weight: 500; color: var(--ink); text-align: right; }.checkout-v2 .summary-row dt{ margin: 0; }.checkout-v2 .summary-row.final{
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-strong);
    color: var(--ink);
    font-weight: 600;
  }.checkout-v2 .summary-row.final dd{ font-size: 18px; font-weight: 600; }.checkout-v2 .pay{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 54px;
    margin-top: 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease;
  }.checkout-v2 .pay:hover{ background: #1F1F22; }.checkout-v2 .pay:focus-visible{ outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }.checkout-v2 .pay-label-num{ font-family: var(--font-mono); font-weight: 600; }.checkout-v2 .squares{ display: inline-flex; gap: 3px; }.checkout-v2 .squares i{
    width: 5px; height: 5px; background: var(--accent); display: block;
    transition: transform 220ms ease;
  }.checkout-v2 .pay:hover .squares i{ transform: translateX(4px); }.checkout-v2 .pay:hover .squares i:nth-child(2){ transition-delay: 40ms; }.checkout-v2 .pay:hover .squares i:nth-child(3){ transition-delay: 80ms; }.checkout-v2 .pay[aria-busy="true"]{ cursor: progress; background: #27272A; }.checkout-v2 .pay[aria-busy="true"] .squares{ display: none; }.checkout-v2 .spinner{
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
  }.checkout-v2 .pay[aria-busy="true"] .spinner{ display: block; }@keyframes spin{ to { transform: rotate(360deg); } }.checkout-v2 .fine{
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--ink-3);
    text-align: center;
  }.checkout-v2 .approved{ text-align: center; padding: 24px 4px 8px; }.checkout-v2 .approved-icon{
    width: 56px; height: 56px; margin: 0 auto;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
  }.checkout-v2 .approved-icon svg{ width: 28px; height: 28px; }.checkout-v2 .approved h1{ margin: 16px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }.checkout-v2 .approved p{ margin: 8px 0 0; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }.checkout-v2 .approved p strong{ color: var(--ink); font-weight: 600; }.checkout-v2 .approved .mono{ font-family: var(--font-mono); font-weight: 500; color: var(--ink); }.checkout-v2 [hidden]{ display: none !important; }@media (prefers-reduced-motion: reduce){.checkout-v2 *,.checkout-v2 *::before,.checkout-v2 *::after{ transition:none !important; animation-duration:1ms !important; }}
.checkout-v2 { color-scheme:light; }
.checkout-v2 main.page {max-width:none;margin:0;width:100%;}
.checkout-v2 .logo {width:72px;height:72px;object-fit:contain;}
.checkout-v2 .cover {padding:0;background:none;display:block;}
.checkout-v2 .cover img {width:100%;height:100%;object-fit:cover;display:block;}
.checkout-v2 fieldset {border:0;padding:0;margin:0;min-width:0;}
.checkout-v2 .section-title {letter-spacing:normal;}
.checkout-v2 .pay:disabled {opacity:.65;cursor:not-allowed;}
.checkout-v2 .summary-row dd {white-space:nowrap;font-size:13px;}
.checkout-v2 #message:empty {display:none;}
.checkout-v2 #message {color:var(--error);font-size:13px;margin-top:12px;}
.checkout-v2 #message[data-tone=loading] {color:var(--ink-2);}
.checkout-v2 .preview-notice {padding:12px;color:var(--ink);background:var(--soft);font-size:13px;}
/* Criador de checkouts, DS AZUL do painel. */
.creator-head{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:16px}.creator-head h1{font-size:28px;line-height:1.1;margin:6px 0}.creator-section{border-top:1px solid var(--bb-border-strong);padding:28px 0}.creator-section h2{font-size:22px;margin-bottom:20px}.creator-connect{max-width:640px;margin:20px 0}.creator-section form .secondary{margin-top:12px}.creator-id{display:block;color:var(--bb-meta);font-size:11px;overflow-wrap:anywhere}.creator-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.creator-item{border:1px solid var(--bb-border-strong);padding:20px;display:grid;gap:12px}.creator-item small,.creator-url{overflow-wrap:anywhere}.creator-editor{display:grid;grid-template-columns:1fr 1fr;gap:40px}.creator-editor textarea{width:100%;font:inherit;padding:12px;background:var(--bb-surface);color:var(--bb-cream);border:1px solid var(--bb-border-strong)}.asset-preview{max-width:160px;max-height:120px;object-fit:contain;margin-bottom:12px}.creator-editor input[type=file]{padding:12px;height:auto}.creator-section details{margin:20px 0}@media(max-width:700px){.creator-head{align-items:flex-start;flex-direction:column}.creator-editor{grid-template-columns:1fr;gap:0}}

.checkout-v2 .product > div{min-width:0;overflow-wrap:anywhere}.creator-head h1{overflow-wrap:anywhere}
.creator-section{min-width:0}.creator-editor .records-table{min-width:0;width:100%}.creator-editor .records-table td,.creator-editor .records-table th{padding:12px 8px}.creator-editor input,.creator-editor textarea{min-width:0;max-width:100%}
.checkout-v2 input::placeholder{font-size:16px}.checkout-v2 #chosen-installments{font-size:14px;color:var(--ink);margin:0}.checkout-v2 .product-name{letter-spacing:normal}.upload-picker{display:block;border:1px solid var(--bb-border-strong);background:var(--bb-surface-alt);padding:14px;cursor:pointer;margin-top:8px}.upload-picker:focus-within{outline:2px solid var(--bb-accent)}.upload-name{display:block;margin-top:8px;color:var(--bb-meta);font-size:12px;overflow-wrap:anywhere}

/* Cores nativas explícitas: campos e opções nunca herdam o tema oposto. */
.checkout-v2 :is(input, select, textarea, option) {
  color-scheme: light;
  color: var(--ink);
  background-color: var(--box-bg);
}
.checkout-v2 :is(input, select, textarea):focus {
  color: var(--ink);
  background-color: var(--box-bg);
}
.checkout-v2 textarea::placeholder { color: var(--ink-2); opacity: 1; }

/* Story 14.8/14.9: editor de parcelas e painel financeiro, mesmo DS AZUL do admin. */
.creator-links, .admin-links { display: flex; gap: 12px; flex-wrap: wrap; }
.parcel-editor { display: grid; gap: 0; max-width: 760px; }
.parcel-head, .parcel-row { display: grid; grid-template-columns: 120px minmax(150px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr); gap: 16px; align-items: center; }
.parcel-head { padding: 0 0 10px; border-bottom: 1px solid var(--bb-border-strong); }
.parcel-row { padding: 6px 0; border-bottom: 1px solid var(--bb-border); }
.parcel-toggle { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--bb-cream); cursor: pointer; }
.parcel-toggle input { width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--bb-accent); }
.parcel-value { display: flex; align-items: center; gap: 8px; margin: 0; }
.parcel-value input { margin: 0; min-height: 44px; }
.parcel-value input[readonly] { color: var(--bb-muted); background: var(--bb-surface-alt); }
.parcel-currency { color: var(--bb-muted); font-size: 13px; }
.parcel-total { font-family: var(--font-mono); font-size: 13px; color: var(--bb-cream); }
.parcel-link { font-size: 12px; }
.parcel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.parcel-actions .primary { width: auto; min-width: 220px; }
.parcel-actions .secondary { margin-top: 0; }
.form-error { border-color: var(--bb-error); color: var(--bb-cream); }
@media (max-width: 700px) {
  .parcel-head { display: none; }
  .parcel-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 0; }
  .parcel-toggle { grid-column: 1 / -1; }
  .parcel-value { grid-column: 1 / -1; }
  .parcel-total, .parcel-link { font-size: 12px; }
}
.fin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; }
.fin-grid .stat-label { align-items: flex-start; min-height: 32px; }
.fin-grid .stat-count { font-size: 30px; letter-spacing: -.05em; overflow-wrap: anywhere; }
.fin-grid .stat-caption { font-size: 12px; }
.fin-status { margin: 0 0 16px; }
@media (max-width: 700px) {
  .fin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-grid .stat-link { padding: 16px 12px; border-bottom: 1px solid var(--bb-border); }
  .fin-grid .stat-link:nth-child(2n) { border-right: 0; }
  .fin-grid .stat-label { font-size: 11px; white-space: normal; }
  .fin-grid .stat-count { font-size: 21px; margin: 12px 0 6px; }
  .fin-grid .stat-caption { display: block; font-size: 11px; }
  .fin-grid + .creator-section .records-table { min-width: 0; }
}

/* Admin compacto: barra fina, abas curtas, engrenagem e Sair. */
.topbar { position: sticky; top: 0; z-index: 5; width: 100%; min-height: 52px; padding: 0 max(20px, calc((100% - 1120px) / 2)); display: flex; align-items: center; gap: 28px; background: var(--bb-canvas); border-bottom: 1px solid var(--bb-border-strong); }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.topbar-brand .brand-symbol { height: 18px; gap: 2px; }
.topbar-brand .brand-symbol i { width: 4px; height: 18px; }
.topbar-brand .brand-symbol i:nth-child(2) { height: 13px; }
.topbar-brand .brand-symbol i:nth-child(3) { height: 8px; }
.topnav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; flex: 1; overflow-x: auto; }
.topnav a { display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--bb-muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--bb-cream); }
.topnav a[aria-current] { color: var(--bb-cream); border-bottom-color: var(--bb-accent); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-actions form { margin: 0; }
.topbar .secondary { min-height: 34px; padding: 6px 14px; font-size: 12px; margin: 0; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--bb-muted); border: 1px solid transparent; border-radius: 2px; }
.icon-link:hover, .icon-link[aria-current] { color: var(--bb-cream); border-color: var(--bb-border-strong); }
.icon-link:focus-visible, .topnav a:focus-visible, .topbar-brand:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 2px; }
.icon-link .icon { width: 18px; height: 18px; }
.admin-heading { margin: 0 0 4px; }
.admin-heading h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.admin-page main, main { margin-top: 20px; }
.filter-section { padding: 12px 0; margin-bottom: 16px; }
.fin-summary .list-heading { margin-bottom: 8px; }
.fin-grid .stat-link { padding: 16px 20px; }
.fin-grid .stat-count { font-size: 36px; margin: 10px 0 6px; }
.stat-link { padding-top: 16px; padding-bottom: 16px; }
.list-summary { margin-top: 20px; }
.list-summary .stat-count { font-size: 30px; margin: 10px 0 6px; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 0 12px; padding: 0 20px; }
  .topbar-brand { min-height: 46px; }
  .topbar-actions { min-height: 46px; }
  .topnav { order: 3; flex: 0 0 100%; min-height: 40px; gap: 0; border-top: 1px solid var(--bb-border); }
  .topnav a { padding: 0 12px; }
  .fin-grid .stat-count { font-size: 21px; }
  .list-summary .stat-count { font-size: 24px; }
}

/* Botão principal do admin: o CTA oficial do DS AZUL (fundo elevado, borda fina, três quadrados). */
.filters .primary, .parcel-actions .primary, .records-table .primary, .creator-section form .primary { width: auto; min-width: 0; }
.filters .primary { min-height: 43px; padding: 10px 16px; gap: 16px; }
.records-table .primary { min-height: 38px; padding: 8px 14px; gap: 16px; font-size: 12px; }
.creator-section form .primary { margin-top: 12px; }
.creator-editor form > .primary { width: 100%; margin-top: 8px; }
@media (max-width: 700px) { .filters .primary { width: 100%; } }
.fin-summary .list-heading { padding: 4px 0 10px; border: 0; }
@media (max-width: 700px) { .filters #refresh, .filters #fin-refresh { grid-column: 1 / -1; } }

/* Story 14.10: busca, novo link e confirmação. */
.search-form { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 16px; max-width: 640px; }
.search-form label { flex: 1; margin: 0; }
.search-form input { margin-top: 6px; }
.search-form .primary, .creator-head .primary { width: auto; min-width: 0; margin: 0; }
.creator-head > .primary { min-height: 43px; padding: 10px 16px; gap: 16px; }
.status-banner .primary { margin-top: 12px; }
.link-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; max-width: 760px; }
.link-form .parcel-editor { max-width: 640px; }
.link-form .parcel-head, .link-form .parcel-row { grid-template-columns: 120px minmax(150px, 1fr) minmax(150px, 1fr); }
.summary-list { display: grid; gap: 8px; margin: 0 0 20px; }
.summary-list div { display: flex; gap: 16px; }
.summary-list dt { min-width: 200px; color: var(--bb-muted); font-size: 13px; }
.summary-list dd { margin: 0; font-size: 14px; }
@media (max-width: 700px) {
  .search-form { flex-direction: column; align-items: stretch; }
  .link-fields { grid-template-columns: 1fr; }
  .link-form .parcel-row { grid-template-columns: 1fr 1fr; }
  .summary-list div { flex-direction: column; gap: 2px; }
}
.compact-table { min-width: 0 !important; }
@media (max-width: 700px) { .compact-table th, .compact-table td { padding: 12px 8px; font-size: 11px; } }
