:root {
  --bg: #050608;
  --surface: #090B10;
  --card: #0D1016;
  --line: rgba(255, 255, 255, 0.08);
  --text: #F4F5F7;
  --muted: #8B929D;
  --accent: #FF1744;
  --ok: #3DDC97;
  --warn: #E6B325;
  --no: #FF5A6A;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.ac-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
}
.ac-gate > .ac-state { place-self: center; padding: 24px; }
.ac-login {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  background:
    radial-gradient(880px 420px at 100% 0%, rgba(255, 23, 68, 0.07), transparent 58%),
    #050608;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ac-brandpane {
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(255, 23, 68, 0.28), transparent 62%),
    radial-gradient(420px 280px at 90% 100%, rgba(255, 23, 68, 0.08), transparent 70%),
    linear-gradient(180deg, #10131a 0%, #07090d 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-right: 1px solid var(--line);
}
.ac-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ac-logo img, .ac-logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 23, 68, 0.45), 0 16px 28px rgba(0, 0, 0, 0.35);
}
.ac-logo-mark { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px; }
.ac-brandpane strong {
  display: block;
  max-width: none;
  margin-top: 0;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.ac-plus { color: var(--accent); }
.ac-kicker img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  vertical-align: -4px;
  margin-right: 6px;
}
.ac-brandpane p { color: var(--muted); margin: 16px 0 0; max-width: 34ch; font-size: 16px; line-height: 1.5; }
.ac-brandfoot { margin: 0 !important; color: rgba(255, 255, 255, 0.42); font-size: 13px; letter-spacing: 0.04em; }
.ac-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ac-logincard {
  width: min(420px, calc(100% - 48px));
  justify-self: center;
  align-self: center;
  padding: 12px 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ac-logincard h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.04em; }
.ac-logincard > p { margin: 0 0 22px; color: var(--muted); }
.ac-login .ac-field input { min-height: 46px; background: #0c1017; }
.ac-login .ac-pass button { top: auto; }
.ac-login .ac-btn.primary { min-height: 44px; padding-inline: 22px; }

.ac-app { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.ac-side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  z-index: 20;
}
.ac-brand, .ac-userbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
}
.ac-brand { padding: 4px 8px 16px; }
.ac-brand .ac-mark { width: 42px; height: 42px; border-radius: 12px; background: transparent; box-shadow: 0 0 0 1px rgba(255, 23, 68, 0.45); }
.ac-brand-txt, .ac-userbtn span { display: flex; flex-direction: column; min-width: 0; }
.ac-brand-txt b { font-size: 18px; letter-spacing: -0.03em; }
.ac-userbtn b { font-size: 14px; }
.ac-brand-txt b, .ac-userbtn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-brand-txt small, .ac-userbtn small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mark, .ac-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 23, 68, 0.12);
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}
.ac-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.ac-avatar img, .ac-mark img, .ac-photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; padding-right: 2px; }
.ac-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 10px;
}
.ac-nav button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.ac-nav button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.ac-nav button.is-on {
  color: var(--text);
  background: rgba(255, 23, 68, 0.1);
  box-shadow: inset 3px 0 0 var(--accent);
}
.ac-sidefoot { margin-top: auto; padding: 12px 8px 4px; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-sidefoot #ac-sidefoot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sideout { display: none; width: 100%; text-align: left; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 10px; }
.ac-work { min-width: 0; display: flex; flex-direction: column; }
.ac-top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 18px;
  background: rgba(5, 6, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.ac-title { flex: 1 1 auto; min-width: 0; font-weight: 650; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-new { margin-left: auto; flex: 0 0 auto; }
.ac-menu { display: none; }
.ac-iconbtn, .ac-out { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ac-userbtn {
  width: auto;
  max-width: 220px;
  min-width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0d1016;
  overflow: hidden;
}
.ac-userbtn span { max-width: 150px; }
.ac-userbtn b, .ac-userbtn small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-main { padding: 22px 22px 48px; min-width: 0; }
.ac-page { width: 100%; max-width: 1180px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ac-pagehead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; min-width: 0; }
.ac-pagehead h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.ac-pagehead p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; max-width: 68ch; line-height: 1.45; }
.ac-start {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: center;
  padding: 8px 4px 6px;
}
.ac-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ac-start h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.ac-start-copy > p { margin: 12px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 38ch; }
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 13px;
}
.ac-steps i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 23, 68, 0.14);
  color: #ff8fa3;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}
.ac-steps b { display: block; margin-bottom: 3px; }
.ac-steps span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ac-rulecard p { margin: 0; color: var(--muted); line-height: 1.5; }

.ac-btn, .ac-new {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #171b22;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ac-btn:hover, .ac-new:hover, .ac-nav button:hover { transform: translateY(-1px); }
.ac-btn.primary, .ac-new { background: var(--accent); color: white; font-weight: 700; }
.ac-btn.ghost { background: transparent; border: 1px solid var(--line); }
.ac-btn.ok { background: #14684a; }
.ac-btn.danger { background: #6e2430; }
.ac-btn.block { width: 100%; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ac-actions .ac-btn, .ac-new { white-space: nowrap; }

.ac-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ac-kpi, .ac-card {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.ac-kpi span, .ac-card h2, .ac-muted { color: var(--muted); }
.ac-kpi span { display: block; font-size: 12px; line-height: 1.35; min-height: 0; }
.ac-kpi b { display: block; margin-top: 6px; font-size: clamp(16px, 1.5vw, 22px); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.ac-kpi em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ac-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
.ac-card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; color: var(--text); }
.ac-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.ac-card-head h2 { margin: 0; }

.ac-chart-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ac-donut {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ac-donut div {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  text-align: center;
}
.ac-donut b { font-size: 22px; }
.ac-donut span, .ac-legend { color: var(--muted); font-size: 12px; }
.ac-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ac-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.ac-legend i.ok { background: var(--ok); }
.ac-legend i.no { background: var(--no); }
.ac-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.ac-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.ac-bar b { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ff4d6a, #9d1028); }
.ac-bar small, .ac-hbar span, .ac-hbar em { color: var(--muted); font-size: 11px; }
.ac-line { width: 100%; height: 140px; display: block; }
.ac-hbar { display: grid; grid-template-columns: 92px 1fr 28px; gap: 8px; align-items: center; margin: 7px 0; }
.ac-hbar i { display: block; height: 8px; background: rgba(255,255,255,.05); border-radius: 99px; overflow: hidden; }
.ac-hbar b { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ac-alerts { display: grid; gap: 8px; }
.ac-alert {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(230, 179, 37, 0.08);
  border: 1px solid rgba(230, 179, 37, 0.25);
  color: #f3e2ad;
  text-align: left;
  width: 100%;
}

.ac-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-filters button.is-on { background: rgba(255, 23, 68, 0.16); color: white; }
.ac-search, .ac-field input, .ac-field select, .ac-field textarea {
  width: 100%;
  background: #090c12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.ac-search { max-width: 320px; }
.ac-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.ac-field.full, .ac-grid > .full { grid-column: 1 / -1; }
.ac-cpf-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-cpf-line input { flex: 1 1 160px; min-width: 0; width: auto; }
.ac-cpf-line .ac-btn { flex: 0 0 auto; white-space: nowrap; }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.ac-check input { width: auto; }
.ac-pass { position: relative; }
.ac-pass input { padding-right: 96px; }
.ac-pass button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  height: 34px;
  min-width: 76px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #171b22;
  color: var(--text);
  line-height: 1;
}
.ac-pass-show {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.ac-who { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ac-who .ac-photo { flex: 0 0 72px; }
.ac-who > div { min-width: 0; }
.ac-who b { display: block; overflow-wrap: anywhere; }
.ac-linkbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.ac-linkbox input {
  flex: 1 1 180px;
  min-width: 0;
  background: #090c12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.ac-public {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 16px 48px;
  display: flex;
  justify-content: center;
}
.ac-public-card { width: min(720px, 100%); display: flex; flex-direction: column; gap: 12px; }
.ac-public h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.04em; }
.ac-selfie { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ac-selfie-ph, .ac-selfie img {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
  background: #090c12;
  border: 1px solid var(--line);
  flex: 0 0 112px;
}
.ac-selfie-ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.ac-selfie .ac-btn { position: relative; }
.ac-selfie .ac-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ac-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-steps span, .ac-steps button {
  border-radius: 999px;
  padding: 6px 10px;
  background: #12161d;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
}
.ac-steps .is-on { color: white; border-color: rgba(255, 23, 68, 0.6); background: rgba(255, 23, 68, 0.12); }
.ac-steps .is-done { color: var(--text); }

.ac-table-wrap { max-width: 100%; min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.16); }
.ac-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.ac-table th, .ac-table td { white-space: nowrap; }
.ac-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.ac-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.ac-table tr:hover td { background: rgba(255,255,255,.02); }
.ac-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(230, 179, 37, 0.12);
  color: var(--warn);
}
.ac-badge.ok { background: rgba(61, 220, 151, 0.12); color: var(--ok); }
.ac-badge.no { background: rgba(255, 90, 106, 0.12); color: var(--no); }
.ac-result-banner {
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #12160d;
}
.ac-result-banner.wait { background: #16140c; }
.ac-result-banner.no { background: #1a0d11; }
.ac-result-banner.ok { background: #0d1a14; }
.ac-result-banner { min-width: 0; }
.ac-result-banner p { overflow-wrap: anywhere; }
.ac-result-banner strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}
.ac-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-nums div, .ac-dl div {
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px 12px;
}
.ac-nums span, .ac-dl dt { display: block; color: var(--muted); font-size: 12px; }
.ac-nums b, .ac-dl dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ac-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ac-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.ac-list { margin: 0; padding-left: 18px; }
.ac-list li { margin: 4px 0; }
.ac-msg { border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); }
.ac-msg.err { background: rgba(255, 90, 106, 0.1); color: #ffd0d5; }
.ac-msg.ok { background: rgba(61, 220, 151, 0.1); color: #d7ffee; }
.ac-state { padding: 28px 8px; text-align: center; color: var(--muted); }
.ac-state b { display: block; color: var(--text); margin-bottom: 4px; }
.ac-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  display: inline-block;
  animation: ac-spin 0.7s linear infinite;
  margin-bottom: 8px;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-photo {
  width: 72px; height: 72px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,23,68,.12); font-weight: 700;
}
.ac-docs { display: grid; gap: 8px; }
.ac-doc {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.ac-modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.62);
  display: grid; place-items: center;
  padding: 18px;
}
.ac-dialog {
  width: min(560px, 100%);
  max-height: min(86dvh, 720px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.ac-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.ac-toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  background: #141820; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; max-width: min(360px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
.ac-toast.ok { border-color: rgba(61, 220, 151, 0.4); }
.ac-toast.err { border-color: rgba(255, 90, 106, 0.5); }
.ac-link { background: none; border: 0; color: #ff8fa3; padding: 0; }
.ac-ruleline { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 1100px) {
  .ac-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-split, .ac-ficha { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ac-app { grid-template-columns: 1fr; }
  .ac-menu { display: inline-grid; place-items: center; }
  .ac-side {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); height: 100vh; height: 100dvh;
    transform: translateX(-105%); transition: transform 0.18s ease; z-index: 40;
  }
  .ac-side.is-open { transform: none; }
  .ac-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
  .ac-userbtn small { display: none; }
  .ac-login { grid-template-columns: 1fr; }
  .ac-start { grid-template-columns: 1fr; gap: 16px; }
  .ac-brandpane { min-height: 0; gap: 14px; padding: 28px 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ac-brandpane strong { font-size: 36px; max-width: none; }
  .ac-logo { gap: 12px; }
  .ac-logo img { width: 52px; height: 52px; border-radius: 14px; }
  .ac-brandfoot { display: none; }
  .ac-logincard { align-self: start; width: min(420px, calc(100% - 36px)); padding: 26px 0 40px; }
}
@media (max-width: 760px) {
  .ac-kpis, .ac-nums, .ac-dl, .ac-grid { grid-template-columns: 1fr 1fr; }
  .ac-pagehead { flex-direction: column; align-items: stretch; }
  .ac-top { padding: 10px; }
  .ac-main { padding: 14px 12px 32px; }
  .ac-out { display: none; }
  .ac-sideout { display: block; }
  .ac-userbtn span { display: none; }
  .ac-userbtn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
    padding: 4px;
    border-radius: 50%;
    justify-content: center;
  }
  .ac-table-wrap { border: 0; border-radius: 0; background: transparent; }
  .ac-table { min-width: 0; }
  .ac-table th, .ac-table td { white-space: normal; }
  .ac-table thead { display: none; }
  .ac-table, .ac-table tbody, .ac-table tr, .ac-table td { display: block; width: 100%; }
  .ac-table tr {
    margin: 0 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px 10px;
    background: rgba(255,255,255,.02);
  }
  .ac-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 7px 0;
    text-align: right;
  }
  .ac-table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}
@media (max-width: 520px) {
  .ac-kpis, .ac-nums, .ac-dl, .ac-grid { grid-template-columns: 1fr; }
  .ac-pass input { padding-right: 12px; }
  .ac-pass button { position: static; align-self: flex-end; height: 36px; }
  .ac-logincard, .ac-brandpane { padding: 22px 16px; }
}

@media print {
  body { background: white; color: #111; }
  .ac-side, .ac-top, .ac-toast, .ac-modal, .ac-gate, .no-print { display: none !important; }
  .ac-app { display: block !important; }
  .ac-main { padding: 0; }
  .ac-card, .ac-kpi, .ac-result-banner, .ac-nums div, .ac-dl div {
    background: white;
    color: #111;
    border-color: #ccc;
    box-shadow: none;
  }
  .ac-badge { border: 1px solid #999; color: #111; background: white; }
}
