:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --bg: #f4f7f7;
  --surface: #fff;
  --text: #15302d;
  --muted: #6b7f7d;
  --border: #dce7e5;
  --danger: #c2413a;
  --warning: #b7791f;
  --success: #15803d;
  --info: #2563eb;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(24, 63, 58, .08);
  --nav-height: 76px;
  --space: 16px;

  /* Fluid type scale: consistent proportions that stay balanced from small phones to tablets. */
  --fs-2xs: clamp(.6875rem, .66rem + .08vw, .75rem);
  --fs-xs: clamp(.75rem, .715rem + .1vw, .8125rem);
  --fs-sm: clamp(.8125rem, .78rem + .1vw, .875rem);
  --fs-base: clamp(.9375rem, .9rem + .15vw, 1rem);
  --fs-md: clamp(1rem, .95rem + .2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.06rem + .25vw, 1.25rem);
  --fs-xl: clamp(1.3125rem, 1.22rem + .35vw, 1.5rem);
  --fs-2xl: clamp(1.5625rem, 1.42rem + .55vw, 1.875rem);
  --fs-3xl: clamp(1.75rem, 1.55rem + .8vw, 2.125rem);

  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select { font: inherit; }
h1, h2, h3 { line-height: 1.25; }

/* Icons ----------------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: -0.15em;
  stroke: currentColor;
  fill: none;
}

.icon-button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.icon-button:hover { background: #eef4f3; color: var(--primary); }
.icon-button .icon-hide { display: none; }
.icon-button.is-visible .icon-show { display: none; }
.icon-button.is-visible .icon-hide { display: inline-block; }

/* Page transition --------------------------------------------------------
   A short, JS-driven cross-page fade so navigation between screens feels
   continuous instead of an abrupt reload. Respects prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .page-shell, .auth-shell {
    animation: page-in .32s cubic-bezier(.16, 1, .3, 1) both;
  }
  body.is-leaving .page-shell,
  body.is-leaving .auth-shell {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .15s ease, transform .15s ease;
  }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tactile feedback on interactive elements */
.button, .chip, .list-card, .timeline-card, .vehicle-card, .setting-row, .action-banner, .icon-button, .back-button {
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, opacity .2s ease;
}
@media (hover: none) {
  .button:active, .chip:active, .list-card:active, .timeline-card:active,
  .vehicle-card:active, .setting-row:active, .action-banner:active { transform: scale(.97); }
}

.app-body { padding-bottom: calc(var(--nav-height) + 24px); }
.page-shell { width: min(100%, 680px); margin: 0 auto; padding: 22px 18px 28px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 16px 18px;
  background: rgba(244, 247, 247, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 231, 229, .7);
}
.topbar-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar h1 { font-size: var(--fs-xl); margin: 0; line-height: 1.2; }
.back-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  flex: none;
}
.back-button:hover { background: #eef4f3; }
.back-button:active { transform: scale(.9); }

.eyebrow { display: block; color: var(--primary); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .13em; }
.avatar, .profile-avatar { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; }
.avatar { width: 42px; height: 42px; border-radius: 14px; font-size: var(--fs-md); }

.hero-card {
  background-image: linear-gradient(150deg, rgba(15, 118, 110, .88), rgba(19, 78, 74, .94)), url('../img/pattern-route.svg');
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card .eyebrow { color: #99f6e4; }
.hero-card h2 { font-size: var(--fs-2xl); margin: 10px 0; }
.hero-card p { color: #d5f5ef; margin: 0 0 22px; max-width: 430px; font-size: var(--fs-base); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 750;
  font-size: var(--fs-base);
  text-decoration: none;
  cursor: pointer;
}
.button:active { transform: scale(.97); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-light { background: #fff; color: var(--primary); }
.button-secondary { background: var(--primary-soft); color: var(--primary-dark); }
.button-ghost { background: #eef4f3; color: var(--text); }
.button-danger { background: #fee2e2; color: var(--danger); }
.button-block { width: 100%; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 20px rgba(24, 63, 58, .04); }
.stat-card strong { display: block; font-size: var(--fs-2xl); line-height: 1.15; }
.stat-card small { color: var(--muted); font-size: var(--fs-sm); }
.stat-icon { float: right; font-size: 22px; color: var(--primary); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 30px 2px 16px; gap: 12px; }
.section-heading h2 { margin: 4px 0 0; font-size: var(--fs-lg); }
.section-heading > a { color: var(--primary); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.section-heading .button { min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); gap: 6px; flex: none; }
.count-pill { padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: var(--fs-xs); font-weight: 800; }

.card-list, .timeline-list { display: grid; gap: 14px; }
.list-card, .timeline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 18px rgba(24, 63, 58, .035);
}
.list-card > b, .timeline-card > b { color: #9db3af; flex: none; font-size: 18px; }
.vehicle-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}
.list-card-main { flex: 1; min-width: 0; }
.list-card-main strong, .list-card-main span, .list-card-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-card-main strong { font-size: var(--fs-base); }
.list-card-main span { color: var(--muted); font-size: var(--fs-sm); }
.list-card-main small { font-size: var(--fs-xs); color: #8ca09d; }

.badge { display: inline-flex; align-items: center; width: max-content; max-width: 130px; padding: 5px 9px; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 800; line-height: 1.2; text-align: center; }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: var(--danger); }
.badge-info { background: #dbeafe; color: var(--info); }
.badge-neutral { background: #edf2f1; color: #526764; }

.action-banner { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 17px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); color: #9a3412; text-decoration: none; }
.action-banner > span { display: grid; place-items: center; width: 40px; height: 40px; background: #ffedd5; border-radius: 13px; font-size: 20px; flex: none; }
.action-banner > b { flex: none; font-size: 18px; }
.action-banner div { flex: 1; }
.action-banner strong { display: block; font-size: var(--fs-base); }
.action-banner small { display: block; font-size: var(--fs-sm); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 680px);
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 10px 10px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(24, 63, 58, .08);
  backdrop-filter: blur(18px);
}
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #7e918f; text-decoration: none; font-size: 21px; transition: color .2s; }
.bottom-nav a:active { transform: scale(.92); }
.bottom-nav small { font-size: var(--fs-2xs); font-weight: 700; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav .nav-main span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -26px;
  background: var(--primary);
  color: #fff;
  border: 5px solid var(--bg);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .28);
  font-size: 20px;
}

.filter-chips { display: flex; gap: 10px; overflow: auto; padding-bottom: 10px; }
.chip { white-space: nowrap; border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 10px 15px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.vehicle-grid { display: grid; gap: 18px; }
.vehicle-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.vehicle-visual {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: linear-gradient(150deg, rgba(204, 251, 241, .82), rgba(237, 248, 246, .9)), url('../img/pattern-route.svg');
  background-size: cover;
  background-position: center;
  color: var(--primary);
}
.vehicle-visual span { font-size: 64px; font-weight: 900; opacity: .25; }
.vehicle-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vehicle-visual b { position: absolute; bottom: 14px; right: 16px; padding: 6px 10px; border-radius: 7px; background: #fff; color: var(--text); font-size: var(--fs-xs); letter-spacing: .06em; }
.vehicle-card-body { padding: 20px; }
.vehicle-card-title { display: flex; justify-content: space-between; gap: 10px; }
.vehicle-card h3 { margin: 0; font-size: var(--fs-md); }
.vehicle-card p { margin: 2px 0; color: var(--muted); font-size: var(--fs-sm); }
.vehicle-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.vehicle-card.is-inactive { opacity: .6; }
.vehicle-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.vehicle-meta span { padding: 11px; background: #f6f9f8; border-radius: 12px; color: var(--muted); font-size: var(--fs-xs); }
.vehicle-meta strong { display: block; color: var(--text); font-size: var(--fs-sm); }
.vehicle-admin-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.vehicle-admin-actions form { margin: 0; }
.vehicle-admin-actions .icon-button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; font-size: 18px; }

.person-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 5px 18px rgba(24, 63, 58, .035); }
.person-card.is-inactive { opacity: .6; }
.person-card-main { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-avatar-sm { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 800; font-size: var(--fs-md); display: grid; place-items: center; object-fit: cover; }
.person-card-info { flex: 1; min-width: 0; }
.person-card-info strong { display: block; font-size: var(--fs-base); }
.person-card-info span { display: block; color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card-info small { display: block; color: #8ca09d; font-size: var(--fs-xs); }
.person-card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.form-hint { margin: -6px 0 0; color: var(--muted); font-size: var(--fs-xs); }

.photo-upload-preview {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef4f3;
  border: 2px dashed #c5d7d3;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.photo-upload-preview.is-round { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto; }
.photo-upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-upload-preview input[type=file] { position: absolute; inset: 0; z-index: 1; opacity: 0; cursor: pointer; }
.photo-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.photo-upload-placeholder .icon { width: 26px; height: 26px; }
.photo-upload-placeholder small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.photo-upload-preview.is-round .photo-upload-placeholder { gap: 3px; padding: 0 8px; text-align: center; }
.photo-upload-preview.is-round .photo-upload-placeholder small { font-size: 10px; line-height: 1.2; }

.form-card, .detail-card, .approval-card, .action-panel, .photo-section, .settings-list { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.form-card, .approval-card { display: grid; gap: 18px; }
.form-stack, .form-step { display: grid; gap: 18px; }
.form-step { display: none; }
.form-step.active { display: grid; }
.form-step h2 { margin: 5px 0 0; font-size: var(--fs-lg); }
.muted { color: var(--muted); }

label { display: grid; gap: 8px; font-size: var(--fs-sm); font-weight: 750; color: #3f5754; }
input, textarea, select { width: 100%; border: 1px solid #cfdedb; background: #fff; color: var(--text); font-size: var(--fs-base); border-radius: 13px; padding: 14px 16px; outline: none; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .11); }
textarea { resize: vertical; }

.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }

.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step-indicator span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e7efed; color: #78908c; font-size: var(--fs-xs); font-weight: 900; transition: background-color .2s, color .2s; }
.step-indicator span.active { background: var(--primary); color: #fff; }
.step-indicator i { width: 42px; height: 2px; background: #d7e4e1; }

.step-actions, .approval-actions { display: flex; gap: 12px; }
.step-actions .button, .approval-actions .button { flex: 1; }

.toggle-field, .issue-toggle { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); padding: 14px 16px; border-radius: 14px; }
.toggle-field input, .issue-toggle input { position: absolute; opacity: 0; width: 1px; }
.toggle-field i, .issue-toggle i { width: 46px; height: 26px; background: #cedbd8; border-radius: 99px; position: relative; flex: none; transition: background-color .2s; }
.toggle-field i:after, .issue-toggle i:after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #0002; transition: .2s; }
.toggle-field input:checked + i, .issue-toggle input:checked ~ i { background: var(--primary); }
.toggle-field input:checked + i:after, .issue-toggle input:checked ~ i:after { transform: translateX(20px); }

.summary-box, .note-block { padding: 16px; background: #f3f8f7; border-radius: 14px; font-size: var(--fs-base); }
.summary-box p, .note-block p { margin: 5px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.note-block.warning { background: #fff7ed; }

.timeline-date { display: grid; place-items: center; width: 48px; height: 55px; flex: none; background: var(--primary-soft); border-radius: 14px; color: var(--primary-dark); }
.timeline-date strong { font-size: var(--fs-xl); line-height: 1; }
.timeline-date span { font-size: var(--fs-2xs); font-weight: 900; }
.timeline-main { flex: 1; min-width: 0; }
.timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.timeline-top strong { font-size: var(--fs-base); }
.timeline-main p { margin: 4px 0; color: var(--muted); font-size: var(--fs-sm); }
.timeline-main small { color: #8ca09d; font-size: var(--fs-xs); }

.detail-header { display: flex; justify-content: space-between; gap: 12px; }
.detail-header h2 { margin: 4px 0; font-size: var(--fs-lg); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.detail-grid div { padding: 14px; background: #f7f9f9; border-radius: 13px; }
.detail-grid span, .note-block span { display: block; color: var(--muted); font-size: var(--fs-xs); }
.detail-grid strong { display: block; margin-top: 4px; font-size: var(--fs-sm); }

.action-panel, .approval-card { margin-top: 18px; }
.action-panel h2 { margin: 5px 0 15px; font-size: var(--fs-lg); }
.approval-card h3 { margin-top: 0; font-size: var(--fs-md); }
.inline-form { text-align: center; margin-top: 16px; }
.text-danger, .text-button { border: 0; background: none; color: var(--danger); font-weight: 750; font-size: var(--fs-sm); cursor: pointer; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-wrap .icon-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.password-wrap .icon-button:active { transform: translateY(-50%) scale(.9); }

.inspection-intro { text-align: center; padding: 10px 0 18px; }
.inspection-intro h2 { margin: 5px 0; font-size: var(--fs-lg); }
.inspection-intro p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.inspection-intro small { font-size: var(--fs-sm); }

.progress-bar { height: 8px; margin: 18px 0 6px; background: #dce8e6; border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--primary); transition: .25s; }

.inspection-form { display: grid; gap: 18px; }
.photo-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-slot { position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 14px; border: 2px dashed #c5d7d3; border-radius: 18px; background: #f9fbfb; overflow: hidden; transition: border-color .2s, background-color .2s; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot strong { font-size: var(--fs-sm); }
.photo-slot small { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.photo-icon { font-size: 28px; color: var(--primary); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.completed:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, #0008); }
.photo-slot.completed strong { position: absolute; bottom: 11px; left: 10px; z-index: 2; color: #fff; }
.photo-done { display: none; position: absolute; right: 8px; top: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; font-size: 13px; place-items: center; }
.photo-slot.completed .photo-done { display: grid; }

.issue-toggle { background: #fff; }
.issue-toggle span { flex: 1; }
.issue-toggle strong { display: block; font-size: var(--fs-sm); }
.issue-toggle small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.issue-fields { display: grid; gap: 14px; padding: 17px; border: 1px solid #fed7aa; background: #fffaf4; border-radius: 16px; }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo-card { position: relative; overflow: hidden; border-radius: 15px; background: #e7efed; text-decoration: none; color: #fff; aspect-ratio: 4/3; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, #0009); font-size: var(--fs-xs); font-weight: 800; }

.profile-card {
  text-align: center;
  margin-bottom: 18px;
  padding: 34px 26px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background-image: linear-gradient(155deg, rgba(15, 118, 110, .9), rgba(19, 78, 74, .96)), url('../img/pattern-route.svg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.profile-avatar { width: 76px; height: 76px; margin: auto; border-radius: 24px; font-size: var(--fs-xl); background: rgba(255, 255, 255, .16); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); object-fit: cover; }
.profile-card h2 { margin: 16px 0 2px; font-size: var(--fs-lg); color: #fff; }
.profile-card p { margin: 0 0 12px; color: #bfe9e3; font-size: var(--fs-sm); }

.settings-list { padding: 6px 20px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 2px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; font-size: var(--fs-base); }
.setting-row span { display: inline-flex; align-items: center; gap: 8px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row.danger { color: var(--danger); }
.setting-row > b { flex: none; font-size: 18px; color: #9db3af; }

.alert { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: var(--fs-sm); }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.empty-state { text-align: center; padding: 50px 22px; background: var(--surface); border: 1px dashed #cbdad7; border-radius: 22px; }
.empty-state > span { display: block; margin: 0 auto 8px; width: 42px; height: 42px; color: var(--muted); font-size: 42px; }
.empty-state h3, .empty-state h2 { margin: 10px 0; font-size: var(--fs-lg); }
.empty-state p { color: var(--muted); font-size: var(--fs-sm); }

.auth-body { min-height: 100vh; background: linear-gradient(160deg, #e9f7f4 0%, #f7fbfa 50%, #d9f1ed 100%); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); background: #fff; padding: 34px 30px; border-radius: 26px; box-shadow: 0 24px 70px rgba(17, 94, 89, .13); }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 17px; background: var(--primary); color: #fff; font-weight: 900; }
.login-card h1 { margin: 8px 0; font-size: var(--fs-3xl); }
.login-card p.muted { margin: 0 0 8px; font-size: var(--fs-base); }
.form-stack { margin-top: 24px; }
.demo-box { display: grid; gap: 3px; margin-top: 22px; padding: 15px; border-radius: 14px; background: #f1f7f6; color: var(--muted); font-size: var(--fs-xs); }
.demo-box strong { color: var(--text); }

[hidden] { display: none !important; }

@media (min-width: 620px) {
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 390px) {
  .field-grid.two, .detail-grid { grid-template-columns: 1fr; }
  .approval-actions { flex-direction: column; }
  .badge { max-width: 110px; }
  .page-shell { padding-left: 12px; padding-right: 12px; }
}
