:root {
  --primary: #1746a2;
  --primary-hover: #103880;
  --accent: #e9b949;
  --success: #167d61;
  --danger: #c34848;
  --bg: #f4f6fa;
  --surface: #fff;
  --text: #16243b;
  --muted: #536278;
  --border: #dfe5ee;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: rgba(23, 70, 162, 0.12);
}
a {
  color: var(--primary);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: #fff;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.15;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.55;
}
.muted,
.caption {
  color: var(--muted);
}
.caption {
  font-size: 12px;
  line-height: 1.5;
}
.num {
  font-variant-numeric: tabular-nums;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  width: 228px;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 30px 16px 20px;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.brand-name {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 2px;
  color: var(--muted);
}
.sidebar .brand {
  padding: 0 9px 30px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 16px 12px 10px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 9px;
  color: var(--muted);
  margin: 3px 0;
  min-height: 44px;
  transition:
    background-color 120ms,
    color 120ms;
}
.nav-item:hover {
  background: var(--bg);
}
.nav-item.active {
  background: #edf2fc;
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active:after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.sidebar-bottom {
  margin-top: auto;
}
.plan-mini {
  margin: 18px 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.plan-mini p {
  font-size: 12px;
  margin-top: 6px;
}
.aira {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aira svg {
  width: 50px;
  height: 20px;
}
.aira path {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: pulse-line 1700ms ease-out forwards;
}
@keyframes pulse-line {
  to {
    stroke-dashoffset: 0;
  }
}
.work-area {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 74px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 16px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.workspace .icon {
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mode-pill {
  font-size: 11px;
  border: 1px solid #d7b54c;
  background: #fff8dd;
  border-radius: 30px;
  padding: 6px 10px;
  color: #685113;
  font-weight: 600;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #edf2fc;
  color: var(--primary);
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 9px;
  min-height: 42px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 120ms,
    transform 90ms;
  white-space: nowrap;
}
.btn:hover {
  background: #eef2f8;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn.primary:hover {
  background: var(--primary-hover);
}
.btn.accent {
  background: var(--accent);
  color: #17243b;
  border-color: var(--accent);
}
.btn.danger {
  color: var(--danger);
}
.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.btn.icon-only {
  padding: 10px;
}
.page {
  max-width: 1560px;
  margin: auto;
  padding: 28px 34px 48px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--primary);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 0 0 22px;
  overflow: hidden;
}
.banner .eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  margin-bottom: 8px;
}
.banner h2 {
  font-size: 23px;
  color: #fff;
  letter-spacing: -0.6px;
}
.banner p {
  font-size: 12px;
  color: #dfe8fc;
  margin-top: 7px;
}
.banner .aira {
  font-size: 24px;
  letter-spacing: 4px;
}
.banner .aira svg {
  width: 95px;
  height: 32px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-field label {
  font-size: 11px;
  color: var(--muted);
}
.filters select,
.filters input {
  border: 0;
  background: #f4f6fa;
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 12px;
  min-width: 110px;
  height: 36px;
}
.filters input {
  width: 137px;
}
.filters .scope {
  font-weight: 650;
  font-size: 12px;
  border-right: 1px solid var(--border);
  padding-right: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-caption {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.mobile-filter {
  display: none;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  min-width: 0;
}
.kpi {
  padding: 19px 21px;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 17px;
}
.kpi-top .icon {
  color: var(--primary);
  width: 18px;
}
.kpi strong {
  display: block;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.kpi-foot .icon {
  width: 14px;
  height: 14px;
}
.good {
  color: var(--success) !important;
}
.bad {
  color: var(--danger) !important;
}
.neutral {
  color: var(--muted);
}
.progress {
  height: 5px;
  border-radius: 9px;
  background: #e9eef5;
  overflow: hidden;
  margin-top: 12px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--success);
  border-radius: 9px;
}
.progress.bad span {
  background: var(--danger);
}
.grid-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 21px 22px 12px;
}
.card-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.chart-wrap {
  padding: 8px 18px 14px;
}
.chart {
  width: 100%;
  height: 232px;
  display: block;
  overflow: visible;
}
.chart text {
  font-size: 10px;
  fill: var(--muted);
}
.chart .grid {
  stroke: #e6ebf2;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  padding: 0 22px 18px;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.legend .gold {
  background: var(--accent);
}
.chart-hint {
  font-size: 10px;
  line-height: 1.4;
  margin-left: auto;
}
.ranking {
  padding: 8px 22px 18px;
}
.rank-row {
  margin: 17px 0 22px;
}
.rank-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.rank-top strong {
  font-weight: 500;
}
.rank-detail {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.alert-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid #e8c58c;
  background: #fff9eb;
  border-radius: 11px;
  margin-bottom: 22px;
  font-size: 12px;
  color: #6d531f;
}
.alert-strip p {
  flex: 1;
}
.alert-strip .icon {
  color: #947121;
}
.table-container {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  background: #f8f9fc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 21px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 600;
}
td {
  padding: 16px 21px;
  border-bottom: 1px solid #edf0f5;
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f9fbfe;
}
td strong {
  font-weight: 600;
}
.table-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.right {
  text-align: right;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #eaf6f0;
  border-radius: 6px;
  font-size: 10px;
  color: var(--success);
  font-weight: 600;
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.badge.bad {
  background: #fbebeb;
}
.badge.pending {
  color: #715718;
  background: #fff7da;
}
.badge.neutral {
  background: #eef1f6;
}
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 14px 21px;
  border-top: 1px solid var(--border);
}
.search {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  width: 200px;
  min-height: 36px;
}
.chips {
  display: flex;
  gap: 5px;
  background: #f2f4f8;
  border-radius: 8px;
  padding: 3px;
}
.chip {
  background: none;
  border: 0;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
  border-radius: 6px;
  min-height: 30px;
}
.chip.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px #16243b12;
}
.empty {
  text-align: center;
  padding: 48px 20px;
}
.empty .icon {
  width: 35px;
  height: 35px;
  color: var(--primary);
  margin-bottom: 13px;
}
.empty h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 470px;
  margin: 0 auto 18px;
}
.mobile-cards {
  display: none;
}
.bottom-nav {
  display: none;
}
.panel {
  padding: 22px;
}
.panel p {
  margin: 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 18px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%;
  min-height: 44px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  min-height: 35px;
}
.check-row input {
  width: 18px;
  height: 18px;
}
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: #13213966;
  backdrop-filter: blur(3px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.dialog {
  background: #fff;
  width: min(640px, 100%);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  box-shadow: 0 20px 90px #13213930;
  animation: dialog-in 200ms ease-out;
}
.dialog-header {
  padding: 22px 25px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.dialog-body {
  padding: 22px 25px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}
.dialog-footer .form-error {
  color: var(--danger);
  font-size: 12px;
  flex: 1;
}
.form-total {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  background: #edf2fc;
  padding: 15px;
  border-radius: 8px;
  font-size: 13px;
}
.form-total strong {
  font-size: 20px;
  letter-spacing: -0.5px;
}
details {
  grid-column: 1/-1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
details .form-grid {
  margin-top: 15px;
}
.form-hint {
  font-size: 12px;
  line-height: 1.6;
  padding: 14px;
  background: #f4f6fa;
  border-radius: 9px;
  margin-bottom: 18px;
}
.form-step {
  display: none;
}
.form-step.active {
  display: grid;
}
.step-dots {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 150;
  max-width: 90%;
  display: none;
  box-shadow: 0 6px 20px #16243b24;
}
#toast.show {
  display: block;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  color: var(--muted);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.landing {
  max-width: 1150px;
  margin: auto;
  padding: 35px;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 65px;
}
.landing-hero {
  max-width: 680px;
}
.landing-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -2px;
}
.landing-hero p {
  font-size: 18px;
  margin: 23px 0 30px;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}
.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 55px 0;
}
.landing-proof .card {
  padding: 24px;
}
.landing-proof .icon {
  color: var(--primary);
  margin-bottom: 16px;
}
.landing-proof p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 680px;
  margin: 35px 0;
}
.plans .card {
  padding: 25px;
}
.plans strong {
  font-size: 30px;
  font-weight: 650;
  display: block;
  margin: 18px 0 6px;
}
.plans ul {
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.connection-state {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
  max-width: 620px;
  line-height: 1.6;
}
.onboard {
  max-width: 600px;
  margin: 70px auto;
  padding: 30px;
}
.denominations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.denominations label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.denominations input {
  width: 75px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.doc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.doc-card {
  padding: 20px;
}
.doc-card .icon {
  color: var(--primary);
}
.doc-card h3 {
  margin: 14px 0 5px;
  overflow-wrap: anywhere;
}
.doc-card .actions {
  margin-top: 17px;
}
.help-list {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 20px;
}
.footer-note {
  margin: 18px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.saved-status {
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--success);
  margin-right: 5px;
}
.notice {
  background: #eef3fc;
  border: 1px solid #d8e4fa;
  border-radius: 10px;
  padding: 15px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 35px;
  }
  .kpi strong {
    font-size: 32px;
  }
  .chart {
    height: 260px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
  }
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .page {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 18px 15px;
  }
  .kpi strong {
    font-size: 23px;
  }
  .filter-caption {
    display: none;
  }
  .grid-charts {
    gap: 15px;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
}
@media (max-width: 767px) {
  :root {
    font-size: 16px;
  }
  .sidebar {
    display: none;
  }
  .app-shell {
    display: block;
  }
  .work-area {
    width: 100%;
  }
  .topbar {
    height: 63px;
    padding: 0 18px;
  }
  .workspace {
    font-size: 12px;
    gap: 7px;
    min-width: 0;
  }
  .workspace .icon {
    width: 18px;
  }
  .workspace span {
    max-width: 170px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .top-actions {
    gap: 8px;
  }
  .topbar .btn {
    min-height: 36px;
    padding: 8px;
  }
  .avatar {
    display: none;
  }
  .mode-pill {
    font-size: 9px;
    padding: 5px 8px;
  }
  .page {
    padding: 23px 17px 105px;
  }
  .page-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 7px;
  }
  .page-head .actions .btn {
    font-size: 0;
    padding: 11px;
  }
  .page-head .actions .btn .icon {
    width: 20px;
  }
  .page-head .actions .btn.primary {
    font-size: 12px;
    padding: 11px 12px;
  }
  .page-head .actions {
    gap: 7px;
    flex-shrink: 0;
  }
  .banner {
    padding: 20px;
    margin-bottom: 17px;
    min-height: 120px;
    align-items: flex-start;
  }
  .banner h2 {
    font-size: 20px;
    max-width: 220px;
  }
  .banner p {
    max-width: 205px;
    font-size: 11px;
  }
  .banner .aira {
    font-size: 12px;
    letter-spacing: 1.4px;
    position: absolute;
    bottom: 17px;
    right: 17px;
  }
  .banner .aira svg {
    width: 32px;
    height: 18px;
  }
  .banner .eyebrow {
    font-size: 9px;
  }
  .filters {
    display: none;
  }
  .mobile-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 17px;
    gap: 10px;
  }
  .mobile-filter .btn {
    min-height: 40px;
  }
  .mobile-filter span {
    font-size: 11px;
    color: var(--muted);
    max-width: 215px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 17px;
  }
  .kpi {
    padding: 16px 13px;
  }
  .kpi-top {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .kpi-top .icon {
    width: 15px;
  }
  .kpi strong {
    font-size: 23px;
    letter-spacing: -0.7px;
  }
  .kpi-foot {
    font-size: 9px;
    margin-top: 10px;
    line-height: 1.4;
  }
  .kpi-foot .icon {
    width: 12px;
    height: 12px;
  }
  .grid-charts {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .card-head {
    padding: 18px 17px 10px;
    align-items: flex-start;
  }
  .card-head h2 {
    font-size: 16px;
  }
  .card-head p {
    font-size: 10px;
  }
  .card-head .search {
    width: 130px;
  }
  .chart-wrap {
    padding: 8px 10px;
  }
  .chart {
    height: 185px;
  }
  .chart-hint {
    display: none;
  }
  .legend {
    padding: 0 17px 17px;
    font-size: 9px;
  }
  .ranking {
    padding: 0 17px 12px;
  }
  .alert-strip {
    padding: 13px 14px;
    gap: 10px;
    font-size: 11px;
    align-items: flex-start;
  }
  .alert-strip .btn {
    font-size: 10px;
    padding: 7px;
    min-height: 34px;
  }
  .table-container.mobile-hide {
    display: none;
  }
  .mobile-cards {
    display: block;
    padding: 0 17px;
  }
  .mobile-store {
    border-top: 1px solid var(--border);
    padding: 16px 0;
  }
  .mobile-store > button {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    text-align: left;
    gap: 8px;
  }
  .mobile-store strong {
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-store .table-sub {
    font-size: 10px;
  }
  .mobile-store-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f7f9fc;
    padding: 13px;
    border-radius: 9px;
    margin-top: 12px;
  }
  .mobile-store-metrics label {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .mobile-store-metrics strong {
    font-size: 14px;
  }
  .table-foot {
    font-size: 10px;
    padding: 14px 17px;
    gap: 10px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 7px 12px calc(8px + env(safe-area-inset-bottom));
    z-index: 40;
    justify-content: space-around;
    box-shadow: 0 -4px 15px #16243b05;
  }
  .bottom-nav button {
    border: 0;
    background: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    min-height: 48px;
    min-width: 60px;
    border-radius: 9px;
  }
  .bottom-nav button.active {
    color: var(--primary);
    background: #edf2fc;
  }
  .bottom-nav .icon {
    width: 22px;
    height: 22px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dialog-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: 20px 20px 0 0;
  }
  .dialog-header {
    padding: 19px 20px 16px;
  }
  .dialog-body {
    padding: 20px;
    max-height: 70dvh;
  }
  .dialog-footer {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
  }
  .dialog-footer .btn {
    flex: 1;
    min-height: 46px;
  }
  .dialog-footer .form-error {
    flex-basis: 100%;
    font-size: 12px;
  }
  .dialog .form-step {
    display: none;
  }
  .dialog .form-step.active {
    display: grid;
  }
  .step-dots {
    display: flex;
    gap: 5px;
    padding: 0 20px 0;
    justify-content: center;
  }
  .step-dots span {
    height: 3px;
    flex: 1;
    background: #e3e8f0;
    border-radius: 5px;
  }
  .step-dots span.active {
    background: var(--primary);
  }
  .doc-list {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 19px;
  }
  .landing {
    padding: 23px;
  }
  .landing-nav {
    margin-bottom: 48px;
    gap: 12px;
  }
  .landing-nav .btn {
    padding: 10px;
    font-size: 11px;
  }
  .landing-hero h1 {
    font-size: 40px;
    letter-spacing: -1.7px;
  }
  .landing-hero p {
    font-size: 16px;
    line-height: 1.6;
  }
  .landing-proof,
  .plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .landing-proof {
    margin: 40px 0;
  }
  .landing-hero .actions {
    flex-direction: column;
  }
  .landing-hero .btn {
    min-height: 48px;
  }
  .onboard {
    margin: 30px 17px;
    padding: 22px;
  }
  .denominations {
    grid-template-columns: 1fr 1fr;
  }
  .denominations input {
    width: 67px;
  }
  #toast {
    bottom: 95px;
    min-width: 200px;
    text-align: center;
  }
  .saved-status {
    display: none;
  }
  .chips {
    flex-shrink: 0;
  }
  .chip {
    padding: 6px 8px;
    font-size: 10px;
  }
  .search {
    width: 100%;
  }
}
.form-step {
  display: none !important;
}
.form-step.active {
  display: grid !important;
}
@media (max-width: 767px) {
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > div:first-child {
    flex: 1 1 180px;
    min-width: 0;
  }
  .page-head > .actions {
    margin-left: auto;
    max-width: 100%;
  }
  .page-head > .actions .btn.primary {
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  .card-head {
    flex-wrap: wrap;
  }
  .card-head > .actions {
    flex-wrap: wrap;
  }
  .dialog-footer .actions {
    flex: 1;
  }
  .dialog-footer .actions .btn {
    flex: 1;
  }
  .dialog .form-grid > .form-step {
    width: 100%;
  }
  .filters select,
  .filters input {
    max-width: 100%;
  }
  .dialog .filter-field {
    justify-content: space-between;
  }
  .dialog .filter-field select,
  .dialog .filter-field input {
    width: 65%;
    min-height: 44px;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
    background: #fff;
  }
  .dialog .scope {
    display: none;
  }
  .dialog .filter-caption {
    display: none;
  }
  .step-dots {
    margin-top: 10px;
  }
  .dialog-footer > .btn:first-of-type {
    flex: 0 1 auto;
  }
  .banner .aira {
    pointer-events: none;
  }
}
@media (max-width: 380px) {
  .kpi strong { font-size: 20px; letter-spacing: -.7px; }
  .kpi-top { font-size: 9px; gap: 5px; }
  .kpi-top .icon { width: 13px; height: 13px; }
}
.brand-logo { width:46px; height:46px; object-fit:contain; flex-shrink:0; }
.workspace-logo { width:30px; height:30px; object-fit:contain; flex-shrink:0; }
.banner { min-height:180px; background-color:#123982; background-image:linear-gradient(90deg,#123982 0%,#123982 56%,rgba(18,57,130,.8) 62%,rgba(18,57,130,0) 78%),url('/brand/pulso-pyme-banner.webp'); background-repeat:no-repeat; background-position:center,right center; background-size:100% 100%,auto 100%; align-items:flex-start; padding:25px 28px 58px; }
.banner>div:first-child { position:relative; z-index:1; max-width:65%; }
.banner .aira { position:absolute; left:28px; right:auto; bottom:22px; font-size:13px; letter-spacing:2px; gap:12px; }
.banner .aira svg { width:55px; height:22px; }
@media(max-width:767px) {
 .brand-logo { width:43px; height:43px; }
 .workspace-logo { width:27px; height:27px; }
 .banner { min-height:228px; padding:22px 20px 55px; background-image:linear-gradient(90deg,rgba(18,57,130,.92) 0%,rgba(18,57,130,.75) 35%,rgba(18,57,130,0) 75%),linear-gradient(180deg,#123982 0%,#123982 44%,rgba(18,57,130,0) 72%),url('/brand/pulso-pyme-banner.webp'); background-size:100% 100%,100% 100%,auto 58%; background-position:center,center,right bottom; }
 .banner>div:first-child { max-width:72%; }
 .banner h2 { max-width:225px; font-size:21px; }
 .banner p { max-width:175px; }
 .banner .aira { left:20px; right:auto; bottom:21px; font-size:11px; letter-spacing:1.6px; }
 .banner .aira svg { width:36px; height:18px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .aira path {
    stroke-dashoffset: 0;
  }
}

.retail-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.retail-kpis strong{font-size:26px}@media(max-width:700px){.retail-kpis{grid-template-columns:1fr}.retail-kpis .kpi{padding:18px}}

#market-pattern[hidden]{display:none}

.periods-panel{margin:24px 0}.period-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 24px 24px}.period-card{border:1px solid var(--border);border-radius:12px;padding:18px}.period-card>strong{font-size:26px;display:block;margin:12px 0}.period-card p{line-height:1.7}.period-comparison{padding:0 24px 24px}.period-bar{display:grid;grid-template-columns:180px 1fr 80px;gap:12px;align-items:center;margin:12px 0}.period-group{margin:20px 0}.period-chip{display:inline-block;padding:6px 10px;background:#edf2fc;border-radius:8px;margin:4px}.credential-row{display:flex;gap:8px;margin:20px 0}.credential-row input{min-width:0;flex:1;padding:12px;border:1px solid var(--border);border-radius:10px}.credential-row svg{width:20px;height:20px}.member-list article,.audit-row{padding:16px 0;border-bottom:1px solid var(--border)}.audit-row pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f4f6fb;padding:16px}.help-chapters{display:grid;gap:16px;margin-top:20px}.help-chapters summary{font-size:18px;font-weight:650;cursor:pointer}.chapter-body p{line-height:1.8;margin:12px 0}.chapter-body h3{margin-top:22px}.login-divider{margin:20px 0;color:var(--muted)}#history-range{padding:10px;margin:12px;border:1px solid var(--border);border-radius:8px}@media(max-width:767px){.period-grid{grid-template-columns:1fr;padding:0 16px 16px}.period-bar{grid-template-columns:110px 1fr 58px;font-size:12px}.period-comparison{padding:0 16px 16px}.credential-row{flex-wrap:wrap}}
