.dash-body { min-height: 100dvh; background: var(--bg-dark); color: var(--text-main); }
.dash-gate { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.dash-gate .welcome-card { width: min(440px, 100%); }
.dash-gate label, .dash-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; color: var(--text-muted); }
.dash-gate input, .dash-form input, .dash-form select, .dash-tools input, .dash-form input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: inherit;
}
.dash-form label.check-line {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  min-width: 0;
}
.dash-form label.check-line input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  accent-color: #059669;
}
.dash-form label.check-line span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
}
.dash {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.dash-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--border-green);
  background: var(--bg-bar);
}
.dash-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.dash-nav button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
}
.dash-nav button.active { color: #f0fdf4; background: linear-gradient(135deg, #059669, #10b981); }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
  border-bottom: 1px solid var(--border-green);
}
.dash-top h1 { font-size: 1.45rem; }
.dash-top-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.dash-view { padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-tools { display: flex; flex-direction: column; gap: 0.55rem; }
.dash-list { display: flex; flex-direction: column; gap: 0.55rem; }
.dash-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  border-radius: 16px;
  padding: 0.85rem;
}
.dash-card header, .dash-card .dash-actions { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.dash-card h3 { font-size: 1rem; }
.dash-meta { color: var(--text-muted); font-size: 0.82rem; }
.pill {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-green-glow);
}
.pill.off, .pill.suspended { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html[data-theme="light"] .pill.off,
html[data-theme="light"] .pill.suspended { color: #b91c1c; }
.dash-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  border-radius: 16px;
  padding: 0.9rem;
}
.dash-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.fare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.fare-grid fieldset {
  border: 1px solid var(--border-green);
  border-radius: 14px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.fare-grid legend { font-weight: 800; padding: 0 0.3rem; }
.dash-form input[type="number"] { min-height: 44px; }
.dash-actions .btn { width: auto; min-height: 36px; padding: 0.4rem 0.75rem; }
.license-preview { width: min(420px, 100%); border-radius: 16px; border: 1px solid var(--border-green); background: #fff; object-fit: cover; }

@media (max-width: 800px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--border-green); }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-stats, .dash-form-grid, .fare-grid { grid-template-columns: 1fr 1fr; }
  .dash-top h1 { font-size: 1.25rem; }
}

@media (max-width: 420px) {
  .dash-stats, .dash-form-grid, .fare-grid { grid-template-columns: 1fr; }
}
