/* FlowPDV Master — folha única (14/10/2026).
   Substitui style.css, reconstruction.css, master-polish.css, master-vps.css,
   login-access.css e master-cadastro-responsive.css. Mesma linguagem do PDV:
   azul-marinho, superfícies brancas, cabeçalho de diálogo marinho, foco azul. */

:root {
  --navy: #192a40;
  --navy-2: #24395a;
  --navy-3: #30475e;
  --navy-deep: #13223a;
  --ink: #192a40;
  --ink-2: #3a4b61;
  --muted: #5a6b80;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f6;
  --line: #d8dfe7;
  --line-strong: #c3ceda;
  --brand: #f37021;
  --brand-soft: #ffb57f;
  --focus: #2466bd;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --ok-line: #abefc6;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --warn-line: #fedf89;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --info: #1f5aa6;
  --info-bg: #eef4fb;
  --info-line: #c7d9f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-pop: 0 18px 48px rgba(25, 42, 64, 0.22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 500 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
body.modal-open { overflow: hidden; }
::selection { background: #d8e3ef; color: var(--navy); }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
code { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
* { scrollbar-color: #9aa8b8 transparent; scrollbar-width: thin; }
.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;
}
.flow-glyph { width: 1.15em; height: 1.15em; flex-shrink: 0; pointer-events: none; }

/* ---------- Botões ---------- */
.btn-pri, .btn-sec, .btn-ghost, .btn-danger-ghost, .btn-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid transparent; font-size: 14px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-pri:hover:not(:disabled) { background: var(--navy-2); border-color: var(--navy-2); }
.btn-pri:active:not(:disabled) { background: var(--navy-deep); }
.btn-sec { background: var(--surface); border-color: var(--line-strong); color: var(--navy); }
.btn-sec:hover:not(:disabled) { background: var(--surface-3); border-color: #9aa8b8; }
.btn-ghost { background: transparent; color: var(--navy-3); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--navy); }
.btn-danger-ghost { background: var(--surface); border-color: var(--danger-line); color: var(--danger); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-bg); border-color: #f5a39b; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
:is(.btn-pri, .btn-sec, .btn-ghost, .btn-danger-ghost):disabled { opacity: .55; cursor: not-allowed; }
.btn-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-icon:hover { background: var(--surface-3); border-color: var(--line-strong); color: var(--navy); }
.btn-icon--danger { color: var(--danger); }
.btn-icon--danger:hover { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.btn-icon .flow-glyph { width: 17px; height: 17px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Campos ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group > label, .flow-access-field > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-group small, .form-hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); font-weight: 500; }
:is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea) {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; caret-color: var(--navy);
  transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { min-height: 88px; resize: vertical; }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' 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 12px center; background-size: 16px;
}
::placeholder { color: #627388; opacity: 1; font-weight: 500; }
:is(input, select, textarea):hover:not(:disabled):not([readonly]) { border-color: #9aa8b8; }
:is(input, select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 102, 189, .22); }
:is(input, select, textarea)[readonly] { background: var(--surface-2); color: var(--ink-2); }
:is(input:not([type=file]), select, textarea):disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
input:user-invalid, select:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .14); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
fieldset { min-width: 0; }

/* ---------- Login ---------- */
.flow-access {
  display: grid; grid-template-columns: minmax(320px, 40%) minmax(0, 1fr);
  min-height: 100dvh; background: var(--surface);
}
.flow-access-brand {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 48px 44px; color: #dce5ef; overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, #22395a 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, #0f2b45 0%, transparent 65%),
    var(--navy-deep);
}
.flow-access-logo { display: block; width: 150px; height: auto; }
.flow-access-lead { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.flow-access-points { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 360px; }
.flow-access-points li { display: grid; gap: 2px; padding-left: 18px; position: relative; font-size: 13.5px; line-height: 1.45; color: #b9c7d6; }
.flow-access-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.flow-access-points strong { color: #fff; font-size: 14px; font-weight: 700; }
.flow-access-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--surface); }
.flow-access-card { width: 100%; max-width: 420px; }
.flow-access-title { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.flow-access-help { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }
.flow-access-form { display: grid; gap: 16px; }
.flow-access-field { display: grid; gap: 6px; }
.flow-access-password { position: relative; }
.flow-access-password .flow-access-input { padding-right: 52px; }
.flow-access-eye {
  position: absolute; top: 4px; right: 4px; width: 40px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted);
}
.flow-access-eye:hover { background: var(--surface-3); color: var(--navy); }
.flow-access-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-access-eye .eye-slash { display: none; }
.flow-access-eye[aria-pressed="true"] .eye-slash { display: inline; }
.flow-access-submit {
  min-height: 50px; margin-top: 4px; border: 1px solid var(--navy); border-radius: 9px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
  transition: background-color .15s ease;
}
.flow-access-submit:hover:not(:disabled) { background: var(--navy-2); }
.flow-access-submit:disabled { opacity: .65; cursor: progress; }
.flow-access-message {
  padding: 10px 12px; border: 1px solid var(--danger-line); border-radius: var(--radius);
  background: var(--danger-bg); color: var(--danger); font-size: 13.5px; font-weight: 600;
}

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(19, 34, 58, .18); }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 28px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-logo { display: block; height: 26px; width: auto; }
.badge-master {
  padding: 3px 8px; border: 1px solid rgba(255, 181, 127, .45); border-radius: 999px;
  color: var(--brand-soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}
.topbar-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.side-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 100%;
  padding: 0 14px; border: 0; background: transparent; color: #c3cfdc; font-size: 14px; font-weight: 600;
  transition: color .15s ease, background-color .15s ease;
}
.side-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side-link.is-active { color: #fff; }
.side-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.side-link:focus-visible, .btn-logout:focus-visible, .btn-close:focus-visible { outline-color: var(--brand-soft); outline-offset: -3px; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-email { color: #b9c7d6; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.btn-logout { min-height: 36px; padding: 0 14px; background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; font-size: 13px; }
.btn-logout:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* ---------- Área de trabalho ---------- */
.stage { max-width: 1440px; margin: 0 auto; padding: 28px 32px 48px; }
.stage-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stage-title { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stage-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.stage-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.stage-mrr { font-size: 12.5px; color: var(--muted); }
.stage-mrr strong { color: var(--ink-2); font-weight: 700; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 14px; flex-wrap: wrap; }
.filter-group {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 7px; background: transparent; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.filter-btn:hover { background: var(--surface-3); color: var(--navy); }
.filter-count {
  min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 18px;
}
.filter-btn[data-tom="alerta"] .filter-count { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.filter-btn[data-tom="perigo"] .filter-count { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.filter-btn.active { background: var(--navy); color: #fff; }
.filter-btn.active .filter-count { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.search-box { position: relative; flex: 0 1 380px; min-width: 240px; }
.search-box .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search-box #master-search-input { min-height: 44px; padding-left: 40px; }

/* ---------- Registro de lojas (tabela no desktop, cartões abaixo de 1200px) ---------- */
.license-head, .license-card {
  --cols: minmax(216px, 2fr) 112px 128px 92px 64px minmax(140px, 1.35fr) 100px 214px;
  display: grid; grid-template-columns: var(--cols); column-gap: 12px; align-items: center;
}
.license-head {
  padding: 11px 18px; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.license-head-acoes { text-align: right; }
.license-board {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.license-card { padding: 14px 18px; border-top: 1px solid var(--line); transition: background-color .12s ease; }
.license-card:first-child { border-top-color: var(--line); }
.license-card:hover { background: #fafbfd; }
.license-card-top, .license-card-grid { display: contents; }
.license-card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.license-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.license-subtitle { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.license-key { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; overflow-wrap: anywhere; }
.license-tag {
  align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--info-bg); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-line);
  font-size: 11.5px; font-weight: 700;
}
.license-status {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.license-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.license-status[data-status="ativo"] { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.license-status[data-status="bloqueado"] { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.lic-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.license-card-grid > .lic-cell .lic-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lic-v { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lic-cell--venc .lic-v { font-weight: 600; }
.license-venc { font-size: 12px; font-weight: 600; color: var(--muted); }
.license-venc:empty { display: none; }
.license-card[data-vencimento="alerta"] .license-venc { color: var(--warn); }
.license-card[data-vencimento="vencida"] .license-venc { color: var(--danger); }
.license-card[data-vencimento="sem-data"] .lic-cell--venc .lic-v { color: var(--muted); font-weight: 500; }
.license-card-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.license-card-foot .btn-ghost { color: var(--navy-3); }

.license-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 24px; text-align: center; }
.license-empty-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.license-empty-text { max-width: 46ch; color: var(--muted); font-size: 14px; }
.license-empty .btn-sec { margin-top: 10px; }
.license-empty[data-tipo="erro"] .license-empty-title { color: var(--danger); }

.license-skeleton { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.4fr; gap: 24px; padding: 20px 18px; border-top: 1px solid var(--line); }
.license-skeleton:first-child { border-top: 0; }
.license-skeleton span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3) 0%, #f7f9fb 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: skeleton 1.2s ease-in-out infinite; }
.license-skeleton span:first-child { height: 14px; width: 80%; }
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.vps-lista-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
#vps-lista-status { font-size: 13px; color: var(--muted); }
#vps-lista-status[data-error="true"] { color: var(--danger); font-weight: 600; }

@media (max-width: 1199px) {
  .license-head { display: none; }
  .license-board { display: grid; gap: 12px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .license-card {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id status" "grid grid" "foot foot";
    row-gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  }
  .license-card:hover { background: var(--surface); border-color: var(--line-strong); }
  .license-card-id { grid-area: id; }
  .license-status { grid-area: status; align-self: start; }
  .license-card-grid { grid-area: grid; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .license-card-grid > .lic-cell .lic-k { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: 12px; font-weight: 600; color: var(--muted); }
  .lic-v { white-space: normal; overflow-wrap: anywhere; }
  .license-card-foot { grid-area: foot; justify-content: flex-start; }
  .license-skeleton, .license-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
}

/* ---------- Diálogos (padrão do PDV: cabeçalho marinho, rodapé claro) ---------- */
.btn-close {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0;
  border: 1px solid #62758a; border-radius: 7px; background: var(--navy-3); color: #fff;
  transition: background-color .15s ease;
}
.btn-close:hover { background: #3c5673; }
.btn-close .flow-glyph { width: 18px; height: 18px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(25, 42, 64, .5);
}
.modal-overlay.active { display: flex; animation: overlay-in .18s ease-out; }
.modal-sheet {
  --w: 720px;
  width: min(var(--w), 100%); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.modal-overlay.active .modal-sheet { animation: sheet-in .22s var(--ease); }
.modal-sheet[data-size="compact"] { --w: 560px; }
.modal-sheet[data-size="wide"] { --w: 1100px; }
.modal-head, .vps-cadastro-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0;
  padding: 16px 20px 16px 24px; background: var(--navy); color: #fff; border-bottom: 1px solid var(--navy-3);
}
.modal-head :is(h2, h3), .vps-cadastro-head h2 { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.modal-subtitle { margin-top: 2px; color: #b9c7d6; font-size: 13px; }
.modal-head-titles { min-width: 0; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; flex-shrink: 0;
  padding: 14px 24px; background: var(--surface-2); border-top: 1px solid var(--line);
}
.modal-footer--split { justify-content: space-between; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* Cadastro de loja (dialog nativo) */
dialog.vps-cadastro {
  width: min(880px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 32px));
  max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-pop); overflow: hidden;
}
dialog.vps-cadastro[open] { animation: sheet-in .22s var(--ease); }
dialog.vps-cadastro::backdrop { background: rgba(25, 42, 64, .5); }
#vps-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.vps-cadastro-tabs {
  display: flex; gap: 4px; flex-shrink: 0; padding: 0 16px; overflow-x: auto; overflow-y: hidden;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.vps-cadastro-tabs [role=tab] {
  position: relative; min-height: 50px; padding: 0 14px; border: 0; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.vps-cadastro-tabs [role=tab]:hover { color: var(--navy); }
.vps-cadastro-tabs [role=tab][aria-selected="true"] { color: var(--navy); font-weight: 700; }
.vps-cadastro-tabs [role=tab][aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.vps-cadastro-tabs [role=tab]:focus-visible { outline-offset: -4px; }
.vps-cadastro-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.vps-cadastro-body:focus-visible { outline-offset: -3px; }
.vps-cadastro-body > .vps-section:empty { display: none; }
.vps-fields { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 20px; }
.vps-fields > .vps-section, .vps-cadastro-body > .vps-section { display: flex; flex-direction: column; gap: 20px; }
.vps-fields > .vps-section[hidden], .vps-cadastro-body > .vps-section[hidden] { display: none; }
#vps-cadastro-help {
  padding: 12px 14px; border: 1px solid var(--info-line); border-radius: var(--radius);
  background: var(--info-bg); color: var(--ink-2); font-size: 13.5px;
}
.vps-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.vps-span { grid-column: 1 / -1; }
.vps-logo { padding-top: 20px; border-top: 1px solid var(--line); }
.vps-logo h3, #vps-convite h3, #vps-administracao h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.vps-logo-content { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.vps-logo-preview {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2);
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.vps-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vps-logo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.vps-logo-controls > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
#vps-logo-help, #vps-logo-status { font-size: 12.5px; color: var(--muted); }
#vps-logo-status[data-error="true"] { color: var(--danger); font-weight: 600; }
#vps-logo-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.vps-logo-controls { position: relative; }
.vps-logo-controls > label[for=vps-logo-file] { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--navy); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.vps-logo-controls > label[for=vps-logo-file]:hover { background: var(--surface-3); }
.vps-logo-controls:has(#vps-logo-file:focus-visible) > label[for=vps-logo-file] { outline: 3px solid var(--focus); outline-offset: 2px; }
.vps-logo-controls:has(#vps-logo-file:disabled) > label[for=vps-logo-file] { opacity: .55; cursor: not-allowed; }
input[type=file] { max-width: 100%; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button {
  margin-right: 12px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--navy); font: 700 13px var(--font); cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--surface-3); }
input[type=file]:disabled::file-selector-button { opacity: .55; cursor: not-allowed; }

.vps-permissoes {
  margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px;
}
.vps-permissoes legend { padding: 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.vps-permissoes > label {
  display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: 13.5px; font-weight: 600; line-height: 1.35; cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.vps-permissoes > label > input { margin-top: 0; }
.vps-permissoes > label > span { display: grid; gap: 2px; }
.vps-permissoes > label:hover { border-color: #9aa8b8; }
.vps-permissoes > label:has(input:checked) { border-color: var(--navy-3); background: #eef3f9; box-shadow: inset 0 0 0 1px var(--navy-3); }
.vps-permissoes > label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.vps-permissoes > label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.vps-permissoes > small { grid-column: 1 / -1; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.vps-opcao-nota { font-size: 11.5px; font-weight: 600; color: var(--warn); line-height: 1.35; }
fieldset:disabled .vps-permissoes > label { cursor: not-allowed; }

.vps-cadastro-body details {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.vps-cadastro-body summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  font-size: 14.5px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius-lg);
}
.vps-cadastro-body summary::-webkit-details-marker { display: none; }
.vps-cadastro-body summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.vps-cadastro-body details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.vps-cadastro-body summary:hover { background: var(--surface-2); }
.vps-cadastro-body details[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.vps-cadastro-body details > :not(summary) { margin: 14px 16px; }
.vps-cadastro-body details > p { font-size: 13.5px; color: var(--ink-2); }
.vps-cadastro-body details .vps-fields { gap: 14px; }
.vps-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#vps-vinculo-fields { margin: 14px 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; }
#vps-vinculo-fields legend { padding: 0 6px; font-weight: 700; font-size: 13.5px; }
#vps-vinculo-fields > label, #vps-titular > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
#vps-vinculo-fields > label:has(input[type=checkbox]), #vps-titular > label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 10px; font-weight: 600; }
#vps-vinculo-fields > button { justify-self: start; }
#vps-titular { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn-line); }
#vps-titular small { font-size: 12.5px; color: var(--ink-2); }
#vps-vinculo-identidade:not(:empty) { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 13.5px; font-weight: 600; }

#vps-convite { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--ok-line); border-radius: var(--radius-lg); background: var(--ok-bg); }
#vps-convite h3 { margin: 0; }
#vps-convite > p { font-size: 13.5px; color: var(--ink-2); }
#vps-link { font-family: var(--mono); font-size: 12.5px; }

.vps-registros { list-style: none; margin: 0; padding: 0; }
.vps-registros > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.vps-registros > li:last-child { border-bottom: 0; }
.vps-registros > li > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vps-registros small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.vps-registros > li > .btn-sec { min-height: 36px; padding: 0 12px; font-size: 13px; flex-shrink: 0; }
#vps-terminais > li > .btn-sec { color: var(--danger); border-color: var(--danger-line); }
#vps-terminais > li > .btn-sec:hover:not(:disabled) { background: var(--danger-bg); }
#vps-administracao { display: flex; flex-direction: column; gap: 4px; }
#vps-administracao > p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
#vps-administracao > .vps-registros { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 16px; }
#vps-administracao details { margin-top: 12px; }

[role=status][data-error="true"] { color: var(--danger); font-weight: 600; }
:is(#vps-renovacao-status, #vps-pacote-status, #vps-vinculo-status):not(:empty) { font-size: 13.5px; color: var(--ink-2); }

.vps-cadastro-feedback { flex-shrink: 0; padding: 10px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.vps-cadastro-feedback:has(#vps-cadastro-status:empty) { display: none; }
#vps-cadastro-status { font-size: 13.5px; color: var(--ink-2); }
#vps-cadastro-status:focus { outline: none; }
.vps-submit { flex-shrink: 0; justify-content: flex-end; padding: 14px 24px; background: var(--surface-2); border-top: 1px solid var(--line); }
#vps-criar { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Migração (dialog criado pelo migracao.js) */
dialog.flow-migracao { width: min(640px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
dialog.flow-migracao::backdrop { background: rgba(25, 42, 64, .5); }
dialog.flow-migracao h2 { font-size: 18px; margin-bottom: 8px; }
dialog.flow-migracao p { margin: 8px 0; color: var(--ink-2); }
.flow-migracao-lista article { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }

/* ---------- Planos ---------- */
.plano-form-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.plano-form-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.plano-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.plano-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.plano-form-foot .form-hint { max-width: 44ch; }
.titulo-planos-cadastrados { margin: 28px 0 10px; font-size: 15px; font-weight: 700; }
.plano-lista { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.plano-card-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 12px 16px; border-top: 1px solid var(--line); }
.plano-card-item:first-child { border-top: 0; }
.plano-card-info { display: grid; gap: 1px; min-width: 0; }
.plano-card-nome { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.plano-card-periodo { font-size: 12.5px; color: var(--muted); }
.plano-card-price { display: grid; justify-items: end; gap: 0; }
.plano-card-price strong { font-size: 15px; font-weight: 700; }
.plano-card-price span { font-size: 12px; color: var(--muted); }
.plano-card-actions { display: flex; gap: 6px; }
.plano-vazio { padding: 28px 16px; text-align: center; color: var(--muted); }

/* ---------- Auditoria ---------- */
.audit-filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 16px; }
.audit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.audit-scroll { max-height: min(56dvh, 560px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.audit-scroll:focus-visible { outline-offset: 2px; }
.audit-table { width: 100%; min-width: 880px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.audit-table th {
  position: sticky; top: 0; z-index: 1; padding: 10px 14px; text-align: left; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line);
}
.audit-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table tbody tr:last-child td { border-bottom: 0; }
.audit-table tbody tr:not(.audit-estado):hover td { background: #fafbfd; }
.audit-data { white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.audit-loja { display: block; font-weight: 700; }
.audit-chave { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.audit-operador { font-weight: 600; }
.audit-desc { max-width: 360px; line-height: 1.45; overflow-wrap: anywhere; }
.audit-acoes { width: 56px; text-align: right; }
.audit-link { padding: 0; border: 0; background: none; color: var(--info); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.audit-link:hover { color: var(--navy); }
.audit-estado td { padding: 48px 24px; text-align: center; }
.audit-estado strong { display: block; font-size: 15px; font-weight: 700; }
.audit-estado span { display: block; margin-top: 4px; color: var(--muted); }
.audit-count { font-size: 13px; color: var(--muted); }
.audit-count strong { color: var(--ink); }
.audit-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.audit-badge[data-tom="roxo"] { background: #f4f0fd; color: #5b3fa3; box-shadow: inset 0 0 0 1px #ddd2f7; }
.audit-badge[data-tom="verde"] { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.audit-badge[data-tom="ambar"] { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.audit-badge[data-tom="vermelho"] { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.audit-badge[data-tom="azul"] { background: var(--info-bg); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-line); }
.audit-badge[data-tom="neutro"] { background: var(--surface-3); color: var(--ink-2); }

.detalhe-log { display: flex; flex-direction: column; gap: 18px; }
.detalhe-log-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detalhe-log-data { font-size: 13px; color: var(--muted); }
.detalhe-log-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.detalhe-log-grid > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.detalhe-log-grid dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.detalhe-log-grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.detalhe-log-grid code { font-size: 12.5px; }
.detalhe-log-bloco h4 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.detalhe-log-bloco p { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.detalhe-log-itens { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.detalhe-log-itens th { text-align: left; padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.detalhe-log-itens td { padding: 8px; border-bottom: 1px solid var(--line); }
.detalhe-log-itens :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; }
.detalhe-log-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.detalhe-log-total strong { font-size: 16px; }

/* ---------- Avisos rápidos ---------- */
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 3000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 16px;
  border-radius: 10px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 12px 32px rgba(19, 34, 58, .28); pointer-events: auto;
  opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast .flow-glyph { width: 18px; height: 18px; }
.toast[data-tipo="success"] .flow-glyph { color: #6ce9a6; }
.toast[data-tipo="error"] .flow-glyph { color: #fda29b; }
.toast[data-tipo="warning"] .flow-glyph { color: #fec84b; }
.toast[data-tipo="info"] .flow-glyph { color: #9ec5fe; }

/* ---------- Modal antigo de licença (fora de uso; mantido oculto e legível) ---------- */
.modal-cliente-sheet { --w: 860px; }
.modal-cliente-sheet .modal-header-main { display: flex; align-items: center; gap: 12px; }
.modal-cliente-sheet .modal-brand-thumb { width: 32px; height: 32px; }
.modal-cliente-sheet .modal-eyebrow { display: none; }
.cli-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
.cli-tab { min-height: 46px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-weight: 600; }
.cli-tab.is-active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.cli-tab-panel { display: grid; gap: 16px; }
.cli-subbox, .cli-plano-card, .cli-logo-card, .cli-cat-board { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.cli-tab-hint, .cli-venc-ajuda, .cli-logo-sub { font-size: 12.5px; color: var(--muted); }
.cli-logo-avatar { width: 56px; height: 56px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Telas médias e celular ---------- */
@media (max-width: 1100px) {
  .topbar-email { display: none; }
}
@media (max-width: 820px) {
  .flow-access { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .flow-access-brand { flex-direction: row; align-items: center; gap: 14px; padding: 14px 20px; }
  .flow-access-logo { width: auto; height: 30px; content: url("../logos/FlowPDV-horizontal-escuro.png"); }
  .flow-access-lead { font-size: 15px; font-weight: 700; color: #dce5ef; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .flow-access-points { display: none; }
  .flow-access-panel { align-items: flex-start; padding: 32px 20px; }
  .vps-logo-content { grid-template-columns: 1fr; }
  .vps-logo-preview { max-width: 220px; }
  .audit-filtros { grid-template-columns: 1fr 1fr; }
  .audit-actions { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding: 0 16px; column-gap: 12px; }
  .topbar-brand { height: 52px; }
  .topbar-logo { height: 22px; }
  .topbar-nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; height: 46px; padding: 0 8px; border-top: 1px solid rgba(255, 255, 255, .1); overflow-x: auto; }
  .topbar-nav .side-link { flex: 1 0 auto; justify-content: center; }
  .stage { padding: 20px 16px 40px; }
  .stage-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .stage-title { font-size: 22px; }
  .stage-actions { justify-content: space-between; }
  .toolbar { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .filter-group { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-btn { justify-content: space-between; }
  .search-box { flex-basis: auto; min-width: 0; }
  .license-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-card-grid > .lic-cell:nth-child(4) { grid-column: 1 / -1; order: 5; }
  .license-card-foot > button { flex: 1 1 auto; }
  .vps-form-grid, .plano-form-grid, .form-grid, .detalhe-log-grid { grid-template-columns: 1fr; }
  .plano-card-item { grid-template-columns: minmax(0, 1fr) auto; }
  .plano-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .audit-table { min-width: 0; }
  .audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .audit-table tbody tr:not(.audit-estado) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .audit-table tbody tr:not(.audit-estado) td { display: block; padding: 0; border: 0; grid-column: 1; max-width: none; }
  .audit-table tbody tr:not(.audit-estado) td.audit-acoes { grid-column: 2; grid-row: 1 / span 3; width: auto; }
  .audit-table tbody tr:last-child { border-bottom: 0; }
  .audit-table .audit-data { font-size: 12.5px; color: var(--muted); }
  .audit-table .audit-operador::before { content: "Operador: "; color: var(--muted); font-weight: 500; }
  .audit-estado { display: block; }
  .audit-estado td { display: block; }
  .toast { max-width: none; }
}
@media (max-width: 600px) {
  dialog.vps-cadastro { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border: 0; border-radius: 0; }
  .vps-cadastro-head, .modal-head { padding: 12px 12px 12px 16px; }
  .vps-cadastro-tabs { padding: 0 6px; }
  .vps-cadastro-tabs [role=tab] { flex: 1 0 auto; padding: 0 10px; }
  .vps-cadastro-body, .modal-body { padding: 16px; }
  .vps-permissoes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 12px; }
  .vps-submit, .modal-footer { padding: 12px 16px; }
  .vps-submit > button, .modal-footer:not(.modal-footer--split) > button { flex: 1 1 auto; }
  .vps-cadastro-feedback { padding: 10px 16px; }
  .vps-registros > li { flex-direction: column; align-items: stretch; }
  .modal-overlay { padding: 0; }
  .modal-sheet { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .audit-filtros { grid-template-columns: 1fr; }
  .audit-actions > button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
