/* Consolidação de Checklists SST — identidade visual dos sistemas HubSistemas (Elecnor). */

:root {
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Manrope", "Segoe UI", system-ui, sans-serif;
  --page-bg: #eef4fb;
  --page-bg-deep: #dde8f3;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-muted: #edf3f9;
  --line-soft: rgba(16, 43, 72, 0.1);
  --line-medium: rgba(16, 43, 72, 0.18);
  --text-strong: #11253b;
  --text-base: #27425d;
  --text-muted: #5f748a;
  --brand-blue: #0a4c8d;
  --brand-blue-strong: #073a6d;
  --brand-blue-soft: rgba(10, 76, 141, 0.1);
  --brand-orange: #f18716;
  --brand-orange-soft: rgba(241, 135, 22, 0.14);
  --success: #178a5c;
  --success-soft: rgba(30, 169, 113, 0.13);
  --warning: #a86608;
  --warning-soft: rgba(217, 146, 27, 0.16);
  --danger: #c23b4b;
  --danger-soft: rgba(217, 78, 93, 0.12);
  --info: #3159b3;
  --info-soft: rgba(64, 103, 198, 0.12);
  --shadow-lg: 0 20px 42px rgba(9, 27, 46, 0.1);
  --shadow-md: 0 12px 28px rgba(9, 27, 46, 0.08);
  --shadow-sm: 0 6px 16px rgba(9, 27, 46, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1440px;
  --transition: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-base);
  background:
    radial-gradient(circle at top left, rgba(241, 135, 22, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(10, 76, 141, 0.12), transparent 26%),
    linear-gradient(180deg, #f5f8fc 0%, var(--page-bg) 45%, var(--page-bg-deep) 100%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--text-strong); margin: 0; }
p { margin: 0; }
a { color: var(--brand-blue); }
a:hover { color: var(--brand-blue-strong); }
:focus-visible { outline: 3px solid rgba(241, 135, 22, 0.6); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }
.small { font-size: 0.84rem; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.person { font-weight: 600; color: var(--text-strong); }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-orange); }
.loading { padding: 64px 0; text-align: center; color: var(--text-muted); }

/* ---------- Marca e topo ---------- */

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-strong));
  color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 var(--brand-orange);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-heading); color: var(--text-strong); font-size: 1rem; }
.brand__text small { color: var(--text-muted); font-size: 0.78rem; }
.brand--large .brand__mark { width: 54px; height: 54px; font-size: 1rem; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav__link {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--text-base);
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover { background: var(--surface-muted); color: var(--text-strong); }
.nav__link.is-active { background: var(--brand-blue-soft); color: var(--brand-blue); font-weight: 600; }

.account { position: relative; }
.account__button {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text-strong);
}
.account__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-orange-soft); color: var(--brand-orange); font-weight: 700; }
.account__name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.account__meta { padding: 8px 10px; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.account__item {
  display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-sm); background: none;
  text-align: left; font: inherit; color: var(--text-base); text-decoration: none; cursor: pointer;
}
.account__item:hover { background: var(--surface-muted); }
.account__item--danger { color: var(--danger); }

/* ---------- Página ---------- */

.page { max-width: var(--max-width); margin: 0 auto; padding: 28px 20px 80px; outline: none; }
.page > * + * { margin-top: 20px; }
.stack > * + * { margin-top: 20px; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-title { font-size: clamp(1.5rem, 2.4vw, 2rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-subtitle { margin-top: 6px; color: var(--text-muted); max-width: 820px; }
.page-header__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.card__title { font-size: 1.12rem; }
.card--warning { border-color: rgba(217, 146, 27, 0.45); box-shadow: 0 0 0 4px var(--warning-soft); }
.card--danger { border-color: rgba(217, 78, 93, 0.4); }
.card--success { border-color: rgba(30, 169, 113, 0.4); box-shadow: 0 0 0 4px var(--success-soft); }
.card--primary { border-color: rgba(10, 76, 141, 0.3); box-shadow: 0 0 0 4px var(--brand-blue-soft); }

.section-head { margin-bottom: 16px; }
.section-head > * + * { margin-top: 6px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Botões, campos, avisos ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-medium);
  background: var(--surface); color: var(--text-strong); font: 600 0.92rem var(--font-body);
  text-decoration: none; cursor: pointer; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.button:hover { background: var(--surface-muted); }
.button:disabled, .button[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.button--primary { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.button--primary:hover { background: var(--brand-blue-strong); color: #fff; }
.button--success { background: var(--success); border-color: var(--success); color: #fff; }
.button--success:hover { background: #127049; }
.button--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button--danger:hover { background: #a02f3d; }
.button--ghost { background: transparent; }
.button--danger-ghost { background: transparent; color: var(--danger); border-color: rgba(194, 59, 75, 0.35); }
.button--danger-ghost:hover { background: var(--danger-soft); }
.button--small { min-height: 32px; padding: 5px 11px; font-size: 0.84rem; border-radius: 10px; }
.button--large { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.button--block { width: 100%; }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.86rem; font-weight: 600; color: var(--text-strong); }
.input, .select {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-medium); border-radius: 11px;
  background: var(--surface); font: inherit; color: var(--text-strong);
}
.input:focus, .select:focus { border-color: var(--brand-blue); outline: 3px solid var(--brand-blue-soft); }
.input--search { min-width: 220px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; }

.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice--success { background: var(--success-soft); color: #0f6443; border-color: rgba(30, 169, 113, 0.3); }
.notice--warning { background: var(--warning-soft); color: #7a4a05; border-color: rgba(217, 146, 27, 0.35); }
.notice--danger { background: var(--danger-soft); color: #8d2432; border-color: rgba(217, 78, 93, 0.3); }
.notice--info { background: var(--info-soft); color: #24438a; border-color: rgba(64, 103, 198, 0.25); }

.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; white-space: nowrap; font-family: var(--font-body); letter-spacing: 0.01em;
}
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--neutral { background: var(--surface-muted); color: var(--text-muted); }
.badge--muted { background: #eef0f3; color: #7a8796; }

/* ---------- Etapas e abas ---------- */

.stepper {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stepper__item {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.stepper__icon {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-muted); color: var(--text-muted); font-weight: 700; font-size: 0.85rem;
}
.stepper__text { display: flex; flex-direction: column; min-width: 0; }
.stepper__text strong { font-size: 0.88rem; color: var(--text-strong); }
.stepper__text small { color: var(--text-muted); font-size: 0.78rem; }
.stepper__item.is-done .stepper__icon { background: var(--success); color: #fff; }
.stepper__item.is-current { border-color: rgba(10, 76, 141, 0.35); box-shadow: 0 0 0 3px var(--brand-blue-soft); }
.stepper__item.is-current .stepper__icon { background: var(--brand-blue); color: #fff; }
.stepper__item.is-warning { border-color: rgba(217, 146, 27, 0.45); }
.stepper__item.is-warning .stepper__icon { background: var(--brand-orange); color: #fff; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-medium); flex-wrap: wrap; }
.tabs__item {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -1px;
  border: 1px solid transparent; border-radius: 12px 12px 0 0; text-decoration: none; font-weight: 600; color: var(--text-muted);
}
.tabs__item:hover { color: var(--text-strong); }
.tabs__item.is-active { background: var(--surface); border-color: var(--line-medium); border-bottom-color: var(--surface); color: var(--brand-blue); }
.tabs__item.is-disabled { opacity: 0.45; cursor: default; }
.tabs__count { background: var(--brand-orange); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 0.74rem; }

/* ---------- Envio de arquivos ---------- */

.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.upload-card { display: flex; flex-direction: column; gap: 12px; }
.upload-card.is-sent { border-color: rgba(30, 169, 113, 0.35); }
.upload-card.is-busy { opacity: 0.75; }
.upload-card__header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.upload-card__header p { margin-top: 4px; }
.dropzone {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px;
  border: 2px dashed var(--line-medium); border-radius: var(--radius-md); background: var(--surface-soft);
  color: var(--brand-blue); font-weight: 600; cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.dropzone__icon { font-size: 1.2rem; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange)); transition: width 120ms linear; }
.file-name { word-break: break-word; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 0.86rem; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; color: var(--text-strong); word-break: break-word; }
.warnings { margin: 0; padding: 10px 12px 10px 28px; background: var(--warning-soft); border-radius: 10px; color: #7a4a05; font-size: 0.84rem; }
.hash { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.76rem; color: var(--text-muted); }
.process-panel .actions { margin-top: 14px; }

/* ---------- Revisão de nomes ---------- */

.kpis .card { padding: 16px 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi__value { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 800; color: var(--text-strong); }
.kpi__label { font-size: 0.84rem; color: var(--text-muted); }
.kpi.is-warning .kpi__value { color: var(--brand-orange); }
.kpi.is-success .kpi__value { color: var(--success); }

.match-list { display: grid; gap: 14px; }
.match-card { border: 1px solid var(--line-medium); border-radius: var(--radius-md); background: var(--surface-soft); overflow: hidden; }
.match-card__header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.match-card__header h3 { font-size: 0.98rem; }
.match-card__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; }
.match-card__side { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.match-card__side + .match-card__side { border-left: 1px solid var(--line-soft); background: var(--surface); }
.match-card__footer { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line-soft); background: var(--surface); flex-wrap: wrap; }
.source-name > * + * { margin-top: 4px; }
.source-name .person { font-size: 1.02rem; }
.candidate { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; flex-wrap: wrap; }
.candidate__actions { display: flex; gap: 6px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-medium); background: var(--surface); font-size: 0.84rem; cursor: pointer;
}
.chip:has(input:checked) { background: var(--brand-blue-soft); border-color: var(--brand-blue); color: var(--brand-blue); font-weight: 600; }

.pick-list { display: grid; gap: 6px; max-height: 360px; overflow: auto; margin-top: 10px; }
.pick {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 9px 12px; text-align: left;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font: inherit; cursor: pointer;
}
.pick:hover { background: var(--surface-muted); }
.pick.is-selected { border-color: var(--brand-blue); background: var(--brand-blue-soft); }

details.disclosure > summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "▸"; color: var(--text-muted); transition: transform var(--transition); }
details.disclosure[open] > summary::before { transform: rotate(90deg); }
details.disclosure[open] > summary { margin-bottom: 14px; }

/* ---------- Tabelas e conferência ---------- */

.table-wrap { overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.table-wrap--tall { max-height: 68vh; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th {
  position: sticky; top: 0; z-index: 1; background: var(--surface-soft); color: var(--text-muted);
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line-medium); white-space: nowrap;
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table--hover tbody tr.is-clickable { cursor: pointer; }
.table--hover tbody tr.is-clickable:hover, .table--hover tbody tr.is-clickable:focus { background: var(--brand-blue-soft); outline: none; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.segmented { display: inline-flex; background: var(--surface-muted); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.segmented__item { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: 600 0.84rem var(--font-body); color: var(--text-muted); cursor: pointer; }
.segmented__item.is-active { background: var(--surface); color: var(--brand-blue); box-shadow: var(--shadow-sm); }

.transition { display: inline-flex; gap: 4px; align-items: baseline; }
.transition__old { color: var(--text-muted); }
.transition.is-up strong { color: var(--success); }
.transition.is-down strong { color: var(--danger); }
.transition.is-blocked { color: var(--danger); font-size: 0.84rem; }

.kpi-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi-group { padding: 14px 16px; background: var(--surface-soft); border-radius: var(--radius-md); }
.kpi-group__title { font-size: 0.9rem; margin-bottom: 8px; }
.kpi-list { margin: 0; display: grid; gap: 6px; }
.kpi-list__item { display: flex; justify-content: space-between; gap: 12px; }
.kpi-list__item dt { color: var(--text-muted); font-size: 0.88rem; }
.kpi-list__item dd { margin: 0; font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.kpi-list__item.is-warning dd { color: var(--brand-orange); }

.checks, .issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks__item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); }
.checks__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 0.8rem; }
.checks__item.is-ok .checks__icon { background: var(--success); }
.checks__item.is-fail { background: var(--danger-soft); }
.checks__item.is-fail .checks__icon { background: var(--danger); }
.issues__item { padding: 10px 12px; border-radius: 12px; border-left: 4px solid var(--line-medium); background: var(--surface-soft); }
.issues__item--erro { border-left-color: var(--danger); }
.issues__item--aviso { border-left-color: var(--brand-orange); }
.issues__item--info { border-left-color: var(--info); }
.issues__where { display: block; margin-bottom: 2px; }

.generate { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.generate ul { margin: 6px 0 0; padding-left: 18px; }
.generate .actions { margin-top: 0; }

.result__numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.result__number { padding: 14px; border-radius: var(--radius-md); background: var(--surface-soft); }
.result__number strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--text-strong); }
.result__number span { color: var(--text-muted); font-size: 0.86rem; }

.explain section + section { margin-top: 20px; }
.explain h3 { font-size: 1rem; margin-bottom: 8px; }

.steps-list, .rules-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps-list li, .rules-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }

/* ---------- Diálogo e toasts ---------- */

.dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--text-base);
}
.dialog--wide { width: min(1100px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(9, 27, 46, 0.45); }
.dialog__header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.dialog__title { font-size: 1.08rem; }
.dialog__close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.dialog__body { padding: 18px 20px; display: grid; gap: 12px; }
.dialog__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line-soft); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-lg); border-left: 5px solid var(--info); animation: toast-in 180ms ease-out;
}
.toast--success { border-left-color: var(--success); }
.toast--warning { border-left-color: var(--brand-orange); }
.toast--danger { border-left-color: var(--danger); }
.toast__text { flex: 1; }
.toast__close { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Login e instalação ---------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth__card { width: min(440px, 100%); padding: 32px; background: var(--surface); border-radius: 24px; border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.auth__title { font-size: 1.4rem; }
.auth__foot { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Responsivo ---------- */

@media (max-width: 1200px) {
  .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-groups { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .grid--2, .grid--4, .upload-grid, .result__numbers { grid-template-columns: 1fr; }
  .match-card__body { grid-template-columns: 1fr; }
  .match-card__side + .match-card__side { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
