:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e8eef5;
  --text: #152033;
  --muted: #617086;
  --faint: #8b98aa;
  --line: #dbe3ed;
  --line-strong: #c7d2df;
  --green: #15803d;
  --green-soft: #dcfce7;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --ink: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --sidebar: 232px;
  --topbar: 72px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(21, 128, 61, 0.05) 0 1px, transparent 1px 80px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.04) 0 1px, transparent 1px 80px),
    var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: var(--bg);
}

.auth-panel {
  width: min(100%, 480px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.auth-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-submit {
  width: 100%;
}

.demo-accounts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-test-accounts {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
}

.sidebar-test-accounts .chip {
  justify-content: center;
  width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.brand-title span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-section {
  display: grid;
  gap: 8px;
}

.section-title {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 8px;
}

.language-switch {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-switch select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 6px 9px;
}

.auth-language-switch {
  max-width: 220px;
}

.nav-button,
.role-button,
.icon-button,
.action-button,
.chip {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-button,
.role-button {
  min-height: 40px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}

.nav-button:hover,
.role-button:hover,
.chip:hover {
  background: var(--surface-2);
}

.nav-button.active,
.role-button.active {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(21, 128, 61, 0.2);
}

.nav-icon,
.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: grid;
  gap: 8px;
}

.small-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--topbar) minmax(0, 1fr);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}

.topbar-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-box {
  width: min(320px, 35vw);
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 12px;
  color: var(--text);
  outline: none;
}

.search-box:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.content {
  padding: 22px 20px 36px;
  display: grid;
  gap: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 7px;
  min-height: 104px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  font-weight: 800;
}

.metric-foot {
  color: var(--muted);
  font-size: 12px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(340px, 1.18fr) minmax(238px, 0.84fr) minmax(220px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.driver-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 1.24fr) minmax(320px, 0.94fr);
}

.merchant-dashboard-grid {
  grid-template-columns: minmax(440px, 1.15fr) minmax(320px, 0.85fr);
}

.merchant-orders-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 0.95fr) minmax(360px, 0.9fr);
}

.merchant-drivers-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 0.9fr) minmax(420px, 1.05fr);
}

.merchant-route-grid {
  grid-template-columns: minmax(560px, 1.3fr) minmax(320px, 0.7fr);
}

.merchant-payments-grid {
  grid-template-columns: minmax(340px, 0.75fr) minmax(520px, 1.25fr);
}

.merchant-route-grid .map-panel {
  min-height: 560px;
}

.column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.order-edit-column {
  align-self: start;
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip;
}

.panel-header {
  min-height: 56px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.section-subtitle {
  margin: 4px 0 -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.parser-textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px;
  line-height: 1.5;
  outline: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid.compact {
  grid-template-columns: 1fr;
}

.parser-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.status-summary-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-summary-card,
.action-card,
.attention-row,
.route-driver-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
}

.status-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.status-summary-card span,
.status-summary-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.status-summary-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.action-card {
  min-height: 108px;
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.action-card strong {
  color: var(--ink);
  font-size: 15px;
}

.action-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.action-card:hover,
.attention-row:hover,
.route-driver-row:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #fff;
}

.attention-row,
.route-driver-row {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.attention-row span,
.route-driver-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.attention-row strong,
.route-driver-row strong {
  color: var(--ink);
  font-size: 14px;
}

.route-driver-list {
  display: grid;
  gap: 8px;
}

.route-driver-row.selected {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(21, 128, 61, 0.28);
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 8px 10px;
  outline: none;
  color: var(--text);
  background: #fff;
}

.field textarea {
  min-height: 68px;
  resize: vertical;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  font-weight: 750;
  font-size: 13px;
}

.action-button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.action-button.blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.action-button.red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.action-button.ghost {
  background: var(--surface-2);
}

.action-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  min-height: 30px;
  padding: 6px 9px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  background: #fff;
}

.chip.active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.22);
}

.chip.red {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(220, 38, 38, 0.24);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface-2);
}

.badge.green {
  color: var(--green);
  background: var(--green-soft);
}

.badge.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.red {
  color: var(--red);
  background: var(--red-soft);
}

.badge.dark {
  color: var(--ink);
  background: var(--surface-3);
}

.map-panel {
  min-height: 438px;
  position: relative;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(37, 99, 235, 0.08) 24.2% 24.8%, transparent 25% 49%, rgba(21, 128, 61, 0.06) 49.2% 49.8%, transparent 50% 74%, rgba(37, 99, 235, 0.08) 74.2% 74.8%, transparent 75%),
    linear-gradient(0deg, transparent 0 18%, rgba(37, 99, 235, 0.08) 18.2% 18.8%, transparent 19% 46%, rgba(21, 128, 61, 0.06) 46.2% 46.8%, transparent 47% 78%, rgba(37, 99, 235, 0.08) 78.2% 78.8%, transparent 79%),
    #edf4fb;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-point {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.map-point.driver {
  width: 42px;
  height: 42px;
  background: var(--green);
  box-shadow: 0 12px 25px rgba(21, 128, 61, 0.3);
}

.map-point.issue {
  background: var(--red);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.26);
}

.map-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 18px));
  max-width: 168px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.map-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.map-summary > div {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.map-summary > div:last-child {
  border-right: none;
}

.summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.summary-value {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.stop-list,
.driver-list,
.order-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.stop-row,
.driver-row,
.order-row,
.admin-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.stop-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
}

.stop-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.row-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 14px;
}

.row-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.driver-row {
  cursor: pointer;
}

.driver-row.selected {
  border-color: rgba(21, 128, 61, 0.42);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.driver-create {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.driver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.driver-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  background: var(--blue);
  flex: 0 0 auto;
}

.driver-identity strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.driver-identity span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.order-row {
  cursor: pointer;
}

.order-row.selected {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.order-main {
  display: grid;
  gap: 8px;
}

.order-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.money {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table td {
  color: var(--text);
}

.table input,
.table select {
  width: min(220px, 100%);
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: var(--text);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.admin-filter-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.wide-panel {
  grid-column: 1 / -1;
}

.wide-panel .panel-body {
  overflow-x: auto;
}

.wide-panel .table {
  min-width: 980px;
}

.audit-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 1380px) {
  .workspace-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.15fr);
  }

  .merchant-orders-grid {
    grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  }

  .merchant-orders-grid .order-edit-column {
    grid-column: 1 / -1;
    position: static;
  }

  .merchant-route-grid {
    grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.85fr);
  }

  .merchant-drivers-grid {
    grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  }

  .merchant-drivers-grid .column:last-child {
    grid-column: 1 / -1;
  }

  .driver-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.15fr);
  }

  .workspace-grid .column.side {
    grid-column: 1 / -1;
  }

  .workspace-grid .column.side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sidebar-section {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section-title,
  .sidebar-footer {
    display: none;
  }

  .nav-button,
  .role-button {
    white-space: nowrap;
    min-width: max-content;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .metric-grid,
  .workspace-grid,
  .admin-grid,
  .workspace-grid .column.side {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 16px;
  }

  .order-edit-column {
    position: static;
  }
}

@media (max-width: 620px) {
  :root {
    --topbar: auto;
  }

  .brand {
    min-height: 42px;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric {
    min-height: 90px;
  }

  .workspace-grid,
  .column,
  .panel-body {
    gap: 12px;
  }

  .form-grid,
  .status-summary-grid,
  .action-grid,
  .map-summary {
    grid-template-columns: 1fr;
  }

  .stop-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .stop-row .button-row {
    grid-column: 1 / -1;
  }

.table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.audit-line {
    grid-template-columns: 1fr;
  }
}

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

.site-shell {
  min-height: 100vh;
  background: #f5f8fa;
  color: #062536;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dbe7ee;
}

.site-brand,
.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-brand {
  color: #062536;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.site-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-nav a,
.site-footer a {
  color: #335368;
  font-weight: 700;
  text-decoration: none;
}

.site-login,
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.site-login,
.site-button.primary {
  color: #ffffff;
  background: #63b72f;
}

.site-button.secondary {
  color: #062536;
  background: #ffffff;
  border: 1px solid #c9d9e2;
}

.site-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 640px;
  padding: 72px clamp(20px, 6vw, 92px) 96px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 37, 54, 0.95) 0%, rgba(6, 37, 54, 0.86) 48%, rgba(6, 37, 54, 0.52) 100%),
    url("./assets/brand-logo.png") right 8% center / min(48vw, 560px) no-repeat,
    #062536;
}

.site-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
}

.site-eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  color: #d9f6c8;
  font-weight: 900;
}

.site-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
}

.site-hero h2 {
  margin: 18px 0 0;
  color: #b9ed98;
  font-size: clamp(24px, 3vw, 38px);
}

.site-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e9f2f6;
  font-size: 20px;
  line-height: 1.7;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-dashboard {
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: 40px;
  width: min(420px, 42vw);
  min-height: 230px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.hero-map {
  height: 150px;
  background:
    radial-gradient(circle at 22% 42%, #63b72f 0 9px, transparent 10px),
    radial-gradient(circle at 60% 56%, #63b72f 0 9px, transparent 10px),
    linear-gradient(90deg, transparent 0 30%, rgba(99, 183, 47, 0.16) 31% 32%, transparent 33% 64%, rgba(6, 37, 54, 0.14) 65% 66%, transparent 67%),
    linear-gradient(0deg, #edf5f8 0 49%, #d8e8ef 50% 51%, #edf5f8 52%);
}

.hero-panel {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #062536;
}

.site-section,
.site-detail {
  padding: 72px clamp(20px, 6vw, 92px);
}

.site-section {
  background: #ffffff;
  border-top: 1px solid #dbe7ee;
}

.site-section:nth-of-type(odd) {
  background: #eff8ea;
}

.site-section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.site-section h2,
.site-detail h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.site-section p,
.site-detail-note,
.site-detail-card p,
.policy-page p {
  color: #426071;
  font-size: 17px;
  line-height: 1.8;
}

.site-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.site-card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.site-card,
.site-detail-card {
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(6, 37, 54, 0.08);
}

.site-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
}

.site-card strong {
  color: #062536;
  font-size: 20px;
}

.site-card span {
  color: #486271;
  line-height: 1.65;
}

.site-detail {
  background: #ffffff;
}

.site-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #3c8f20;
  font-weight: 900;
  text-decoration: none;
}

.site-detail-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.site-detail-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px;
}

.site-detail-card > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: #63b72f;
  font-weight: 900;
}

.site-detail-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px;
  align-items: start;
}

.download-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid #d7e5dd;
  border-radius: 8px;
  background: #eff8ea;
  color: #062536;
  box-shadow: 0 18px 42px rgba(6, 37, 54, 0.1);
}

.download-card img {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.download-card strong {
  font-size: 24px;
}

.download-card span,
.account-card code {
  color: #426071;
}

.account-card code {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff8ea;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.site-detail-list.compact {
  margin-top: 42px;
}

.test-accounts-block {
  background: #062536;
  color: #ffffff;
}

.test-accounts-block p,
.test-accounts-block .site-card span {
  color: #d8e8ef;
}

.test-accounts-block .site-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.test-accounts-block .site-card strong {
  color: #ffffff;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 34px clamp(20px, 6vw, 92px);
  color: #d8e8ef;
  background: #062536;
}

.site-footer strong {
  color: #ffffff;
  font-size: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.site-footer a {
  color: #b9ed98;
}

.auth-note {
  margin-top: 6px;
  color: #475467;
}

.auth-test-accounts {
  padding: 14px 16px;
  border-radius: 8px;
  background: #eff8ea;
  color: #244a1c;
  line-height: 1.8;
}

.auth-test-accounts summary {
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-hero {
    min-height: 720px;
    padding-top: 48px;
    background:
      linear-gradient(180deg, rgba(6, 37, 54, 0.96) 0%, rgba(6, 37, 54, 0.84) 100%),
      url("./assets/brand-logo.png") center bottom 38px / min(78vw, 420px) no-repeat,
      #062536;
  }

  .hero-dashboard {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 34px;
  }

  .download-layout {
    grid-template-columns: 1fr;
  }
}
