/* BlueVecHub · Passaporte Digital — design system */

:root {
  --navy-900: #071322;
  --navy-800: #0B1C30;
  --navy-700: #0F2B4A;
  --navy-600: #12324F;
  --navy-500: #163E68;

  --ink: #0D2135;
  --ink-2: #3E5670;
  --muted: #64798F;
  --muted-2: #8FA3B8;

  --page: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #F6F9FC;
  --line: #E3E9F0;
  --line-2: #E7EDF4;
  --line-3: #EEF2F7;

  --blue: #1F6FEB;
  --blue-bright: #2E7DFF;
  --blue-light: #5FA8FF;
  --blue-wash: #EAF1FE;
  --blue-deep: #1553C0;

  --teal: #12A594;
  --teal-light: #5FD3C4;
  --teal-deep: #0E8779;
  --teal-wash: #E6F5F3;

  --amber: #D9822B;
  --amber-text: #A9691A;
  --amber-wash: #FDF3E6;

  --green: #2E9E63;
  --green-text: #1E7A4C;
  --green-wash: #E8F6EF;

  --red: #D5493C;
  --red-text: #A5453A;
  --red-wash: #F7E1DE;

  --on-dark: #E4EDF6;
  --on-dark-2: #8FB6DE;
  --on-dark-3: #9FBEDB;
  --on-dark-dim: #5A7894;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────── */

.layout { display: flex; min-height: 100vh; }
.layout__main { flex: 1; min-width: 0; }

.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { display: flex; align-items: center; justify-content: center; flex: none; }
.brand__mark .mark { display: block; }
/* Sobre fundo escuro a marca ganha um cartão branco: o círculo azul-marinho
   dela não tem contraste contra a sidebar. */
.brand__mark--chip {
  width: 34px; height: 34px; border-radius: 8px; background: #fff;
}
.brand__name { color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.2px; }
.brand__name em { font-style: normal; color: var(--blue-light); }
.brand--ink .brand__name { color: #222657; }
.brand--ink .brand__name em { color: #3C4B9E; }

.sidebar__label {
  margin-top: 14px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim);
}
.sidebar__product { margin-top: 4px; color: #DCE7F3; font-size: 13px; font-weight: 500; }

.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: #A8BCD1; cursor: pointer;
  background: none; border: 0; width: 100%; text-align: left;
}
.nav__item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav__item .dot { width: 6px; height: 6px; border-radius: 2px; background: #3A5570; flex: 0 0 6px; }
.nav__item.is-active { color: #fff; background: rgba(46,125,255,.16); box-shadow: inset 0 0 0 1px rgba(95,168,255,.25); }
.nav__item.is-active .dot { background: var(--blue-light); }
.nav__badge {
  margin-left: auto; font-family: var(--mono); font-size: 9px;
  color: var(--teal); border: 1px solid rgba(18,165,148,.4);
  padding: 1px 5px; border-radius: 4px;
}

.rov-card {
  margin: 12px; padding: 14px; border-radius: var(--r-md);
  background: rgba(18,165,148,.08); border: 1px solid rgba(18,165,148,.22);
}
.rov-card__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: #57C7B8; }
.rov-card__body { margin-top: 6px; color: #D8E6F2; font-size: 12px; line-height: 1.45; }
.rov-card__track { margin-top: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); }
.rov-card__fill { height: 3px; border-radius: 2px; background: var(--teal); }

.sidebar__user {
  padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: #1B3450; color: #9EC3E8;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600;
}
.sidebar__user-name { color: var(--on-dark); font-size: 12.5px; font-weight: 500; }
.sidebar__user-role { color: var(--on-dark-dim); font-size: 11px; }
.sidebar__signout {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--on-dark-dim); font-size: 11.5px; padding: 4px 6px; border-radius: 6px;
}
.sidebar__signout:hover { color: #fff; background: rgba(255,255,255,.07); }

/* ── Topbar ─────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0 28px; height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.vessel-picker {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px 7px 10px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; cursor: pointer;
}
.vessel-picker:hover { border-color: #B9CCE0; }
.vessel-picker__mark {
  width: 32px; height: 32px; border-radius: 6px; background: var(--blue-wash);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--blue);
}
.vessel-picker__name { font-size: 13.5px; font-weight: 600; }
.vessel-picker__meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.status-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--green-wash); color: var(--green-text);
  font-size: 12.5px; font-weight: 500;
}
.status-pill .beacon {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: beacon 2.4s ease-in-out infinite;
}
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,158,99,.5); }
  50% { box-shadow: 0 0 0 5px rgba(46,158,99,0); }
}

.id-pill {
  display: flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--page); color: #4A6076; font-family: var(--mono); font-size: 11px;
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500; padding: 9px 14px;
  border-radius: var(--r-sm); cursor: pointer;
}
.btn:hover { border-color: #B9CCE0; }
.btn--primary { border: 0; background: var(--navy-700); color: #fff; padding: 9px 15px; }
.btn--primary:hover { background: var(--navy-500); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ── Page furniture ─────────────────────────────────── */

.page { padding: 26px 28px 60px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.page-head p { margin-top: 5px; font-size: 13.5px; color: var(--muted); }

.segmented { display: flex; gap: 6px; padding: 3px; background: #EBEFF5; border-radius: 9px; }
.segmented button {
  padding: 6px 13px; border-radius: 7px; border: 0; background: none;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.segmented button.is-active { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(13,33,53,.08); }

.grid { display: grid; gap: 18px; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--evidence { grid-template-columns: 250px 1fr 300px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.card--dark { background: var(--navy-800); border: 0; color: #fff; }
.card--flush { padding: 24px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card h2 { font-size: 15.5px; font-weight: 600; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.card__sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.card--dark .card__sub { color: var(--on-dark-2); }
.card__note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.card--dark .card__note { color: var(--on-dark-3); }

.tile { border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 11px; }
.tile__value { font-size: 17px; font-weight: 600; }
.tile__label { font-size: 11.5px; color: var(--muted); }

.mono-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted-2); }
.card--dark .mono-label { color: var(--on-dark-2); }

.callout {
  padding: 13px 15px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 12.8px; line-height: 1.5;
}
.callout .bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 6px; flex: 0 0 6px; }

.pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.pill--lg { font-size: 11.5px; padding: 4px 10px; }
.pill--green { background: var(--green-wash); color: var(--green-text); }
.pill--amber { background: var(--amber-wash); color: var(--amber-text); }
.pill--red { background: var(--red-wash); color: var(--red-text); }
.pill--grey { background: var(--line-3); color: #4A6076; }
.pill--blue { background: var(--blue-wash); color: var(--blue-deep); }
.pill--teal-ghost { background: rgba(18,165,148,.18); color: var(--teal-light); }

.chip { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: #4A6076; cursor: pointer; background: none; }
.chip.is-active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.filter { font-size: 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); color: #4A6076; cursor: pointer; background: none; }
.filter:hover { border-color: #B9CCE0; }

.link { color: var(--blue); font-weight: 500; font-size: 12.5px; cursor: pointer; background: none; border: 0; }
.link:hover { text-decoration: underline; }

.track { height: 5px; border-radius: 3px; background: var(--line-3); overflow: hidden; }
.track__fill { height: 100%; border-radius: 3px; background: var(--blue); }

.row-card {
  display: grid; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.row-card:hover { border-color: #B9CCE0; }
.row-card--alert { border-color: #F2DFDC; background: #FDF6F5; }
.row-card--alert:hover { border-color: #E6C4BF; }
.row-date { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.dot-mark { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 400;
  padding: 0 12px 10px; border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-3); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-family: var(--mono); font-size: 12.5px; }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 34px; text-align: center; color: var(--muted); font-size: 13px;
}

/* ── Incrustação: antes → depois ─────────────────────── */

.ba { display: flex; align-items: center; gap: 16px; }
.ba__side { flex: 1; min-width: 0; }
.ba__cap { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted-2); }
.ba__val { margin-top: 5px; font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.ba__val small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.ba__bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--line-3); overflow: hidden; }
.ba__fill { height: 100%; border-radius: 3px; }
.ba__arrow { color: var(--muted-2); font-size: 16px; flex: none; padding-top: 16px; }
.ba__foot { margin-top: 7px; font-size: 11.5px; color: var(--muted); }

/* Barra compacta para dentro de célula de tabela. */
.minibar {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  width: 54px; height: 4px; border-radius: 2px; background: var(--line-3); overflow: hidden;
}
.minibar i { display: block; height: 100%; border-radius: 2px; }

/* ── Espécies invasoras ──────────────────────────────── */

.species { display: flex; flex-direction: column; gap: 8px; }
.species__row {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.species__row--alert { border-color: #F2DFDC; background: #FDF6F5; }
.species__name { font-size: 13px; font-weight: 500; }
.species__sci { font-style: italic; color: var(--muted); font-weight: 400; }
.species__meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.species__none {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px; border-radius: var(--r-md);
  background: var(--green-wash); color: var(--green-text); font-size: 12.8px; line-height: 1.5;
}

/* ── Seletor de operação (mestre-detalhe) ────────────── */

.op-list { display: flex; flex-direction: column; gap: 6px; }
.op-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  width: 100%; text-align: left; padding: 11px 13px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: none;
}
.op-item:hover { border-color: #B9CCE0; }
.op-item.is-active { border-color: var(--blue); background: var(--blue-wash); }
.op-item__id { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.op-item__name { font-size: 13px; font-weight: 500; }
.op-item__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ── Evidência: linha e painel de detalhe ────────────── */

.ev-row { cursor: pointer; }
.ev-row.is-active > td { background: var(--blue-wash); }

.thumb {
  aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--on-dark-2);
}
.thumb__icon { font-size: 22px; opacity: .75; }
.thumb__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; }

.kv { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.kv__row { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; }
.kv__k { color: var(--muted); flex: none; }
.kv__v { text-align: right; word-break: break-all; }
.kv__v.num { font-family: var(--mono); font-size: 11.5px; }

.chain { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
/* ── Toast ──────────────────────────────────────────── */

.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 8px; align-items: flex-end;
}
.toast {
  max-width: 360px; padding: 12px 15px; border-radius: var(--r-md);
  background: var(--navy-800); color: #fff; font-size: 13px; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(7,19,34,.28);
  opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--error { background: #4A2420; }
.toast--info { background: var(--navy-700); }

/* ── Modal ──────────────────────────────────────────── */

.modal-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(7,19,34,.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(7,19,34,.35);
  transform: translateY(6px); transition: transform .16s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 16.5px; font-weight: 600; }
.modal__close {
  border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted);
  width: 28px; height: 28px; border-radius: 7px; flex: none;
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__body { padding: 20px; }
.modal__body .field:first-child { margin-top: 0; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ── Dropdown de filtro ────────────────────────────────
   Abertura/fechamento é delegado por shell.js (data-dropdown-toggle);
   a seleção em si é sempre um data-route-link, como o resto do app. */

.dropdown { position: relative; display: inline-flex; }
.dropdown__menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 180px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 28px rgba(7,19,34,.16);
}
.dropdown__menu.is-open { display: flex; flex-direction: column; gap: 1px; }
.dropdown__menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px;
  border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink);
}
.dropdown__menu button:hover { background: var(--surface-2); }
.dropdown__menu button.is-active { color: var(--blue); font-weight: 500; }
.dropdown__menu hr { border: 0; border-top: 1px solid var(--line-3); margin: 4px 2px; }

.chain__step { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; }
.chain__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  flex: none; margin-top: 4px; box-shadow: 0 0 0 3px var(--teal-wash);
}
.chain__body { font-size: 12.3px; line-height: 1.5; }
.chain__when { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }

/* ── Login ──────────────────────────────────────────── */

.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--navy-900);
}
.auth__aside {
  position: relative; overflow: hidden; color: #fff;
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(165deg, #0B1C30 0%, #12324F 100%);
}
.auth__glow {
  position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 90% 0%, rgba(46,125,255,.30), transparent 70%),
              radial-gradient(600px 300px at 0% 100%, rgba(18,165,148,.20), transparent 70%);
}
.auth__aside > * { position: relative; }
.auth__headline { font-size: 32px; font-weight: 600; letter-spacing: -.8px; line-height: 1.2; max-width: 15ch; }
.auth__lede { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--on-dark-3); max-width: 46ch; }
.auth__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; max-width: 460px; }
.auth__stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-md); padding: 14px 15px; }
.auth__stat b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.5px; }
.auth__stat span { font-size: 11.5px; color: var(--on-dark-2); line-height: 1.4; display: block; margin-top: 3px; }
.auth__foot { font-size: 11.5px; color: var(--on-dark-dim); font-family: var(--mono); }

.auth__panel {
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; overflow: auto;
}
.auth__form { width: 100%; max-width: 372px; }
.auth__title { font-size: 21px; font-weight: 600; letter-spacing: -.3px; margin-top: 26px; }
.auth__subtitle { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.field { margin-top: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.14); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.field__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.auth__submit {
  width: 100%; margin-top: 22px; padding: 12px; border: 0; border-radius: var(--r-sm);
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
}
.auth__submit:hover { background: var(--blue-deep); }
.auth__submit[disabled] { opacity: .65; cursor: default; }

.auth__switch { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth__switch button { background: none; border: 0; color: var(--blue); font-weight: 500; font-size: 13px; cursor: pointer; }
.auth__switch button:hover { text-decoration: underline; }

.notice { margin-top: 18px; padding: 11px 13px; border-radius: var(--r-sm); font-size: 12.8px; line-height: 1.5; }
.notice--error { background: var(--red-wash); color: var(--red-text); }
.notice--ok { background: var(--green-wash); color: var(--green-text); }
.notice--info { background: var(--blue-wash); color: var(--blue-deep); }

.mode-banner {
  border: 1px solid var(--amber-wash); background: #FEFAF4; color: var(--amber-text);
  border-radius: var(--r-sm); padding: 11px 13px; font-size: 12.3px; line-height: 1.5;
}
.mode-banner b { font-weight: 600; }
.mode-banner code { font-family: var(--mono); font-size: 11.5px; background: rgba(217,130,43,.12); padding: 1px 4px; border-radius: 3px; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .grid--5-7, .grid--7-5, .grid--3, .grid--4, .grid--evidence { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; }
  .nav { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .nav__item { width: auto; }
  .rov-card { display: none; }

  .topbar { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .page { padding: 18px 16px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; }

  /* Tabelas e grades largas rolam dentro do próprio cartão. */
  .card { padding: 18px 16px; overflow-x: auto; }
  .grid--2 { grid-template-columns: 1fr; }
}
