:root {
  --bg: #ecf0f5;
  --panel: #ffffff;
  --text: #1f2733;
  --muted: #5f6f83;
  --line: #d7dee8;
  --accent: #00d3e6;
  --accent-2: #00aec4;
  --good: #0b8f4d;
  --bad: #be2f2f;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Space Grotesk", "Segoe UI", sans-serif; font-size: 13px; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0 0 10px; }
p { margin: 0 0 12px; color: var(--muted); }
small { color: var(--muted); }

.app-shell { min-height: 100vh; }
.app-grid { display: grid; grid-template-columns: 218px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #2f2f2f, #252525); color: #f0f4f7; padding: 10px; display: flex; flex-direction: column; border-right: 1px solid #1e1e1e; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(45deg, #8ddf50, #40be3f); box-shadow: 0 0 10px rgba(141, 223, 80, 0.65); }
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px;
}
.brand small { display: block; color: #a9b1bd; }
.nav { display: grid; gap: 4px; margin: 12px 0 auto; }
.nav-link { padding: 8px 10px; border-radius: 6px; color: #c9d2de; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; font-size: 0.92rem; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); }
.nav-link.is-active { background: linear-gradient(180deg, #3b4148, #343940); border-color: #4a5462; color: #ffffff; font-weight: 600; }
.nav-link.is-disabled { opacity: 0.45; pointer-events: none; }
.nav-group-btn { width: 100%; text-align: left; border: 1px solid rgba(255,255,255,0.12); }
.nav-sub { display: grid; gap: 6px; margin-left: 8px; padding-left: 8px; border-left: 2px solid rgba(255,255,255,0.12); }
.nav-sub-link { font-size: 0.9rem; background: rgba(255,255,255,0.02); }
.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 12px; display: grid; gap: 6px; }

.main { padding: 0; background: #eef2f6; }
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  margin: 0;
  background: linear-gradient(180deg, #4a4a4a, #3d3d3d);
  color: #f8fbff;
  padding: 9px 16px;
  border-bottom: 1px solid #232323;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar h1 { color: #f8fbff; font-size: 1rem; margin-bottom: 0; }
.topbar small { color: #c5ccd6; font-size: 0.82rem; }
.topbar-user {
  background: #232a33;
  border: 1px solid #3f4b5c;
  color: #d9e5f3;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.content {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  padding: 16px;
}
.app-footer {
  margin: 4px 18px 14px;
  background: #f4f7fb;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  box-shadow: none;
  padding: 8px 12px;
}
.app-footer small {
  display: block;
  font-size: 0.9rem;
  color: #4d6480;
}
.muted {
  color: var(--muted);
}
.version-current {
  display: inline-block;
  border: 1px solid #a3c7ea;
  background: #edf6ff;
  color: #114f84;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 2px 8px;
  font-weight: 600;
}
.auth-footer {
  margin-top: 14px;
  text-align: center;
}

.panel, .kpi-card, .auth-card, .flash {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel { padding: 14px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.section-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid #c7d6e7;
  background: #f2f8ff;
}
.section-icon-wrap img {
  width: 16px;
  height: 16px;
}
.section-icon-wrap.is-cyan { background: #e8f8fd; border-color: #9cdcf0; }
.section-icon-wrap.is-red { background: #fff0ed; border-color: #f4b8af; }
.section-icon-wrap.is-green { background: #edfaef; border-color: #a5dfb4; }
.section-icon-wrap.is-amber { background: #fff7e9; border-color: #f0d396; }
.section-head h2 { margin: 0; }
.panel.is-collapsed .panel-body { display: none; }
.panel-body { display: grid; gap: 10px; }
.panel-toggle-btn {
  margin-left: auto;
  border: 1px solid #a9c5e2;
  background: #f3f9ff;
  color: #114f84;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.panel-title-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 0;
  border: none;
  font-size: 1rem;
}
.panel-help { color: var(--muted); margin-top: -2px; }
.legend-box {
  background: #f4f9ff;
  border: 1px solid #cde0f5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.legend-box p { margin: 0 0 6px; }
.legend-box p:last-child { margin-bottom: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi-card {
  padding: 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: stretch;
  min-height: 74px;
  overflow: hidden;
}
.kpi-card > div:last-child { padding: 10px 12px; }
.kpi-card small { display: block; margin-bottom: 4px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6a7788; }
.kpi-card strong { display: block; font-size: 1.05rem; line-height: 1.12; letter-spacing: 0.01em; color: #223247; }
.kpi-sub { display: block; margin-top: 3px; font-size: 0.76rem; color: #607388; font-weight: 600; }
.kpi-icon {
  display: grid;
  place-items: center;
}
.kpi-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}
.kpi-cyan .kpi-icon { background: #1bb3df; }
.kpi-red .kpi-icon { background: #e44d3a; }
.kpi-green .kpi-icon { background: #0dad61; }
.kpi-amber .kpi-icon { background: #ef9f11; }
.quick-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quick-kpi {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d9e1eb;
  border-radius: 10px;
  min-height: 82px;
}
.quick-kpi img {
  width: 22px;
  height: 22px;
  opacity: 0.92;
}
.quick-kpi small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quick-kpi strong {
  display: block;
  font-size: 1.06rem;
  color: #1d2a3c;
}
.quick-kpi span {
  font-size: 0.74rem;
  color: #607388;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 10px;
  padding: 14px 12px 12px;
  display: grid;
  gap: 7px;
  color: #25344a;
  text-decoration: none;
  min-height: 122px;
}
.feature-card img {
  width: 28px;
  height: 28px;
}
.feature-card h3 {
  font-size: 0.98rem;
  margin: 0;
}
.feature-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #62758a;
}
.feature-card:hover {
  border-color: #b6cbe2;
  box-shadow: 0 6px 18px rgba(21, 39, 65, 0.1);
}

.form-grid { display: grid; gap: 12px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid + .form-grid { margin-top: 12px; }
.form-grid h2 { grid-column: 1 / -1; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.form-grid .is-hidden { display: none !important; }
.form-hint-box {
  grid-column: 1 / -1;
  background: #f4f9ff;
  border: 1px solid #cde0f5;
  border-radius: 10px;
  padding: 8px 10px;
  color: #46607c;
  font-size: 0.85rem;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
input, select, button, textarea {
  font: inherit;
  border: 1px solid #c4ccd8;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #a4d2fa;
  border-color: #8ec6f7;
}
button {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #042c33;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button:hover { filter: brightness(1.03); }
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}
.form-grid > button {
  justify-self: start;
  min-width: 180px;
}
.action-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7edf6;
}
.action-form:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.action-form button {
  align-self: end;
}
.action-form .full-row {
  grid-column: 1 / -1;
}
.sidebar .nav-group-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #c9d2de;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
}
.sidebar .nav-group-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  filter: none;
}
.checkbox { display: flex; align-items: center; gap: 8px; }
.flash { padding: 10px 14px; }
.flash { margin: 0 18px; }
.flash-success { border-left: 5px solid var(--good); background: #f2fff8; }
.flash-error { border-left: 5px solid var(--bad); background: #fff5f5; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 6px 6px; font-size: 0.86rem; }
.table th { color: var(--muted); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }
.table tbody tr:hover { background: #f6fbff; }
.table-wrap { width: 100%; overflow-x: auto; }
.table th.action-col,
.table td.action-col {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.table td.action-col .action-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #cfdbe9;
  background: #eef4fb;
  color: #2f4e72;
}
.status-pill.is-draft { background: #eef4fb; color: #2f4e72; border-color: #c8d8ea; }
.status-pill.is-finalized { background: #e7f6ff; color: #166595; border-color: #b5dffa; }
.status-pill.is-sent { background: #e7faef; color: #1f7b49; border-color: #b8e3cb; }
.status-pill.is-paid { background: #e7f8eb; color: #16683c; border-color: #a9ddb9; }
.status-pill.is-cancelled { background: #fff0f0; color: #9b2a2a; border-color: #f0b4b4; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.btn-link {
  display: inline-block;
  padding: 7px 9px;
  border: 1px solid #a9c5e2;
  border-radius: 9px;
  background: #f3f9ff;
  color: #114f84;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}
.btn-link:hover { background: #e8f3ff; }
.panel-toggle-inline { margin: 0 0 10px; }
.panel-collapsible.is-collapsed { display: none; }
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #a9c5e2;
  border-radius: 9px;
  background: #f3f9ff;
  color: #114f84;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}
.icon-link:hover { background: #e8f3ff; }
.icon-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.icon-link img {
  width: 14px;
  height: 14px;
}
.icon-link .btn-tag {
  border: 1px solid #9fc6e2;
  background: #f2f9ff;
  color: #2a567a;
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 1px 6px;
  font-weight: 700;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.action-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #99b7d6;
  background: #edf6ff;
  color: #255a8c;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  position: relative;
  outline: none;
}
.info-dot:focus-visible {
  box-shadow: 0 0 0 2px rgba(46, 133, 208, 0.28);
}
.info-tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 180px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #a8c7e5;
  background: #f3f9ff;
  color: #234765;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(12, 36, 59, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
}
.info-tag::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #f3f9ff;
  border-left: 1px solid #a8c7e5;
  border-top: 1px solid #a8c7e5;
}
.info-dot:hover .info-tag,
.info-dot:focus .info-tag,
.info-dot:focus-visible .info-tag {
  opacity: 1;
  visibility: visible;
}
.form-grid.is-locked {
  opacity: 0.78;
}
.form-grid.is-locked .form-lock {
  filter: grayscale(0.12);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #a7c7e2;
  background: linear-gradient(180deg, #dff4ff, #bde9fb);
  color: #0c3b52;
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 0;
}
.icon-btn img {
  width: 14px;
  height: 14px;
}
.icon-btn .btn-tag {
  border: 1px solid #9fc6e2;
  background: #f2f9ff;
  color: #2a567a;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 1px 6px;
  font-weight: 700;
}
.icon-btn.is-danger {
  border-color: #e7b2b2;
  background: linear-gradient(180deg, #ffecec, #ffdada);
  color: #7a1d1d;
}
.icon-btn.is-danger .btn-tag {
  border-color: #efc2c2;
  background: #fff6f6;
  color: #8a2a2a;
}
.icon-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(30%);
}
.select-inline {
  height: 32px;
  padding: 4px 8px;
  border-radius: 9px;
}
.dashboard-trend { min-height: 248px; }
.ring-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 160px;
}
.ring-chart::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d8dee9;
}
.trend-metrics {
  display: grid;
  gap: 4px;
  min-width: min(520px, 100%);
}
.trend-metrics p {
  margin: 0;
  font-size: 0.95rem;
  color: #51657b;
}

.dashboard-modules .feature-grid {
  margin-top: 2px;
}

.auth-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #d8e8fa, #f6fafb 35%, #e7efff 100%);
}
.auth-wrap { width: min(560px, 92vw); display: grid; gap: 10px; }
.auth-card { padding: 24px 22px 20px; }
.auth-card h1 {
  margin-bottom: 14px;
  font-size: 2.05rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #132842;
}
.auth-card label span {
  font-size: 0.92rem;
  color: #4f647b;
}
.auth-card input {
  height: 46px;
  border-radius: 12px;
}
.auth-card button {
  min-width: 180px;
  height: 44px;
  border-radius: 12px;
}
.auth-wrap-setup { width: min(1200px, 95vw); }
.auth-card-setup { padding: 26px; }
.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 0 8px;
}
.auth-brand img {
  width: 188px;
  height: 188px;
  object-fit: contain;
  object-position: center center;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #f2f6fb;
  box-shadow: 0 10px 24px rgba(16, 31, 48, 0.14);
  padding: 10px;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  animation: auth-logo-in 220ms ease-out forwards;
}
.auth-brand strong {
  color: #3b4f66;
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  animation: auth-logo-in 220ms ease-out 70ms forwards;
}
@media (max-width: 640px) {
  .auth-brand img {
    width: 148px;
    height: 148px;
  }
  .auth-brand strong {
    font-size: 0.95rem;
  }
  .auth-card h1 {
    font-size: 1.8rem;
  }
}
@keyframes auth-logo-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-brand img,
  .auth-brand strong {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.setup-intro {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #eef6ff, #f7fbff);
  border: 1px solid #cfe1f6;
  border-radius: 12px;
  padding: 12px 14px;
}
.wizard-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wizard-step {
  border: 1px solid #b9cde6;
  background: #f6fbff;
  color: #245483;
  border-radius: 10px;
  padding: 10px;
}
.wizard-step.is-active {
  background: linear-gradient(180deg, #0f6cbd, #0a4f8a);
  color: #fff;
  border-color: #0a4f8a;
}
.wizard-progress {
  grid-column: 1 / -1;
  height: 8px;
  background: #dde6f1;
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #26a4ff, #33cf8e);
  transition: width 220ms ease;
}
.setup-section {
  background: #fcfdff;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.setup-section:not(.is-active) { display: none; }
.setup-section header h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.wizard-nav {
  margin-top: 2px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.wizard-inline-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ghost-btn {
  border: 1px solid #a9c5e2;
  background: #f4f9ff;
  color: #114f84;
}
.ghost-btn:hover { background: #e9f4ff; }
.status-ok { color: #0a8c4a; font-weight: 600; }
.status-bad { color: #b42b2b; font-weight: 600; }
.status-traffic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.status-traffic::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-traffic-green {
  color: #0f7b45;
  background: #eaf8ef;
  border-color: #a8d9bb;
}
.status-traffic-yellow {
  color: #8d6708;
  background: #fff7e6;
  border-color: #e8ce95;
}
.status-traffic-red {
  color: #a32f2f;
  background: #fdeeee;
  border-color: #ecb9b9;
}
.setup-actions {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 6px;
  background: rgba(242, 244, 248, 0.9);
  border: 1px solid #d8dee9;
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(8px);
}
.setup-actions button {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
}

.help-anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.help-card {
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfdff;
}

.help-card h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.help-card h3 img {
  width: 18px;
  height: 18px;
}

.help-card p {
  margin: 0 0 8px;
}

.help-card ul {
  margin: 0;
  padding-left: 18px;
}

.help-card li {
  margin-bottom: 5px;
}

.twofa-qr-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  background: #f7fbff;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0 10px;
}

.twofa-qr {
  width: 220px;
  height: 220px;
}

.twofa-qr img,
.twofa-qr canvas {
  display: block;
  width: 220px;
  height: 220px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.copy-row .copy-btn {
  min-width: 130px;
  margin-top: 4px;
}

.backup-codes-list {
  margin: 8px 0;
  padding: 10px;
  background: #f7fbff;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .app-grid { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; }
  .main { padding: 0; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two-col { grid-template-columns: 1fr; }
  .auth-wrap-setup { width: min(760px, 96vw); }
  .wizard-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .quick-kpi-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
