/* ===========================================================
   CADASTRO DE AGREGADOS — Design tokens
   =========================================================== */
:root {
  --navy-950: #0B1526;
  --navy-900: #0F1D33;
  --navy-800: #16283F;
  --navy-700: #1F3450;

  --cyan-600: #0891B2;
  --cyan-500: #06AED4;
  --cyan-400: #22D3EE;
  --cyan-50:  #ECFEFF;

  --bg: #F4F6F9;
  --card: #FFFFFF;
  --border: #E3E8EF;
  --border-soft: #EDF1F5;

  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-400: #98A2B3;

  --green-50: #ECFDF3;  --green-600: #16A34A; --green-700: #027A48;
  --amber-50: #FFFAEB;  --amber-600: #B54708; --amber-700: #B54708;
  --red-50:   #FEF3F2;  --red-600: #D92D20;   --red-700: #B42318;
  --gray-50:  #F2F4F7;  --gray-600: #475467;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.10);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
svg { flex-shrink: 0; }

/* ===========================================================
   SHELL / LAYOUT
   =========================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 28px 8px;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 174, 212, 0.35);
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.25; }
.brand-subtitle { font-size: 11.5px; color: #7C96B8; margin-top: 2px; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  margin-top: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #A9BCD6;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active {
  background: rgba(34, 211, 238, 0.12);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan-400);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  color: #64789A;
  margin-top: 8px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-400);
  flex-shrink: 0;
}
.status-dot.online { background: var(--green-600); box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.status-dot.offline { background: var(--red-600); box-shadow: 0 0 0 3px rgba(217,45,32,0.18); }

/* ---------- MAIN AREA ---------- */
.main-area { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-title h1 { font-size: 20px; color: var(--ink-900); }
.topbar-title p { font-size: 13px; color: var(--ink-500); margin-top: 3px; }

.content { padding: 28px 32px 60px; max-width: 1400px; width: 100%; margin: 0 auto; }

.view[hidden] { display: none; }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
  color: #fff;
  box-shadow: 0 2px 8px rgba(6,174,212,0.28);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--gray-50); }
.btn-ghost {
  background: transparent;
  color: var(--cyan-600);
}
.btn-ghost:hover { background: var(--cyan-50); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; }

/* ===========================================================
   STAT CARDS
   =========================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card .stat-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-card .stat-icon svg { width: 16px; height: 16px; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink-900); line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--ink-500); margin-top: 8px; font-weight: 500; }

.stat-card.tone-cyan .stat-icon { background: var(--cyan-50); color: var(--cyan-600); }
.stat-card.tone-gray .stat-icon { background: var(--gray-50); color: var(--gray-600); }
.stat-card.tone-amber .stat-icon { background: var(--amber-50); color: var(--amber-600); }
.stat-card.tone-green .stat-icon { background: var(--green-50); color: var(--green-600); }
.stat-card.tone-red .stat-icon { background: var(--red-50); color: var(--red-600); }

.skeleton {
  background: linear-gradient(90deg, #EDF1F5 25%, #F6F8FA 37%, #EDF1F5 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-card { height: 108px; border-radius: var(--radius-md); }
.skeleton-row { height: 44px; margin-bottom: 8px; border-radius: var(--radius-sm); }

/* ===========================================================
   PANEL / TABLE
   =========================================================== */
.panel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}
.panel-header h2 { font-size: 16px; }
.panel-desc { font-size: 13px; color: var(--ink-500); margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-400);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-700);
  vertical-align: middle;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFBFC; }
.cell-strong { color: var(--ink-900); font-weight: 600; }
.cell-muted { color: var(--ink-500); }

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-500);
}
.empty-state i { width: 30px; height: 30px; color: var(--ink-400); margin-bottom: 10px; }
.empty-state .empty-title { font-weight: 600; color: var(--ink-700); margin-bottom: 4px; }
.empty-state .empty-desc { font-size: 13px; }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-rascunho { background: var(--gray-50); color: var(--gray-600); }
.badge-rascunho::before { background: var(--gray-600); }
.badge-em_analise { background: var(--amber-50); color: var(--amber-700); }
.badge-em_analise::before { background: var(--amber-600); }
.badge-aprovado { background: var(--green-50); color: var(--green-700); }
.badge-aprovado::before { background: var(--green-600); }
.badge-reprovado { background: var(--red-50); color: var(--red-700); }
.badge-reprovado::before { background: var(--red-600); }

/* progress bar (table use) */
.progress-mini { width: 84px; height: 6px; border-radius: 999px; background: var(--border-soft); overflow: hidden; }
.progress-mini > div { height: 100%; background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400)); }
.progress-mini-label { font-size: 11px; color: var(--ink-500); margin-top: 4px; }

.row-action {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-700);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}
.row-action:hover { background: var(--gray-50); }

/* ===========================================================
   FILTERS
   =========================================================== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  flex: 1 1 260px;
}
.search-field svg { width: 15px; height: 15px; color: var(--ink-400); }
.search-field input {
  border: none; outline: none; padding: 10px 0; font-size: 13.5px; width: 100%; background: transparent;
}
.select-field {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink-700);
  min-width: 130px;
  height: 40px;
}

/* ===========================================================
   FORMS
   =========================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
.field .req { color: var(--red-600); }
.field input, .field select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink-900);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px var(--cyan-50);
}
.field input.invalid { border-color: var(--red-600); }

.confirm-banner {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-700);
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; margin-top: 16px;
}
.confirm-banner svg { width: 17px; height: 17px; }

/* ===========================================================
   WIZARD
   =========================================================== */
.wizard-shell { display: flex; flex-direction: column; gap: 20px; }
.wizard-progress {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.wizard-progress-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
#wizardStepLabel { font-size: 12px; font-weight: 700; color: var(--cyan-600); text-transform: uppercase; letter-spacing: .04em; }
#wizardStepName { font-size: 15px; font-weight: 700; color: var(--ink-900); }

.progress-track { height: 6px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400)); transition: width .3s ease; border-radius: 999px; }

.wizard-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin-top: 16px;
  gap: 6px;
}
.wizard-steps li {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink-400);
  flex: 1;
}
.step-index {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--border-soft); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; flex-shrink: 0;
}
.wizard-steps li.active { color: var(--ink-900); }
.wizard-steps li.active .step-index { background: var(--cyan-500); color: #fff; }
.wizard-steps li.done .step-index { background: var(--green-600); color: #fff; }
.wizard-steps li.done { color: var(--ink-700); }

.wizard-body .wizard-step[hidden] { display: none; }
.form-panel { margin-bottom: 0; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
}
.wizard-actions.inline { padding-top: 14px; margin-top: 14px; border-top: 1px dashed var(--border); }

/* vehicle cards */
.vehicle-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.vehicle-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #FBFCFD;
  position: relative;
}
.vehicle-card .vehicle-type {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  color: var(--cyan-600); text-transform: uppercase; margin-bottom: 6px;
}
.vehicle-card .vehicle-plate { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.vehicle-card .vehicle-model { font-size: 12.5px; color: var(--ink-600); margin-top: 2px; }
.vehicle-card .vehicle-meta { font-size: 11.5px; color: var(--ink-400); margin-top: 8px; }
.vehicle-card .vehicle-remove {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--ink-400); padding: 4px;
}
.vehicle-card .vehicle-remove:hover { color: var(--red-600); }
.vehicle-card .vehicle-remove svg { width: 15px; height: 15px; }

/* ===========================================================
   DOCUMENT VALIDATION CARDS
   =========================================================== */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.doc-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #FBFCFD;
  transition: border-color .15s ease;
}
.doc-card.status-aprovado { border-color: #B7EDD1; background: #F7FFFA; }
.doc-card.status-reprovado { border-color: #FBD1CC; background: #FFF8F7; }
.doc-card.status-analisando { border-color: #BEE7F2; }

.doc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.doc-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gray-50); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-icon svg { width: 16px; height: 16px; }
.doc-card.status-aprovado .doc-icon { background: var(--green-50); color: var(--green-600); }
.doc-card.status-reprovado .doc-icon { background: var(--red-50); color: var(--red-600); }
.doc-info { display: flex; flex-direction: column; min-width: 0; }
.doc-name { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.doc-status-label { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

.doc-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.doc-dropzone:hover { border-color: var(--cyan-500); background: var(--cyan-50); }
.doc-dropzone.dragover { border-color: var(--cyan-500); background: var(--cyan-50); }
.doc-dropzone svg { width: 20px; height: 20px; color: var(--ink-400); }
.doc-dropzone span { font-size: 12.5px; color: var(--ink-600); font-weight: 500; }
.doc-dropzone .doc-hint { font-size: 11px; color: var(--ink-400); font-weight: 400; }

.doc-result {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font-size: 12.5px;
}
.doc-result.analisando { background: var(--cyan-50); color: var(--cyan-600); display: flex; align-items: center; gap: 8px; }
.doc-result.aprovado { background: var(--green-50); color: var(--green-700); }
.doc-result.reprovado { background: var(--red-50); color: var(--red-700); }
.doc-result .doc-result-title { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.doc-result .doc-result-title svg { width: 15px; height: 15px; }
.doc-result .doc-result-confidence { font-weight: 600; margin-top: 4px; }
.doc-result .btn-retry {
  margin-top: 8px; background: #fff; border: 1px solid var(--red-600); color: var(--red-600);
  border-radius: 7px; padding: 6px 11px; font-size: 12px; font-weight: 600;
}

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(8,145,178,.25);
  border-top-color: var(--cyan-600);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================================================
   CONFERÊNCIA / REVIEW
   =========================================================== */
.review-completeness { margin-bottom: 18px; }
.completeness-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-700); }
#completenessValue { color: var(--cyan-600); }

.pendencias-box {
  background: var(--red-50);
  border: 1px solid #FBD1CC;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.pendencias-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red-700); font-size: 13.5px; margin-bottom: 8px; }
.pendencias-title svg { width: 16px; height: 16px; }
.pendencias-box ul { list-style: none; padding-left: 24px; }
.pendencias-box li { font-size: 13px; color: var(--red-700); margin-bottom: 4px; position: relative; }
.pendencias-box li::before { content: '•'; position: absolute; left: -14px; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.review-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #FBFCFD;
  margin-bottom: 16px;
}
.review-card.full { grid-column: 1 / -1; margin-bottom: 16px; }
.review-card h3 { font-size: 13px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.review-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.review-card dt { font-size: 12.5px; color: var(--ink-500); }
.review-card dd { font-size: 13px; color: var(--ink-900); font-weight: 600; margin: 0; }

.doc-review-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-review-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border-soft); }
.doc-review-list li .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-aprovado { background: var(--green-600); }
.dot-reprovado { background: var(--red-600); }
.dot-pendente { background: var(--ink-400); }
.doc-review-list .doc-review-status { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-500); }

/* ===========================================================
   SUCCESS SCREEN
   =========================================================== */
.success-screen {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 60px 30px;
  text-align: center;
  max-width: 520px;
  margin: 20px auto;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), #22C55E);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 22px rgba(22,163,74,0.3);
}
.success-icon svg { width: 30px; height: 30px; color: #fff; }
.success-screen h2 { font-size: 21px; margin-bottom: 10px; }
.success-code {
  display: inline-block;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: var(--cyan-600); background: var(--cyan-50);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 12px;
}
.success-desc { color: var(--ink-500); font-size: 13.5px; margin-bottom: 26px; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   INDICATORS
   =========================================================== */
.indicator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.indicator-card h3 { font-size: 13.5px; color: var(--ink-700); margin-bottom: 14px; }
.indicator-card.wide { grid-column: span 1; }
.indicator-grid:has(.wide:only-child) { grid-template-columns: 1fr; }
.empty-indicator {
  font-size: 13px; color: var(--ink-400);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 30px 14px;
  text-align: center;
}

/* ===========================================================
   TOASTS
   =========================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--navy-900);
  color: #fff;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 360px;
  font-size: 13px;
  animation: toast-in .25s ease;
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast.success { background: #0D3B24; }
.toast.success svg { color: #4ADE80; }
.toast.error { background: #3B0D0D; }
.toast.error svg { color: #F87171; }
.toast.warning { background: #3B2A0D; }
.toast.warning svg { color: #FBBF24; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1080px) {
  .review-grid { grid-template-columns: 1fr; }
  .indicator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px 14px;
  }
  .sidebar-brand { padding: 0 10px 0 0; }
  .brand-subtitle { display: none; }
  .sidebar-nav { flex-direction: row; margin-top: 0; }
  .nav-item span { display: none; }
  .sidebar-footer { display: none; }
  .topbar { padding: 16px 18px; flex-wrap: wrap; gap: 10px; }
  .content { padding: 18px 16px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .wizard-steps span:not(.step-index) { display: none; }
}
