* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0b1220;
  color: #e8ecf4;
  min-height: 100vh;
}
.view { padding: 20px; max-width: 480px; margin: 0 auto; }
.hidden { display: none !important; }
h1 { font-size: 1.6rem; margin-bottom: 4px; }
h2 { font-size: 1.2rem; }
.muted { color: #8a94ab; font-size: 0.9rem; }
.error { color: #ff6b6b; font-size: 0.9rem; }

button {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  margin: 6px 0;
  width: 100%;
  cursor: pointer;
}
button.primary { background: #3b82f6; color: white; font-weight: 600; }
button.secondary { background: #1e293b; color: #e8ecf4; }
button.danger { background: #dc2626; color: white; font-weight: 600; }
button.link { background: transparent; color: #3b82f6; width: auto; padding: 4px; }

.driver-list button {
  background: #1e293b;
  color: #e8ecf4;
  text-align: left;
  font-size: 1.1rem;
}

.pin-pad { margin-top: 16px; text-align: center; }
.pin-display { font-size: 2rem; letter-spacing: 8px; margin: 16px 0; }
.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pin-grid button {
  aspect-ratio: 1;
  font-size: 1.4rem;
  background: #1e293b;
  color: #e8ecf4;
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.job-list .job-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.job-card .addr { font-weight: 600; }
.job-card .meta { color: #8a94ab; font-size: 0.85rem; margin-top: 4px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #334155;
}

#signature-pad {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 320px;
  touch-action: none;
}

.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.photo-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

.banner {
  background: #92400e;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
}

label { display: block; margin: 12px 0 4px; font-size: 0.9rem; color: #8a94ab; }
