/* amazonas drive+ · base */
:root {
  --brand: #FF8A00;
  --brand-2: #FFB300;
  --brand-deep: #F07400;
  --brand-ink: #A24600;
  --brand-soft: #FFF1E0;
  --grad: linear-gradient(135deg, #FF6A00 0%, #FF8A00 45%, #FFB300 100%);
  --ink: #121316;
  --ink-2: #2A2F35;
  --muted: #5B6470;
  --line: #E3E5E1;
  --line-2: #C9CDC7;
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --ok: #166534; --ok-bg: #DCFCE7;
  --bad: #991B1B; --bad-bg: #FEE2E2;
  --info: #1D4E9E; --info-bg: #E3ECFA;
  --warn: #8A4B00; --warn-bg: #FFF1E0;
  --radius: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; }
img { max-width: 100%; }
a { color: var(--brand-ink); font-weight: 700; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--display); letter-spacing: -0.02em; }
p { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.mono { font-family: var(--display); letter-spacing: 0.08em; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.center { text-align: center; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; font: 800 15px var(--font); text-decoration: none; cursor: pointer; color: var(--ink); background: var(--grad); transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.05); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { background: #E1E3DF; color: #5B6470; cursor: not-allowed; filter: none; }
.btn-lg { min-height: 56px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.btn-danger { background: var(--surface); border: 1px solid #F1B4B4; color: var(--bad); }
.btn-link { background: none; border: 0; color: var(--brand-ink); font: 700 14px var(--font); cursor: pointer; padding: 8px; text-decoration: underline; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.icon-btn.light { color: #fff; }

/* Formulários */
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 15px var(--font); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); outline: 2px solid rgba(255, 138, 0, .25); }
.field .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.check-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 800; }

/* Cartões e chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.card-dark { background: var(--ink); color: #fff; border-radius: 20px; padding: 18px; }
.card-soft { background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; color: #5B3000; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-neutral { background: #ECEEF0; color: #3A424B; }
.chip-muted { background: #F1F1EF; color: #5B6470; }
.chip-brand { background: var(--brand-soft); color: var(--brand-ink); }

.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-erro { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--info-bg); color: var(--info); }

.progress { height: 8px; border-radius: 4px; background: #ECEDEA; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.dark .progress, .card-dark .progress { background: #2C2F35; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; }
.empty svg { color: var(--line-2); margin-bottom: 8px; }
